Home
last modified time | relevance | path

Searched refs:getTestEnvironment (Results 1 – 25 of 29) sorted by relevance

12

/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
DMockJobService.java63 if (TestEnvironment.getTestEnvironment().getExpectedWork() != null) { in onDestroy()
64 TestEnvironment.getTestEnvironment().notifyExecution(mParams, 0, 0, mReceivedWork, in onDestroy()
90 TestWorkItem[] expectedWork = TestEnvironment.getTestEnvironment().getExpectedWork(); in onStartJob()
93 if (!TestEnvironment.getTestEnvironment().awaitDoWork()) { in onStartJob()
94 TestEnvironment.getTestEnvironment().notifyExecution(params, permCheckRead, in onStartJob()
99 TestEnvironment.getTestEnvironment().notifyExecution(params, permCheckRead, in onStartJob()
122 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob()
135 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob()
154 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob()
167 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob()
[all …]
DTriggerContentJobService.java77 int mode = TestEnvironment.getTestEnvironment().getMode(); in onStartJob()
78 mRunningJobInfo = TestEnvironment.getTestEnvironment().getModeJobInfo(); in onStartJob()
79 TestEnvironment.getTestEnvironment().setMode(TestEnvironment.MODE_ONESHOT, null); in onStartJob()
80 TestEnvironment.getTestEnvironment().notifyExecution(params); in onStartJob()
119 public static TestEnvironment getTestEnvironment() { in getTestEnvironment() method in TriggerContentJobService.TestEnvironment
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java71 if (TestEnvironment.getTestEnvironment().getExpectedWork() != null) { in onDestroy()
72 TestEnvironment.getTestEnvironment().notifyExecution(this, mParams, 0, 0, mReceivedWork, in onDestroy()
87 TestEnvironment.getTestEnvironment().addEvent( in onStartJob()
92 TestEnvironment.getTestEnvironment().getJobStartNotification(); in onStartJob()
95 TestEnvironment.getTestEnvironment().getJobStartNotificationId(), in onStartJob()
97 TestEnvironment.getTestEnvironment().getJobStartNotificationEndPolicy()); in onStartJob()
109 TestWorkItem[] expectedWork = TestEnvironment.getTestEnvironment().getExpectedWork(); in onStartJob()
112 if (!TestEnvironment.getTestEnvironment().awaitDoWork()) { in onStartJob()
113 TestEnvironment.getTestEnvironment().notifyExecution(this, in onStartJob()
119 TestEnvironment.getTestEnvironment().notifyExecution(this, in onStartJob()
[all …]
DTriggerContentJobService.java77 int mode = TestEnvironment.getTestEnvironment().getMode(); in onStartJob()
78 mRunningJobInfo = TestEnvironment.getTestEnvironment().getModeJobInfo(); in onStartJob()
79 TestEnvironment.getTestEnvironment().setMode(TestEnvironment.MODE_ONESHOT, null); in onStartJob()
80 TestEnvironment.getTestEnvironment().notifyExecution(params); in onStartJob()
119 public static TestEnvironment getTestEnvironment() { in getTestEnvironment() method in TriggerContentJobService.TestEnvironment
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java456 mWebView = getTestEnvironment().getWebView(); in setUp()
532 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.NO_CLIENT_AUTH); in testInsecureSiteClearsCertificate()
542 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testInsecureSiteClearsCertificate()
550 SharedWebViewTestEnvironment testEnvironment = getTestEnvironment(); in testSecureSiteSetsCertificate()
583 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.NO_CLIENT_AUTH); in testClearSslPreferences()
632 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.NO_CLIENT_AUTH); in testOnReceivedSslError()
655 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.NO_CLIENT_AUTH); in testOnReceivedSslErrorProceed()
674 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.NO_CLIENT_AUTH); in testOnReceivedSslErrorCancel()
687 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.NO_CLIENT_AUTH); in testSslErrorProceedResponseReusedForSameHost()
710 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.NO_CLIENT_AUTH); in testSslErrorProceedResponseNotReusedForDifferentHost()
[all …]
DWebViewClientTest.java92 WebView webview = getTestEnvironment().getWebView(); in setUp()
182 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testShouldOverrideUrlLoadingOnCreateWindow()
204 getTestEnvironment().addContentView(childWebView, new ViewGroup.LayoutParams( in testShouldOverrideUrlLoadingOnCreateWindow()
270 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testLoadPage()
313 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testOnReceivedLoginRequest()
352 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testOnReceivedErrorForSubresource()
367 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testOnReceivedHttpError()
380 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testOnFormResubmission()
406 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testDoUpdateVisitedHistory()
425 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testOnReceivedHttpAuthRequest()
[all …]
DWebSettingsTest.java104 WebView webview = getTestEnvironment().getWebView(); in setUp()
109 mContext = getTestEnvironment().getContext(); in setUp()
239 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAccessUserAgentString()
312 getTestEnvironment().waitForIdleSync(); in openIconDatabase()
321 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAccessCacheMode_cacheElseNetwork()
344 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAccessCacheMode_noCache()
367 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAccessCacheMode_cacheOnly()
494 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAccessJavaScriptCanOpenWindowsAutomatically()
710 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAppCacheDisabled()
734 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAppCacheEnabled()
[all …]
DWebViewTest.java160 mWebView = getTestEnvironment().getWebView(); in setUp()
162 mContext = getTestEnvironment().getContext(); in setUp()
322 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testLoadUrl()
356 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testPostUrlWithNetworkUrl()
360 final byte[] postData = getTestEnvironment().getEncodingBytes(postDataString, "BASE64"); in testPostUrlWithNetworkUrl()
388 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAppInjectedXRequestedWithHeaderIsNotOverwritten()
412 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAppCanInjectHeadersViaImmutableMap()
441 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testCanInjectHeaders()
460 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testGetVisibleTitleHeight()
472 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testGetOriginalUrl()
[all …]
DWebHistoryItemTest.java76 WebView webview = getTestEnvironment().getWebView(); in setUp()
80 mContext = getTestEnvironment().getContext(); in setUp()
81 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in setUp()
DWebChromeClientTest.java78 WebView webview = getTestEnvironment().getWebView(); in setUp()
82 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in setUp()
167 String dbPath = getTestEnvironment().getContext().getFilesDir().toString() + "/icons"; in testOnReceivedIcon()
170 getTestEnvironment().waitForIdleSync(); in testOnReceivedIcon()
424 getTestEnvironment().sendTapSync(middleX, middleY); in tapWebView()
427 getTestEnvironment().waitForIdleSync(); in tapWebView()
578 mChildWebView = new WebView(getTestEnvironment().getContext()); in onCreateWindow()
583 getTestEnvironment().addContentView(mChildWebView, new ViewGroup.LayoutParams( in onCreateWindow()
DCookieManagerTest.java68 WebView webView = getTestEnvironment().getWebView(); in setUp()
137 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAcceptCookie()
352 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testThirdPartyCookie()
392 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testSameSiteLaxByDefault()
408 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testSameSiteNoneRequiresSecure()
422 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testSchemefulSameSite()
429 SharedSdkWebServer secureServer = getTestEnvironment() in testSchemefulSameSite()
DWebBackForwardListTest.java53 WebView webview = getTestEnvironment().getWebView(); in setUp()
98 SharedSdkWebServer server = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testGetCurrentItem()
DWebViewTransportTest.java66 WebView webView = getTestEnvironment().getWebView(); in testAccessWebView()
DHttpAuthHandlerTest.java62 WebView webview = getTestEnvironment().getWebView(); in setUp()
67 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in setUp()
DServiceWorkerWebSettingsTest.java51 WebView webview = getTestEnvironment().getWebView(); in setUp()
DDateSorterTest.java46 mContext = getTestEnvironment().getContext(); in setUp()
DWebViewZoomTest.java74 mWebView = getTestEnvironment().getWebView(); in setUp()
137 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.TRUST_ANY_CLIENT); in setUpPage()
DWebViewRenderProcessTest.java60 WebView webview = getTestEnvironment().getWebView(); in setUp()
DWebViewRenderProcessClientTest.java61 WebView webview = getTestEnvironment().getWebView(); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraContentJobService.java50 TestEnvironment.getTestEnvironment().notifyExecution(params); in onStartJob()
72 public static TestEnvironment getTestEnvironment() { in getTestEnvironment() method in CameraContentJobService.TestEnvironment
/cts/libs/webkit-shared/src/android/webkit/cts/
DSharedWebViewTest.java37 public SharedWebViewTestEnvironment getTestEnvironment() { in getTestEnvironment() method in SharedWebViewTest
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DConstraintTest.java51 MockJobService.TestEnvironment.getTestEnvironment();
53 TriggerContentJobService.TestEnvironment.getTestEnvironment();
/cts/libs/webkit-shared/
DREADME.md94 Search for `getTestEnvironment()`. This method returns a `SharedWebViewTestEnvironment`.
111 + getTestEnvironment().waitForIdleSync();
123 mWebView = getTestEnvironment().getWebView();
/cts/tests/tests/sdksandbox/webkit/sdk/src/com/android/cts/sdk/
DWebViewSandboxTestSdk.java89 WebView webView = mTestInstance.getTestEnvironment().getWebView(); in cleanUpOnTestFinish()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DBaseJobSchedulerTest.java64 MockJobService.TestEnvironment.getTestEnvironment();
66 TriggerContentJobService.TestEnvironment.getTestEnvironment();

12