/packages/modules/StatsD/statsd/src/ |
D | StatsLogProcessor.h | 54 void OnConfigUpdated(const int64_t timestampNs, int64_t wallClockNs, const ConfigKey& key, 65 void onDumpReport(const ConfigKey& key, int64_t dumpTimeNs, int64_t wallClockNs, 69 void onDumpReport(const ConfigKey& key, int64_t dumpTimeNs, int64_t wallClockNs, 86 const int64_t elapsedRealtimeNs, int64_t wallClockNs); 116 void EnforceDataTtls(const int64_t wallClockNs, int64_t elapsedRealtimeNs); 252 const int64_t wallClockNs); 254 void WriteDataToDiskLocked(const ConfigKey& key, int64_t timestampNs, const int64_t wallClockNs, 259 const ConfigKey& key, int64_t dumpTimeStampNs, int64_t wallClockNs, 268 void enforceDataTtlsIfNecessaryLocked(const int64_t wallClockNs, 272 void enforceDataTtlsLocked(const int64_t wallClockNs, int64_t elapsedRealtimeNs); [all …]
|
D | StatsLogProcessor.cpp | 545 void StatsLogProcessor::OnConfigUpdated(const int64_t timestampNs, const int64_t wallClockNs, in OnConfigUpdated() argument 549 WriteDataToDiskLocked(key, timestampNs, wallClockNs, CONFIG_UPDATED, NO_TIME_CONSTRAINTS); in OnConfigUpdated() 661 const int64_t wallClockNs, in onDumpReport() argument 697 onConfigMetricsReportLocked(key, dumpTimeStampNs, wallClockNs, in onDumpReport() 724 const int64_t wallClockNs, in onDumpReport() argument 729 onDumpReport(key, dumpTimeStampNs, wallClockNs, include_current_partial_bucket, erase_data, in onDumpReport() 754 const ConfigKey& key, const int64_t dumpTimeStampNs, const int64_t wallClockNs, in onConfigMetricsReportLocked() argument 780 it->second->onDumpReport(dumpTimeStampNs, wallClockNs, include_current_partial_bucket, in onConfigMetricsReportLocked() 803 (long long)wallClockNs); in onConfigMetricsReportLocked() 902 void StatsLogProcessor::enforceDataTtlsIfNecessaryLocked(const int64_t wallClockNs, in enforceDataTtlsIfNecessaryLocked() argument [all …]
|
D | StatsService.cpp | 1069 int64_t wallClockNs = getWallClockNs(); in informDeviceShutdown() local 1070 mProcessor->WriteDataToDisk(DEVICE_SHUTDOWN, FAST, elapsedRealtimeNs, wallClockNs); in informDeviceShutdown() 1072 mProcessor->SaveMetadataToDisk(wallClockNs, elapsedRealtimeNs); in informDeviceShutdown() 1138 int64_t wallClockNs = getWallClockNs(); in Startup() local 1141 mProcessor->LoadMetadataFromDisk(wallClockNs, elapsedRealtimeNs); in Startup() 1142 mProcessor->EnforceDataTtls(wallClockNs, elapsedRealtimeNs); in Startup() 1159 int64_t wallClockNs = getWallClockNs(); in Terminate() local 1161 wallClockNs); in Terminate() 1163 mProcessor->SaveMetadataToDisk(wallClockNs, elapsedRealtimeNs); in Terminate() 1455 int64_t wallClockNs = getWallClockNs(); in statsCompanionServiceDiedImpl() local [all …]
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | RestrictedEventMetricProducer.cpp | 84 const int64_t wallClockNs) { in enforceRestrictedDataTtl() argument 87 int64_t ttlTime = wallClockNs - ttlInDays * NS_PER_DAY; in enforceRestrictedDataTtl()
|
D | RestrictedEventMetricProducer.h | 28 void enforceRestrictedDataTtl(sqlite3* db, int64_t wallClockNs);
|
D | MetricsManager.h | 136 virtual void onDumpReport(const int64_t dumpTimeNs, int64_t wallClockNs, 175 void enforceRestrictedDataTtls(const int64_t wallClockNs);
|
D | MetricsManager.cpp | 479 void MetricsManager::onDumpReport(const int64_t dumpTimeStampNs, const int64_t wallClockNs, in onDumpReport() argument 524 mLastReportWallClockNs = wallClockNs; in onDumpReport() 907 void MetricsManager::enforceRestrictedDataTtls(const int64_t wallClockNs) { in enforceRestrictedDataTtls() argument 918 producer->enforceRestrictedDataTtl(db, wallClockNs); in enforceRestrictedDataTtls()
|
D | MetricProducer.h | 324 virtual void enforceRestrictedDataTtl(sqlite3* db, int64_t wallClockNs){}; in enforceRestrictedDataTtl() argument
|
/packages/modules/StatsD/statsd/src/external/ |
D | StatsPullerManager.cpp | 224 int64_t wallClockNs = getWallClockNs(); in OnAlarmFired() local 275 event->setLogdWallClockTimestampNs(wallClockNs); in OnAlarmFired()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | RestrictedEventMetric_e2e_test.cpp | 1073 int64_t wallClockNs = 1584991200 * NS_PER_SEC; // random time in TEST_F() local 1075 processor->SaveMetadataToDisk(wallClockNs, metadataWriteTime); in TEST_F() 1097 processor2->LoadMetadataFromDisk(wallClockNs, newEventElapsedTime); in TEST_F()
|
/packages/modules/StatsD/statsd/tests/ |
D | StatsLogProcessor_test.cpp | 75 (const int64_t dumpTimeNs, const int64_t wallClockNs, 215 (const int64_t dumpTimeNs, const int64_t wallClockNs,
|