/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | CustomViewActivityTest.java | 95 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/ |
D | ActivitiesWatcher.java | 119 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()
|
D | ActivityLauncher.java | 38 public ActivityLauncher(@NonNull Context context, @NonNull ActivitiesWatcher watcher, in ActivityLauncher() argument 40 mWatcher = watcher.watch(activityClass); in ActivityLauncher()
|
D | WifiConfigCreator.java | 237 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/ |
D | ActivitiesWatcher.java | 119 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()
|
D | ActivityLauncher.java | 38 public ActivityLauncher(@NonNull Context context, @NonNull ActivitiesWatcher watcher, in ActivityLauncher() argument 40 mWatcher = watcher.watch(activityClass); in ActivityLauncher()
|
D | WifiConfigCreator.java | 237 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/ |
D | AppOpsTest.kt | 257 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/ |
D | GridActivity.java | 172 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()
|
D | LoginActivityTest.java | 190 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/ |
D | ValueAnimatorTest.java | 648 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/ |
D | SelectionTest.java | 983 SpanWatcher watcher = new SpanWatcher() { in testRemoveSelectionOnlyTriggersOneSpanRemoved() local 996 spannable.setSpan(watcher, 0, 2, 0); in testRemoveSelectionOnlyTriggersOneSpanRemoved()
|