Home
last modified time | relevance | path

Searched refs:mPq (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/cmds/statsd/src/anomaly/
DAlarmMonitor.cpp46 const sp<const InternalAlarm> top = mPq.top(); in setStatsCompanionService()
65 mPq.push(alarm); in add()
79 bool wasPresent = mPq.remove(alarm); in remove()
81 if (mPq.empty()) { in remove()
86 uint32_t soonestAlarmTimeSec = mPq.top()->timestampSec; in remove()
101 for (sp<const InternalAlarm> t = mPq.top(); t != nullptr && t->timestampSec <= timestampSec; in popSoonerThan()
102 t = mPq.top()) { in popSoonerThan()
104 mPq.pop(); // remove t in popSoonerThan()
108 if (mPq.empty()) { in popSoonerThan()
113 updateRegisteredAlarmTime_l(mPq.top()->timestampSec); in popSoonerThan()
DAlarmMonitor.h121 indexed_priority_queue<InternalAlarm, InternalAlarm::SmallerTimestamp> mPq; variable