Home
last modified time | relevance | path

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

/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCustomViewActivityTest.java95 final ActivityWatcher watcher = startWatcher(); in testLifecycle() local
98 watcher.waitFor(RESUMED); in testLifecycle()
101 watcher.waitFor(DESTROYED); in testLifecycle()
117 final ActivityWatcher watcher = startWatcher(); in testVirtualView_wrongWay() local
137 watcher.waitFor(RESUMED); in testVirtualView_wrongWay()
140 watcher.waitFor(DESTROYED); in testVirtualView_wrongWay()
182 final ActivityWatcher watcher = startWatcher(); in testVirtualView_oneLevel() local
215 watcher.waitFor(RESUMED); in testVirtualView_oneLevel()
219 watcher.waitFor(DESTROYED); in testVirtualView_oneLevel()
250 final ActivityWatcher watcher = startWatcher(); in testVirtualView_multipleLevels() local
[all …]
/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.java237 final BroadcastReceiver watcher = new BroadcastReceiver() { in checkAndEnableWifi() local
246 mContext.registerReceiver(watcher, new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION)); in checkAndEnableWifi()
254 mContext.unregisterReceiver(watcher); in checkAndEnableWifi()
/cts/common/device-side/util/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.java237 final BroadcastReceiver watcher = new BroadcastReceiver() { in checkAndEnableWifi() local
246 mContext.registerReceiver(watcher, new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION)); in checkAndEnableWifi()
254 mContext.unregisterReceiver(watcher); in checkAndEnableWifi()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsTest.kt257 val watcher = mock(OnOpChangedListener::class.java) in testWatchingMode() constant
261 mAppOps.startWatchingMode(OPSTR_WRITE_CALENDAR, mOpPackageName, watcher) in testWatchingMode()
264 reset(watcher) in testWatchingMode()
266 verify(watcher, timeout(MODE_WATCHER_TIMEOUT_MS)) in testWatchingMode()
270 reset(watcher) in testWatchingMode()
272 verify(watcher, timeout(MODE_WATCHER_TIMEOUT_MS)) in testWatchingMode()
276 reset(watcher) in testWatchingMode()
278 verifyZeroInteractions(watcher) in testWatchingMode()
280 mAppOps.stopWatchingMode(watcher) in testWatchingMode()
284 reset(watcher) in testWatchingMode()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DGridActivity.java172 final OneTimeTextWatcher watcher = new OneTimeTextWatcher(resourceId, cell, value); in onCell() local
173 mWatchers.add(watcher); in onCell()
174 cell.addTextChangedListener(watcher); in onCell()
181 final OneTimeTextWatcher watcher = mWatchers.get(i); in assertAutoFilled() local
182 watcher.assertAutoFilled(); in assertAutoFilled()
DLoginActivityTest.java190 final OneTimeTextWatcher watcher = new OneTimeTextWatcher("child", child, in testAutofillAutomaticallyAfterServiceReturnedNoDatasets() local
192 child.addTextChangedListener(watcher); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
208 watcher.assertAutoFilled(); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
/cts/tests/tests/animation/src/android/animation/cts/
DValueAnimatorTest.java648 final Animator.AnimatorListener watcher = mock(Animator.AnimatorListener.class);
649 animator.addListener(watcher);
651 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()