Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/tests/e2e/
DMetricActivation_e2e_test.cpp288 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST()
291 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST()
311 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST()
314 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST()
327 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST()
330 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST()
340 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST()
343 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST()
361 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST()
364 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST()
[all …]
DDurationMetric_e2e_test.cpp275 EXPECT_EQ(eventActivationMap[2]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
302 EXPECT_EQ(eventActivationMap[2]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
316 EXPECT_EQ(eventActivationMap[2]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
346 EXPECT_EQ(eventActivationMap[2]->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()
646 EXPECT_EQ(eventActivationMap[4]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
654 EXPECT_EQ(eventActivationMap[4]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
663 EXPECT_EQ(eventActivationMap[4]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
673 EXPECT_EQ(eventActivationMap[4]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
698 EXPECT_EQ(eventActivationMap[4]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST()
/packages/modules/StatsD/statsd/tests/
DStatsLogProcessor_test.cpp807 EXPECT_EQ(100 * NS_PER_SEC, activation1003->ttl_ns); in TEST()
811 EXPECT_EQ(100 * NS_PER_SEC, activation1005->ttl_ns); in TEST()
815 EXPECT_EQ(200 * NS_PER_SEC, activation1006->ttl_ns); in TEST()
822 EXPECT_EQ(timeBase2 + ttl3 - activation1003->ttl_ns, activation1003->start_ns); in TEST()
824 EXPECT_EQ(timeBase2 + ttl5 - activation1005->ttl_ns, activation1005->start_ns); in TEST()
826 EXPECT_EQ(timeBase2 + ttl6 - activation1006->ttl_ns, activation1003->start_ns); in TEST()
891 EXPECT_EQ(100 * NS_PER_SEC, activation1->ttl_ns); in TEST()
941 EXPECT_EQ(100 * NS_PER_SEC, activation1001->ttl_ns); in TEST()
948 EXPECT_EQ(timeBase2 + ttl1 - activation1001->ttl_ns, activation1001->start_ns); in TEST()
1030 EXPECT_EQ(100 * NS_PER_SEC, activation1->ttl_ns); in TEST()
[all …]
/packages/modules/StatsD/statsd/src/metrics/
DMetricProducer.cpp224 elapsedTimestampNs > it.second->ttl_ns + it.second->start_ns) { in evaluateActiveStateLocked()
302 currentTimeNs + activeEventActivation.remaining_ttl_nanos() - activation->ttl_ns; in loadActiveMetricLocked()
320 activation->start_ns + activation->ttl_ns < currentTimeNs)) { in writeActiveMetricToProtoOutputStream()
330 activation->start_ns + activation->ttl_ns - currentTimeNs; in writeActiveMetricToProtoOutputStream()
340 (long long)activation->ttl_ns); in writeActiveMetricToProtoOutputStream()
DMetricProducer.h80 : ttl_ns(ttlNs), in Activation()
86 const int64_t ttl_ns; member
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp3441 EXPECT_EQ(matcher2Activation->ttl_ns, matcher2TtlSec * NS_PER_SEC); in TEST_F()
3446 EXPECT_EQ(matcher3Activation->ttl_ns, matcher3TtlSec * NS_PER_SEC); in TEST_F()
3450 EXPECT_EQ(matcher4Activation->ttl_ns, matcher4TtlSec * NS_PER_SEC); in TEST_F()