Home
last modified time | relevance | path

Searched refs:mWatcher (Results 1 – 8 of 8) sorted by relevance

/cts/tests/wallpapereffectsgeneration/src/android/wallpapereffectsgeneration/cts/
DWallpaperEffectsGenerationManagerTest.java78 private CtsWallpaperEffectsGenerationService.Watcher mWatcher; field in WallpaperEffectsGenerationManagerTest
84 mWatcher = CtsWallpaperEffectsGenerationService.setWatcher(); in setup()
89 mWatcher.verifier = Mockito.mock(CtsWallpaperEffectsGenerationService.class); in setup()
90 reset(mWatcher.verifier); in setup()
95 await(mWatcher.created, "Waiting for onCreated()"); in setup()
104 await(mWatcher.destroyed, "Waiting for onDestroyed()"); in tearDown()
105 mWatcher = null; in tearDown()
111 mWatcher.verifier = Mockito.mock(CtsWallpaperEffectsGenerationService.class); in testGenerateCinematicEffect_okResponse()
112 reset(mWatcher.verifier); in testGenerateCinematicEffect_okResponse()
124 mWatcher.verifier = Mockito.mock(CtsWallpaperEffectsGenerationService.class); in testGenerateCinematicEffect_errorResponse()
[all …]
/cts/tests/smartspace/src/android/smartspace/cts/
DSmartspaceManagerTest.java88 private CtsSmartspaceService.Watcher mWatcher; field in SmartspaceManagerTest
92 mWatcher = CtsSmartspaceService.setWatcher(); in setUp()
97 await(mWatcher.created, "Waiting for onCreate()"); in setUp()
98 reset(mWatcher.verifier); in setUp()
103 Log.d(TAG, "Starting tear down, watcher is: " + mWatcher); in tearDown()
106 await(mWatcher.destroyed, "Waiting for onDestroy()"); in tearDown()
108 mWatcher = null; in tearDown()
115 assertNotNull(mWatcher.verifier); in testCreateSmartspaceSession()
122 await(mWatcher.destroyed, "Waiting for onDestroy()"); in testDestroySession()
137 mWatcher.queried.countDown(); in testRequestSmartspaceUpdate()
[all …]
/cts/tests/contextualsearch/src/android/contextualsearch/cts/
DContextualSearchManagerTest.kt56 private var mWatcher: CtsContextualSearchActivity.Watcher? = null variable in android.contextualsearch.cts.ContextualSearchManagerTest
65 mWatcher = CtsContextualSearchActivity.Watcher() in setup()
66 CtsContextualSearchActivity.WATCHER = mWatcher in setup()
73 mWatcher = null in teardown()
82 mWatcher?.created, in testContextualSearchInvocation()
93 mWatcher?.created, in testContextualSearchExtras()
97 val extras = mWatcher!!.launchExtras!! in testContextualSearchExtras()
127 mWatcher?.created, in testRequestContextualSearchState()
131 val token = mWatcher!!.launchExtras!! in testRequestContextualSearchState()
148 mWatcher?.created, in testRequestContextualSearchStateWithTokenRefresh()
[all …]
/cts/tests/searchui/src/android/searchuiservice/cts/
DSearchUiManagerTest.java97 private CtsSearchUiService.Watcher mWatcher; field in SearchUiManagerTest
101 mWatcher = CtsSearchUiService.setWatcher(); in setUp()
106 await(mWatcher.created, "Waiting for onCreate()"); in setUp()
107 reset(mWatcher.verifier); in setUp()
112 Log.d(TAG, "Starting tear down, watcher is: " + mWatcher); in tearDown()
115 await(mWatcher.destroyed, "Waiting for onDestroy()"); in tearDown()
117 mWatcher = null; in tearDown()
124 assertNotNull(mWatcher.verifier); in testCreateSearchSession()
125 assertEquals(mWatcher.searchContext.getPackageName(), getContext().getPackageName()); in testCreateSearchSession()
126 assertEquals(mWatcher.searchContext.getResultTypes(), RESULT_TYPES); in testCreateSearchSession()
[all …]
/cts/tests/musicrecognition/src/android/musicrecognition/cts/
DMusicRecognitionManagerTest.java85 private CtsMusicRecognitionService.Watcher mWatcher; field in MusicRecognitionManagerTest
96 mWatcher = CtsMusicRecognitionService.setWatcher(); in setUp()
104 mWatcher = null; in tearDown()
134 mWatcher.failureCode = MusicRecognitionManager.RECOGNITION_FAILED_NO_CONNECTIVITY; in testOnRecognitionFailed()
146 mWatcher.result = new MediaMetadata.Builder() in testOnRecognitionSucceeded()
155 eq(mWatcher.result), eq(null)); in testOnRecognitionSucceeded()
158 assertThat(mWatcher.stream).hasLength(256_000 - 32_000); in testOnRecognitionSucceeded()
164 mWatcher.result = new MediaMetadata.Builder().build(); in testRemovesBindersFromBundle()
165 mWatcher.resultExtras = new Bundle(); in testRemovesBindersFromBundle()
166 mWatcher.resultExtras.putString("stringKey", "stringValue"); in testRemovesBindersFromBundle()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DActivityLauncher.java34 private final ActivityWatcher mWatcher; field in ActivityLauncher
40 mWatcher = watcher.watch(activityClass); in ActivityLauncher()
50 return mWatcher; in getWatcher()
/cts/tests/contentsuggestions/src/android/contentsuggestions/cts/
DContentSuggestionsManagerTest.java73 private CtsContentSuggestionsService.Watcher mWatcher; field in ContentSuggestionsManagerTest
77 mWatcher = CtsContentSuggestionsService.setWatcher(); in setup()
92 await(mWatcher.created, "Waiting for create"); in setup()
93 reset(mWatcher.verifier); in setup()
99 Log.d(TAG, "Starting tear down, watcher is: " + mWatcher); in tearDown()
101 await(mWatcher.destroyed, "Waiting for service destroyed"); in tearDown()
103 mWatcher = null; in tearDown()
169 return verify(mWatcher.verifier, timeout(VERIFY_TIMEOUT_MS)); in verifyService()
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java171 private WatchUidRunner mWatcher; field in ActivityManagerAppExitInfoTest
197 mWatcher = new WatchUidRunner(mInstrumentation, mStubPackageUid, WAITFOR_MSEC); in setUp()
294 mWatcher.finish(); in tearDown()
427 WatchUidRunner watcher = other ? mOtherUidWatcher : mWatcher; in startService()
670 waitForGone(mWatcher); in testAnr()
843 waitForGone(mWatcher); in testPermissionChange()
906 waitForGone(mWatcher); in testPermissionChangeWithReason()
942 waitForGone(mWatcher); in testCrash()
1004 waitForGone(mWatcher); in testUserRequested()
1034 waitForGone(mWatcher); in testPackageDisabled()
[all …]