Home
last modified time | relevance | path

Searched refs:baseTimeNs (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/cmds/statsd/tests/e2e/
DGaugeMetric_e2e_pull_test.cpp66 int64_t baseTimeNs = getElapsedRealtimeNs(); in TEST() local
67 int64_t configAddedTimeNs = 10 * 60 * NS_PER_SEC + baseTimeNs; in TEST()
73 baseTimeNs, configAddedTimeNs, config, cfgKey); in TEST()
89 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + bucketSizeNs, nextPullTimeNs); in TEST()
97 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 2 * bucketSizeNs, nextPullTimeNs); in TEST()
108 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 3 * bucketSizeNs, in TEST()
112 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 4 * bucketSizeNs, nextPullTimeNs); in TEST()
119 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 5 * bucketSizeNs, nextPullTimeNs); in TEST()
126 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 6 * bucketSizeNs, nextPullTimeNs); in TEST()
158 EXPECT_EQ(baseTimeNs + 2 * bucketSizeNs, data.bucket_info(0).start_bucket_elapsed_nanos()); in TEST()
[all …]
DValueMetric_pull_e2e_test.cpp66 int64_t baseTimeNs = getElapsedRealtimeNs(); in TEST() local
67 int64_t configAddedTimeNs = 10 * 60 * NS_PER_SEC + baseTimeNs; in TEST()
73 baseTimeNs, configAddedTimeNs, config, cfgKey); in TEST()
89 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + bucketSizeNs, expectedPullTimeNs); in TEST()
105 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 2 * bucketSizeNs, expectedPullTimeNs); in TEST()
150 EXPECT_EQ(baseTimeNs + 3 * bucketSizeNs, data.bucket_info(0).start_bucket_elapsed_nanos()); in TEST()
151 EXPECT_EQ(baseTimeNs + 4 * bucketSizeNs, data.bucket_info(0).end_bucket_elapsed_nanos()); in TEST()
154 EXPECT_EQ(baseTimeNs + 4 * bucketSizeNs, data.bucket_info(1).start_bucket_elapsed_nanos()); in TEST()
155 EXPECT_EQ(baseTimeNs + 5 * bucketSizeNs, data.bucket_info(1).end_bucket_elapsed_nanos()); in TEST()
158 EXPECT_EQ(baseTimeNs + 6 * bucketSizeNs, data.bucket_info(2).start_bucket_elapsed_nanos()); in TEST()
[all …]
DDurationMetric_e2e_test.cpp49 const int64_t baseTimeNs = 0; // 0:00 in TEST() local
50 const int64_t configAddedTimeNs = baseTimeNs + 1 * NS_PER_SEC; // 0:01 in TEST()
58 auto processor = CreateStatsLogProcessor(baseTimeNs, configAddedTimeNs, config, cfgKey); in TEST()
109 EXPECT_EQ(baseTimeNs + bucketSizeNs, data.bucket_info(0).end_bucket_elapsed_nanos()); in TEST()
132 const int64_t baseTimeNs = 0; // 0:00 in TEST() local
133 const int64_t configAddedTimeNs = baseTimeNs + 1 * NS_PER_SEC; // 0:01 in TEST()
141 auto processor = CreateStatsLogProcessor(baseTimeNs, configAddedTimeNs, config, cfgKey); in TEST()
195 EXPECT_EQ(baseTimeNs + bucketSizeNs, bucketInfo.end_bucket_elapsed_nanos()); in TEST()