/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | BlankActivityTest.java | 61 final ActivityWatcher watcher = startWatcher(); in testSimpleSessionLifecycle() local 64 watcher.waitFor(RESUMED); in testSimpleSessionLifecycle() 67 watcher.waitFor(DESTROYED); in testSimpleSessionLifecycle() 80 final ActivityWatcher watcher = startWatcher(); in testGetServiceComponentName() local 83 watcher.waitFor(RESUMED); in testGetServiceComponentName() 96 watcher.waitFor(DESTROYED); in testGetServiceComponentName() 105 final ActivityWatcher watcher = startWatcher(); in testGetServiceComponentName_onUiThread() local 108 watcher.waitFor(RESUMED); in testGetServiceComponentName_onUiThread() 115 watcher.waitFor(DESTROYED); in testGetServiceComponentName_onUiThread() 125 final ActivityWatcher watcher = startWatcher(); in testIsContentCaptureFeatureEnabled_onUiThread() local [all …]
|
D | LoginActivityTest.java | 105 final ActivityWatcher watcher = startWatcher(); in testSimpleLifecycle_defaultSession() local 108 watcher.waitFor(RESUMED); in testSimpleLifecycle_defaultSession() 111 watcher.waitFor(DESTROYED); in testSimpleLifecycle_defaultSession() 127 final ActivityWatcher watcher = startWatcher(); in testSimpleLifecycle_rootViewSession() local 145 watcher.waitFor(RESUMED); in testSimpleLifecycle_rootViewSession() 148 watcher.waitFor(DESTROYED); in testSimpleLifecycle_rootViewSession() 241 final ActivityWatcher watcher = startWatcher(); in testSimpleLifecycle_changeContextAfterCreate() local 244 watcher.waitFor(RESUMED); in testSimpleLifecycle_changeContextAfterCreate() 260 watcher.waitFor(DESTROYED); in testSimpleLifecycle_changeContextAfterCreate() 281 final ActivityWatcher watcher = startWatcher(); in testSimpleLifecycle_changeContextOnCreate() local [all …]
|
D | CustomViewActivityTest.java | 99 final ActivityWatcher watcher = startWatcher(); in testLifecycle() local 102 watcher.waitFor(RESUMED); in testLifecycle() 105 watcher.waitFor(DESTROYED); in testLifecycle() 121 final ActivityWatcher watcher = startWatcher(); in testVirtualView_wrongWay() local 141 watcher.waitFor(RESUMED); in testVirtualView_wrongWay() 144 watcher.waitFor(DESTROYED); in testVirtualView_wrongWay() 191 final ActivityWatcher watcher = startWatcher(); in testVirtualView_oneLevel() local 224 watcher.waitFor(RESUMED); in testVirtualView_oneLevel() 228 watcher.waitFor(DESTROYED); in testVirtualView_oneLevel() 259 final ActivityWatcher watcher = startWatcher(); in testVirtualView_multipleLevels() local [all …]
|
D | ChildlessActivityTest.java | 103 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 …]
|
D | BlankWithTitleActivityTest.java | 52 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()
|
/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()
|