Home
last modified time | relevance | path

Searched refs:bucket (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java374 NetworkStats.Bucket bucket = null; in testDeviceSummary() local
376 bucket = mNsm.querySummaryForDevice( in testDeviceSummary()
382 assertNotNull(bucket); in testDeviceSummary()
383 assertTimestamps(bucket); in testDeviceSummary()
384 assertEquals(bucket.getState(), STATE_ALL); in testDeviceSummary()
385 assertEquals(bucket.getUid(), UID_ALL); in testDeviceSummary()
386 assertEquals(bucket.getMetered(), METERED_ALL); in testDeviceSummary()
387 assertEquals(bucket.getDefaultNetworkStatus(), DEFAULT_NETWORK_ALL); in testDeviceSummary()
390 bucket = mNsm.querySummaryForDevice( in testDeviceSummary()
409 NetworkStats.Bucket bucket = null; in testUserSummary() local
[all …]
DUsageStatsTest.java522 final int bucket = bucketMap.getOrDefault(mTargetPackage, -1); in testGetAppStandbyBuckets() local
523 assertEquals("Incorrect bucket returned for " + mTargetPackage, bucket, in testGetAppStandbyBuckets()
1338 int bucket = bucketMap.getOrDefault(fakePackageName, defaultValue); in testIgnoreNonexistentPackage() local
1339 assertFalse("Meaningful bucket value " + bucket + " returned for " + fakePackageName in testIgnoreNonexistentPackage()
1340 + " after set-standby-bucket", bucket > 0); in testIgnoreNonexistentPackage()
1345 bucket = bucketMap.getOrDefault(fakePackageName, defaultValue); in testIgnoreNonexistentPackage()
1346 assertFalse("Meaningful bucket value " + bucket + " returned for " + fakePackageName in testIgnoreNonexistentPackage()
1347 + " after get-standby-bucket", bucket > 0); in testIgnoreNonexistentPackage()
1821 private void setStandByBucket(String packageName, String bucket) throws IOException { in setStandByBucket() argument
1822 executeShellCmd("am set-standby-bucket " + packageName + " " + bucket); in setStandByBucket()
/cts/hostsidetests/theme/src/android/theme/cts/
DThemeHostTest.java242 final String bucket; in getDensityBucketForDevice() local
245 bucket = "ldpi"; in getDensityBucketForDevice()
248 bucket = "mdpi"; in getDensityBucketForDevice()
251 bucket = "tvdpi"; in getDensityBucketForDevice()
254 bucket = "hdpi"; in getDensityBucketForDevice()
257 bucket = "xhdpi"; in getDensityBucketForDevice()
260 bucket = "xxhdpi"; in getDensityBucketForDevice()
263 bucket = "xxxhdpi"; in getDensityBucketForDevice()
266 bucket = density + "dpi"; in getDensityBucketForDevice()
271 "Device density detected as " + density + " (" + bucket + ")"); in getDensityBucketForDevice()
[all …]
/cts/hostsidetests/incident/src/com/android/server/cts/
DGraphicsStatsValidationTest.java240 for (GraphicsStatsHistogramBucketProto bucket : proto.getHistogramList()) {
241 if (bucket.getRenderMillis() >= thresholdMs) {
242 totalFrames += bucket.getFrameCount();
250 for (GraphicsStatsHistogramBucketProto bucket : proto.getGpuHistogramList()) {
251 if (bucket.getRenderMillis() >= thresholdMs) {
252 totalFrames += bucket.getFrameCount();
/cts/hostsidetests/usage/src/android/app/usage/cts/
DAppIdleHostTest.java94 private void setAppStandbyBucket(String packageName, int bucket) throws Exception { in setAppStandbyBucket() argument
96 String.format("am set-standby-bucket %s %s", packageName, bucket)); in setAppStandbyBucket()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DBackgroundRestrictedAlarmsTest.java175 private void setAppStandbyBucket(String bucket) throws IOException { in setAppStandbyBucket() argument
176 mUiDevice.executeShellCommand("am set-standby-bucket " + TEST_APP_PACKAGE + " " + bucket); in setAppStandbyBucket()
DAppStandbyTests.java280 static void setTestAppStandbyBucket(String bucket) throws IOException { in setTestAppStandbyBucket() argument
281 executeAndLog("am set-standby-bucket " + TEST_APP_PACKAGE + " " + bucket); in setTestAppStandbyBucket()
/cts/tests/tests/os/src/android/os/cts/
DDebugTest.java250 String bucket = buckets[i]; in checkHistogram() local
251 assertTrue(bucket.length() > 0); in checkHistogram()
252 String[] kv = bucket.split(":"); in checkHistogram()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DJobThrottlingTest.java1084 void setTestPackageStandbyBucket(Bucket bucket) throws Exception { in setTestPackageStandbyBucket() argument
1085 setTestPackageStandbyBucket(mUiDevice, bucket); in setTestPackageStandbyBucket()
1088 static void setTestPackageStandbyBucket(UiDevice uiDevice, Bucket bucket) throws Exception { in setTestPackageStandbyBucket() argument
1090 switch (bucket) { in setTestPackageStandbyBucket()
1110 throw new IllegalArgumentException("Requested unknown bucket " + bucket); in setTestPackageStandbyBucket()
/cts/tests/tests/media/src/android/media/cts/
DVideoEncoderTest.java979 Set<Size> bucket = (dx + dy == 0) ? minMax : nearMinMax; in addExtremeSizesFor() local
983 bucket.add(new Size(width, height)); in addExtremeSizesFor()
992 bucket.add(new Size(width, height)); in addExtremeSizesFor()
1000 bucket.add(new Size(width, height)); in addExtremeSizesFor()
1009 bucket.add(new Size(width, height)); in addExtremeSizesFor()
/cts/hostsidetests/theme/
DREADME87 a set for each possible DPI bucket (tvdpi, xxhdpi, etc.) that may be tested.