Home
last modified time | relevance | path

Searched refs:timestampSec (Results 1 – 8 of 8) sorted by relevance

/packages/modules/StatsD/statsd/src/anomaly/
DAlarmMonitor.cpp50 updateRegisteredAlarmTime_l(top->timestampSec); in setStatsCompanionService()
60 if (alarm->timestampSec < 1) { in add()
66 VLOG("Adding alarm with time %u", alarm->timestampSec); in add()
69 alarm->timestampSec + mMinUpdateTimeSec < mRegisteredAlarmTimeSec) { in add()
70 updateRegisteredAlarmTime_l(alarm->timestampSec); in add()
80 VLOG("Removing alarm with time %u", alarm->timestampSec); in remove()
88 uint32_t soonestAlarmTimeSec = mPq.top()->timestampSec; in remove()
98 uint32_t timestampSec) { in popSoonerThan() argument
99 VLOG("Removing alarms with time <= %u", timestampSec); in popSoonerThan()
103 for (sp<const InternalAlarm> t = mPq.top(); t != nullptr && t->timestampSec <= timestampSec; in popSoonerThan()
[all …]
DAlarmMonitor.h45 explicit InternalAlarm(uint32_t timestampSec) : timestampSec(timestampSec) { in InternalAlarm()
48 const uint32_t timestampSec; member
53 return (a->timestampSec < b->timestampSec); in operator()
99 uint32_t timestampSec);
141 void updateRegisteredAlarmTime_l(uint32_t timestampSec);
DDurationAnomalyTracker.cpp41 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()
DAlarmTracker.h52 return mInternalAlarm == nullptr ? 0 : mInternalAlarm->timestampSec; in getAlarmTimestampSec()
DDurationAnomalyTracker.h58 return it == mAlarms.end() ? 0 : it->second->timestampSec; in getAlarmTimestampSec()
/packages/modules/StatsD/statsd/tests/metrics/
DMaxDurationTracker_test.cpp283 EXPECT_EQ((long long)(53ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST()
293 EXPECT_EQ((long long)(63ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST()
349 int64_t anomalyFireTimeSec = alarm->timestampSec; in TEST()
372 EXPECT_EQ(refractoryPeriodEndsSec, (long long)(alarm->timestampSec)); in TEST()
381 (unsigned long long)(alarm->timestampSec * NS_PER_SEC)); in TEST()
434 (unsigned long long)(alarm->timestampSec * NS_PER_SEC)); in TEST()
DOringDurationTracker_test.cpp516 (long long)(anomalyTracker->mAlarms.begin()->second->timestampSec * NS_PER_SEC)); in TEST()
558 EXPECT_EQ((long long)(55ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST()
569 EXPECT_EQ((long long)(60ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST()
576 EXPECT_EQ((long long)(60ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST()
582 EXPECT_EQ((long long)(60ULL * NS_PER_SEC), (long long)(alarm->timestampSec * NS_PER_SEC)); in TEST()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentObserverTest.java1467 long timestampSec = TimeUnit.MILLISECONDS.toSeconds(cal.getTimeInMillis()); in handleMsgListChangesMms_withNonExistingOldMessage_andVersion12() local
1489 timestampSec, in handleMsgListChangesMms_withNonExistingOldMessage_andVersion12()
1519 long timestampSec = oldInstant.getEpochSecond(); in handleMsgListChangesMms_withNonExistingOldMessage_andVersion12_andOneWeekLimit() local
1541 timestampSec, in handleMsgListChangesMms_withNonExistingOldMessage_andVersion12_andOneWeekLimit()