Home
last modified time | relevance | path

Searched refs:elapsedRealtime (Results 1 – 25 of 201) sorted by relevance

123456789

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DFakeUid.java94 public void noteWifiRunningLocked(long elapsedRealtime) { in noteWifiRunningLocked() argument
98 public void noteWifiStoppedLocked(long elapsedRealtime) { in noteWifiStoppedLocked() argument
102 public void noteFullWifiLockAcquiredLocked(long elapsedRealtime) { in noteFullWifiLockAcquiredLocked() argument
106 public void noteFullWifiLockReleasedLocked(long elapsedRealtime) { in noteFullWifiLockReleasedLocked() argument
110 public void noteWifiScanStartedLocked(long elapsedRealtime) { in noteWifiScanStartedLocked() argument
114 public void noteWifiScanStoppedLocked(long elapsedRealtime) { in noteWifiScanStoppedLocked() argument
118 public void noteWifiBatchedScanStartedLocked(int csph, long elapsedRealtime) { in noteWifiBatchedScanStartedLocked() argument
122 public void noteWifiBatchedScanStoppedLocked(long elapsedRealtime) { in noteWifiBatchedScanStoppedLocked() argument
126 public void noteWifiMulticastEnabledLocked(long elapsedRealtime) { in noteWifiMulticastEnabledLocked() argument
130 public void noteWifiMulticastDisabledLocked(long elapsedRealtime) { in noteWifiMulticastDisabledLocked() argument
[all …]
DBatteryUtils.java148 final long rawRealTimeUs = PowerUtil.convertMsToUs(SystemClock.elapsedRealtime()); in getScreenUsageTimeMs()
153 final long rawRealTimeUs = PowerUtil.convertMsToUs(SystemClock.elapsedRealtime()); in getProcessBackgroundTimeMs()
163 final long rawRealTimeUs = PowerUtil.convertMsToUs(SystemClock.elapsedRealtime()); in getProcessForegroundTimeMs()
285 SystemClock.elapsedRealtime()); in calculateRunningTimeBasedOnStatsType()
448 SystemClock.elapsedRealtime()); in getBatteryInfo()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DFakeUid.java94 public void noteWifiRunningLocked(long elapsedRealtime) { in noteWifiRunningLocked() argument
98 public void noteWifiStoppedLocked(long elapsedRealtime) { in noteWifiStoppedLocked() argument
102 public void noteFullWifiLockAcquiredLocked(long elapsedRealtime) { in noteFullWifiLockAcquiredLocked() argument
106 public void noteFullWifiLockReleasedLocked(long elapsedRealtime) { in noteFullWifiLockReleasedLocked() argument
110 public void noteWifiScanStartedLocked(long elapsedRealtime) { in noteWifiScanStartedLocked() argument
114 public void noteWifiScanStoppedLocked(long elapsedRealtime) { in noteWifiScanStoppedLocked() argument
118 public void noteWifiBatchedScanStartedLocked(int csph, long elapsedRealtime) { in noteWifiBatchedScanStartedLocked() argument
122 public void noteWifiBatchedScanStoppedLocked(long elapsedRealtime) { in noteWifiBatchedScanStoppedLocked() argument
126 public void noteWifiMulticastEnabledLocked(long elapsedRealtime) { in noteWifiMulticastEnabledLocked() argument
130 public void noteWifiMulticastDisabledLocked(long elapsedRealtime) { in noteWifiMulticastDisabledLocked() argument
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoTest.java105 mDisChargingBatteryBroadcast, mBatteryStats, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_hasStatusLabel()
115 mBatteryStats, SystemClock.elapsedRealtime() * 1000, false /* shortString */); in testGetBatteryInfo_doNotShowChargingMethod_hasRemainingTime()
124 mBatteryStats, SystemClock.elapsedRealtime() * 1000, false /* shortString */); in testGetBatteryInfo_doNotShowChargingMethod_noRemainingTime()
134 mBatteryStats, SystemClock.elapsedRealtime() * 1000, true /* shortString */); in testGetBatteryInfo_pluggedInUsingShortString_usesCorrectData()
146 mBatteryStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString()
149 mBatteryStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString()
166 mBatteryStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString()
169 mBatteryStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString()
186 mBatteryStats, estimate, SystemClock.elapsedRealtime() * 1000, in getBatteryInfo_MoreThanOneDay_suggestionLabelIsCorrectString()
199 mBatteryStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueBetweenSevenAndFifteenMinutes_usesCorrectString()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DAudioClock.java49 mDeltaUpdatedTimeUs = SystemClock.elapsedRealtime() * 1000; in start()
65 mDeltaUpdatedTimeUs = SystemClock.elapsedRealtime() * 1000; in setPositionUs()
75 SystemClock.elapsedRealtime() * 1000 - mDeltaUpdatedTimeUs; in getPositionUs()
87 mDeltaUpdatedTimeUs = SystemClock.elapsedRealtime() * 1000; in setPlaybackSpeed()
92 return SystemClock.elapsedRealtime() * 1000 - toSubtractUs; in elapsedRealtimeMinus()
DAudioTrackMonitor.java59 mExpireMs = SystemClock.elapsedRealtime(); in reset()
86 mStartMs = SystemClock.elapsedRealtime(); in addPts()
102 long now = SystemClock.elapsedRealtime(); in maybeLog()
/packages/apps/Dialer/java/com/android/incallui/latencyreport/
DLatencyReport.java66 callAddedTimeMillis = SystemClock.elapsedRealtime(); in LatencyReport()
83 callAddedTimeMillis = SystemClock.elapsedRealtime(); in LatencyReport()
112 callBlockingTimeMillis = SystemClock.elapsedRealtime(); in onCallBlockingDone()
122 callNotificationTimeMillis = SystemClock.elapsedRealtime(); in onNotificationShown()
132 inCallUiShownTimeMillis = SystemClock.elapsedRealtime(); in onInCallUiShown()
/packages/apps/TV/src/com/android/tv/search/
DDataManagerSearch.java99 long time = SystemClock.elapsedRealtime(); in searchFromDataManagers()
119 + (SystemClock.elapsedRealtime() - time) in searchFromDataManagers()
143 + (SystemClock.elapsedRealtime() - time) in searchFromDataManagers()
156 + (SystemClock.elapsedRealtime() - time) in searchFromDataManagers()
161 time = SystemClock.elapsedRealtime(); in searchFromDataManagers()
182 + (SystemClock.elapsedRealtime() - time) in searchFromDataManagers()
208 + (SystemClock.elapsedRealtime() - time) in searchFromDataManagers()
221 + (SystemClock.elapsedRealtime() - time) in searchFromDataManagers()
DTvProviderSearch.java171 long time = SystemClock.elapsedRealtime(); in searchChannels()
209 + (SystemClock.elapsedRealtime() - time) in searchChannels()
360 long time = SystemClock.elapsedRealtime(); in searchPrograms()
471 + (SystemClock.elapsedRealtime() - time) in searchPrograms()
498 long time = SystemClock.elapsedRealtime(); in searchInputs()
521 + (SystemClock.elapsedRealtime() - time) in searchInputs()
547 + (SystemClock.elapsedRealtime() - time) in searchInputs()
561 + (SystemClock.elapsedRealtime() - time) in searchInputs()
/packages/apps/Dialer/java/com/android/dialer/performancereport/
DPerformanceReport.java63 appLaunchTimeMillis = SystemClock.elapsedRealtime(); in startRecording()
92 long currentTime = SystemClock.elapsedRealtime(); in recordClick()
127 return SystemClock.elapsedRealtime() - appLaunchTimeMillis; in getTimeSinceAppLaunch()
134 return SystemClock.elapsedRealtime() - firstClickTimeMillis; in getTimeSinceFirstClick()
/packages/apps/TV/common/src/com/android/tv/common/util/
DClock.java37 long elapsedRealtime(); in elapsedRealtime() method
64 public long elapsedRealtime() {
65 return SystemClock.elapsedRealtime();
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DPausableChronometer.java54 setBase(SystemClock.elapsedRealtime()); in reset()
63 setBase(SystemClock.elapsedRealtime() - mTimeWhenPaused); in resume()
73 mTimeWhenPaused = SystemClock.elapsedRealtime() - getBase(); in pause()
/packages/apps/TV/tests/unit/src/com/android/tv/menu/
DTvOptionsRowAdapterTest.java141 long start = SystemClock.elapsedRealtime(); in waitUntilTracksHaveSize()
143 while (SystemClock.elapsedRealtime() < start + WAIT_TRACK_EVENT_TIMEOUT_MS) { in waitUntilTracksHaveSize()
172 long start = SystemClock.elapsedRealtime(); in waitUntilTrackSelected()
174 while (SystemClock.elapsedRealtime() < start + WAIT_TRACK_EVENT_TIMEOUT_MS) { in waitUntilTrackSelected()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAppScanStats.java185 startTime = SystemClock.elapsedRealtime(); in recordScanStart()
250 stopTime = SystemClock.elapsedRealtime(); in recordScanStop()
313 scan.suspendStartTime = SystemClock.elapsedRealtime(); in recordScanSuspend()
324 stopTime = SystemClock.elapsedRealtime(); in recordScanResume()
346 return (SystemClock.elapsedRealtime() - mLastScans.get(0).timestamp) in isScanningTooFrequently()
354 return (SystemClock.elapsedRealtime() - mScanStartTime) > SCAN_TIMEOUT_MS; in isScanningTooLong()
452 long currTime = SystemClock.elapsedRealtime(); in dumpToString()
/packages/services/Car/service/src/com/android/car/
DCarService.java19 import static android.os.SystemClock.elapsedRealtime;
150 long start = elapsedRealtime(); in getVehicleWithTimeout()
151 while (vehicle == null && (start + waitMilliseconds) > elapsedRealtime()) { in getVehicleWithTimeout()
247 long lastCrash = SystemClock.elapsedRealtime(); in crashDetected()
/packages/apps/Messaging/src/com/android/messaging/util/
DNotificationPlayer.java144 final long delay = SystemClock.elapsedRealtime() - cmd.requestTime; in startSound()
157 final long delay = SystemClock.elapsedRealtime() - cmd.requestTime; in stopSound()
280 cmd.requestTime = SystemClock.elapsedRealtime(); in play()
308 cmd.requestTime = SystemClock.elapsedRealtime(); in stop()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAudioPlaybackProgressBar.java50 progress = (int) (((mCumulativeTime + SystemClock.elapsedRealtime() - in AudioPlaybackProgressBar()
83 mCurrentPlayStartTime = SystemClock.elapsedRealtime(); in resume()
89 mCumulativeTime += SystemClock.elapsedRealtime() - mCurrentPlayStartTime; in pause()
/packages/apps/Dialer/java/com/android/dialer/metrics/
DStubMetrics.java64 SystemClock.elapsedRealtime() - stubTimerEvent.startTime); in stopTimer()
81 SystemClock.elapsedRealtime() - startTime); in stopUnnamedTimer()
108 this.startTime = SystemClock.elapsedRealtime(); in StubTimerEvent()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DProgressLiveData.java61 this(playbackState, maxProgress, SystemClock::elapsedRealtime); in ProgressLiveData()
67 Supplier<Long> elapsedRealtime) { in ProgressLiveData() argument
70 mElapsedRealtime = elapsedRealtime; in ProgressLiveData()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DUtils.java19 import static android.os.SystemClock.elapsedRealtime;
102 long endTime = elapsedRealtime() + waitMilliseconds; in getVehicleWithTimeout()
103 while (vehicle == null && endTime > elapsedRealtime()) { in getVehicleWithTimeout()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java576 mTransactionStartMillis = SystemClock.elapsedRealtime(); in startNewTransaction()
680 return (short) ((SystemClock.elapsedRealtime() - mTransactionStartMillis) / 1000); in getSecs()
752 final long now = SystemClock.elapsedRealtime(); in scheduleLeaseTimers()
861 mEnterTimeMs = SystemClock.elapsedRealtime(); in enter()
866 long durationMs = SystemClock.elapsedRealtime() - mEnterTimeMs; in exit()
1051 (leaseTimeMillis > 0) ? SystemClock.elapsedRealtime() + leaseTimeMillis : 0; in setDhcpLeaseExpiry()
1084 long alarmTime = SystemClock.elapsedRealtime() + mTimeout; in maybeInitTimeout()
1151 long now = SystemClock.elapsedRealtime(); in scheduleKick()
1262 mLastInitEnterTime = SystemClock.elapsedRealtime(); in enter()
1296 mLastInitEnterTime = SystemClock.elapsedRealtime(); in enter()
[all …]
DDhcpLeaseRepository.java191 final long currentTime = mClock.elapsedRealtime(); in getOffer()
281 final long currentTime = mClock.elapsedRealtime(); in requestLease()
408 final long expTime = mClock.elapsedRealtime() + mLeaseTimeMs; in markLeaseDeclined()
435 removeExpiredLeases(mClock.elapsedRealtime()); in getCommittedLeases()
444 removeExpiredLeases(mClock.elapsedRealtime()); in getDeclinedAddresses()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDrivingRestrictionsTest.java258 long start = SystemClock.elapsedRealtime(); in waitForDrivingStateChange()
262 && (start + DEFAULT_WAIT_TIMEOUT_MS > SystemClock.elapsedRealtime())) { in waitForDrivingStateChange()
280 long start = SystemClock.elapsedRealtime(); in waitForUxRestrictionsChange()
283 && (start + DEFAULT_WAIT_TIMEOUT_MS > SystemClock.elapsedRealtime())) { in waitForUxRestrictionsChange()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSession.java151 mTuneStartTimestamp = SystemClock.elapsedRealtime(); in onTune()
165 mTuneStartTimestamp = SystemClock.elapsedRealtime(); in onTimeShiftPlay()
195 + (SystemClock.elapsedRealtime() - mTuneStartTimestamp) in notifyVideoAvailable()
DTunerSessionExoV2.java150 mTuneStartTimestamp = SystemClock.elapsedRealtime(); in onTune()
164 mTuneStartTimestamp = SystemClock.elapsedRealtime(); in onTimeShiftPlay()
194 + (SystemClock.elapsedRealtime() - mTuneStartTimestamp) in notifyVideoAvailable()

123456789