Home
last modified time | relevance | path

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

/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DBlankActivityTest.java76 final ActivityWatcher watcher = startWatcher(); in testSimpleSessionLifecycle() local
79 watcher.waitFor(RESUMED); in testSimpleSessionLifecycle()
82 watcher.waitFor(DESTROYED); in testSimpleSessionLifecycle()
95 final ActivityWatcher watcher = startWatcher(); in testGetServiceComponentName() local
98 watcher.waitFor(RESUMED); in testGetServiceComponentName()
111 watcher.waitFor(DESTROYED); in testGetServiceComponentName()
120 final ActivityWatcher watcher = startWatcher(); in testGetServiceComponentName_onUiThread() local
123 watcher.waitFor(RESUMED); in testGetServiceComponentName_onUiThread()
130 watcher.waitFor(DESTROYED); in testGetServiceComponentName_onUiThread()
140 final ActivityWatcher watcher = startWatcher(); in testIsContentCaptureFeatureEnabled_onUiThread() local
[all …]
DLoginActivityTest.java113 final ActivityWatcher watcher = startWatcher(); in testSimpleLifecycle_defaultSession() local
116 watcher.waitFor(RESUMED); in testSimpleLifecycle_defaultSession()
119 watcher.waitFor(DESTROYED); in testSimpleLifecycle_defaultSession()
135 final ActivityWatcher watcher = startWatcher(); in testContentCaptureSessionCache() local
161 watcher.waitFor(RESUMED); in testContentCaptureSessionCache()
164 watcher.waitFor(DESTROYED); in testContentCaptureSessionCache()
175 final ActivityWatcher watcher = startWatcher(); in testSimpleLifecycle_rootViewSession() local
193 watcher.waitFor(RESUMED); in testSimpleLifecycle_rootViewSession()
196 watcher.waitFor(DESTROYED); in testSimpleLifecycle_rootViewSession()
289 final ActivityWatcher watcher = startWatcher(); in testSimpleLifecycle_changeContextAfterCreate() 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.java99 final ActivityWatcher watcher = startWatcher(); in testLifecycle() local
102 watcher.waitFor(RESUMED); in testLifecycle()
105 watcher.waitFor(DESTROYED); in testLifecycle()
119 final ActivityWatcher watcher = startWatcher(); in testSessionLifecycleEvents() local
130 watcher.waitFor(RESUMED); in testSessionLifecycleEvents()
133 watcher.waitFor(DESTROYED); in testSessionLifecycleEvents()
180 final ActivityWatcher watcher = startWatcher(); in testVirtualView_wrongWay() local
200 watcher.waitFor(RESUMED); in testVirtualView_wrongWay()
203 watcher.waitFor(DESTROYED); in testVirtualView_wrongWay()
250 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 …]
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()
DNullTextViewActivityTest.java50 final ActivityWatcher watcher = startWatcher(); in testNullTextView() local
53 watcher.waitFor(RESUMED); in testNullTextView()
56 watcher.waitFor(DESTROYED); in testNullTextView()
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.java277 final BroadcastReceiver watcher = new BroadcastReceiver() { in checkAndEnableWifi() local
287 mContext.registerReceiver(watcher, new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION)); in checkAndEnableWifi()
297 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/tests/appop/src/android/app/appops/cts/
DAppOpsTest.kt406 val watcher = mock(OnOpChangedListener::class.java) in <lambda>() constant
410 mAppOps.startWatchingMode(OPSTR_WRITE_CALENDAR, mOpPackageName, watcher) in <lambda>()
413 Mockito.reset(watcher) in <lambda>()
415 verify(watcher, timeout(TIMEOUT_MS)) in <lambda>()
419 Mockito.reset(watcher) in <lambda>()
421 verify(watcher, timeout(TIMEOUT_MS)) in <lambda>()
425 Mockito.reset(watcher) in <lambda>()
427 verifyZeroInteractions(watcher) in <lambda>()
429 mAppOps.stopWatchingMode(watcher) in <lambda>()
433 Mockito.reset(watcher) in <lambda>()
[all …]
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java323 WatchUidRunner watcher = other ? mOtherUidWatcher : mWatcher; in startService() local
326 watcher.waitFor(WatchUidRunner.CMD_IDLE, null); in startService()
329 waitForGone(watcher); in startService()
344 private void waitForGone(WatchUidRunner watcher) { in waitForGone() argument
345 watcher.waitFor(WatchUidRunner.CMD_GONE, null); in waitForGone()
654 final WatchUidRunner watcher = new WatchUidRunner(mInstrumentation, in testOther() local
664 waitForGone(watcher); in testOther()
666 watcher.finish(); in testOther()
/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java983 final WatchUidRunner watcher = new WatchUidRunner(mInstrumentation, ai.uid, waitForSec); in testKillingAppChildProcess() local
1000 watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, null); in testKillingAppChildProcess()
1014 watcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testKillingAppChildProcess()
1033 watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, null); in testKillingAppChildProcess()
1047 watcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testKillingAppChildProcess()
1051 watcher.waitFor(WatchUidRunner.CMD_GONE, processGoneTimeout); in testKillingAppChildProcess()
1064 watcher.finish(); in testKillingAppChildProcess()
/cts/tests/translation/src/android/translation/cts/
DTranslationManagerTest.java523 final ActivityWatcher watcher = mActivitiesWatcher.watch(SimpleActivity.class); in testGetTranslationSettingsActivityIntent() local
527 watcher.waitFor(RESUMED); in testGetTranslationSettingsActivityIntent()
/cts/tests/tests/animation/src/android/animation/cts/
DValueAnimatorTest.java649 final Animator.AnimatorListener watcher = mock(Animator.AnimatorListener.class);
650 animator.addListener(watcher);
652 verify(watcher, times(1)).onAnimationStart(animator, false);
/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.java158 final OneTimeTextWatcher watcher = new OneTimeTextWatcher("child", child, in testAutofillAutomaticallyAfterServiceReturnedNoDatasets() local
160 child.addTextChangedListener(watcher); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
176 watcher.assertAutoFilled(); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()