Home
last modified time | relevance | path

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

/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java355 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 …]
DUsageStatsTest.java337 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/
DNetstatsIncidentTest.java244 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 …]
DGraphicsStatsValidationTest.java191 for (GraphicsStatsHistogramBucketProto bucket : proto.getHistogramList()) {
192 if (bucket.getRenderMillis() >= thresholdMs) {
193 totalFrames += bucket.getFrameCount();
/cts/hostsidetests/theme/src/android/theme/cts/
DThemeHostTest.java244 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/
DProcStatsValidationTests.java98 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/
DBATTERYSTATS_CONNECTIVITY_STATE_CHANGE_COUNT.pbtxt5 bucket: ONE_DAY
DBATTERYSTATS_SERVICE_LAUNCH_COUNT.pbtxt17 bucket: ONE_DAY
DBATTERYSTATS_SERVICE_START_COUNT.pbtxt17 bucket: ONE_DAY
DPROCSTATSQ_PROCS_STATE_PSS_VALUE.pbtxt24 bucket: ONE_MINUTE
DPROCSTATSQ_PULL.pbtxt8 bucket: ONE_DAY
DPROCSTATSQ_PULL_PKG_PROC.pbtxt8 bucket: ONE_DAY
DPROCSTATSQ_PROCS_STATE_CACHED_EMPTY_DURATION.pbtxt19 bucket: ONE_MINUTE
DPROCSTATSQ_PROCS_STATE_TOP_DURATION.pbtxt19 bucket: ONE_MINUTE
/cts/hostsidetests/usage/src/android/app/usage/cts/
DAppIdleHostTest.java123 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/
DBackgroundRestrictedAlarmsTest.java173 private void setAppStandbyBucket(String bucket) throws IOException { in setAppStandbyBucket() argument
174 mUiDevice.executeShellCommand("am set-standby-bucket " + TEST_APP_PACKAGE + " " + bucket); in setAppStandbyBucket()
DAppStandbyTests.java474 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/
DJobThrottlingTest.java375 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/
DDebugTest.java250 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/
DCountMetricsTests.java304 for (CountBucketInfo bucket : data2.getBucketInfoList()) { in testPartialBucketCountMetric()
305 totalCount += bucket.getCount(); in testPartialBucketCountMetric()
/cts/tests/tests/media/src/android/media/cts/
DVideoEncoderTest.java937 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/
DREADME87 a set for each possible DPI bucket (tvdpi, xxhdpi, etc.) that may be tested.