Home
last modified time | relevance | path

Searched refs:ttl_ns (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/cmds/statsd/tests/e2e/
DMetricActivation_e2e_test.cpp285 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST()
288 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST()
308 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST()
311 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST()
325 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST()
328 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST()
338 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST()
341 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST()
359 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST()
362 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST()
[all …]
DDurationMetric_e2e_test.cpp267 EXPECT_EQ(eventActivationMap[2]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
294 EXPECT_EQ(eventActivationMap[2]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
308 EXPECT_EQ(eventActivationMap[2]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
338 EXPECT_EQ(eventActivationMap[2]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
613 EXPECT_EQ(eventActivationMap[4]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
625 EXPECT_EQ(eventActivationMap[4]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
633 EXPECT_EQ(eventActivationMap[4]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
642 EXPECT_EQ(eventActivationMap[4]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
652 EXPECT_EQ(eventActivationMap[4]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
677 EXPECT_EQ(eventActivationMap[4]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
/frameworks/base/cmds/statsd/tests/
DStatsLogProcessor_test.cpp615 EXPECT_EQ(100 * NS_PER_SEC, activation1003->ttl_ns); in TEST()
619 EXPECT_EQ(100 * NS_PER_SEC, activation1005->ttl_ns); in TEST()
623 EXPECT_EQ(200 * NS_PER_SEC, activation1006->ttl_ns); in TEST()
630 EXPECT_EQ(timeBase2 + ttl3 - activation1003->ttl_ns, activation1003->start_ns); in TEST()
632 EXPECT_EQ(timeBase2 + ttl5 - activation1005->ttl_ns, activation1005->start_ns); in TEST()
634 EXPECT_EQ(timeBase2 + ttl6 - activation1006->ttl_ns, activation1003->start_ns); in TEST()
700 EXPECT_EQ(100 * NS_PER_SEC, activation1->ttl_ns); in TEST()
748 EXPECT_EQ(100 * NS_PER_SEC, activation1001->ttl_ns); in TEST()
755 EXPECT_EQ(timeBase2 + ttl1 - activation1001->ttl_ns, activation1001->start_ns); in TEST()
838 EXPECT_EQ(100 * NS_PER_SEC, activation1->ttl_ns); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/metrics/
DMetricProducer.cpp92 elapsedTimestampNs > it.second->ttl_ns + it.second->start_ns) { in evaluateActiveStateLocked()
182 currentTimeNs + activeEventActivation.remaining_ttl_nanos() - activation->ttl_ns; in loadActiveMetricLocked()
200 activation->start_ns + activation->ttl_ns < currentTimeNs)) { in writeActiveMetricToProtoOutputStream()
210 activation->start_ns + activation->ttl_ns - currentTimeNs; in writeActiveMetricToProtoOutputStream()
220 (long long)activation->ttl_ns); in writeActiveMetricToProtoOutputStream()
DMetricProducer.h389 : ttl_ns(ttlNs), in Activation()
394 const int64_t ttl_ns; member