Searched refs:mTimeoutHandler (Results 1 – 7 of 7) sorted by relevance
45 private OneHandedTimeoutHandler mTimeoutHandler; field in OneHandedTimeoutHandlerTest52 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 …]
49 OneHandedTimeoutHandler mTimeoutHandler; field in OneHandedTutorialHandlerTest73 mTimeoutHandler = new OneHandedTimeoutHandler(mMockShellMainExecutor); in setUp()
45 private final OneHandedTimeoutHandler mTimeoutHandler; field in OneHandedTouchHandler61 mTimeoutHandler = timeoutHandler; in OneHandedTouchHandler()89 mTimeoutHandler.resetTimer(); in onMotionEvent()95 mTimeoutHandler.resetTimer(); in onMotionEvent()
98 private final OneHandedTimeoutHandler mTimeoutHandler; field in OneHandedController151 mTimeoutHandler.setTimeout(timeout / 1000);153 mTimeoutHandler.setTimeout(mOneHandedSettingsUtil272 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);
94 private final TimeoutHandler mTimeoutHandler; field in ClipboardOverlayController204 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()
91 private TimeoutHandler mTimeoutHandler; field in ClipboardOverlayControllerTest149 mTimeoutHandler, in initController()384 verify(mTimeoutHandler, never()).resetTimeout(); in test_remoteCopy_withFlagOn()394 verify(mTimeoutHandler).resetTimeout(); in test_nonRemoteCopy()
84 private @NonNull Handler mTimeoutHandler = getMainHandler(); field in AndroidFuture282 mTimeoutHandler.postDelayed(this::triggerTimeout, this, unit.toMillis(timeout)); in orTimeout()299 mTimeoutHandler.removeCallbacksAndMessages(this); in cancelTimeout()308 mTimeoutHandler = Preconditions.checkNotNull(h); in setTimeoutHandler()