Searched refs:timestampSec (Results 1 – 8 of 8) 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 | 45 InternalAlarm(uint32_t timestampSec) : timestampSec(timestampSec) { in InternalAlarm() 48 const uint32_t timestampSec; member 53 return (a->timestampSec < b->timestampSec); in operator() 98 uint32_t timestampSec); 140 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()
|
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/src/external/ |
D | StatsCompanionServicePuller.cpp | 63 int32_t timestampSec = getWallClockSec(); in PullInternal() local 69 tmp.entry_v1.sec = timestampSec; in PullInternal()
|
/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()
|