/external/perfetto/ui/src/frontend/ |
D | animation.ts | 25 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));
|
D | raf_scheduler.ts | 48 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));
|
D | task_tracker.ts | 57 const nowMs = (new Date()).getMilliseconds(); constant 58 const runtimeSeconds = Math.round((nowMs - value.startTimeMs) / 1000);
|
/external/webrtc/modules/video_coding/ |
D | media_opt_util.cc | 493 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 …]
|
D | media_opt_util.h | 216 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/ |
D | ActionFileUpgradeUtil.java | 74 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()
|
D | DownloadManager.java | 626 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/ |
D | RequestFuture.java | 115 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/ |
D | BaseTrackSelection.java | 156 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()
|
D | AdaptiveTrackSelection.java | 433 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 …]
|
D | RandomTrackSelection.java | 106 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/ |
D | Loader.java | 371 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()
|
D | DefaultBandwidthMeter.java | 354 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/ |
D | PlotStatistics.java | 80 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/ |
D | PlaybackStatsListener.java | 947 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/ |
D | run_testlab.go | 232 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/ |
D | HlsChunkSource.java | 563 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/ |
D | CronetDataSourceTest.java | 1471 private static void setSystemClockInMsAndTriggerPendingMessages(long nowMs) { in setSystemClockInMsAndTriggerPendingMessages() argument 1472 SystemClock.setCurrentTimeMillis(nowMs); in setSystemClockInMsAndTriggerPendingMessages()
|