/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | NetworkUsageStatsTest.java | 355 NetworkStats.Bucket bucket = null; in testDeviceSummary() local 357 bucket = mNsm.querySummaryForDevice( in testDeviceSummary() 363 assertNotNull(bucket); in testDeviceSummary() 364 assertTimestamps(bucket); in testDeviceSummary() 365 assertEquals(bucket.getState(), STATE_ALL); in testDeviceSummary() 366 assertEquals(bucket.getUid(), UID_ALL); in testDeviceSummary() 367 assertEquals(bucket.getMetered(), METERED_ALL); in testDeviceSummary() 368 assertEquals(bucket.getDefaultNetworkStatus(), DEFAULT_NETWORK_ALL); in testDeviceSummary() 371 bucket = mNsm.querySummaryForDevice( in testDeviceSummary() 390 NetworkStats.Bucket bucket = null; in testUserSummary() local [all …]
|
D | UsageStatsTest.java | 337 final int bucket = bucketMap.getOrDefault(mTargetPackage, -1); in testGetAppStandbyBuckets() local 338 assertEquals("Incorrect bucket returned for " + mTargetPackage, bucket, in testGetAppStandbyBuckets() 906 int bucket = bucketMap.getOrDefault(fakePackageName, defaultValue); in testIgnoreNonexistentPackage() local 907 assertFalse("Meaningful bucket value " + bucket + " returned for " + fakePackageName in testIgnoreNonexistentPackage() 908 + " after set-standby-bucket", bucket > 0); in testIgnoreNonexistentPackage() 913 bucket = bucketMap.getOrDefault(fakePackageName, defaultValue); in testIgnoreNonexistentPackage() 914 assertFalse("Meaningful bucket value " + bucket + " returned for " + fakePackageName in testIgnoreNonexistentPackage() 915 + " after get-standby-bucket", bucket > 0); in testIgnoreNonexistentPackage()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | NetstatsIncidentTest.java | 244 for (NetworkStatsHistoryBucketProto bucket : stats.getHistory().getBucketsList()) { in sum() 245 if (startTime < bucket.getBucketStartMs()) { in sum() 248 total += func.apply(bucket); in sum() 358 for (NetworkStatsHistoryBucketProto bucket : hist.getBucketsList()) { in checkStats() 366 prev.getBucketStartMs(), bucket.getBucketStartMs(), in checkStats() 367 (bucket.getBucketStartMs() - prev.getBucketStartMs()), in checkStats() 369 (bucket.getBucketStartMs() - prev.getBucketStartMs()) >= in checkStats() 372 assertNotNegative("RX bytes", bucket.getRxBytes()); in checkStats() 373 assertNotNegative("RX packets", bucket.getRxPackets()); in checkStats() 374 assertNotNegative("TX bytes", bucket.getTxBytes()); in checkStats() [all …]
|
D | GraphicsStatsValidationTest.java | 191 for (GraphicsStatsHistogramBucketProto bucket : proto.getHistogramList()) { 192 if (bucket.getRenderMillis() >= thresholdMs) { 193 totalFrames += bucket.getFrameCount();
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ThemeHostTest.java | 244 final String bucket; in getDensityBucketForDevice() local 247 bucket = "ldpi"; in getDensityBucketForDevice() 250 bucket = "mdpi"; in getDensityBucketForDevice() 253 bucket = "tvdpi"; in getDensityBucketForDevice() 256 bucket = "hdpi"; in getDensityBucketForDevice() 259 bucket = "xhdpi"; in getDensityBucketForDevice() 262 bucket = "xxhdpi"; in getDensityBucketForDevice() 265 bucket = "xxxhdpi"; in getDensityBucketForDevice() 268 bucket = density + "dpi"; in getDensityBucketForDevice() 273 "Device density detected as " + density + " (" + bucket + ")"); in getDensityBucketForDevice() [all …]
|
/cts/hostsidetests/statsd/src/android/cts/statsd/validation/ |
D | ProcStatsValidationTests.java | 98 for (DurationBucketInfo bucket : d.getBucketInfoList()) { in testProcessStateTopDuration() 99 durationInTopStatsd += bucket.getDurationNanos() / 1000 / 1000; in testProcessStateTopDuration() 163 for (DurationBucketInfo bucket : d.getBucketInfoList()) { 164 durationInStatsd += bucket.getDurationNanos() / 1000 / 1000; 228 for (ValueBucketInfo bucket : d.getBucketInfoList()) { 229 valueInStatsd = Math.max(bucket.getValues(0).getValueLong(), valueInStatsd);
|
/cts/hostsidetests/statsd/ |
D | BATTERYSTATS_CONNECTIVITY_STATE_CHANGE_COUNT.pbtxt | 5 bucket: ONE_DAY
|
D | BATTERYSTATS_SERVICE_LAUNCH_COUNT.pbtxt | 17 bucket: ONE_DAY
|
D | BATTERYSTATS_SERVICE_START_COUNT.pbtxt | 17 bucket: ONE_DAY
|
D | PROCSTATSQ_PROCS_STATE_PSS_VALUE.pbtxt | 24 bucket: ONE_MINUTE
|
D | PROCSTATSQ_PULL.pbtxt | 8 bucket: ONE_DAY
|
D | PROCSTATSQ_PULL_PKG_PROC.pbtxt | 8 bucket: ONE_DAY
|
D | PROCSTATSQ_PROCS_STATE_CACHED_EMPTY_DURATION.pbtxt | 19 bucket: ONE_MINUTE
|
D | PROCSTATSQ_PROCS_STATE_TOP_DURATION.pbtxt | 19 bucket: ONE_MINUTE
|
/cts/hostsidetests/usage/src/android/app/usage/cts/ |
D | AppIdleHostTest.java | 123 private void setAppStandbyBucket(String packageName, int bucket) throws Exception { in setAppStandbyBucket() argument 125 String.format("am set-standby-bucket %s %s", packageName, bucket)); in setAppStandbyBucket()
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | BackgroundRestrictedAlarmsTest.java | 173 private void setAppStandbyBucket(String bucket) throws IOException { in setAppStandbyBucket() argument 174 mUiDevice.executeShellCommand("am set-standby-bucket " + TEST_APP_PACKAGE + " " + bucket); in setAppStandbyBucket()
|
D | AppStandbyTests.java | 474 private void setAppStandbyBucket(String bucket) throws IOException { in setAppStandbyBucket() argument 475 executeAndLog("am set-standby-bucket " + TEST_APP_PACKAGE + " " + bucket); in setAppStandbyBucket()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | JobThrottlingTest.java | 375 private void setTestPackageStandbyBucket(Bucket bucket) throws Exception { in setTestPackageStandbyBucket() argument 377 switch (bucket) { in setTestPackageStandbyBucket() 394 throw new IllegalArgumentException("Requested unknown bucket " + bucket); in setTestPackageStandbyBucket()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | DebugTest.java | 250 String bucket = buckets[i]; in checkHistogram() local 251 assertTrue(bucket.length() > 0); in checkHistogram() 252 String[] kv = bucket.split(":"); in checkHistogram()
|
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/ |
D | CountMetricsTests.java | 304 for (CountBucketInfo bucket : data2.getBucketInfoList()) { in testPartialBucketCountMetric() 305 totalCount += bucket.getCount(); in testPartialBucketCountMetric()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | VideoEncoderTest.java | 937 Set<Size> bucket = (dx + dy == 0) ? minMax : nearMinMax; in addExtremeSizesFor() local 941 bucket.add(new Size(width, height)); in addExtremeSizesFor() 950 bucket.add(new Size(width, height)); in addExtremeSizesFor() 958 bucket.add(new Size(width, height)); in addExtremeSizesFor() 967 bucket.add(new Size(width, height)); in addExtremeSizesFor()
|
/cts/hostsidetests/theme/ |
D | README | 87 a set for each possible DPI bucket (tvdpi, xxhdpi, etc.) that may be tested.
|