Searched refs:bucketInfo (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/cmds/statsd/tests/e2e/ |
D | GaugeMetric_e2e_pull_test.cpp | 503 auto bucketInfo = data.bucket_info(0); in TEST() local 504 EXPECT_EQ(1, bucketInfo.atom_size()); in TEST() 505 EXPECT_EQ(1, bucketInfo.elapsed_timestamp_nanos_size()); in TEST() 506 EXPECT_EQ(activationNs, bucketInfo.elapsed_timestamp_nanos(0)); in TEST() 507 EXPECT_EQ(0, bucketInfo.wall_clock_timestamp_nanos_size()); in TEST() 508 EXPECT_EQ(baseTimeNs + 3 * bucketSizeNs, bucketInfo.start_bucket_elapsed_nanos()); in TEST() 509 EXPECT_EQ(baseTimeNs + 4 * bucketSizeNs, bucketInfo.end_bucket_elapsed_nanos()); in TEST() 510 EXPECT_TRUE(bucketInfo.atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST() 511 EXPECT_GT(bucketInfo.atom(0).subsystem_sleep_state().time_millis(), 0); in TEST() 513 bucketInfo = data.bucket_info(1); in TEST() [all …]
|
D | DurationMetric_e2e_test.cpp | 191 auto bucketInfo = data.bucket_info(0); in TEST() local 192 EXPECT_EQ(0, bucketInfo.bucket_num()); in TEST() 193 EXPECT_EQ(durationEndNs - durationStartNs, bucketInfo.duration_nanos()); in TEST() 194 EXPECT_EQ(configAddedTimeNs, bucketInfo.start_bucket_elapsed_nanos()); in TEST() 195 EXPECT_EQ(baseTimeNs + bucketSizeNs, bucketInfo.end_bucket_elapsed_nanos()); in TEST() 360 auto bucketInfo = data.bucket_info(0); in TEST() local 361 EXPECT_EQ(0, bucketInfo.bucket_num()); in TEST() 362 EXPECT_EQ(bucketStartTimeNs, bucketInfo.start_bucket_elapsed_nanos()); in TEST() 363 EXPECT_EQ(expirationNs, bucketInfo.end_bucket_elapsed_nanos()); in TEST() 364 EXPECT_EQ(expirationNs - durationStartNs, bucketInfo.duration_nanos()); in TEST() [all …]
|
D | ValueMetric_pull_e2e_test.cpp | 361 auto bucketInfo = data.bucket_info(0); in TEST() local 362 EXPECT_EQ(baseTimeNs + 3 * bucketSizeNs, bucketInfo.start_bucket_elapsed_nanos()); in TEST() 363 EXPECT_EQ(baseTimeNs + 4 * bucketSizeNs, bucketInfo.end_bucket_elapsed_nanos()); in TEST() 364 EXPECT_EQ(1, bucketInfo.values_size()); in TEST() 366 bucketInfo = data.bucket_info(1); in TEST() 367 EXPECT_EQ(baseTimeNs + 4 * bucketSizeNs, bucketInfo.start_bucket_elapsed_nanos()); in TEST() 368 EXPECT_EQ(baseTimeNs + 5 * bucketSizeNs, bucketInfo.end_bucket_elapsed_nanos()); in TEST() 369 EXPECT_EQ(1, bucketInfo.values_size()); in TEST()
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | CountMetricProducer_test.cpp | 152 const auto& bucketInfo = buckets[0]; in TEST() local 153 EXPECT_EQ(bucketStartTimeNs, bucketInfo.mBucketStartNs); in TEST() 154 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, bucketInfo.mBucketEndNs); in TEST() 155 EXPECT_EQ(1LL, bucketInfo.mCount); in TEST() 208 const auto& bucketInfo = buckets[0]; in TEST() local 209 EXPECT_EQ(bucketStartTimeNs, bucketInfo.mBucketStartNs); in TEST() 210 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, bucketInfo.mBucketEndNs); in TEST() 211 EXPECT_EQ(1LL, bucketInfo.mCount); in TEST()
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManager.java | 587 final AppStandbyInfo bucketInfo = bucketList.get(i); in getAppStandbyBuckets() local 588 bucketMap.put(bucketInfo.mPackageName, bucketInfo.mStandbyBucket); in getAppStandbyBuckets()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 1307 for (AppStandbyInfo bucketInfo : bucketList) { in setAppStandbyBuckets() 1308 final String packageName = bucketInfo.mPackageName; in setAppStandbyBuckets() 1309 final int bucket = bucketInfo.mStandbyBucket; in setAppStandbyBuckets()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerShellCommand.java | 2364 for (AppStandbyInfo bucketInfo : buckets.getList()) { 2365 pw.print(bucketInfo.mPackageName); pw.print(": "); 2366 pw.println(bucketInfo.mStandbyBucket);
|