/frameworks/base/core/java/com/android/internal/os/ |
D | LongMultiStateCounter.java | 92 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 …]
|
D | LongArrayMultiStateCounter.java | 162 public void setEnabled(boolean enabled, long timestampMs) { in setEnabled() argument 163 native_setEnabled(mNativeObject, enabled, timestampMs); in setEnabled() 169 public void setState(int state, long timestampMs) { in setState() argument 174 native_setState(mNativeObject, state, timestampMs); in setState() 182 public void updateValues(LongArrayContainer longArrayContainer, long timestampMs) { in updateValues() argument 188 native_updateValues(mNativeObject, longArrayContainer.mNativeObject, timestampMs); in updateValues() 270 long timestampMs); in native_setEnabled() argument 273 private static native void native_setState(long nativeObject, int state, long timestampMs); in native_setState() argument 277 long longArrayContainerNativeObject, long timestampMs); in native_updateValues() argument
|
D | KernelSingleUidTimeReader.java | 250 public void addDelta(int uid, LongArrayMultiStateCounter counter, long timestampMs) { in addDelta() argument 251 mInjector.addDelta(uid, counter, timestampMs, null); in addDelta() 258 public void addDelta(int uid, LongArrayMultiStateCounter counter, long timestampMs, in addDelta() argument 260 mInjector.addDelta(uid, counter, timestampMs, deltaContainer); in addDelta() 277 public boolean addDelta(int uid, LongArrayMultiStateCounter counter, long timestampMs, in addDelta() argument 279 return addDeltaFromBpf(uid, counter.mNativeObject, timestampMs, in addDelta() 285 long longArrayMultiStateCounterNativePointer, long timestampMs, in addDeltaFromBpf() argument 294 long timestampMs, long[][] timeInFreqDataNanos, in addDeltaForTest() argument 296 return addDeltaForTest(uid, counter.mNativeObject, timestampMs, timeInFreqDataNanos, in addDeltaForTest() 301 long longArrayMultiStateCounterNativePointer, long timestampMs, in addDeltaForTest() argument
|
/frameworks/opt/car/services/updatableServices/tests/src/com/android/internal/car/updatable/ |
D | UserMetricsTest.java | 164 long timestampMs = SystemClock.elapsedRealtimeNanos(); in sendStartingEvent() local 165 mUserMetrics.onEvent(USER_LIFECYCLE_EVENT_TYPE_STARTING, timestampMs, /* fromUserId */ -1, in sendStartingEvent() 167 return timestampMs; in sendStartingEvent() 171 long timestampMs = SystemClock.elapsedRealtimeNanos(); in sendSwitchingEvent() local 172 mUserMetrics.onEvent(USER_LIFECYCLE_EVENT_TYPE_SWITCHING, timestampMs, fromUserId, userId); in sendSwitchingEvent() 173 return timestampMs; in sendSwitchingEvent() 177 long timestampMs = SystemClock.elapsedRealtimeNanos(); in sendUnlockingEvent() local 178 mUserMetrics.onEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKING, timestampMs, /* fromUserId */ -1, in sendUnlockingEvent() 180 return timestampMs; in sendUnlockingEvent() 184 long timestampMs = SystemClock.elapsedRealtimeNanos(); in sendUnlockedEvent() local [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | BroadcastResponseStatsLogger.java | 71 @NonNull String packageName, UserHandle user, @ElapsedRealtimeLong long timestampMs) { in logNotificationEvent() argument 75 timestampMs)); in logNotificationEvent() 77 mNotificationEventsBuffer.logNotificationEvent(event, packageName, user, 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 154 TimeUtils.formatDuration(timestampMs), sourceUid, targetPackage, targetUserId, in getBroadcastDispatchEventLog() 161 @ElapsedRealtimeLong long timestampMs) { in getNotificationEventLog() argument 163 TimeUtils.formatDuration(timestampMs), notificationEventToString(event), in getNotificationEventLog() [all …]
|
D | BroadcastResponseStatsTracker.java | 112 @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 154 reportNotificationEvent(NOTIFICATION_EVENT_TYPE_CANCELLED, packageName, user, timestampMs); in reportNotificationCancelled() 158 @NonNull String packageName, UserHandle user, @ElapsedRealtimeLong long timestampMs) { in reportNotificationEvent() argument [all …]
|
D | BroadcastEvent.java | 65 public void addTimestampMs(long timestampMs) { in addTimestampMs() argument 66 mTimestampsMs.addLast(timestampMs); in addTimestampMs()
|
D | UserBroadcastEvents.java | 87 final long timestampMs = timestampsMs.get(timestampIdx); in dump() local 88 TimeUtils.formatDuration(timestampMs, ipw); in dump()
|
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/ |
D | UserMetrics.java | 85 public void onEvent(@UserLifecycleEventType int eventType, long timestampMs, in onEvent() argument 90 onUserStartingEventLocked(timestampMs, toUserId); in onEvent() 93 onUserSwitchingEventLocked(timestampMs, fromUserId, toUserId); in onEvent() 96 onUserUnlockingEventLocked(timestampMs, toUserId); in onEvent() 99 onUserUnlockedEventLocked(timestampMs, toUserId); in onEvent() 102 onUserStoppingEventLocked(timestampMs, toUserId); in onEvent() 105 onUserStoppedEventLocked(timestampMs, toUserId); in onEvent() 127 private void onUserStartingEventLocked(long timestampMs, @UserIdInt int userId) { in onUserStartingEventLocked() argument 138 mUserStartingMetrics.put(userId, new UserStartingMetric(userId, timestampMs)); in onUserStartingEventLocked() 141 private void onUserSwitchingEventLocked(long timestampMs, @UserIdInt int fromUserId, in onUserSwitchingEventLocked() argument [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | LongArrayMultiStateCounterPerfTest.java | 71 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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/criticalevents/ |
D | CriticalEventLogTest.java | 97 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() 136 assertThat(logProto.timestampMs).isEqualTo(START_TIME_MS); in loadEvents_unreadable() 149 assertThat(logProto.timestampMs).isEqualTo(START_TIME_MS); in loadEvents_malformedFile() 160 assertThat(logProto.timestampMs).isEqualTo(START_TIME_MS); in loadEvents_emptyProto() 171 assertThat(logProto.timestampMs).isEqualTo(START_TIME_MS); in loadEvents_numEventsExceedsBufferCapacity() 222 assertThat(logProto.timestampMs).isEqualTo(START_TIME_MS + 2000); in logWatchdog() 237 assertThat(logProto.timestampMs).isEqualTo(START_TIME_MS + 2000); in logHalfWatchdog() 252 assertThat(logProto.timestampMs).isEqualTo(START_TIME_MS + 2000); in logAnr() [all …]
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_KernelSingleUidTimeReader.cpp | 52 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()
|
/frameworks/base/core/java/android/net/metrics/ |
D | WakeupEvent.java | 38 public long timestampMs; field in WakeupEvent 43 j.add(String.format("%tT.%tL", timestampMs, timestampMs)); in toString()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SilentUpdatePolicy.java | 140 final Long timestampMs; in getTimestampMs() local 142 timestampMs = mSilentUpdateInfos.get(key); in getTimestampMs() 144 return timestampMs != null ? timestampMs : -1; in getTimestampMs()
|
/frameworks/base/core/java/com/android/internal/power/ |
D | MeasuredEnergyStats.java | 388 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()
|
/frameworks/base/services/core/java/android/app/usage/ |
D | UsageStatsManagerInternal.java | 393 @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
|
/frameworks/base/services/core/java/com/android/server/criticalevents/ |
D | CriticalEventLog.java | 228 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()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PulledStats.java | 125 public void addUndecoratedPackage(String packageName, long timestampMs) { in addUndecoratedPackage() argument 127 mTimePeriodEndMs = Math.max(mTimePeriodEndMs, timestampMs); in addUndecoratedPackage()
|
/frameworks/base/services/core/java/com/android/server/powerstats/ |
D | ProtoStreamUtils.java | 328 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()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetdEventListenerService.java | 269 final long timestampMs; in onWakeupEvent() local 271 timestampMs = timestampNs / NANOS_PER_MS; in onWakeupEvent() 273 timestampMs = System.currentTimeMillis(); in onWakeupEvent() 278 event.timestampMs = timestampMs; in onWakeupEvent()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | ProximityClassifierTest.java | 152 private FalsingManager.ProximityEvent createSensorEvent(boolean covered, long timestampMs) { in createSensorEvent() argument 161 return timestampMs * NS_PER_MS; in createSensorEvent()
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | NativeTombstoneManager.java | 466 long timestampMs = 0; in parse() local 469 timestampMs = stat.st_atim.tv_sec * 1000 + stat.st_atim.tv_nsec / 1000000; in parse() 489 result.mTimestampMs = timestampMs; in parse()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsImplTest.java | 363 long timestampMs = invocation.getArgument(2); in mockKernelSingleUidTimeReader() 367 counter.updateValues(container, timestampMs); in mockKernelSingleUidTimeReader() 376 long timestampMs = invocation.getArgument(2); in mockKernelSingleUidTimeReader() 383 counter.updateValues(container, timestampMs); in mockKernelSingleUidTimeReader()
|
D | KernelSingleUidTimeReaderTest.java | 380 public boolean addDelta(int uid, LongArrayMultiStateCounter counter, long timestampMs, in addDelta() argument 382 return addDeltaForTest(uid, counter, timestampMs, mCpuTimeInStatePerClusterNs, in addDelta()
|
/frameworks/base/media/java/android/media/ |
D | WebVttRenderer.java | 128 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
|