Home
last modified time | relevance | path

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

1234

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DPlayerMessageTest.java70 when(clock.elapsedRealtime()).thenReturn(0L).thenReturn(TIMEOUT_MS * 2); in experimental_blockUntilDelivered_timesOut()
79 verify(clock, Mockito.times(2)).elapsedRealtime(); in experimental_blockUntilDelivered_timesOut()
84 when(clock.elapsedRealtime()).thenReturn(0L); in experimental_blockUntilDelivered_onAlreadyProcessed_succeeds()
107 when(clock.elapsedRealtime()) in experimental_blockUntilDelivered_markAsProcessedWhileBlocked_succeeds()
119 verify(clock, Mockito.atLeast(2)).elapsedRealtime(); in experimental_blockUntilDelivered_markAsProcessedWhileBlocked_succeeds()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DStandaloneMediaClock.java51 baseElapsedMs = clock.elapsedRealtime(); in start()
74 baseElapsedMs = clock.elapsedRealtime(); in resetPosition()
82 long elapsedSinceBaseMs = clock.elapsedRealtime() - baseElapsedMs; in getPositionUs()
DConditionVariable.java70 long now = android.os.SystemClock.elapsedRealtime(); in block()
74 now = android.os.SystemClock.elapsedRealtime(); in block()
DSystemClock.java34 public long elapsedRealtime() { in elapsedRealtime() method in SystemClock
35 return android.os.SystemClock.elapsedRealtime(); in elapsedRealtime()
DClock.java41 long elapsedRealtime(); in elapsedRealtime() method
/external/volley/src/main/java/com/android/volley/toolbox/
DBasicNetwork.java94 long requestStart = SystemClock.elapsedRealtime(); in performRequest()
109 long requestDuration = SystemClock.elapsedRealtime() - requestStart; in performRequest()
127 long requestLifetime = SystemClock.elapsedRealtime() - requestStart; in performRequest()
138 SystemClock.elapsedRealtime() - requestStart, in performRequest()
DBasicAsyncNetwork.java78 long requestDuration = SystemClock.elapsedRealtime() - requestStartMs; in onRequestSucceeded()
144 final long requestStartMs = SystemClock.elapsedRealtime(); in performRequest()
185 long requestLifetime = SystemClock.elapsedRealtime() - requestStartMs; in onResponseRead()
204 SystemClock.elapsedRealtime() - requestStartMs, in onResponseRead()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/video/
DDecoderVideoRendererTest.java200 renderer.render(/* positionUs= */ 0, SystemClock.elapsedRealtime() * 1000); in enable_withMayRenderStartOfStream_rendersFirstFrameBeforeStart()
228 renderer.render(/* positionUs= */ 0, SystemClock.elapsedRealtime() * 1000); in enable_withoutMayRenderStartOfStream_doesNotRenderFirstFrameBeforeStart()
256 renderer.render(/* positionUs= */ 0, SystemClock.elapsedRealtime() * 1000); in enable_withoutMayRenderStartOfStream_rendersFirstFrameAfterStart()
296 renderer.render(/* positionUs= */ i * 10, SystemClock.elapsedRealtime() * 1000); in replaceStream_whenStarted_rendersFirstFrameOfNewStream()
339 renderer.render(/* positionUs= */ i * 10, SystemClock.elapsedRealtime() * 1000); in replaceStream_whenNotStarted_doesNotRenderFirstFrameOfNewStream()
351 renderer.render(/* positionUs= */ 100, SystemClock.elapsedRealtime() * 1000); in replaceStream_whenNotStarted_doesNotRenderFirstFrameOfNewStream()
/external/webrtc/rtc_base/java/src/org/webrtc/
DThreadUtils.java83 final long startTimeMs = SystemClock.elapsedRealtime(); in joinUninterruptibly()
94 final long elapsedTimeMs = SystemClock.elapsedRealtime() - startTimeMs; in joinUninterruptibly()
124 final long startTimeMs = SystemClock.elapsedRealtime(); in awaitUninterruptibly()
136 final long elapsedTimeMs = SystemClock.elapsedRealtime() - startTimeMs; in awaitUninterruptibly()
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/playlist/
DDefaultHlsPlaylistTracker.java133 long elapsedRealtime = in start() local
139 new LoadEventInfo(masterPlaylistLoadable.dataSpec, elapsedRealtime), in start()
304 long currentTimeMs = SystemClock.elapsedRealtime(); in maybeSelectNewPrimaryUrl()
484 long currentTimeMs = SystemClock.elapsedRealtime(); in isSnapshotValid()
502 long currentTimeMs = SystemClock.elapsedRealtime(); in loadPlaylist()
615 long elapsedRealtime = in loadPlaylistImmediately() local
621 new LoadEventInfo(mediaPlaylistLoadable.dataSpec, elapsedRealtime), in loadPlaylistImmediately()
627 long currentTimeMs = SystemClock.elapsedRealtime(); in processLoadedPlaylist()
680 blacklistUntilMs = SystemClock.elapsedRealtime() + blacklistDurationMs; in blacklistPlaylist()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/video/
DDecoderVideoRenderer.java226 } else if (SystemClock.elapsedRealtime() < joiningDeadlineMs) { in isReady()
283 droppedFrameAccumulationStartTimeMs = SystemClock.elapsedRealtime(); in onStarted()
284 lastRenderTimeUs = SystemClock.elapsedRealtime() * 1000; in onStarted()
547 lastRenderTimeUs = C.msToUs(SystemClock.elapsedRealtime() * 1000); in renderOutputBuffer()
678 long decoderInitializingTimestamp = SystemClock.elapsedRealtime(); in maybeInitDecoder()
681 long decoderInitializedTimestamp = SystemClock.elapsedRealtime(); in maybeInitDecoder()
831 long elapsedRealtimeNowUs = SystemClock.elapsedRealtime() * 1000; in processOutputBuffer()
908 ? (SystemClock.elapsedRealtime() + allowedJoiningTimeMs) in setJoiningDeadlineMs()
956 long now = SystemClock.elapsedRealtime(); in maybeNotifyDroppedFrames()
/external/volley/src/main/java/com/android/volley/
DNetworkDispatcher.java116 long startTimeMs = SystemClock.elapsedRealtime(); in processRequest()
159 volleyError.setNetworkTimeMs(SystemClock.elapsedRealtime() - startTimeMs); in processRequest()
165 volleyError.setNetworkTimeMs(SystemClock.elapsedRealtime() - startTimeMs); in processRequest()
/external/libchrome/base/android/java/src/org/chromium/base/
DTraceEvent.java134 mLastIdleStartedAt = SystemClock.elapsedRealtime(); in syncIdleMonitoring()
151 mLastWorkStartedAt = SystemClock.elapsedRealtime(); in beginHandling()
158 final long elapsed = SystemClock.elapsedRealtime() in endHandling()
177 final long now = SystemClock.elapsedRealtime(); in queueIdle()
DPathUtils.java204 long time = SystemClock.elapsedRealtime(); in getDownloadsDirectory()
209 SystemClock.elapsedRealtime() - time, TimeUnit.MILLISECONDS); in getDownloadsDirectory()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSystemClock.java62 protected static long elapsedRealtime() { in elapsedRealtime() method in ShadowSystemClock
68 return elapsedRealtime() * MILLIS_PER_NANO; in elapsedRealtimeNanos()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DAudioTrackPositionTracker.java311 && SystemClock.elapsedRealtime() - forceResetWorkaroundTimeMs in isStalled()
323 stopTimestampUs = SystemClock.elapsedRealtime() * 1000; in handleEndOfStream()
498 long elapsedTimeSinceStopUs = (SystemClock.elapsedRealtime() * 1000) - stopTimestampUs; in getPlaybackHeadPosition()
530 forceResetWorkaroundTimeMs = SystemClock.elapsedRealtime(); in getPlaybackHeadPosition()
/external/libtextclassifier/java/src/com/android/textclassifier/common/statsd/
DTextClassifierApiUsageLogger.java93 beginElapsedRealTime = SystemClock.elapsedRealtime(); in Session()
108 final long latencyInMillis = SystemClock.elapsedRealtime() - beginElapsedRealTime; in reportInternal()
/external/exoplayer/tree/testutils/src/test/java/com/google/android/exoplayer2/testutil/
DFakeClockTest.java60 assertThat(fakeClock.elapsedRealtime()).isEqualTo(2000); in testAdvanceTime()
62 assertThat(fakeClock.elapsedRealtime()).isEqualTo(2500); in testAdvanceTime()
64 assertThat(fakeClock.elapsedRealtime()).isEqualTo(2500); in testAdvanceTime()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSystemClockTest.java48 assertThat(SystemClock.elapsedRealtime()).isEqualTo(1000); in testElapsedRealtime()
50 assertThat(SystemClock.elapsedRealtime()).isEqualTo(1034); in testElapsedRealtime()
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DCpuMonitor.java177 lastStatLogTimeMs = SystemClock.elapsedRealtime(); in CpuMonitor()
243 && SystemClock.elapsedRealtime() - lastStatLogTimeMs >= CPU_STAT_LOG_PERIOD_MS) { in cpuUtilizationTask()
244 lastStatLogTimeMs = SystemClock.elapsedRealtime(); in cpuUtilizationTask()
288 lastStatLogTimeMs = SystemClock.elapsedRealtime(); in resetStat()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DPlayerMessage.java337 long deadlineMs = clock.elapsedRealtime() + timeoutMs; in experimental_blockUntilDelivered()
341 remainingMs = deadlineMs - clock.elapsedRealtime(); in experimental_blockUntilDelivered()
/external/volley/src/test/java/com/android/volley/mock/
DShadowSystemClock.java24 public static long elapsedRealtime() { in elapsedRealtime() method in ShadowSystemClock
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DLoader.java245 long startTimeMs = SystemClock.elapsedRealtime(); in startLoading()
371 long nowMs = SystemClock.elapsedRealtime(); in cancel()
440 long nowMs = SystemClock.elapsedRealtime(); in handleMessage()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiScannerFacade.java129 mResults.putLong("ResultElapsedRealtime", SystemClock.elapsedRealtime()); in reportResult()
184 SystemClock.elapsedRealtime()); in WifiScanListener()
219 mScanData.putLong("ResultElapsedRealtime", SystemClock.elapsedRealtime()); in onResults()
255 SystemClock.elapsedRealtime()); in ChangeListener()
313 SystemClock.elapsedRealtime()); in WifiBssidListener()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeClock.java88 public synchronized long elapsedRealtime() { in elapsedRealtime() method in FakeClock
94 return elapsedRealtime(); in uptimeMillis()

1234