Home
last modified time | relevance | path

Searched refs:nowMs (Results 1 – 19 of 19) sorted by relevance

/external/perfetto/ui/src/frontend/
Danimation.ts25 const nowMs = performance.now(); constant
28 if (nowMs <= this.endMs) {
29 this.endMs = nowMs + durationMs;
32 this.startMs = nowMs;
33 this.endMs = nowMs + durationMs;
46 private onAnimationFrame(nowMs: number) {
47 if (nowMs >= this.endMs) {
51 this.onAnimationStep(Math.max(Math.round(nowMs - this.startMs), 0));
Draf_scheduler.ts48 export type ActionCallback = (nowMs: number) => void;
49 export type RedrawCallback = (nowMs: number) => void;
110 syncDomRedraw(nowMs: number) {
112 this._syncDomRedraw(nowMs);
118 private syncCanvasRedraw(nowMs: number) {
123 for (const redraw of this.canvasRedrawCallbacks) redraw(nowMs);
139 private onAnimationFrame(nowMs: number) {
148 for (const action of this.actionCallbacks) action(nowMs);
152 if (doFullRedraw) this.syncDomRedraw(nowMs);
154 const canvasTime = measure(() => this.syncCanvasRedraw(nowMs));
Dtask_tracker.ts57 const nowMs = (new Date()).getMilliseconds(); constant
58 const runtimeSeconds = Math.round((nowMs - value.startTimeMs) / 1000);
/external/webrtc/modules/video_coding/
Dmedia_opt_util.cc493 VCMLossProtectionLogic::VCMLossProtectionLogic(int64_t nowMs) in VCMLossProtectionLogic() argument
511 Reset(nowMs); in VCMLossProtectionLogic()
573 uint8_t VCMLossProtectionLogic::MaxFilteredLossPr(int64_t nowMs) const { in MaxFilteredLossPr()
582 if (nowMs - _lossPrHistory[i].timeMs > in MaxFilteredLossPr()
595 uint8_t VCMLossProtectionLogic::FilteredLoss(int64_t nowMs, in FilteredLoss() argument
599 UpdateMaxLossHistory(lossPr255, nowMs); in FilteredLoss()
602 _lossPr255.Apply(rtc::saturated_cast<float>(nowMs - _lastPrUpdateT), in FilteredLoss()
604 _lastPrUpdateT = nowMs; in FilteredLoss()
616 filtered_loss = MaxFilteredLossPr(nowMs); in FilteredLoss()
632 int64_t nowMs) { in UpdatePacketsPerFrame() argument
[all …]
Dmedia_opt_util.h216 explicit VCMLossProtectionLogic(int64_t nowMs);
249 void UpdatePacketsPerFrame(float nPackets, int64_t nowMs);
255 void UpdatePacketsPerFrameKey(float nPackets, int64_t nowMs);
313 uint8_t FilteredLoss(int64_t nowMs,
317 void Reset(int64_t nowMs);
324 uint8_t MaxFilteredLossPr(int64_t nowMs) const;
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DActionFileUpgradeUtil.java74 long nowMs = System.currentTimeMillis(); in upgradeAndDelete() local
79 mergeRequest(request, downloadIndex, addNewDownloadsAsCompleted, nowMs); in upgradeAndDelete()
102 long nowMs) in mergeRequest() argument
106 download = DownloadManager.mergeRequest(download, request, download.stopReason, nowMs); in mergeRequest()
112 /* startTimeMs= */ nowMs, in mergeRequest()
113 /* updateTimeMs= */ nowMs, in mergeRequest()
DDownloadManager.java626 Download download, DownloadRequest request, int stopReason, long nowMs) { in mergeRequest() argument
632 state == STATE_REMOVING || download.isTerminalState() ? nowMs : download.startTimeMs; in mergeRequest()
644 /* updateTimeMs= */ nowMs, in mergeRequest()
848 long nowMs = System.currentTimeMillis(); in addDownload() local
850 putDownload(mergeRequest(download, request, stopReason, nowMs)); in addDownload()
856 /* startTimeMs= */ nowMs, in addDownload()
857 /* updateTimeMs= */ nowMs, in addDownload()
/external/volley/src/main/java/com/android/volley/toolbox/
DRequestFuture.java115 long nowMs = SystemClock.uptimeMillis(); in doGet() local
116 long deadlineMs = nowMs + timeoutMs; in doGet()
117 while (!isDone() && nowMs < deadlineMs) { in doGet()
118 wait(deadlineMs - nowMs); in doGet()
119 nowMs = SystemClock.uptimeMillis(); in doGet()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/trackselection/
DBaseTrackSelection.java156 long nowMs = SystemClock.elapsedRealtime(); in blacklist() local
157 boolean canBlacklist = isBlacklisted(index, nowMs); in blacklist()
159 canBlacklist = i != index && !isBlacklisted(i, nowMs); in blacklist()
167 Util.addWithOverflowDefault(nowMs, blacklistDurationMs, Long.MAX_VALUE)); in blacklist()
177 protected final boolean isBlacklisted(int index, long nowMs) { in isBlacklisted() argument
178 return blacklistUntilTimes[index] > nowMs; in isBlacklisted()
DAdaptiveTrackSelection.java433 long nowMs = clock.elapsedRealtime(); in updateSelectedTrack() local
438 selectedIndex = determineIdealSelectedIndex(nowMs); in updateSelectedTrack()
444 selectedIndex = determineIdealSelectedIndex(nowMs); in updateSelectedTrack()
449 if (!isBlacklisted(currentSelectedIndex, nowMs)) { in updateSelectedTrack()
489 long nowMs = clock.elapsedRealtime(); in evaluateQueueSize() local
490 if (!shouldEvaluateQueueSize(nowMs)) { in evaluateQueueSize()
494 lastBufferEvaluationMs = nowMs; in evaluateQueueSize()
508 int idealSelectedIndex = determineIdealSelectedIndex(nowMs); in evaluateQueueSize()
553 protected boolean shouldEvaluateQueueSize(long nowMs) { in shouldEvaluateQueueSize() argument
555 || nowMs - lastBufferEvaluationMs >= minTimeBetweenBufferReevaluationMs; in shouldEvaluateQueueSize()
[all …]
DRandomTrackSelection.java106 long nowMs = SystemClock.elapsedRealtime(); in updateSelectedTrack() local
109 if (!isBlacklisted(i, nowMs)) { in updateSelectedTrack()
119 if (!isBlacklisted(i, nowMs) && selectedIndex == nonBlacklistedFormatCount++) { in updateSelectedTrack()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DLoader.java371 long nowMs = SystemClock.elapsedRealtime(); in cancel() local
373 .onLoadCanceled(loadable, nowMs, nowMs - startTimeMs, true); in cancel()
440 long nowMs = SystemClock.elapsedRealtime(); in handleMessage() local
441 long durationMs = nowMs - startTimeMs; in handleMessage()
444 callback.onLoadCanceled(loadable, nowMs, durationMs, false); in handleMessage()
449 callback.onLoadCanceled(loadable, nowMs, durationMs, false); in handleMessage()
453 callback.onLoadCompleted(loadable, nowMs, durationMs); in handleMessage()
464 callback.onLoadError(loadable, nowMs, durationMs, currentError, errorCount); in handleMessage()
DDefaultBandwidthMeter.java354 long nowMs = clock.elapsedRealtime(); in onTransferEnd() local
355 int sampleElapsedTimeMs = (int) (nowMs - sampleStartTimeMs); in onTransferEnd()
366 sampleStartTimeMs = nowMs; in onTransferEnd()
391 long nowMs = clock.elapsedRealtime(); in onConnectivityAction() local
392 int sampleElapsedTimeMs = streamCount > 0 ? (int) (nowMs - sampleStartTimeMs) : 0; in onConnectivityAction()
396 sampleStartTimeMs = nowMs; in onConnectivityAction()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DPlotStatistics.java80 long nowMs = System.currentTimeMillis(); in annotatePlot() local
82 long msSinceUpdate = (nowMs - lastAnnotation); in annotatePlot()
90 lastAnnotation = nowMs; in annotatePlot()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DPlaybackStatsListener.java947 private void maybeUpdateMaxRebufferTimeMs(long nowMs) { in maybeUpdateMaxRebufferTimeMs() argument
949 long rebufferDurationMs = nowMs - lastRebufferStartTimeMs; in maybeUpdateMaxRebufferTimeMs()
1022 private void maybeRecordVideoFormatTime(long nowMs) { in maybeRecordVideoFormatTime() argument
1025 long mediaDurationMs = (long) ((nowMs - lastVideoFormatStartTimeMs) * currentPlaybackSpeed); in maybeRecordVideoFormatTime()
1035 lastVideoFormatStartTimeMs = nowMs; in maybeRecordVideoFormatTime()
1038 private void maybeRecordAudioFormatTime(long nowMs) { in maybeRecordAudioFormatTime() argument
1042 long mediaDurationMs = (long) ((nowMs - lastAudioFormatStartTimeMs) * currentPlaybackSpeed); in maybeRecordAudioFormatTime()
1046 lastAudioFormatStartTimeMs = nowMs; in maybeRecordAudioFormatTime()
/external/skqp/infra/cts/
Drun_testlab.go232 nowMs := now.UnixNano() / int64(time.Millisecond)
233 runID := fmt.Sprintf(RUN_ID_TMPL, nowMs)
270 TS: nowMs,
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/
DHlsChunkSource.java563 long nowMs = SystemClock.elapsedRealtime(); in updateSelectedTrack() local
564 if (!isBlacklisted(selectedIndex, nowMs)) { in updateSelectedTrack()
569 if (!isBlacklisted(i, nowMs)) { in updateSelectedTrack()
/external/exoplayer/tree/extensions/cronet/src/test/java/com/google/android/exoplayer2/ext/cronet/
DCronetDataSourceTest.java1471 private static void setSystemClockInMsAndTriggerPendingMessages(long nowMs) { in setSystemClockInMsAndTriggerPendingMessages() argument
1472 SystemClock.setCurrentTimeMillis(nowMs); in setSystemClockInMsAndTriggerPendingMessages()
/external/kotlinc/lib/
Dkotlin-daemon.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/kotlin-daemon. ...