Home
last modified time | relevance | path

Searched refs:timestampMs (Results 1 – 25 of 31) sorted by relevance

12

/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DLongMultiStateCounter.java92 public void setEnabled(boolean enabled, long timestampMs) { in setEnabled() argument
93 native_setEnabled(mNativeObject, enabled, timestampMs); in setEnabled()
103 public void setState(int state, long timestampMs) { in setState() argument
108 native_setState(mNativeObject, state, timestampMs); in setState()
118 public long updateValue(long value, long timestampMs) { in updateValue() argument
119 return native_updateValue(mNativeObject, value, timestampMs); in updateValue()
125 public void incrementValue(long count, long timestampMs) { in incrementValue() argument
126 native_incrementValue(mNativeObject, count, timestampMs); in incrementValue()
202 long timestampMs); in native_setEnabled() argument
205 private static native void native_setState(long nativeObject, int state, long timestampMs); in native_setState() argument
[all …]
H A DLongArrayMultiStateCounter.java178 public void setEnabled(boolean enabled, long timestampMs) { in setEnabled() argument
179 native_setEnabled(mNativeObject, enabled, timestampMs); in setEnabled()
185 public void setState(int state, long timestampMs) { in setState() argument
190 native_setState(mNativeObject, state, timestampMs); in setState()
198 public void updateValues(LongArrayContainer longArrayContainer, long timestampMs) { in updateValues() argument
204 native_updateValues(mNativeObject, longArrayContainer.mNativeObject, timestampMs); in updateValues()
286 long timestampMs); in native_setEnabled() argument
289 private static native void native_setState(long nativeObject, int state, long timestampMs); in native_setState() argument
293 long longArrayContainerNativeObject, long timestampMs); in native_updateValues() argument
H A DKernelSingleUidTimeReader.java249 public void addDelta(int uid, LongArrayMultiStateCounter counter, long timestampMs) { in addDelta() argument
250 mInjector.addDelta(uid, counter, timestampMs, null); in addDelta()
257 public void addDelta(int uid, LongArrayMultiStateCounter counter, long timestampMs, in addDelta() argument
259 mInjector.addDelta(uid, counter, timestampMs, deltaContainer); in addDelta()
276 public boolean addDelta(int uid, LongArrayMultiStateCounter counter, long timestampMs, in addDelta() argument
278 return addDeltaFromBpf(uid, counter.mNativeObject, timestampMs, in addDelta()
284 long longArrayMultiStateCounterNativePointer, long timestampMs, in addDeltaFromBpf() argument
293 long timestampMs, long[][] timeInFreqDataNanos, in addDeltaForTest() argument
295 return addDeltaForTest(uid, counter.mNativeObject, timestampMs, timeInFreqDataNanos, in addDeltaForTest()
300 long longArrayMultiStateCounterNativePointer, long timestampMs, in addDeltaForTest() argument
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/
H A DBroadcastResponseStatsLogger.java75 timestampMs)); in logNotificationEvent()
115 event.timestampMs = timeStampMs; in logBroadcastDispatchEvent()
120 @ElapsedRealtimeLong long timestampMs) { in logNotificationEvent() argument
129 event.timestampMs = timestampMs; in logNotificationEvent()
151 @ElapsedRealtimeLong long timestampMs, @ProcessState int targetUidProcState) { in getBroadcastDispatchEventLog() argument
161 @ElapsedRealtimeLong long timestampMs) { in getNotificationEventLog() argument
163 TimeUtils.formatDuration(timestampMs), notificationEventToString(event), in getNotificationEventLog()
187 public long timestampMs; field in BroadcastResponseStatsLogger.BroadcastEvent
197 idForResponseEvent, timestampMs, targetUidProcessState); in toString()
205 public long timestampMs; field in BroadcastResponseStatsLogger.NotificationEvent
[all …]
H A DBroadcastResponseStatsTracker.java112 @ElapsedRealtimeLong long timestampMs, @ProcessState int targetUidProcState) { in reportBroadcastDispatchEvent() argument
114 idForResponseEvent, timestampMs, targetUidProcState); in reportBroadcastDispatchEvent()
134 broadcastEvent.addTimestampMs(timestampMs); in reportBroadcastDispatchEvent()
142 @ElapsedRealtimeLong long timestampMs) { in reportNotificationPosted() argument
143 reportNotificationEvent(NOTIFICATION_EVENT_TYPE_POSTED, packageName, user, timestampMs); in reportNotificationPosted()
147 @ElapsedRealtimeLong long timestampMs) { in reportNotificationUpdated() argument
148 reportNotificationEvent(NOTIFICATION_EVENT_TYPE_UPDATED, packageName, user, timestampMs); in reportNotificationUpdated()
153 @ElapsedRealtimeLong long timestampMs) { in reportNotificationCancelled() argument
159 mLogger.logNotificationEvent(event, packageName, user, timestampMs); in reportNotificationEvent()
181 && dispatchTimestampsMs.peekFirst() < timestampMs) { in reportNotificationEvent()
[all …]
H A DBroadcastEvent.java65 public void addTimestampMs(long timestampMs) { in addTimestampMs() argument
66 mTimestampsMs.addLast(timestampMs); in addTimestampMs()
H A DUserBroadcastEvents.java87 final long timestampMs = timestampsMs.get(timestampIdx); in dump() local
88 TimeUtils.formatDuration(timestampMs, ipw); in dump()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/os/
H A DLongArrayMultiStateCounterPerfTest.java71 public void setState(int state, long timestampMs) { in setState() argument
73 if (timestampMs >= mLastStateChangeTimestampMs) { in setState()
75 timestampMs - mLastStateChangeTimestampMs; in setState()
83 mLastStateChangeTimestampMs = timestampMs; in setState()
86 public void updateValue(long[] timeInFreq, long timestampMs) { in updateValue() argument
87 setState(mCurrentState, timestampMs); in updateValue()
90 if (timestampMs > mLastUpdateTimestampMs) { in updateValue()
92 long timeSinceUpdate = timestampMs - mLastUpdateTimestampMs; in updateValue()
103 } else if (timestampMs < mLastUpdateTimestampMs) { in updateValue()
108 mLastUpdateTimestampMs = timestampMs; in updateValue()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/criticalevents/
H A DCriticalEventLogTest.java97 assertThat(logProto.timestampMs).isEqualTo(START_TIME_MS); in loadEvents_validContents()
113 assertThat(logProto.timestampMs).isEqualTo(START_TIME_MS); in loadEvents_fileDoesntExist()
124 assertThat(logProto.timestampMs).isEqualTo(START_TIME_MS); in loadEvents_directoryDoesntExist()
665 long timestampMs = startTimeMs + (i * 1000L); in createTestFileWithEvents() local
667 log.events[i] = watchdog(timestampMs, subject); in createTestFileWithEvents()
676 return watchdog(timestampMs, subject, "A UUID"); in watchdog()
681 event.timestampMs = timestampMs; in watchdog()
690 event.timestampMs = timestampMs; in halfWatchdog()
699 event.timestampMs = timestampMs; in anr()
712 event.timestampMs = timestampMs; in javaCrash()
[all …]
/aosp14/frameworks/base/core/jni/
H A Dcom_android_internal_os_KernelSingleUidTimeReader.cpp52 jint uid, jlong counterNativePtr, jlong timestampMs, in addCpuTimeInFreqDelta() argument
80 const std::vector<uint64_t> &delta = counter->updateValue(flattened, timestampMs); in addCpuTimeInFreqDelta()
90 static jboolean addDeltaFromBpf(jint uid, jlong counterNativePtr, jlong timestampMs, in addDeltaFromBpf() argument
92 return addCpuTimeInFreqDelta(uid, counterNativePtr, timestampMs, in addDeltaFromBpf()
97 jlong timestampMs, jobjectArray timeInFreqDataNanos, in addDeltaForTest() argument
100 return addCpuTimeInFreqDelta(uid, counterNativePtr, timestampMs, in addDeltaForTest()
116 return addCpuTimeInFreqDelta(uid, counterNativePtr, timestampMs, std::optional(timeInFreqData), in addDeltaForTest()
/aosp14/frameworks/base/core/java/android/net/metrics/
H A DWakeupEvent.java38 public long timestampMs; field in WakeupEvent
43 j.add(String.format("%tT.%tL", timestampMs, timestampMs)); in toString()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DSilentUpdatePolicy.java140 final Long timestampMs; in getTimestampMs() local
142 timestampMs = mSilentUpdateInfos.get(key); in getTimestampMs()
144 return timestampMs != null ? timestampMs : -1; in getTimestampMs()
/aosp14/frameworks/base/core/java/com/android/internal/power/
H A DEnergyConsumerStats.java388 long timestampMs) { in updateStandardBucket() argument
390 updateEntry(bucket, chargeDeltaUC, timestampMs); in updateStandardBucket()
402 public void updateCustomBucket(int customBucket, long chargeDeltaUC, long timestampMs) { in updateCustomBucket() argument
408 updateEntry(index, chargeDeltaUC, timestampMs); in updateCustomBucket()
412 private void updateEntry(int index, long chargeDeltaUC, long timestampMs) { in updateEntry() argument
428 counter.updateValue(mAccumulatedChargeMicroCoulomb[index], timestampMs); in updateEntry()
444 public void setState(int state, long timestampMs) { in setState() argument
446 mStateChangeTimestampMs = timestampMs; in setState()
455 counter.updateValue(0, timestampMs); in setState()
459 counter.setState(state, timestampMs); in setState()
/aosp14/frameworks/base/services/core/java/android/app/usage/
H A DUsageStatsManagerInternal.java393 @ElapsedRealtimeLong long timestampMs, @ProcessState int targetUidProcState); in reportBroadcastDispatched() argument
404 @NonNull UserHandle user, @ElapsedRealtimeLong long timestampMs); in reportNotificationPosted() argument
415 @NonNull UserHandle user, @ElapsedRealtimeLong long timestampMs); in reportNotificationUpdated() argument
426 @NonNull UserHandle user, @ElapsedRealtimeLong long timestampMs); in reportNotificationRemoved() argument
/aosp14/frameworks/base/services/core/java/com/android/server/criticalevents/
H A DCriticalEventLog.java228 event.timestampMs = getWallTimeMillis(); in log()
282 log.timestampMs = getWallTimeMillis(); in getOutputLogProto()
286 CriticalEventProto[] events = recentEventsWithMinTimestamp(log.timestampMs - mWindowMs); in getOutputLogProto()
312 if (allEvents[i].timestampMs >= minTimestampMs) { in recentEventsWithMinTimestamp()
537 sanitized.timestampMs = base.timestampMs; in sanitizeCriticalEventProto()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DPulledStats.java125 public void addUndecoratedPackage(String packageName, long timestampMs) { in addUndecoratedPackage() argument
127 mTimePeriodEndMs = Math.max(mTimePeriodEndMs, timestampMs); in addUndecoratedPackage()
/aosp14/frameworks/base/services/core/java/com/android/server/powerstats/
H A DProtoStreamUtils.java328 energyMeasurement[i].timestampMs += startWallTime; in adjustTimeSinceBootToEpoch()
345 pos.write(EnergyMeasurementProto.TIMESTAMP_MS, energyMeasurement[i].timestampMs); in packProtoMessage()
392 energyMeasurement.timestampMs = in unpackEnergyMeasurementProto()
426 + ", Timestamp (ms): " + energyMeasurement[i].timestampMs in print()
549 energyConsumerResult[i].timestampMs += startWallTime; in adjustTimeSinceBootToEpoch()
568 energyConsumerResult[i].timestampMs); in packProtoMessage()
665 energyConsumerResult.timestampMs = in unpackEnergyConsumerResultProto()
706 + ", Timestamp (ms): " + result.timestampMs in print()
H A DStatsPullAtomCallbackImpl.java95 if (energyMeasurement.durationMs == energyMeasurement.timestampMs) { in pullOnDevicePowerMeasurement()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
H A DProximityClassifierTest.java152 private FalsingManager.ProximityEvent createSensorEvent(boolean covered, long timestampMs) { in createSensorEvent() argument
161 return timestampMs * NS_PER_MS; in createSensorEvent()
/aosp14/frameworks/base/services/core/java/com/android/server/os/
H A DNativeTombstoneManager.java473 long timestampMs = 0; in parse() local
476 timestampMs = stat.st_atim.tv_sec * 1000 + stat.st_atim.tv_nsec / 1000000; in parse()
496 result.mTimestampMs = timestampMs; in parse()
/aosp14/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetdEventListenerService.java316 event.timestampMs = timestampNs / NANOS_PER_MS; in onWakeupEvent()
318 event.timestampMs = System.currentTimeMillis(); in onWakeupEvent()
324 final long elapsedMs = SystemClock.elapsedRealtime() + event.timestampMs in onWakeupEvent()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A DBatteryStatsImplTest.java372 long timestampMs = invocation.getArgument(2); in mockKernelSingleUidTimeReader()
376 counter.updateValues(container, timestampMs); in mockKernelSingleUidTimeReader()
385 long timestampMs = invocation.getArgument(2); in mockKernelSingleUidTimeReader()
392 counter.updateValues(container, timestampMs); in mockKernelSingleUidTimeReader()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DKernelSingleUidTimeReaderTest.java380 public boolean addDelta(int uid, LongArrayMultiStateCounter counter, long timestampMs, in addDelta() argument
382 return addDeltaForTest(uid, counter, timestampMs, mCpuTimeInStatePerClusterNs, in addDelta()
/aosp14/frameworks/base/media/java/android/media/
H A DWebVttRenderer.java128 public void onTimeStamp(long timestampMs) { in onTimeStamp() argument
130 if (mLine.length() > 0 && timestampMs != mLastTimestamp) { in onTimeStamp()
135 mLastTimestamp = timestampMs; in onTimeStamp()
283 long timestampMs = WebVttParser.parseTimestampMs(mName); in yield_tag() local
284 mListener.onTimeStamp(timestampMs); in yield_tag()
336 void onTimeStamp(long timestampMs); in onTimeStamp() argument
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/powerstats/
H A DPowerStatsServiceTest.java236 energyConsumedList[i].timestampMs = i; in getEnergyConsumed()
267 energyMeasurementList[i].timestampMs = i; in readEnergyMeter()
322 assertTrue(pssProto.energyMeasurement[i].timestampMs == in testWrittenMeterDataMatchesReadIncidentReportData()
364 assertTrue(pssProto.energyConsumerResult[i].timestampMs == in testWrittenModelDataMatchesReadIncidentReportData()

12