/frameworks/base/cmds/statsd/benchmark/ |
D | metric_util.h | 97 const android::view::DisplayStateEnum state, uint64_t timestampNs); 101 int level, uint64_t timestampNs); 106 const string& name, uint64_t timestampNs); 111 const string& name, uint64_t timestampNs); 114 std::unique_ptr<LogEvent> CreateMoveToBackgroundEvent(const int uid, uint64_t timestampNs); 117 std::unique_ptr<LogEvent> CreateMoveToForegroundEvent(const int uid, uint64_t timestampNs); 122 uint64_t timestampNs); 127 uint64_t timestampNs); 131 const int uid, uint64_t timestampNs); 136 uint64_t timestampNs); [all …]
|
D | metric_util.cpp | 249 const android::view::DisplayStateEnum state, uint64_t timestampNs) { in CreateScreenStateChangedEvent() argument 250 auto event = std::make_unique<LogEvent>(android::util::SCREEN_STATE_CHANGED, timestampNs); in CreateScreenStateChangedEvent() 257 int level, uint64_t timestampNs) { in CreateScreenBrightnessChangedEvent() argument 258 auto event = std::make_unique<LogEvent>(android::util::SCREEN_BRIGHTNESS_CHANGED, timestampNs); in CreateScreenBrightnessChangedEvent() 267 const ScheduledJobStateChanged::State state, uint64_t timestampNs) { in CreateScheduledJobStateChangedEvent() argument 268 … auto event = std::make_unique<LogEvent>(android::util::SCHEDULED_JOB_STATE_CHANGED, timestampNs); in CreateScheduledJobStateChangedEvent() 278 const string& name, uint64_t timestampNs) { in CreateStartScheduledJobEvent() argument 280 attributions, name, ScheduledJobStateChanged::STARTED, timestampNs); in CreateStartScheduledJobEvent() 286 const string& name, uint64_t timestampNs) { in CreateFinishScheduledJobEvent() argument 288 attributions, name, ScheduledJobStateChanged::FINISHED, timestampNs); in CreateFinishScheduledJobEvent() [all …]
|
/frameworks/base/cmds/statsd/src/anomaly/ |
D | DurationAnomalyTracker.cpp | 39 const int64_t& timestampNs) { in startAlarm() argument 41 uint32_t timestampSec = static_cast<uint32_t>((timestampNs -1) / NS_PER_SEC) + 1; // round up in startAlarm() 42 if (isInRefractoryPeriod(timestampNs, dimensionKey)) { in startAlarm() 60 const int64_t& timestampNs) { in stopAlarm() argument 67 if (itr->second != nullptr && timestampNs >= (int64_t)NS_PER_SEC * itr->second->timestampSec) { in stopAlarm() 68 declareAnomaly(timestampNs, mAlert.metric_id(), dimensionKey, in stopAlarm() 69 mAlert.trigger_if_sum_gt() + (timestampNs / NS_PER_SEC) - in stopAlarm() 87 void DurationAnomalyTracker::informAlarmsFired(const int64_t& timestampNs, in informAlarmsFired() argument 106 timestampNs, mAlert.metric_id(), kv.first, in informAlarmsFired() 107 mAlert.trigger_if_sum_gt() + (timestampNs / NS_PER_SEC) - kv.second->timestampSec); in informAlarmsFired()
|
D | AnomalyTracker.cpp | 211 void AnomalyTracker::declareAnomaly(const int64_t& timestampNs, int64_t metricId, in declareAnomaly() argument 215 if (isInRefractoryPeriod(timestampNs, key)) { in declareAnomaly() 220 mRefractoryPeriodEndsSec[key] = ((timestampNs + NS_PER_SEC - 1) / NS_PER_SEC) // round up in declareAnomaly() 242 void AnomalyTracker::detectAndDeclareAnomaly(const int64_t& timestampNs, in detectAndDeclareAnomaly() argument 247 declareAnomaly(timestampNs, metricId, key, currentBucketValue); in detectAndDeclareAnomaly() 251 bool AnomalyTracker::isInRefractoryPeriod(const int64_t& timestampNs, in isInRefractoryPeriod() argument 255 return timestampNs < (it->second * (int64_t)NS_PER_SEC); in isInRefractoryPeriod()
|
D | AnomalyTracker.h | 68 void declareAnomaly(const int64_t& timestampNs, int64_t metricId, const MetricDimensionKey& key, 75 void detectAndDeclareAnomaly(const int64_t& timestampNs, const int64_t& currBucketNum, 110 virtual void informAlarmsFired(const int64_t& timestampNs, in informAlarmsFired() argument 169 bool isInRefractoryPeriod(const int64_t& timestampNs, const MetricDimensionKey& key) const;
|
D | DurationAnomalyTracker.h | 42 void stopAlarm(const MetricDimensionKey& dimensionKey, const int64_t& timestampNs); 51 void informAlarmsFired(const int64_t& timestampNs,
|
D | AlarmTracker.cpp | 73 const int64_t& timestampNs, in informAlarmsFired() argument 85 mAlarmSec = findNextAlarmSec((timestampNs-1) / NS_PER_SEC + 1); // round up in informAlarmsFired()
|
/frameworks/base/cmds/incidentd/src/ |
D | WorkDirectory.cpp | 225 int64_t timestampNs; member 245 ReportFile::ReportFile(const sp<WorkDirectory>& workDirectory, int64_t timestampNs, in ReportFile() argument 248 mTimestampNs(timestampNs), in ReportFile() 519 int64_t timestampNs = make_timestamp_ns_locked(); in createReportFile() local 520 string envelopeFileName = make_filename(timestampNs, EXTENSION_ENVELOPE); in createReportFile() 521 string dataFileName = make_filename(timestampNs, EXTENSION_DATA); in createReportFile() 523 sp<ReportFile> result = new ReportFile(this, timestampNs, envelopeFileName, dataFileName); in createReportFile() 547 sp<ReportFile> reportFile = new ReportFile(this, it->second.timestampNs, in getReports() 562 int64_t timestampNs; in getReport() local 563 if (!parse_timestamp_ns(id, ×tampNs)) { in getReport() [all …]
|
D | WorkDirectory.h | 50 ReportFile(const sp<WorkDirectory>& workDirectory, int64_t timestampNs, 264 bool file_exists_locked(int64_t timestampNs); 269 string make_filename(int64_t timestampNs, const string& extension);
|
/frameworks/base/cmds/statsd/tests/ |
D | statsd_test_util.h | 123 const android::view::DisplayStateEnum state, uint64_t timestampNs); 127 int level, uint64_t timestampNs); 132 const string& name, uint64_t timestampNs); 137 const string& name, uint64_t timestampNs); 140 std::unique_ptr<LogEvent> CreateBatterySaverOnEvent(uint64_t timestampNs); 142 std::unique_ptr<LogEvent> CreateBatterySaverOffEvent(uint64_t timestampNs); 145 std::unique_ptr<LogEvent> CreateMoveToBackgroundEvent(const int uid, uint64_t timestampNs); 148 std::unique_ptr<LogEvent> CreateMoveToForegroundEvent(const int uid, uint64_t timestampNs); 153 uint64_t timestampNs); 158 uint64_t timestampNs); [all …]
|
D | statsd_test_util.cpp | 296 const android::view::DisplayStateEnum state, uint64_t timestampNs) { in CreateScreenStateChangedEvent() argument 297 auto event = std::make_unique<LogEvent>(android::util::SCREEN_STATE_CHANGED, timestampNs); in CreateScreenStateChangedEvent() 303 std::unique_ptr<LogEvent> CreateBatterySaverOnEvent(uint64_t timestampNs) { in CreateBatterySaverOnEvent() argument 305 android::util::BATTERY_SAVER_MODE_STATE_CHANGED, timestampNs); in CreateBatterySaverOnEvent() 311 std::unique_ptr<LogEvent> CreateBatterySaverOffEvent(uint64_t timestampNs) { in CreateBatterySaverOffEvent() argument 313 android::util::BATTERY_SAVER_MODE_STATE_CHANGED, timestampNs); in CreateBatterySaverOffEvent() 320 int level, uint64_t timestampNs) { in CreateScreenBrightnessChangedEvent() argument 321 auto event = std::make_unique<LogEvent>(android::util::SCREEN_BRIGHTNESS_CHANGED, timestampNs); in CreateScreenBrightnessChangedEvent() 330 const ScheduledJobStateChanged::State state, uint64_t timestampNs) { in CreateScheduledJobStateChangedEvent() argument 331 … auto event = std::make_unique<LogEvent>(android::util::SCHEDULED_JOB_STATE_CHANGED, timestampNs); in CreateScheduledJobStateChangedEvent() [all …]
|
/frameworks/base/cmds/statsd/src/ |
D | StatsLogProcessor.cpp | 114 const int64_t& timestampNs, in onAnomalyAlarmFired() argument 118 itr.second->onAnomalyAlarmFired(timestampNs, alarmSet); in onAnomalyAlarmFired() 122 const int64_t& timestampNs, in onPeriodicAlarmFired() argument 127 itr.second->onPeriodicAlarmFired(timestampNs, alarmSet); in onPeriodicAlarmFired() 188 void StatsLogProcessor::resetConfigsLocked(const int64_t timestampNs) { in resetConfigsLocked() argument 193 resetConfigsLocked(timestampNs, configKeys); in resetConfigsLocked() 303 void StatsLogProcessor::OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key, in OnConfigUpdated() argument 306 WriteDataToDiskLocked(key, timestampNs, CONFIG_UPDATED, NO_TIME_CONSTRAINTS); in OnConfigUpdated() 307 OnConfigUpdatedLocked(timestampNs, key, config); in OnConfigUpdated() 311 const int64_t timestampNs, const ConfigKey& key, const StatsdConfig& config) { in OnConfigUpdatedLocked() argument [all …]
|
D | StatsLogProcessor.h | 48 void OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key, 69 const int64_t& timestampNs, 74 const int64_t& timestampNs, 113 void informPullAlarmFired(const int64_t timestampNs); 160 void resetIfConfigTtlExpiredLocked(const int64_t timestampNs); 175 void WriteDataToDiskLocked(const ConfigKey& key, const int64_t timestampNs, 189 void flushIfNecessaryLocked(int64_t timestampNs, const ConfigKey& key, 199 void resetConfigsLocked(const int64_t timestampNs); 201 void resetConfigsLocked(const int64_t timestampNs, const std::vector<ConfigKey>& configs);
|
/frameworks/base/core/java/android/hardware/location/ |
D | ActivityRecognitionEvent.java | 32 public ActivityRecognitionEvent(String activity, int eventType, long timestampNs) { in ActivityRecognitionEvent() argument 35 mTimestampNs = timestampNs; in ActivityRecognitionEvent() 56 long timestampNs = source.readLong(); 58 return new ActivityRecognitionEvent(activity, eventType, timestampNs);
|
/frameworks/base/cmds/statsd/src/logd/ |
D | LogEvent.h | 88 explicit LogEvent(int32_t tagId, int64_t timestampNs); 91 explicit LogEvent(int32_t tagId, int64_t timestampNs, int32_t uid); 177 void setElapsedTimestampNs(int64_t timestampNs) { in setElapsedTimestampNs() argument 178 mElapsedTimestampNs = timestampNs; in setElapsedTimestampNs() 184 void setLogdWallClockTimestampNs(int64_t timestampNs) { in setLogdWallClockTimestampNs() argument 185 mLogdTimestampNs = timestampNs; in setLogdWallClockTimestampNs()
|
D | LogEvent.cpp | 224 LogEvent::LogEvent(int32_t tagId, int64_t timestampNs) : LogEvent(tagId, timestampNs, timestampNs) { in LogEvent() argument 227 LogEvent::LogEvent(int32_t tagId, int64_t timestampNs, int32_t uid) { in LogEvent() argument 228 mLogdTimestampNs = timestampNs; in LogEvent() 233 android_log_write_int64(mContext, timestampNs); in LogEvent()
|
/frameworks/base/cmds/statsd/src/condition/ |
D | ConditionTimer.h | 65 void onConditionChanged(bool newCondition, int64_t timestampNs) { in onConditionChanged() argument 71 mLastConditionTrueTimestampNs = timestampNs; in onConditionChanged() 73 mTimerNs += (timestampNs - mLastConditionTrueTimestampNs); in onConditionChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | ProximityClassifier.java | 103 long timestampNs = proximityEvent.getTimestampNs(); in onProximityEvent() local 104 logDebug("Sensor is: " + near + " at time " + timestampNs); in onProximityEvent() 105 update(near, timestampNs); in onProximityEvent()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/ |
D | MediaEncoderFilter.java | 338 public boolean skipFrameAndModifyTimestamp(long timestampNs) { in skipFrameAndModifyTimestamp() argument 341 mLastTimeLapseFrameRealTimestampNs = timestampNs; in skipFrameAndModifyTimestamp() 342 mTimestampNs = timestampNs; in skipFrameAndModifyTimestamp() 352 if (mNumFramesEncoded >= 2 && timestampNs < in skipFrameAndModifyTimestamp() 364 if (mLogVerbose) Log.v(TAG, "timelapse: encoding frame, Timestamp t = " + timestampNs + in skipFrameAndModifyTimestamp() 367 mLastTimeLapseFrameRealTimestampNs = timestampNs; in skipFrameAndModifyTimestamp()
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | ActivityRecognitionEvent.java | 28 public ActivityRecognitionEvent(String activity, int eventType, long timestampNs) { in ActivityRecognitionEvent() argument 31 mTimestampNs = timestampNs; in ActivityRecognitionEvent()
|
/frameworks/base/cmds/statsd/src/packages/ |
D | UidMap.h | 61 const int64_t timestampNs; member 69 ChangeRecord(const bool isDeletion, const int64_t timestampNs, const string& package, in ChangeRecord() 73 timestampNs(timestampNs), in ChangeRecord()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | MetricsManager.h | 58 const int64_t& timestampNs, 62 const int64_t& timestampNs, 82 inline bool isInTtl(const int64_t timestampNs) const { in isInTtl() argument 83 return mTtlNs <= 0 || timestampNs < mTtlEndNs; in isInTtl()
|
/frameworks/base/cmds/statsd/src/external/ |
D | StatsPuller.cpp | 101 int StatsPuller::ClearCacheIfNecessary(int64_t timestampNs) { in ClearCacheIfNecessary() argument 102 if (timestampNs - mLastPullTimeNs > in ClearCacheIfNecessary()
|
/frameworks/av/media/tests/benchmark/src/native/common/ |
D | BenchmarkC2Common.h | 94 int64_t timestampNs) override { in onFrameRendered() 97 (void)timestampNs; in onFrameRendered()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | ProximitySensor.java | 192 public ProximityEvent(boolean near, long timestampNs) { in ProximityEvent() argument 194 mTimestampNs = timestampNs; in ProximityEvent()
|