Searched refs:configAddedTimeNs (Results 1 – 4 of 4) sorted by relevance
/packages/modules/StatsD/statsd/tests/e2e/ |
D | GaugeMetric_e2e_pull_test.cpp | 72 int64_t configAddedTimeNs = 10 * 60 * NS_PER_SEC + baseTimeNs; in TEST() local 77 CreateStatsLogProcessor(baseTimeNs, configAddedTimeNs, config, cfgKey, in TEST() 98 CreateScreenStateChangedEvent(configAddedTimeNs + 55, android::view::DISPLAY_STATE_OFF); in TEST() 105 auto screenOnEvent = CreateScreenStateChangedEvent(configAddedTimeNs + bucketSizeNs + 10, in TEST() 109 screenOffEvent = CreateScreenStateChangedEvent(configAddedTimeNs + bucketSizeNs + 100, in TEST() 119 screenOnEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 3 * bucketSizeNs + 2, in TEST() 126 screenOffEvent = CreateScreenStateChangedEvent(configAddedTimeNs + 5 * bucketSizeNs + 1, in TEST() 137 processor->onDumpReport(cfgKey, configAddedTimeNs + 7 * bucketSizeNs + 10, false, true, in TEST() 160 EXPECT_EQ(configAddedTimeNs + 55, data.bucket_info(0).elapsed_timestamp_nanos(0)); in TEST() 211 int64_t configAddedTimeNs = 10 * 60 * NS_PER_SEC + baseTimeNs; in TEST() local [all …]
|
D | ValueMetric_pull_e2e_test.cpp | 156 int64_t configAddedTimeNs = 10 * 60 * NS_PER_SEC + baseTimeNs; in TEST() local 162 CreateStatsLogProcessor(baseTimeNs, configAddedTimeNs, config, cfgKey, in TEST() 179 CreateScreenStateChangedEvent(configAddedTimeNs + 30, android::view::DISPLAY_STATE_ON); in TEST() 185 CreateScreenStateChangedEvent(configAddedTimeNs + 40, android::view::DISPLAY_STATE_OFF); in TEST() 191 configAddedTimeNs + 50, BatteryPluggedStateEnum::BATTERY_PLUGGED_USB); in TEST() 197 configAddedTimeNs + 70, BatteryPluggedStateEnum::BATTERY_PLUGGED_NONE); in TEST() 206 int64_t configAddedTimeNs = 10 * 60 * NS_PER_SEC + baseTimeNs; in TEST() local 210 auto processor = CreateStatsLogProcessor(baseTimeNs, configAddedTimeNs, config, cfgKey, in TEST() 232 CreateScreenStateChangedEvent(configAddedTimeNs + 55, android::view::DISPLAY_STATE_OFF); in TEST() 236 CreateScreenStateChangedEvent(configAddedTimeNs + 65, android::view::DISPLAY_STATE_ON); in TEST() [all …]
|
D | DurationMetric_e2e_test.cpp | 50 const int64_t configAddedTimeNs = baseTimeNs + 1 * NS_PER_SEC; // 0:01 in TEST() local 58 auto processor = CreateStatsLogProcessor(baseTimeNs, configAddedTimeNs, config, cfgKey); in TEST() 71 event = CreateScreenStateChangedEvent(configAddedTimeNs, in TEST() 76 const int64_t durationStartNs = configAddedTimeNs + 10 * NS_PER_SEC; // 0:11 in TEST() 90 processor->onDumpReport(cfgKey, configAddedTimeNs + bucketSizeNs + 1 * NS_PER_SEC, false, true, in TEST() 109 EXPECT_EQ(configAddedTimeNs, data.bucket_info(0).start_bucket_elapsed_nanos()); in TEST() 133 const int64_t configAddedTimeNs = baseTimeNs + 1 * NS_PER_SEC; // 0:01 in TEST() local 141 auto processor = CreateStatsLogProcessor(baseTimeNs, configAddedTimeNs, config, cfgKey); in TEST() 154 event = CreateScreenStateChangedEvent(configAddedTimeNs, in TEST() 159 const int64_t durationStartNs = configAddedTimeNs + 10 * NS_PER_SEC; // 0:11 in TEST() [all …]
|
/packages/modules/StatsD/statsd/tests/ |
D | StatsLogProcessor_test.cpp | 1624 int64_t configAddedTimeNs = metricsManager1->mLastReportTimeNs; in TEST() local 1628 1 + configAddedTimeNs, attributionUids, attributionTags, "wl1"); in TEST() 1632 2 + configAddedTimeNs, attributionUids, attributionTags, "finish1"); in TEST() 1648 EXPECT_EQ(2 + configAddedTimeNs, activation4->start_ns); in TEST() 1657 EXPECT_TRUE(approximateSystemServerDeath > 2 + configAddedTimeNs); in TEST() 1658 EXPECT_TRUE(approximateSystemServerDeath < NS_PER_SEC + configAddedTimeNs); in TEST() 1717 EXPECT_EQ(2 + configAddedTimeNs, activation1004->start_ns); in TEST() 1724 processor->onDumpReport(cfgKey1, configAddedTimeNs + NS_PER_SEC, false, true, ADB_DUMP, FAST, in TEST()
|