owner.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);
int width = owner.getMeasuredWidth();
int height = owner.getMeasuredHeight();
int[] size = {width, height};
ViewUtil.convertFromPixelsToDP(a, size);
<BUG>owner.loadUrl(String.format("javascript:window.mraid.util.setDefaultPosition(%d, %d, %d, %d)",
</BUG>
location[0], location[1], size[0], size[1]));
}
<BUG>private void setSupports(WebView view, String feature, boolean value) {

view.loadUrl(String.format("javascript:window.mraid.util.setSupports(\'%s\', %s)", feature, String.valueOf(value)));
</BUG>
}

owner.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);
int width = owner.getMeasuredWidth();
int height = owner.getMeasuredHeight();
int[] size = {width, height};
ViewUtil.convertFromPixelsToDP(a, size);
owner.injectJavaScript(String.format("javascript:window.mraid.util.setDefaultPosition(%d, %d, %d, %d)",
location[0], location[1], size[0], size[1]));
}
private void setSupports(AdWebView view, String feature, boolean value) {
view.injectJavaScript(String.format("javascript:window.mraid.util.setSupports(\'%s\', %s)", feature, String.valueOf(value)));
}
