Home
last modified time | relevance | path

Searched refs:timeMs (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/connectivity/
DDefaultNetworkMetrics.java70 long timeMs = SystemClock.elapsedRealtime(); in listEvents() local
74 mCurrentDefaultNetwork.updateDuration(timeMs); in listEvents()
78 updateValidationTime(timeMs); in listEvents()
79 mLastValidationTimeMs = timeMs; in listEvents()
97 public synchronized void logDefaultNetworkValidity(long timeMs, boolean isValid) { in logDefaultNetworkValidity() argument
101 updateValidationTime(timeMs); in logDefaultNetworkValidity()
107 mLastValidationTimeMs = timeMs; in logDefaultNetworkValidity()
111 private void updateValidationTime(long timeMs) { in updateValidationTime() argument
112 mCurrentDefaultNetwork.validatedMs += timeMs - mLastValidationTimeMs; in updateValidationTime()
116 long timeMs, NetworkAgentInfo newNai, NetworkAgentInfo oldNai) { in logDefaultNetworkEvent() argument
[all …]
DNetdEventListenerService.java163 private static long projectSnapshotTime(long timeMs) { in projectSnapshotTime() argument
164 return (timeMs / METRICS_SNAPSHOT_SPAN_MS) * METRICS_SNAPSHOT_SPAN_MS; in projectSnapshotTime()
167 private NetworkMetrics getMetricsForNetwork(long timeMs, int netId) { in getMetricsForNetwork() argument
168 collectPendingMetricsSnapshot(timeMs); in getMetricsForNetwork()
183 private void collectPendingMetricsSnapshot(long timeMs) { in collectPendingMetricsSnapshot() argument
186 if (Math.abs(timeMs - mLastSnapshot) <= METRICS_SNAPSHOT_SPAN_MS) { in collectPendingMetricsSnapshot()
189 mLastSnapshot = projectSnapshotTime(timeMs); in collectPendingMetricsSnapshot()
402 public long timeMs; field in NetdEventListenerService.NetworkMetricsSnapshot
405 … static NetworkMetricsSnapshot collect(long timeMs, SparseArray<NetworkMetrics> networkMetrics) { in collect() argument
407 snapshot.timeMs = timeMs; in collect()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DUDPPusher.cpp63 uint32_t timeMs; in start() local
64 CHECK_EQ(fread(&timeMs, 1, sizeof(timeMs), mFile), sizeof(timeMs)); in start()
65 mFirstTimeMs = fromlel(timeMs); in start()
94 uint32_t timeMs; in onPush() local
95 if (fread(&timeMs, 1, sizeof(timeMs), mFile) < sizeof(timeMs)) { in onPush()
100 timeMs = fromlel(timeMs); in onPush()
101 CHECK_GE(timeMs, mFirstTimeMs); in onPush()
103 timeMs -= mFirstTimeMs; in onPush()
104 int64_t whenUs = mFirstTimeUs + timeMs * 1000ll; in onPush()
/frameworks/base/media/java/android/media/
DSubtitleTrack.java129 protected synchronized void updateActiveCues(boolean rebuild, long timeMs) { in updateActiveCues() argument
132 if (rebuild || mLastUpdateTimeMs > timeMs) { in updateActiveCues()
137 mCues.entriesBetween(mLastUpdateTimeMs, timeMs).iterator(); it.hasNext(); ) { in updateActiveCues()
153 cue.onTime(timeMs); in updateActiveCues()
158 cue.onTime(timeMs); in updateActiveCues()
164 mRunsByEndTime.keyAt(0) <= timeMs) { in updateActiveCues()
167 mLastUpdateTimeMs = timeMs; in updateActiveCues()
200 private synchronized void takeTime(long timeMs) { in takeTime() argument
201 mLastTimeMs = timeMs; in takeTime()
231 long timeMs = timeUs / 1000; in onTimedEvent() local
[all …]
DRemoteController.java270 public boolean seekTo(long timeMs) throws IllegalArgumentException { in seekTo() argument
275 if (timeMs < 0) { in seekTo()
280 mCurrentSession.getTransportControls().seekTo(timeMs); in seekTo()
/frameworks/base/core/java/com/android/internal/os/
DRpmStats.java36 String name, long timeMs, int count) { in getAndUpdatePlatformState() argument
43 e.mTimeMs = timeMs; in getAndUpdatePlatformState()
65 private PowerStateElement(long timeMs, int count) { in PowerStateElement() argument
66 this.mTimeMs = timeMs; in PowerStateElement()
82 public void putVoter(String name, long timeMs, int count) { in putVoter() argument
85 mVoters.put(name, new PowerStateElement(timeMs, count)); in putVoter()
87 e.mTimeMs = timeMs; in putVoter()
102 public void putState(String name, long timeMs, int count) { in putState() argument
105 mStates.put(name, new PowerStateElement(timeMs, count)); in putState()
107 e.mTimeMs = timeMs; in putState()
DMemoryPowerCalculator.java36 long timeMs = timers.valueAt(i).getTotalTimeLocked(rawRealtimeUs, statsType); in calculateRemaining() local
37 double mAm = (mAatRail * timeMs) / (1000*60); in calculateRemaining()
45 totalTimeMs += timeMs; in calculateRemaining()
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/
DOffsettableClock.java52 public void fastForward(long timeMs) { in fastForward() argument
53 mOffset += timeMs; in fastForward()
55 public void rewind(long timeMs) { in rewind() argument
56 fastForward(-timeMs); in rewind()
/frameworks/base/core/java/android/net/metrics/
DDefaultNetworkEvent.java53 public DefaultNetworkEvent(long timeMs) { in DefaultNetworkEvent() argument
54 creationTimeMs = timeMs; in DefaultNetworkEvent()
58 public void updateDuration(long timeMs) { in updateDuration() argument
59 durationMs = timeMs - creationTimeMs; in updateDuration()
/frameworks/av/media/libstagefright/timedtext/
DTextDescriptions.h38 uint32_t flags, int timeMs, Parcel *parcel);
72 int timeMs, Parcel *parcel);
78 int timeMs, Parcel *parcel);
DTextDescriptions.cpp28 uint32_t flags, int timeMs, Parcel *parcel) { in getParcelOfDescriptions() argument
35 return extract3GPPLocalDescriptions(data, size, timeMs, parcel); in getParcelOfDescriptions()
39 return extractSRTLocalDescriptions(data, size, timeMs, parcel); in getParcelOfDescriptions()
50 const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) { in extractSRTLocalDescriptions() argument
53 parcel->writeInt32(timeMs); in extractSRTLocalDescriptions()
72 int timeMs, Parcel *parcel) { in extract3GPPLocalDescriptions() argument
78 parcel->writeInt32(timeMs); in extract3GPPLocalDescriptions()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DDppMetricsTest.java393 int timeMs; in testUpdateHistogramDppOperationTime() local
396 timeMs = DPP_OPERATION_TIME[i] - 1; in testUpdateHistogramDppOperationTime()
398 timeMs = DPP_OPERATION_TIME[i - 1]; in testUpdateHistogramDppOperationTime()
402 timeMs *= 1000; in testUpdateHistogramDppOperationTime()
406 mDppMetrics.updateDppOperationTime(timeMs); in testUpdateHistogramDppOperationTime()
/frameworks/base/media/java/android/media/tv/
DITvInputSessionCallback.aidl41 void onTimeShiftStartPositionChanged(long timeMs); in onTimeShiftStartPositionChanged() argument
42 void onTimeShiftCurrentPositionChanged(long timeMs); in onTimeShiftCurrentPositionChanged() argument
DITvInputClient.aidl44 void onTimeShiftStartPositionChanged(long timeMs, int seq); in onTimeShiftStartPositionChanged() argument
45 void onTimeShiftCurrentPositionChanged(long timeMs, int seq); in onTimeShiftCurrentPositionChanged() argument
DTvView.java521 public void timeShiftSeekTo(long timeMs) { in timeShiftSeekTo() argument
523 mSession.timeShiftSeekTo(timeMs); in timeShiftSeekTo()
879 public void onTimeShiftStartPositionChanged(String inputId, long timeMs) { in onTimeShiftStartPositionChanged() argument
894 public void onTimeShiftCurrentPositionChanged(String inputId, long timeMs) { in onTimeShiftCurrentPositionChanged() argument
1303 public void onTimeShiftStartPositionChanged(Session session, long timeMs) { in onTimeShiftStartPositionChanged() argument
1312 mTimeShiftPositionCallback.onTimeShiftStartPositionChanged(mInputId, timeMs); in onTimeShiftStartPositionChanged()
1317 public void onTimeShiftCurrentPositionChanged(Session session, long timeMs) { in onTimeShiftCurrentPositionChanged() argument
1326 mTimeShiftPositionCallback.onTimeShiftCurrentPositionChanged(mInputId, timeMs); in onTimeShiftCurrentPositionChanged()
DTvInputManager.java518 public void onTimeShiftStartPositionChanged(Session session, long timeMs) { in onTimeShiftStartPositionChanged() argument
527 public void onTimeShiftCurrentPositionChanged(Session session, long timeMs) { in onTimeShiftCurrentPositionChanged() argument
692 void postTimeShiftStartPositionChanged(final long timeMs) { in postTimeShiftStartPositionChanged() argument
696 mSessionCallback.onTimeShiftStartPositionChanged(mSession, timeMs); in postTimeShiftStartPositionChanged()
701 void postTimeShiftCurrentPositionChanged(final long timeMs) { in postTimeShiftCurrentPositionChanged() argument
705 mSessionCallback.onTimeShiftCurrentPositionChanged(mSession, timeMs); in postTimeShiftCurrentPositionChanged()
1059 public void onTimeShiftStartPositionChanged(long timeMs, int seq) { in TvInputManager()
1066 record.postTimeShiftStartPositionChanged(timeMs); in TvInputManager()
1071 public void onTimeShiftCurrentPositionChanged(long timeMs, int seq) { in TvInputManager()
1078 record.postTimeShiftCurrentPositionChanged(timeMs); in TvInputManager()
[all …]
DITvInputSession.aidl54 void timeShiftSeekTo(long timeMs); in timeShiftSeekTo() argument
/frameworks/base/tests/net/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java145 long timeMs = mService.mDefaultNetworkMetrics.creationTimeMs; in testDefaultNetworkEvents() local
148 timeMs += durationMs; in testDefaultNetworkEvents()
150 mService.mDefaultNetworkMetrics.logDefaultNetworkEvent(timeMs, pair[1], pair[0]); in testDefaultNetworkEvents()
329 long timeMs = mService.mDefaultNetworkMetrics.creationTimeMs; in testEndToEndLogging() local
334 mService.mDefaultNetworkMetrics.logDefaultNetworkEvent(timeMs + 200, cellNai, null); in testEndToEndLogging()
335 mService.mDefaultNetworkMetrics.logDefaultNetworkEvent(timeMs + 300, wifiNai, cellNai); in testEndToEndLogging()
/frameworks/base/core/java/android/util/
DTimingsTraceLog.java88 public void logDuration(String name, long timeMs) { in logDuration() argument
89 Slog.d(mTag, name + " took to complete: " + timeMs + "ms"); in logDuration()
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateStats.h126 static std::string getDateFormatFromMs(int64_t timeMs) { in getDateFormatFromMs() argument
127 auto [days, dayRemainderMs] = std::div(timeMs, MS_PER_DAY); in getDateFormatFromMs()
/frameworks/base/services/backup/java/com/android/server/backup/transport/
DTransportStats.java33 void registerConnectionTime(ComponentName transportComponent, long timeMs) { in registerConnectionTime() argument
40 stats.register(timeMs); in registerConnectionTime()
/frameworks/av/media/extractors/midi/
DMidiExtractor.cpp249 EAS_I32 timeMs; in readBuffer() local
250 EAS_GetLocation(mEasData, mEasHandle, &timeMs); in readBuffer()
251 int64_t timeUs = 1000ll * timeMs; in readBuffer()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DDppMetrics.java182 public void updateDppOperationTime(int timeMs) { in updateDppOperationTime() argument
184 mHistogramDppOperationTime.increment(timeMs / 1000); in updateDppOperationTime()
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java131 public abstract void setMaximumScreenOffTimeoutFromDeviceAdmin(int userId, long timeMs); in setMaximumScreenOffTimeoutFromDeviceAdmin() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DPowerUtil.java245 public static long convertMsToUs(long timeMs) { in convertMsToUs() argument
246 return timeMs * 1000; in convertMsToUs()

12