/frameworks/base/cmds/statsd/benchmark/ |
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...] |
metric_util.cpp | 249 const android::view::DisplayStateEnum state, uint64_t timestampNs) { 250 auto event = std::make_unique<LogEvent>(android::util::SCREEN_STATE_CHANGED, timestampNs); 257 int level, uint64_t timestampNs) { 258 auto event = std::make_unique<LogEvent>(android::util::SCREEN_BRIGHTNESS_CHANGED, timestampNs); 267 const ScheduledJobStateChanged::State state, uint64_t timestampNs) { 268 auto event = std::make_unique<LogEvent>(android::util::SCHEDULED_JOB_STATE_CHANGED, timestampNs); 278 const string& name, uint64_t timestampNs) { 280 attributions, name, ScheduledJobStateChanged::STARTED, timestampNs); 286 const string& name, uint64_t timestampNs) { 288 attributions, name, ScheduledJobStateChanged::FINISHED, timestampNs); [all...] |
/frameworks/base/cmds/statsd/src/anomaly/ |
DurationAnomalyTracker.cpp | 39 const int64_t& timestampNs) { 41 uint32_t timestampSec = static_cast<uint32_t>((timestampNs -1) / NS_PER_SEC) + 1; // round up 42 if (isInRefractoryPeriod(timestampNs, dimensionKey)) { 60 const int64_t& timestampNs) { 67 if (itr->second != nullptr && timestampNs >= (int64_t)NS_PER_SEC * itr->second->timestampSec) { 68 declareAnomaly(timestampNs, dimensionKey); 85 void DurationAnomalyTracker::informAlarmsFired(const int64_t& timestampNs, 103 declareAnomaly(timestampNs, kv.first);
|
DurationAnomalyTracker.h | 42 void stopAlarm(const MetricDimensionKey& dimensionKey, const int64_t& timestampNs); 51 void informAlarmsFired(const int64_t& timestampNs,
|
AnomalyTracker.h | 70 void declareAnomaly(const int64_t& timestampNs, const MetricDimensionKey& key); 76 void detectAndDeclareAnomaly(const int64_t& timestampNs, const int64_t& currBucketNum, 110 virtual void informAlarmsFired(const int64_t& timestampNs, 169 bool isInRefractoryPeriod(const int64_t& timestampNs, const MetricDimensionKey& key) const;
|
AnomalyTracker.cpp | 210 void AnomalyTracker::declareAnomaly(const int64_t& timestampNs, const MetricDimensionKey& key) { 212 if (isInRefractoryPeriod(timestampNs, key)) { 217 mRefractoryPeriodEndsSec[key] = ((timestampNs + NS_PER_SEC - 1) / NS_PER_SEC) // round up 238 void AnomalyTracker::detectAndDeclareAnomaly(const int64_t& timestampNs, 243 declareAnomaly(timestampNs, key); 247 bool AnomalyTracker::isInRefractoryPeriod(const int64_t& timestampNs, 251 return timestampNs < (it->second * (int64_t)NS_PER_SEC);
|
AlarmTracker.h | 48 void informAlarmsFired(const int64_t& timestampNs,
|
AlarmTracker.cpp | 73 const int64_t& timestampNs, 85 mAlarmSec = findNextAlarmSec((timestampNs-1) / NS_PER_SEC + 1); // round up
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
ActivityRecognitionEvent.java | 28 public ActivityRecognitionEvent(String activity, int eventType, long timestampNs) { 31 mTimestampNs = timestampNs; 65 "Activity='%s', EventType=%s(%s), TimestampNs=%s",
|
/frameworks/base/cmds/statsd/src/config/ |
ConfigListener.h | 43 virtual void OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key,
|
/frameworks/base/core/java/android/hardware/location/ |
ActivityRecognitionEvent.java | 32 public ActivityRecognitionEvent(String activity, int eventType, long timestampNs) { 35 mTimestampNs = timestampNs; 56 long timestampNs = source.readLong(); 58 return new ActivityRecognitionEvent(activity, eventType, timestampNs); 82 "Activity='%s', EventType=%s, TimestampNs=%s",
|
/frameworks/base/cmds/statsd/src/external/ |
StatsPullerManager.h | 60 int ClearPullerCacheIfNecessary(int64_t timestampNs) { 61 return mPullerManager.ClearPullerCacheIfNecessary(timestampNs);
|
StatsPuller.cpp | 82 int StatsPuller::ClearCacheIfNecessary(int64_t timestampNs) { 83 if (timestampNs - mLastPullTimeNs > mCoolDownNs) {
|
StatsPuller.h | 46 int ClearCacheIfNecessary(int64_t timestampNs);
|
/hardware/google/interfaces/media/c2/1.0/ |
IComponentListener.hal | 60 int64_t timestampNs;
|
/packages/apps/Camera2/src/com/android/camera/burst/ |
RingBuffer.java | 93 private synchronized void removeAndCloseImage(long timestampNs) { 94 mImages.get(timestampNs).close(); 95 mImages.remove(timestampNs);
|
/frameworks/base/cmds/statsd/src/logd/ |
LogEvent.h | 70 explicit LogEvent(int32_t tagId, int64_t timestampNs); 103 * using LogEvent(tagId, timestampNs). You need to call init() before you can read from it. 133 void setElapsedTimestampNs(int64_t timestampNs) { 134 mElapsedTimestampNs = timestampNs; 140 void setLogdWallClockTimestampNs(int64_t timestampNs) { 141 mLogdTimestampNs = timestampNs;
|
/frameworks/base/cmds/statsd/src/ |
StatsLogProcessor.cpp | 93 const int64_t& timestampNs, 97 itr.second->onAnomalyAlarmFired(timestampNs, alarmSet); 101 const int64_t& timestampNs, 106 itr.second->onPeriodicAlarmFired(timestampNs, alarmSet); 171 void StatsLogProcessor::resetConfigsLocked(const int64_t timestampNs) { 176 resetConfigsLocked(timestampNs, configKeys); 258 void StatsLogProcessor::OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key, 261 WriteDataToDiskLocked(key, timestampNs, CONFIG_UPDATED); 262 OnConfigUpdatedLocked(timestampNs, key, config); 266 const int64_t timestampNs, const ConfigKey& key, const StatsdConfig& config) [all...] |
StatsLogProcessor.h | 59 void OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key, 71 const int64_t& timestampNs, 76 const int64_t& timestampNs, 91 void informPullAlarmFired(const int64_t timestampNs); 135 void resetIfConfigTtlExpiredLocked(const int64_t timestampNs); 141 void WriteDataToDiskLocked(const ConfigKey& key, const int64_t timestampNs, 151 void flushIfNecessaryLocked(int64_t timestampNs, const ConfigKey& key, 161 void resetConfigsLocked(const int64_t timestampNs); 163 void resetConfigsLocked(const int64_t timestampNs, const std::vector<ConfigKey>& configs);
|
/frameworks/base/cmds/statsd/tests/ |
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...] |
statsd_test_util.cpp | 296 const android::view::DisplayStateEnum state, uint64_t timestampNs) { 297 auto event = std::make_unique<LogEvent>(android::util::SCREEN_STATE_CHANGED, timestampNs); 303 std::unique_ptr<LogEvent> CreateBatterySaverOnEvent(uint64_t timestampNs) { 305 android::util::BATTERY_SAVER_MODE_STATE_CHANGED, timestampNs); 311 std::unique_ptr<LogEvent> CreateBatterySaverOffEvent(uint64_t timestampNs) { 313 android::util::BATTERY_SAVER_MODE_STATE_CHANGED, timestampNs); 320 int level, uint64_t timestampNs) { 321 auto event = std::make_unique<LogEvent>(android::util::SCREEN_BRIGHTNESS_CHANGED, timestampNs); 330 const ScheduledJobStateChanged::State state, uint64_t timestampNs) { 331 auto event = std::make_unique<LogEvent>(android::util::SCHEDULED_JOB_STATE_CHANGED, timestampNs); [all...] |
/hardware/google/easel/amber/camera/libhdrplusclient/include/ |
HdrPlusClient.h | 131 int64_t timestampNs) = 0;
|
/system/netd/server/binder/android/net/metrics/ |
INetdEventListener.aidl | 87 * @param timestampNs receive timestamp for the offending packet. In units of nanoseconds and 91 String srcIp, String dstIp, int srcPort, int dstPort, long timestampNs);
|
/frameworks/base/cmds/statsd/src/metrics/ |
MetricsManager.h | 52 const int64_t& timestampNs, 56 const int64_t& timestampNs, 76 inline bool isInTtl(const int64_t timestampNs) const { 77 return mTtlNs <= 0 || timestampNs < mTtlEndNs;
|
/frameworks/base/cmds/statsd/src/packages/ |
UidMap.h | 59 const int64_t timestampNs; 65 ChangeRecord(const bool isDeletion, const int64_t timestampNs, const string& package, 68 timestampNs(timestampNs),
|