/frameworks/base/cmds/statsd/tests/metrics/ |
D | MaxDurationTracker_test.cpp | 58 unordered_map<MetricDimensionKey, vector<DurationBucket>> buckets; in TEST() local 78 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, &buckets); in TEST() 79 EXPECT_TRUE(buckets.find(eventKey) != buckets.end()); in TEST() 80 ASSERT_EQ(1u, buckets[eventKey].size()); in TEST() 81 EXPECT_EQ(20LL, buckets[eventKey][0].mDuration); in TEST() 91 unordered_map<MetricDimensionKey, vector<DurationBucket>> buckets; in TEST() local 106 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 40, &buckets); in TEST() 109 EXPECT_TRUE(buckets.find(eventKey) == buckets.end()); in TEST() 111 tracker.flushIfNeeded(bucketStartTimeNs + 3 * bucketSizeNs + 40, &buckets); in TEST() 112 EXPECT_TRUE(buckets.find(eventKey) != buckets.end()); in TEST() [all …]
|
D | OringDurationTracker_test.cpp | 56 unordered_map<MetricDimensionKey, vector<DurationBucket>> buckets; in TEST() local 74 tracker.flushIfNeeded(eventStartTimeNs + bucketSizeNs + 1, &buckets); in TEST() 75 EXPECT_TRUE(buckets.find(eventKey) != buckets.end()); in TEST() 77 ASSERT_EQ(1u, buckets[eventKey].size()); in TEST() 78 EXPECT_EQ(durationTimeNs, buckets[eventKey][0].mDuration); in TEST() 88 unordered_map<MetricDimensionKey, vector<DurationBucket>> buckets; in TEST() local 104 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, &buckets); in TEST() 105 EXPECT_TRUE(buckets.find(eventKey) != buckets.end()); in TEST() 106 ASSERT_EQ(1u, buckets[eventKey].size()); in TEST() 107 EXPECT_EQ(2003LL, buckets[eventKey][0].mDuration); in TEST() [all …]
|
D | DurationMetricProducer_test.cpp | 113 const auto& buckets = durationProducer.mPastBuckets[DEFAULT_METRIC_DIMENSION_KEY]; in TEST() local 114 ASSERT_EQ(2UL, buckets.size()); in TEST() 115 EXPECT_EQ(bucketStartTimeNs, buckets[0].mBucketStartNs); in TEST() 116 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[0].mBucketEndNs); in TEST() 117 EXPECT_EQ(bucketSizeNs - 1LL, buckets[0].mDuration); in TEST() 118 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[1].mBucketStartNs); in TEST() 119 EXPECT_EQ(bucketStartTimeNs + 2 * bucketSizeNs, buckets[1].mBucketEndNs); in TEST() 120 EXPECT_EQ(2LL, buckets[1].mDuration); in TEST() 263 std::vector<DurationBucket> buckets = in TEST_P() local 265 EXPECT_EQ(bucketStartTimeNs, buckets[0].mBucketStartNs); in TEST_P() [all …]
|
D | CountMetricProducer_test.cpp | 118 const auto& buckets = countProducer.mPastBuckets[DEFAULT_METRIC_DIMENSION_KEY]; in TEST() local 119 ASSERT_EQ(1UL, buckets.size()); in TEST() 120 EXPECT_EQ(bucketStartTimeNs, buckets[0].mBucketStartNs); in TEST() 121 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[0].mBucketEndNs); in TEST() 122 EXPECT_EQ(2LL, buckets[0].mCount); in TEST() 184 const auto& buckets = countProducer.mPastBuckets[DEFAULT_METRIC_DIMENSION_KEY]; in TEST() local 185 ASSERT_EQ(1UL, buckets.size()); in TEST() 186 const auto& bucketInfo = buckets[0]; in TEST() 241 const auto& buckets = countProducer.mPastBuckets[DEFAULT_METRIC_DIMENSION_KEY]; in TEST() local 242 ASSERT_EQ(1UL, buckets.size()); in TEST() [all …]
|
/frameworks/ex/common/tools/ |
D | make-iana-tld-pattern.py | 124 def getBucket(buckets, line): argument 126 bucket = buckets.get(letter) 130 buckets[letter] = bucket 134 def makePattern(prefix, suffix, buckets, isWebUrl=False): argument 137 output += getBucket(buckets, 'a').dump(isFirst=True, isWebUrl=isWebUrl) 140 output += getBucket(buckets, chr(letter)).dump(isWebUrl=isWebUrl) 142 output += getBucket(buckets, 'z').dump(isLast=True, isWebUrl=isWebUrl) 158 buckets = {} variable 164 getBucket(buckets, domain[0]).add(domain.strip()) 170 getBucket(buckets, 'xn--').add(result[2:-1]) [all …]
|
/frameworks/native/services/stats/ |
D | StatsHal.cpp | 58 std::vector<int32_t> buckets = chargeCycles.cycleBucket; in reportChargeCycles() local 59 int initialSize = buckets.size(); in reportChargeCycles() 61 buckets.push_back(-1); // Push -1 for buckets that do not exist. in reportChargeCycles() 63 android::util::stats_write(android::util::CHARGE_CYCLES_REPORTED, buckets[0], buckets[1], in reportChargeCycles() 64 buckets[2], buckets[3], buckets[4], buckets[5], buckets[6], buckets[7], buckets[8], in reportChargeCycles() 65 buckets[9]); in reportChargeCycles()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanTestUtil.java | 102 mSettings.buckets = new WifiNative.BucketSettings[0]; in NativeScanSettingsBuilder() 174 mSettings.buckets = Arrays.copyOf(mSettings.buckets, mSettings.num_buckets + 1); in addBucket() 175 mSettings.buckets[mSettings.num_buckets] = bucket; in addBucket() 366 assertNotNull("buckets was null", actual.buckets); in assertNativeScanSettingsEquals() 367 for (int i = 0; i < expected.buckets.length; ++i) { in assertNativeScanSettingsEquals() 368 assertNotNull("buckets[" + i + "] was null", actual.buckets[i]); in assertNativeScanSettingsEquals() 370 expected.buckets[i].period_ms, actual.buckets[i].period_ms); in assertNativeScanSettingsEquals() 372 expected.buckets[i].report_events, actual.buckets[i].report_events); in assertNativeScanSettingsEquals() 375 expected.buckets[i].band, actual.buckets[i].band); in assertNativeScanSettingsEquals() 376 if (expected.buckets[i].band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in assertNativeScanSettingsEquals() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | BackgroundScanSchedulerTest.java | 484 assertBucketChannels(schedule.buckets[0], expectedBucketChannelSet); in optimalScheduleFullyCollapsesDuplicateChannelsInBand() 517 assertBucketChannels(schedule.buckets[0], expectedBucketChannelSet); in optimalScheduleFullyCollapsesDuplicateChannels() 550 assertBucketChannels(schedule.buckets[0], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannels() 554 assertBucketChannels(schedule.buckets[1], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannels() 589 assertBucketChannels(schedule.buckets[0], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannelsAcrossMultipleBuckets() 593 assertBucketChannels(schedule.buckets[1], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannelsAcrossMultipleBuckets() 601 assertBucketChannels(schedule.buckets[2], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannelsAcrossMultipleBuckets() 638 assertBucketChannels(schedule.buckets[0], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannelsWithSplitBuckets() 642 assertBucketChannels(schedule.buckets[1], expectedBucketChannelSet); in optimalSchedulePartiallyCollapsesDuplicateChannelsWithSplitBuckets() 651 Set<Integer> combinedBucketChannelSet = getAllChannels(schedule.buckets[2]); in optimalSchedulePartiallyCollapsesDuplicateChannelsWithSplitBuckets() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelCpuThreadReader.java | 418 int[] buckets = new int[mNumBuckets]; in bucketValues() local 424 buckets[bucketIdx] += values[valuesIdx]; in bucketValues() 427 return buckets; in bucketValues() 434 int[] buckets = new int[mNumBuckets]; in bucketFrequencies() local 435 for (int i = 0; i < buckets.length; i++) { in bucketFrequencies() 436 buckets[i] = (int) frequencies[mBucketStartIndices[i]]; in bucketFrequencies() 438 return buckets; in bucketFrequencies()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | NetworkCycleChartData.java | 40 public Builder setUsageBuckets(List<NetworkCycleData> buckets) { in setUsageBuckets() argument 41 getObject().mUsageBuckets = buckets; in setUsageBuckets()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/synthetic/ |
D | TestInterface.java | 64 int buckets = runtimeSeconds * 1000; in TestInterface() local 65 mLinesLow = new float[buckets * 4]; in TestInterface() 66 mLinesHigh = new float[buckets * 4]; in TestInterface() 67 mLinesValue = new float[buckets * 4]; in TestInterface()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | ScanScheduleUtil.java | 85 if (!bucketEquals(schedule1.buckets[b], schedule2.buckets[b])) { in scheduleEquals()
|
D | BackgroundScanScheduler.java | 439 schedule.buckets = new WifiNative.BucketSettings[bucketList.size()]; in createSchedule() 447 schedule.buckets[bucketId] = in createSchedule() 471 int gcd = schedule.buckets[0].period_ms; in createSchedule() 473 gcd = Rational.gcd(schedule.buckets[b].period_ms, gcd); in createSchedule()
|
D | WifiScanningServiceImpl.java | 1120 WifiNative.BucketSettings activeBucket = mActiveScanSettings.buckets[0]; in activeScanSatisfies() 1210 settings.buckets = new WifiNative.BucketSettings[] {bucketSettings}; in tryToStartNewScan() 1644 WifiNative.BucketSettings bucket = schedule.buckets[b]; in updateSchedule() 1664 WifiNative.BucketSettings bucket = schedule.buckets[b]; in updateSchedule() 2539 WifiNative.BucketSettings bucket = schedule.buckets[b]; in dump()
|
/frameworks/av/media/libnblog/ |
D | PerformanceAnalysis.cpp | 355 std::map<double, int> buckets; in reportPerformance() local 359 buckets[logRound(ms, mBufferPeriod.mMean)] += countPair.second; in reportPerformance() 373 audio_utils_plot_histogram(buckets, title, kLabel, maxHeight).c_str()); in reportPerformance()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareMetrics.java | 798 MetricsUtils.GenericBucket[] buckets) { in histogramToProtoArray() argument 800 new WifiMetricsProto.WifiAwareLog.HistogramBucket[buckets.length]; in histogramToProtoArray() 802 for (int i = 0; i < buckets.length; ++i) { in histogramToProtoArray() 804 protoArray[i].start = buckets[i].start; in histogramToProtoArray() 805 protoArray[i].end = buckets[i].end; in histogramToProtoArray() 806 protoArray[i].count = buckets[i].count; in histogramToProtoArray()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessTracker.java | 588 StringBuilder buckets = new StringBuilder(); in writeEventsLocked() local 591 buckets.append(','); in writeEventsLocked() 593 buckets.append(Long.toString(toWrite[i].colorValueBuckets[j])); in writeEventsLocked() 595 out.attribute(null, ATTR_COLOR_VALUE_BUCKETS, buckets.toString()); in writeEventsLocked() 690 String[] buckets = colorValueBucketsString.split(","); in readEventsLocked() local 691 long[] bucketValues = new long[buckets.length]; in readEventsLocked() 693 bucketValues[i] = Long.parseLong(buckets[i]); in readEventsLocked()
|
/frameworks/native/services/surfaceflinger/TimeStats/ |
D | TimeStats.cpp | 67 auto buckets = std::vector<std::pair<int32_t, int32_t>>(histogram.begin(), histogram.end()); in histogramToProtoByteString() local 68 std::sort(buckets.begin(), buckets.end(), in histogramToProtoByteString() 75 for (const auto& bucket : buckets) { in histogramToProtoByteString()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppIdleHistory.java | 472 ArrayList<AppStandbyInfo> buckets = new ArrayList<>(size); in getAppStandbyBuckets() local 474 buckets.add(new AppStandbyInfo(userHistory.keyAt(i), in getAppStandbyBuckets() 477 return buckets; in getAppStandbyBuckets()
|
/frameworks/base/core/proto/android/service/ |
D | netstats.proto | 130 repeated NetworkStatsHistoryBucketProto buckets = 2; field
|
/frameworks/hardware/interfaces/stats/1.0/ |
D | IStats.hal | 54 * @param chargeCycles A struct with battery charge cycle buckets.
|
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/ |
D | timestats.proto | 77 // Histogram of the delta time. There should be at most 85 buckets ranging
|
/frameworks/base/core/proto/android/telephony/ |
D | enums.proto | 45 // Call setup duration buckets.
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncManager.java | 1977 final SyncAdapterStateFetcher buckets = new SyncAdapterStateFetcher(); in dump() local 1979 dumpSyncState(ipw, buckets); in dump() 2041 protected void dumpPendingSyncs(PrintWriter pw, SyncAdapterStateFetcher buckets) { in dumpPendingSyncs() argument 2051 pw.println(op.dump(null, false, buckets, /*logSafe=*/ false)); in dumpPendingSyncs() 2058 protected void dumpPeriodicSyncs(PrintWriter pw, SyncAdapterStateFetcher buckets) { in dumpPeriodicSyncs() argument 2068 pw.println(op.dump(null, false, buckets, /*logSafe=*/ false)); in dumpPeriodicSyncs() 2125 protected void dumpSyncState(PrintWriter pw, SyncAdapterStateFetcher buckets) { in dumpSyncState() argument 2201 pw.print(activeSyncContext.mSyncOperation.dump(pm, false, buckets, /*logSafe=*/ false)); in dumpSyncState() 2206 dumpPendingSyncs(pw, buckets); in dumpSyncState() 2207 dumpPeriodicSyncs(pw, buckets); in dumpSyncState()
|
/frameworks/base/core/java/android/service/notification/ |
D | ZenModeConfig.java | 409 final int[] buckets = new int[maxHrs + 3]; in generateMinuteBuckets() local 410 buckets[0] = 15; in generateMinuteBuckets() 411 buckets[1] = 30; in generateMinuteBuckets() 412 buckets[2] = 45; in generateMinuteBuckets() 414 buckets[2 + i] = 60 * i; in generateMinuteBuckets() 416 return buckets; in generateMinuteBuckets()
|