Home
last modified time | relevance | path

Searched refs:mTimeoutHandler (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
DOneHandedTimeoutHandlerTest.java45 private OneHandedTimeoutHandler mTimeoutHandler; field in OneHandedTimeoutHandlerTest
52 mTimeoutHandler = Mockito.spy(new OneHandedTimeoutHandler(mMainExecutor)); in setUp()
57 assertThat(mTimeoutHandler.getTimeout()).isEqualTo( in testTimeoutHandler_getTimeout_defaultMedium()
63 mTimeoutHandler.setTimeout(ONE_HANDED_TIMEOUT_MEDIUM_IN_SECONDS); in testTimeoutHandler_setNewTime_resetTimer()
64 verify(mTimeoutHandler).resetTimer(); in testTimeoutHandler_setNewTime_resetTimer()
65 assertTrue(mTimeoutHandler.hasScheduledTimeout()); in testTimeoutHandler_setNewTime_resetTimer()
70 mTimeoutHandler.setTimeout(ONE_HANDED_TIMEOUT_NEVER); in testSetTimeoutNever_neverResetTimer()
71 assertFalse(mTimeoutHandler.hasScheduledTimeout()); in testSetTimeoutNever_neverResetTimer()
76 mTimeoutHandler.setTimeout(ONE_HANDED_TIMEOUT_SHORT_IN_SECONDS); in testSetTimeoutShort()
77 verify(mTimeoutHandler).resetTimer(); in testSetTimeoutShort()
[all …]
DOneHandedTutorialHandlerTest.java49 OneHandedTimeoutHandler mTimeoutHandler; field in OneHandedTutorialHandlerTest
73 mTimeoutHandler = new OneHandedTimeoutHandler(mMockShellMainExecutor); in setUp()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedTouchHandler.java45 private final OneHandedTimeoutHandler mTimeoutHandler; field in OneHandedTouchHandler
61 mTimeoutHandler = timeoutHandler; in OneHandedTouchHandler()
89 mTimeoutHandler.resetTimer(); in onMotionEvent()
95 mTimeoutHandler.resetTimer(); in onMotionEvent()
DOneHandedController.java98 private final OneHandedTimeoutHandler mTimeoutHandler; field in OneHandedController
151 mTimeoutHandler.setTimeout(timeout / 1000);
153 mTimeoutHandler.setTimeout(mOneHandedSettingsUtil
272 mTimeoutHandler = timeoutHandler; in OneHandedController()
386 mTimeoutHandler.resetTimer(); in startOneHanded()
404 mTimeoutHandler.removeTimer(); in stopOneHanded()
459 mTimeoutHandler.setTimeout(mOneHandedSettingsUtil in updateSettings()
561 mTimeoutHandler.registerTimeoutListener(timeoutTime -> stopOneHanded(
671 if (mTimeoutHandler != null) {
672 mTimeoutHandler.dump(pw);
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayController.java94 private final TimeoutHandler mTimeoutHandler; field in ClipboardOverlayController
204 mTimeoutHandler = timeoutHandler; in ClipboardOverlayController()
205 mTimeoutHandler.setDefaultTimeoutMillis(CLIPBOARD_DEFAULT_TIMEOUT_MILLIS); in ClipboardOverlayController()
222 mTimeoutHandler.setOnTimeoutRunnable(() -> { in ClipboardOverlayController()
330 mTimeoutHandler.cancelTimeout(); in setClipData()
333 mOnUiUpdate = mTimeoutHandler::resetTimeout; in setClipData()
658 mTimeoutHandler.cancelTimeout(); in hideImmediate()
687 mTimeoutHandler.cancelTimeout(); in reset()
743 mTimeoutHandler.resetTimeout(); in onInteraction()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayControllerTest.java91 private TimeoutHandler mTimeoutHandler; field in ClipboardOverlayControllerTest
149 mTimeoutHandler, in initController()
384 verify(mTimeoutHandler, never()).resetTimeout(); in test_remoteCopy_withFlagOn()
394 verify(mTimeoutHandler).resetTimeout(); in test_nonRemoteCopy()
/frameworks/base/core/java/com/android/internal/infra/
DAndroidFuture.java84 private @NonNull Handler mTimeoutHandler = getMainHandler(); field in AndroidFuture
282 mTimeoutHandler.postDelayed(this::triggerTimeout, this, unit.toMillis(timeout)); in orTimeout()
299 mTimeoutHandler.removeCallbacksAndMessages(this); in cancelTimeout()
308 mTimeoutHandler = Preconditions.checkNotNull(h); in setTimeoutHandler()