Searched refs:timestampSec (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/cmds/statsd/src/anomaly/ |
D | AlarmMonitor.cpp | 48 updateRegisteredAlarmTime_l(top->timestampSec); in setStatsCompanionService() 58 if (alarm->timestampSec < 1) { in add() 64 VLOG("Adding alarm with time %u", alarm->timestampSec); in add() 67 alarm->timestampSec + mMinUpdateTimeSec < mRegisteredAlarmTimeSec) { in add() 68 updateRegisteredAlarmTime_l(alarm->timestampSec); in add() 78 VLOG("Removing alarm with time %u", alarm->timestampSec); in remove() 86 uint32_t soonestAlarmTimeSec = mPq.top()->timestampSec; in remove() 96 uint32_t timestampSec) { in popSoonerThan() argument 97 VLOG("Removing alarms with time <= %u", timestampSec); in popSoonerThan() 101 for (sp<const InternalAlarm> t = mPq.top(); t != nullptr && t->timestampSec <= timestampSec; in popSoonerThan() [all …]
|
D | AlarmMonitor.h | 43 explicit InternalAlarm(uint32_t timestampSec) : timestampSec(timestampSec) { in InternalAlarm() 46 const uint32_t timestampSec; member 51 return (a->timestampSec < b->timestampSec); in operator() 96 uint32_t timestampSec); 138 void updateRegisteredAlarmTime_l(uint32_t timestampSec);
|
D | DurationAnomalyTracker.cpp | 41 uint32_t timestampSec = static_cast<uint32_t>((timestampNs -1) / NS_PER_SEC) + 1; // round up in startAlarm() local 52 sp<const InternalAlarm> alarm = new InternalAlarm{timestampSec}; in startAlarm() 67 if (itr->second != nullptr && timestampNs >= (int64_t)NS_PER_SEC * itr->second->timestampSec) { in stopAlarm() 70 itr->second->timestampSec); in stopAlarm() 107 mAlert.trigger_if_sum_gt() + (timestampNs / NS_PER_SEC) - kv.second->timestampSec); in informAlarmsFired()
|
D | AlarmTracker.h | 54 return mInternalAlarm == nullptr ? 0 : mInternalAlarm->timestampSec; in getAlarmTimestampSec()
|
D | DurationAnomalyTracker.h | 59 return it == mAlarms.end() ? 0 : it->second->timestampSec; in getAlarmTimestampSec()
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | MaxDurationTracker_test.cpp | 282 EXPECT_EQ((long long)(53ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 292 EXPECT_EQ((long long)(63ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 347 int64_t anomalyFireTimeSec = alarm->timestampSec; in TEST() 369 EXPECT_EQ(refractoryPeriodEndsSec, (long long)(alarm->timestampSec)); in TEST() 377 (unsigned long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 429 (unsigned long long)(alarm->timestampSec * NS_PER_SEC)); in TEST()
|
D | OringDurationTracker_test.cpp | 509 (long long)(anomalyTracker->mAlarms.begin()->second->timestampSec * NS_PER_SEC)); in TEST() 551 EXPECT_EQ((long long)(55ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 561 EXPECT_EQ((long long)(60ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 567 EXPECT_EQ((long long)(60ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST() 573 EXPECT_EQ((long long)(60ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST()
|