• Home
  • Raw
  • Download

Lines Matching refs:mUidHistoryMap

217     std::map<uid_t, UidHistoryEntry> mUidHistoryMap;  member
262 if (mUidHistoryMap.find(uid) == mUidHistoryMap.end()) { in onSessionStarted()
263 mUidHistoryMap.emplace(uid, UidHistoryEntry{}); in onSessionStarted()
264 mUidHistoryMap[uid].sessionActive = true; in onSessionStarted()
274 std::chrono::steady_clock::now() - mUidHistoryMap[uid].lastCompletedTime; in onSessionStarted()
275 if (mUidHistoryMap[uid].burstCount >= mBurstCountQuota && in onSessionStarted()
276 mUidHistoryMap[uid].burstDuration >= std::chrono::seconds(mBurstTimeQuotaSec)) { in onSessionStarted()
278 mUidHistoryMap[uid].burstCount, in onSessionStarted()
279 (long long)mUidHistoryMap[uid].burstDuration.count() / 1000000); in onSessionStarted()
287 mUidHistoryMap[uid].burstCount = 0; in onSessionStarted()
288 mUidHistoryMap[uid].burstDuration = std::chrono::milliseconds(0); in onSessionStarted()
291 mUidHistoryMap[uid].burstCount, in onSessionStarted()
292 (long long)mUidHistoryMap[uid].burstDuration.count() / 1000000); in onSessionStarted()
295 mUidHistoryMap[uid].sessionActive = true; in onSessionStarted()
303 if (mUidHistoryMap.find(uid) == mUidHistoryMap.end() || !mUidHistoryMap[uid].sessionActive) { in onSessionCompleted()
308 mUidHistoryMap[uid].sessionActive = false; in onSessionCompleted()
309 mUidHistoryMap[uid].burstCount++; in onSessionCompleted()
310 mUidHistoryMap[uid].burstDuration += runningTime; in onSessionCompleted()
311 mUidHistoryMap[uid].lastCompletedTime = std::chrono::steady_clock::now(); in onSessionCompleted()
315 if (mUidHistoryMap.find(uid) == mUidHistoryMap.end()) { in onSessionCancelled()
323 mUidHistoryMap[uid].sessionActive = false; in onSessionCancelled()