Home
last modified time | relevance | path

Searched refs:watcher (Results 1 – 19 of 19) sorted by relevance

/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DLoginActivityTest.java113 final ActivityWatcher watcher = startWatcher(); in testSimpleLifecycle_defaultSession() local
116 watcher.waitFor(RESUMED); in testSimpleLifecycle_defaultSession()
120 watcher.waitFor(DESTROYED); in testSimpleLifecycle_defaultSession()
136 final ActivityWatcher watcher = startWatcher(); in testContentCaptureSessionCache() local
162 watcher.waitFor(RESUMED); in testContentCaptureSessionCache()
165 watcher.waitFor(DESTROYED); in testContentCaptureSessionCache()
176 final ActivityWatcher watcher = startWatcher(); in testSimpleLifecycle_rootViewSession() local
194 watcher.waitFor(RESUMED); in testSimpleLifecycle_rootViewSession()
197 watcher.waitFor(DESTROYED); in testSimpleLifecycle_rootViewSession()
293 final ActivityWatcher watcher = startWatcher(); in testSimpleLifecycle_changeContextAfterCreate() local
[all …]
DBlankActivityTest.java90 final ActivityWatcher watcher = startWatcher(); in testSimpleSessionLifecycle() local
93 watcher.waitFor(RESUMED); in testSimpleSessionLifecycle()
96 watcher.waitFor(DESTROYED); in testSimpleSessionLifecycle()
109 final ActivityWatcher watcher = startWatcher(); in testGetServiceComponentName() local
112 watcher.waitFor(RESUMED); in testGetServiceComponentName()
125 watcher.waitFor(DESTROYED); in testGetServiceComponentName()
134 final ActivityWatcher watcher = startWatcher(); in testGetServiceComponentName_onUiThread() local
137 watcher.waitFor(RESUMED); in testGetServiceComponentName_onUiThread()
144 watcher.waitFor(DESTROYED); in testGetServiceComponentName_onUiThread()
154 final ActivityWatcher watcher = startWatcher(); in testIsContentCaptureFeatureEnabled_onUiThread() local
[all …]
DBlankWithTitleActivityTest.java52 final ActivityWatcher watcher = startWatcher(); in testSimpleSessionLifecycle() local
55 watcher.waitFor(RESUMED); in testSimpleSessionLifecycle()
58 watcher.waitFor(DESTROYED); in testSimpleSessionLifecycle()
70 final ActivityWatcher watcher = startWatcher(); in testSimpleSessionLifecycle_noAnimation() local
75 watcher.waitFor(RESUMED); in testSimpleSessionLifecycle_noAnimation()
78 watcher.waitFor(DESTROYED); in testSimpleSessionLifecycle_noAnimation()
DCustomViewActivityTest.java89 final ActivityWatcher watcher = startWatcher(); in testLifecycle() local
92 watcher.waitFor(RESUMED); in testLifecycle()
95 watcher.waitFor(DESTROYED); in testLifecycle()
109 final ActivityWatcher watcher = startWatcher(); in testSessionLifecycleEvents() local
120 watcher.waitFor(RESUMED); in testSessionLifecycleEvents()
123 watcher.waitFor(DESTROYED); in testSessionLifecycleEvents()
165 final ActivityWatcher watcher = startWatcher(); in testVirtualView_wrongWay() local
185 watcher.waitFor(RESUMED); in testVirtualView_wrongWay()
188 watcher.waitFor(DESTROYED); in testVirtualView_wrongWay()
228 final ActivityWatcher watcher = startWatcher(); in testVirtualView_oneLevel() local
[all …]
DChildlessActivityTest.java103 final ActivityWatcher watcher = startWatcher(); in testDefaultLifecycle() local
106 watcher.waitFor(RESUMED); in testDefaultLifecycle()
109 watcher.waitFor(DESTROYED); in testDefaultLifecycle()
119 final ActivityWatcher watcher = startWatcher(); in testGetContentCapture_disabledWhenNoService() local
122 watcher.waitFor(RESUMED); in testGetContentCapture_disabledWhenNoService()
127 watcher.waitFor(DESTROYED); in testGetContentCapture_disabledWhenNoService()
133 final ActivityWatcher watcher = startWatcher(); in testGetContentCapture_enabledWhenNoService() local
136 watcher.waitFor(RESUMED); in testGetContentCapture_enabledWhenNoService()
141 watcher.waitFor(DESTROYED); in testGetContentCapture_enabledWhenNoService()
242 final ActivityWatcher watcher = startWatcher(); in testAddAndRemoveNoImportantChild() local
[all …]
DNullTextViewActivityTest.java50 final ActivityWatcher watcher = startWatcher(); in testNullTextView() local
53 watcher.waitFor(RESUMED); in testNullTextView()
56 watcher.waitFor(DESTROYED); in testNullTextView()
DDataSharingActivityTest.java55 final ActivitiesWatcher.ActivityWatcher watcher = startWatcher(); in testHappyPath_dataCopiedSuccessfully() local
60 watcher.waitFor(RESUMED); in testHappyPath_dataCopiedSuccessfully()
75 final ActivitiesWatcher.ActivityWatcher watcher = startWatcher(); in testDataSharingSessionIsRejected_propagatedToClient() local
80 watcher.waitFor(RESUMED); in testDataSharingSessionIsRejected_propagatedToClient()
DResizingEditActivityTest.java86 final ActivityWatcher watcher = startWatcher(); in testInsetsChangedOnImeAction() local
90 watcher.waitFor(RESUMED); in testInsetsChangedOnImeAction()
104 watcher.waitFor(DESTROYED); in testInsetsChangedOnImeAction()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DActivitiesWatcher.java119 final ActivityWatcher watcher = new ActivityWatcher(mTimeoutMs); in watch() local
120 mWatchers.put(className, watcher); in watch()
121 return watcher; in watch()
126 final ActivityWatcher watcher = mWatchers.get(className); in notifyWatcher() local
127 if (watcher != null) { in notifyWatcher()
129 watcher.notify(lifecycle); in notifyWatcher()
DActivityLauncher.java38 public ActivityLauncher(@NonNull Context context, @NonNull ActivitiesWatcher watcher, in ActivityLauncher() argument
40 mWatcher = watcher.watch(activityClass); in ActivityLauncher()
DWifiConfigCreator.java289 final BroadcastReceiver watcher = new BroadcastReceiver() { in checkAndEnableWifi() local
299 mContext.registerReceiver(watcher, new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION)); in checkAndEnableWifi()
309 mContext.unregisterReceiver(watcher); in checkAndEnableWifi()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DGridActivity.java176 final OneTimeTextWatcher watcher = new OneTimeTextWatcher(resourceId, cell, value); in onCell() local
177 mWatchers.add(watcher); in onCell()
178 cell.addTextChangedListener(watcher); in onCell()
185 final OneTimeTextWatcher watcher = mWatchers.get(i); in assertAutoFilled() local
186 watcher.assertAutoFilled(); in assertAutoFilled()
/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java1322 final WatchUidRunner watcher = new WatchUidRunner(mInstrumentation, ai.uid, waitForSec); in testKillingAppChildProcess() local
1339 watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, null); in testKillingAppChildProcess()
1353 watcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testKillingAppChildProcess()
1372 watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, null); in testKillingAppChildProcess()
1386 watcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testKillingAppChildProcess()
1390 watcher.waitFor(WatchUidRunner.CMD_GONE, processGoneTimeout); in testKillingAppChildProcess()
1403 watcher.finish(); in testKillingAppChildProcess()
1770 forBiEach(otherPackages, otherWatchers, (packageName, watcher) -> { in testServiceDoneLRUPosition()
1773 watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, null); in testServiceDoneLRUPosition()
1777 forBiEach(otherPackages, otherWatchers, (packageName, watcher) -> { in testServiceDoneLRUPosition()
[all …]
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java427 WatchUidRunner watcher = other ? mOtherUidWatcher : mWatcher; in startService() local
432 watcher.waitFor(WatchUidRunner.CMD_IDLE, null); in startService()
435 waitForGone(watcher); in startService()
450 private void waitForGone(WatchUidRunner watcher) { in waitForGone() argument
451 watcher.waitFor(WatchUidRunner.CMD_GONE, null); in waitForGone()
769 final WatchUidRunner watcher = new WatchUidRunner(mInstrumentation, in testOther() local
779 waitForGone(watcher); in testOther()
781 watcher.finish(); in testOther()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionServiceTest.java283 ActivityWatcher watcher = activitiesWatcher.watch(EmptyActivity.class); in startSessionForStartAssistantActivity() local
306 watcher.waitFor(RESUMED); in startSessionForStartAssistantActivity()
/cts/tests/tests/animation/src/android/animation/cts/
DValueAnimatorTest.java658 final Animator.AnimatorListener watcher = mock(Animator.AnimatorListener.class);
659 animator.addListener(watcher);
661 verify(watcher, times(1)).onAnimationStart(animator, false);
/cts/tests/translation/src/android/translation/cts/
DTranslationManagerTest.java518 final ActivityWatcher watcher = mActivitiesWatcher.watch(SimpleActivity.class); in testGetTranslationSettingsActivityIntent() local
522 watcher.waitFor(RESUMED); in testGetTranslationSettingsActivityIntent()
/cts/tests/tests/text/src/android/text/cts/
DSelectionTest.java983 SpanWatcher watcher = new SpanWatcher() { in testRemoveSelectionOnlyTriggersOneSpanRemoved() local
996 spannable.setSpan(watcher, 0, 2, 0); in testRemoveSelectionOnlyTriggersOneSpanRemoved()
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/
DLoginActivityTest.java186 final OneTimeTextWatcher watcher = new OneTimeTextWatcher("child", child, in testAutofillAutomaticallyAfterServiceReturnedNoDatasets() local
188 child.addTextChangedListener(watcher); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
204 watcher.assertAutoFilled(); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()