Home
last modified time | relevance | path

Searched refs:mWebView (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewAnimationTestActivity.java69 private WebView mWebView; field in WebViewAnimationTestActivity
77 mWebView = (WebView) findViewById(R.id.webview); in onCreate()
83 mWebView.setBackgroundColor(0); in onCreate()
84 mWebView.loadDataWithBaseURL("http://foo.bar", HTML, "text/html", null, "http://foo.bar"); in onCreate()
107 mWebView.setAlpha(progress / 100f); in onCreate()
125 if (mWebView.getTranslationX() == 0f) { in runTranslate()
126 mWebView.animate().translationX(100f).translationY(100f); in runTranslate()
128 mWebView.animate().translationX(0f).translationY(0f); in runTranslate()
133 if (mWebView.getScaleX() == 1f) { in runScale()
134 mWebView.animate().scaleX(.5f).scaleY(.5f); in runScale()
[all …]
DWebViewBrowserActivity.java106 private WebView mWebView; field in WebViewBrowserActivity
176 WebViewBrowserActivity.this.mWebView.loadUrl(mOrigin); in grant()
264 mWebView.restoreState(savedInstanceState); in onCreate()
265 url = mWebView.getUrl(); in onCreate()
277 mWebView.reload(); in onCreate()
278 mWebView.requestFocus(); in onCreate()
293 mWebView.saveState(savedInstanceState); in onSaveInstanceState()
309 if (mWebView.canGoBack()) { in onBackPressed()
310 mWebView.goBack(); in onBackPressed()
411 mWebView = webview; in createAndInitializeWebView()
[all …]
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/
DWfcWebPortalFragment.java49 private WebView mWebView; field in WfcWebPortalFragment
75 mWebView = v.findViewById(R.id.webview); in onCreateView()
76 mWebView.setWebViewClient( in onCreateView()
94 mWebView.addOnAttachStateChangeListener( in onCreateView()
112 mWebView.addJavascriptInterface(new JsInterface(getActivity()), JS_CONTROLLER_NAME); in onCreateView()
113 WebSettings settings = mWebView.getSettings(); in onCreateView()
118 mWebView.loadUrl(url); in onCreateView()
120 mWebView.postUrl(url, postData.getBytes()); in onCreateView()
133 if (mWebView != null in onKeyDown()
134 && mWebView.canGoBack() in onKeyDown()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DWebActivity.java58 private WebView mWebView; field in WebActivity
72 mWebView = new WebView(this); in onCreate()
74 mWebView.setWebViewClient(new WebViewClient() { in onCreate()
87 mWebView.loadUrl(extraUrl); in onCreate()
89 WebSettings webSettings = mWebView.getSettings(); in onCreate()
95 mWebView.setOnLongClickListener(v -> true); in onCreate()
99 setContentView(mWebView); in onCreate()
114 if (mWebView.canGoBack()) { in onBackPressed()
115 mWebView.goBack(); in onBackPressed()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxCodeProvider/src/com/android/sdksandboxcode_webview/
DSandboxedSdkWebViewProvider.java33 private WebView mWebView = null; field in SandboxedSdkWebViewProvider
41 sHandler.post(() -> mWebView.loadUrl(url)); in onLoadSdk()
45 sHandler.post(() -> mWebView.destroy()); in onLoadSdk()
53 mWebView = new WebView(windowContext); in getView()
54 initializeSettings(mWebView.getSettings()); in getView()
55 mWebView.loadUrl("https://www.google.com/"); in getView()
56 return mWebView; in getView()
/packages/apps/TV/src/com/android/tv/dialog/
DWebDialogFragment.java38 private WebView mWebView; field in WebDialogFragment
77 mWebView = new WebView(getActivity()); in onCreateView()
78 mWebView.setWebViewClient(new WebViewClient()); in onCreateView()
80 mWebView.loadUrl(url); in onCreateView()
83 return mWebView; in onCreateView()
89 if (mWebView != null) { in onDestroyView()
90 mWebView.destroy(); in onDestroyView()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxClient/src/com/android/sdksandboxclient/
DAppWebViewActivity.java30 private WebView mWebView; field in AppWebViewActivity
45 mWebView = findViewById(R.id.app_webview); in startWebview()
46 initializeSettings(mWebView.getSettings()); in startWebview()
51 mWebView.addJavascriptInterface(mInterface, "interface"); in startWebview()
52 mWebView.setOnTouchListener( in startWebview()
69 mWebView.loadData("<html><head></head>" + data + "</html>", "text/html", null); in loadDataInWebview()
/packages/modules/Wifi/OsuLogin/src/com/android/hotspot2/osulogin/
DOsuLoginActivity.java63 private WebView mWebView; field in OsuLoginActivity
161 mWebView = findViewById(R.id.webview); in onCreate()
162 mWebView.clearCache(true); in onCreate()
163 WebSettings webSettings = mWebView.getSettings(); in onCreate()
172 mWebView.setWebViewClient(new OsuWebViewClient()); in onCreate()
173 mWebView.setWebChromeClient(new WebChromeClient() { in onCreate()
184 mWebView.loadUrl(mUrl); in onCreate()
187 mWebView.reload(); in onCreate()
197 if (mWebView.canGoBack()) { in onKeyDown()
198 mWebView.goBack(); in onKeyDown()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/activities/
DHelpActivity.java38 private WebView mWebView; field in HelpActivity
45 mWebView = findViewById(R.id.webview); in onCreate()
59 mWebView.setWebViewClient( in onCreate()
67 mWebView.loadUrl(url); in onCreate()
72 return mWebView; in getWebView()
/packages/apps/Contacts/src/com/android/contacts/activities/
DLicenseActivity.java31 private WebView mWebView; field in LicenseActivity
37 mWebView = (WebView) findViewById(R.id.webview); in onCreate()
38 mWebView.loadUrl(LICENSE_FILE); in onCreate()
47 mWebView.destroy(); in onDestroy()
/packages/apps/HTMLViewer/src/com/android/htmlviewer/
DHTMLViewerActivity.java55 private WebView mWebView; field in HTMLViewerActivity
65 mWebView = findViewById(R.id.webview); in onCreate()
68 mWebView.setWebChromeClient(new ChromeClient()); in onCreate()
69 mWebView.setWebViewClient(new ViewClient()); in onCreate()
71 WebSettings s = mWebView.getSettings(); in onCreate()
100 mWebView.loadUrl(String.valueOf(mIntent.getData())); in loadUrl()
121 mWebView.destroy(); in onDestroy()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxCodeProvider/src/com/android/sdksandboxcode_1/
DSdkApi.java62 private WebView mWebView; field in SdkApi
180 mediaView = mWebView; in startActivity()
241 mWebView = new WebView(sdkContext); in preloadWebViewForActivity()
242 initializeSettings(mWebView.getSettings()); in preloadWebViewForActivity()
244 mWebView.setWebViewClient( in preloadWebViewForActivity()
253 mWebView.loadUrl(WEB_VIEW_LINK); in preloadWebViewForActivity()
255 mWebView.loadUrl(WEBSITE_LINK); in preloadWebViewForActivity()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/display/
DOdpWebViewClientTests.java102 private OdpWebView mWebView; field in OdpWebViewClientTests
148 mWebView = new OdpWebView(mContext); in setup()
185 assertTrue(webViewClient.shouldOverrideUrlLoading(mWebView, webResourceRequest)); in testValidUrlOverride()
201 mWebView, webResourceRequest); in testValidUrlWithNoContentIntercept()
219 mWebView, webResourceRequest); in testValidUrlWithResponseDataIntercept()
239 assertTrue(webViewClient.shouldOverrideUrlLoading(mWebView, webResourceRequest)); in testValidUrlWithRedirect()
255 assertTrue(webViewClient.shouldOverrideUrlLoading(mWebView, webResourceRequest)); in testValidUrlWithEventMetrics()
279 assertNull(webViewClient.shouldInterceptRequest(mWebView, webResourceRequest)); in testNonOdpUrl()
280 assertFalse(webViewClient.shouldOverrideUrlLoading(mWebView, webResourceRequest)); in testNonOdpUrl()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/serviceflow/
DWebViewFlowTest.java65 private WebView mWebView; field in WebViewFlowTest
153 mWebView = new OdpWebView(mContext); in setUpWebView()