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.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()
240 mTimer.cancel(); in resetEcmTimer()
DEmergencyCallbackModeExitDialog.java66 CountDownTimer mTimer = null; field in EmergencyCallbackModeExitDialog
212 mTimer = new CountDownTimer(mEcmTimeout, 1000) { in showEmergencyCallbackModeExitDialog()
249 mTimer.cancel(); in onCreateDialog()
/packages/services/Car/experimental/service/src/com/android/experimentalcar/
DSystemTimer.java27 private Timer mTimer = new Timer(); field in SystemTimer
31 mTimer.cancel(); in reset()
32 mTimer = new Timer(); in reset()
37 mTimer.schedule(task, delay); in schedule()
42 mTimer.cancel(); in cancel()
/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
240 if (mTimer == null) { in toggleSendTurn()
248 if (mTimer != null) { in startSendTurn()
256 mTimer = new Timer(); in startSendTurn()
257 mTimer.schedule(new TimerTask() { in startSendTurn()
270 if (mTimer != null) { in stopSendTurn()
271 mTimer.cancel(); in stopSendTurn()
272 mTimer = null; in stopSendTurn()
/packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/components/
DMetricDisplay.java73 @Nullable private Timer mTimer; field in MetricDisplay
113 mTimer = new Timer(); in startWatching()
116 mTimer.schedule( in startWatching()
129 if (mTimer == null) { in stopWatching()
135 mTimer.cancel(); in stopWatching()
/packages/services/Car/cpp/watchdog/server/tests/
DLooperStub.h41 LooperStub() : mHandler(nullptr), mShouldPoll(false), mTimer(0) {} in LooperStub()
43 nsecs_t now() override { return mTimer.count(); } in now()
80 std::chrono::nanoseconds mTimer; variable
DLooperStub.cpp49 mElapsedTime = mTimer; in pollAll()
51 mTimer += 1s; // Each empty entry in the cache is a second elapsed. in pollAll()
54 mElapsedTime = mTimer - mElapsedTime; in pollAll()
/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/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/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchViewManager.java74 private final Timer mTimer; field in SearchViewManager
118 mTimer = timer; in SearchViewManager()
543 mTimer.schedule(mQueuedSearchTask, SEARCH_DELAY_MS);
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java183 private Timer mTimer; field in CarPowerManagementService
771 if (mTimer != null) { in releaseTimerLocked()
772 mTimer.cancel(); in releaseTimerLocked()
774 mTimer = null; in releaseTimerLocked()
806 mTimer = new Timer(); in doHandlePreprocessing()
808 mTimer.scheduleAtFixedRate( in doHandlePreprocessing()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java1146 private int mTimer; field in DhcpClient.PacketRetransmittingState
1185 mTimer = FIRST_TIMEOUT_MS; in initTimer()
1196 long timeout = jitterTimer(mTimer); in scheduleKick()
1199 mTimer *= 2; in scheduleKick()
1200 if (mTimer > MAX_TIMEOUT_MS) { in scheduleKick()
1201 mTimer = MAX_TIMEOUT_MS; in scheduleKick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java112 private BatteryStats.Timer mTimer; field in BatteryUtilsTest
274 doReturn(mTimer).when(mUid).getForegroundActivityTimer(); in testGetForegroundActivityTotalTimeMs_returnMilliseconds()
275 doReturn(TIME_SINCE_LAST_FULL_CHARGE_US).when(mTimer) in testGetForegroundActivityTotalTimeMs_returnMilliseconds()