Home
last modified time | relevance | path

Searched refs:mTimer (Results 1 – 15 of 15) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.java57 private Timer mTimer; field in TimerCircleView
86 if (mTimer != timer) { in update()
87 mTimer = timer; in update()
94 if (mTimer == null) { in onDraw()
109 if (mTimer.isReset()) { in onDraw()
115 } else if (mTimer.isExpired()) { in onDraw()
129 … redPercent = Math.min(1, (float) mTimer.getElapsedTime() / (float) mTimer.getTotalLength()); in onDraw()
147 if (mTimer.isRunning()) { in onDraw()
DTimerCircleView.kt62 private var mTimer: Timer? = null variable
84 if (mTimer !== timer) { in update()
85 mTimer = timer in update()
91 if (mTimer == null) { in onDraw()
107 mTimer!!.isReset -> { in onDraw()
114 mTimer!!.isExpired -> { in onDraw()
130 mTimer!!.elapsedTime.toFloat() / mTimer!!.totalLength.toFloat()) in onDraw()
149 if (mTimer!!.isRunning) { in onDraw()
/packages/services/Telephony/src/com/android/phone/
DEmergencyCallbackModeService.java58 private CountDownTimer mTimer = null; field in EmergencyCallbackModeService
112 mTimer.cancel(); in onDestroy()
150 if (mTimer != null) { in startTimerNotification()
151 mTimer.cancel(); in startTimerNotification()
153 mTimer = new CountDownTimer(ecmTimeout, 1000) { in startTimerNotification()
167 mTimer.start(); in startTimerNotification()
178 if (mTimer != null) { in showNotification()
179 mTimer.cancel(); in showNotification()
238 mTimer.cancel(); in resetEcmTimer()
DEmergencyCallbackModeExitDialog.java64 CountDownTimer mTimer = null; field in EmergencyCallbackModeExitDialog
210 mTimer = new CountDownTimer(mEcmTimeout, 1000) { in showEmergencyCallbackModeExitDialog()
247 mTimer.cancel(); in onCreateDialog()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestHandler.java30 private TestTimer mTimer = new TestTimer(); field in TestHandler
46 return mTimer.hasScheduledTask(); in hasScheduledMessage()
50 mTimer.fastForwardToNextTask(); in dispatchNextMessage()
52 mTimeDelta = mTimer.getNow() - SystemClock.uptimeMillis(); in dispatchNextMessage()
71 mTimer.scheduleAtTime(new TestTimer.Task(task), uptimeMillis + mTimeDelta); in sendMessageAtTime()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/
DInstrumentClusterFragment.java70 private Timer mTimer; field in InstrumentClusterFragment
231 if (mTimer == null) { in toggleSendTurn()
239 if (mTimer != null) { in startSendTurn()
247 mTimer = new Timer(); in startSendTurn()
248 mTimer.schedule(new TimerTask() { in startSendTurn()
261 if (mTimer != null) { in stopSendTurn()
262 mTimer.cancel(); in stopSendTurn()
263 mTimer = null; in stopSendTurn()
/packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/
DMainActivity.java40 private final Timer mTimer = new Timer("com.google.android.car.obd2app.collection"); field in MainActivity
76 mTimer.purge(); in stopConnection()
109 mTimer.scheduleAtFixedRate(mCollectionTask, delay, delay); in handleConnection()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java149 static CountDownTimer mTimer; field in WifiDetailPreferenceController
1121 if (mTimer != null) { in startTimer()
1125 mTimer = new CountDownTimer(TIMEOUT, TIMEOUT + 1) { in startTimer()
1149 mTimer.start(); in startTimer()
1153 if (mTimer == null) return; in stopTimer()
1155 mTimer.cancel(); in stopTimer()
1156 mTimer = null; in stopTimer()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java150 private static CountDownTimer mTimer; field in WifiDetailPreferenceController
1102 if (mTimer != null) { in startTimer()
1106 mTimer = new CountDownTimer(TIMEOUT, TIMEOUT + 1) { in startTimer()
1126 mTimer.start(); in startTimer()
1130 if (mTimer == null) return; in stopTimer()
1132 mTimer.cancel(); in stopTimer()
1133 mTimer = null; in stopTimer()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFocusManager.java448 private Timer mTimer; field in FocusManager.TitleSearchHelper
530 mTimer = new Timer(); in search()
558 mTimer.schedule(new TimeoutTask(), 0, SEARCH_TIMEOUT / 2); in search()
570 mTimer.cancel(); in endSearch()
/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java92 private Timer mTimer; field in CarPowerManagementService
589 if (mTimer != null) { in releaseTimerLocked()
590 mTimer.cancel(); in releaseTimerLocked()
592 mTimer = null; in releaseTimerLocked()
615 mTimer = new Timer(); in doHandlePreprocessing()
617 mTimer.scheduleAtFixedRate( in doHandlePreprocessing()
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchViewManager.java73 private final Timer mTimer; field in SearchViewManager
116 mTimer = timer; in SearchViewManager()
503 mTimer.schedule(mQueuedSearchTask, SEARCH_DELAY_MS);
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java1102 private int mTimer; field in DhcpClient.PacketRetransmittingState
1141 mTimer = FIRST_TIMEOUT_MS; in initTimer()
1152 long timeout = jitterTimer(mTimer); in scheduleKick()
1155 mTimer *= 2; in scheduleKick()
1156 if (mTimer > MAX_TIMEOUT_MS) { in scheduleKick()
1157 mTimer = MAX_TIMEOUT_MS; in scheduleKick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java1461 mController.mTimer.onFinish(); in testConnectButton_clickConnectButTimeout_displayFailMessage()
1490 mController.mTimer.onFinish(); in testConnectButton_clickConnectButTimeout_displayNotInRangeMessage()
1569 mController.mTimer.onFinish(); in testConnectButton_clickConnectWhenWiFiDisabled_failedToConnectWiFi()
1608 mController.mTimer.onFinish(); in testConnectButton_clickConnectWhenWiFiDisabled_failedToConnectWifiBecauseNotInRange()
1639 mController.mTimer.onFinish(); in testConnectButton_clickConnectWhenWiFiDisabled_failedToEnableWifi()
1671 mController.mTimer.onFinish(); in testConnectButton_clickConnectAndBackKey_ignoreTimeoutEvent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java126 private BatteryStats.Timer mTimer; field in BatteryUtilsTest
458 doReturn(mTimer).when(mUid).getForegroundActivityTimer(); in testGetForegroundActivityTotalTimeMs_returnMilliseconds()
459 doReturn(TIME_SINCE_LAST_FULL_CHARGE_US).when(mTimer) in testGetForegroundActivityTotalTimeMs_returnMilliseconds()