Home
last modified time | relevance | path

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

/cts/tests/tests/permission/src/android/permission/cts/
DAppOpsTest.java201 OnOpChangedListener watcher = mock(OnOpChangedListener.class); in testWatchingMode() local
205 mAppOps.startWatchingMode(OPSTR_READ_SMS, mOpPackageName, watcher); in testWatchingMode()
208 reset(watcher); in testWatchingMode()
210 verify(watcher, timeout(MODE_WATCHER_TIMEOUT_MS)) in testWatchingMode()
214 reset(watcher); in testWatchingMode()
216 verify(watcher, timeout(MODE_WATCHER_TIMEOUT_MS)) in testWatchingMode()
220 reset(watcher); in testWatchingMode()
222 verifyZeroInteractions(watcher); in testWatchingMode()
224 mAppOps.stopWatchingMode(watcher); in testWatchingMode()
228 reset(watcher); in testWatchingMode()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DGridActivity.java169 final OneTimeTextWatcher watcher = new OneTimeTextWatcher(resourceId, cell, value); in onCell() local
170 mWatchers.add(watcher); in onCell()
171 cell.addTextChangedListener(watcher); in onCell()
178 final OneTimeTextWatcher watcher = mWatchers.get(i); in assertAutoFilled() local
179 watcher.assertAutoFilled(); in assertAutoFilled()
DAutoFillServiceTestCase.java66 public final TestWatcher watcher = new TestWatcher() { field in AutoFillServiceTestCase
/cts/common/device-side/util/src/com/android/compatibility/common/util/
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/animation/src/android/animation/cts/
DValueAnimatorTest.java609 final Animator.AnimatorListener watcher = mock(Animator.AnimatorListener.class);
610 animator.addListener(watcher);
612 verify(watcher, times(1)).onAnimationStart(animator, false);
/cts/tests/tests/text/src/android/text/cts/
DSelectionTest.java982 SpanWatcher watcher = new SpanWatcher() { in testRemoveSelectionOnlyTriggersOneSpanRemoved() local
995 spannable.setSpan(watcher, 0, 2, 0); in testRemoveSelectionOnlyTriggersOneSpanRemoved()