Home
last modified time | relevance | path

Searched refs:Bucket (Results 1 – 25 of 48) sorted by relevance

12

/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java130 private class Bucket { class in BackgroundScanScheduler
136 Bucket(int period) { in Bucket() method in BackgroundScanScheduler.Bucket
146 Bucket(Bucket originalBucket) { in Bucket() method in BackgroundScanScheduler.Bucket
250 private final Comparator<Bucket> mTimePeriodSortComparator =
251 new Comparator<Bucket>() {
252 public int compare(Bucket b1, Bucket b2) {
256 private final Bucket[] mBuckets;
260 mBuckets = new Bucket[PREDEFINED_BUCKET_PERIODS.length]; in BucketList()
275 public Bucket getOrCreate(int index) { in getOrCreate()
276 Bucket bucket = mBuckets[index]; in getOrCreate()
[all …]
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetworkStatsUtils.java110 NetworkStats.Bucket bucket = new NetworkStats.Bucket(); in fromPublicNetworkStats()
119 public static android.net.NetworkStats.Entry fromBucket(NetworkStats.Bucket bucket) { in fromBucket()
131 case NetworkStats.Bucket.STATE_ALL: return SET_ALL; in convertBucketState()
132 case NetworkStats.Bucket.STATE_DEFAULT: return android.net.NetworkStats.SET_DEFAULT; in convertBucketState()
133 case NetworkStats.Bucket.STATE_FOREGROUND: in convertBucketState()
141 case NetworkStats.Bucket.TAG_NONE: return android.net.NetworkStats.TAG_NONE; in convertBucketTag()
148 case NetworkStats.Bucket.METERED_ALL: return METERED_ALL; in convertBucketMetered()
149 case NetworkStats.Bucket.METERED_NO: return android.net.NetworkStats.METERED_NO; in convertBucketMetered()
150 case NetworkStats.Bucket.METERED_YES: return android.net.NetworkStats.METERED_YES; in convertBucketMetered()
157 case NetworkStats.Bucket.ROAMING_ALL: return ROAMING_ALL; in convertBucketRoaming()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DNetworkStatsRepository.kt32 state: Int = NetworkStats.Bucket.STATE_ALL, in queryAggregateForUid()
35 template, range.lower, range.upper, uid, NetworkStats.Bucket.TAG_NONE, state, in queryAggregateForUid()
42 fun queryDetailsForDevice(): List<Bucket> = try { in queryDetailsForDevice()
59 fun queryBuckets(startTime: Long, endTime: Long): List<Bucket> = try { in queryBuckets()
71 data class Bucket( dataClass
74 val state: Int = NetworkStats.Bucket.STATE_ALL,
79 fun List<Bucket>.aggregate(): NetworkUsageData? = when { in List()
88 fun List<Bucket>.filterTime(startTime: Long, endTime: Long): List<Bucket> = filter { in <lambda>()
92 private fun NetworkStats.convertToBuckets(): List<Bucket> = use { in <lambda>()
93 val buckets = mutableListOf<Bucket>() in <lambda>()
[all …]
DAppDataUsageRepository.kt32 import com.android.settings.datausage.lib.NetworkStatsRepository.Companion.Bucket in <lambda>()
51 fun getAppPercent(carrierId: Int?, buckets: List<Bucket>): List<Pair<AppItem, Int>> { in <lambda>()
106 buckets: List<Bucket>, in <lambda>()
137 collapseKey = NetworkStats.Bucket.UID_REMOVED in <lambda>()
145 } else if (uid == NetworkStats.Bucket.UID_REMOVED || in <lambda>()
146 uid == NetworkStats.Bucket.UID_TETHERING || in <lambda>()
188 bucket: Bucket, in <lambda>()
DNetworkCycleBucketRepository.kt25 import com.android.settings.datausage.lib.NetworkStatsRepository.Companion.Bucket
32 private val buckets: List<Bucket>,
/packages/modules/Connectivity/framework-t/src/android/app/usage/
DNetworkStats.java76 private int mState = Bucket.STATE_ALL;
136 public static class Bucket { class in NetworkStats
345 public Bucket() { in Bucket() method in NetworkStats.Bucket
482 public boolean getNextBucket(@Nullable Bucket bucketOut) { in getNextBucket()
529 Bucket getDeviceSummaryForNetwork() throws RemoteException { in getDeviceSummaryForNetwork()
565 Bucket.convertSet(state), tag, NetworkStatsHistory.FIELD_ALL, in startHistoryUidEnumeration()
635 private void fillBucketFromSummaryEntry(Bucket bucketOut) { in fillBucketFromSummaryEntry()
636 bucketOut.mUid = Bucket.convertUid(mRecycledSummaryEntry.uid); in fillBucketFromSummaryEntry()
637 bucketOut.mTag = Bucket.convertTag(mRecycledSummaryEntry.tag); in fillBucketFromSummaryEntry()
638 bucketOut.mState = Bucket.convertState(mRecycledSummaryEntry.set); in fillBucketFromSummaryEntry()
[all …]
DNetworkStatsManager.java34 import android.app.usage.NetworkStats.Bucket;
248 public Bucket querySummaryForDevice(@NonNull NetworkTemplate template, in querySummaryForDevice()
254 Bucket bucket = stats.getDeviceSummaryForNetwork(); in querySummaryForDevice()
297 public Bucket querySummaryForDevice(int networkType, @Nullable String subscriberId, in querySummaryForDevice()
342 public Bucket querySummaryForUser(int networkType, @Nullable String subscriberId, in querySummaryForUser()
541 NetworkStats.Bucket.TAG_NONE, NetworkStats.Bucket.STATE_ALL); in queryDetailsForUid()
549 NetworkStats.Bucket.TAG_NONE, NetworkStats.Bucket.STATE_ALL); in queryDetailsForUid()
597 tag, NetworkStats.Bucket.STATE_ALL); in queryDetailsForUidTag()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DIntHistogram.java34 public class IntHistogram implements Iterable<IntHistogram.Bucket> {
52 public static class Bucket { class in IntHistogram
57 public Bucket(int start, int end, int count) { in Bucket() method in IntHistogram.Bucket
119 public Bucket getBucketByIndex(int bucketIndex) { in getBucketByIndex()
126 return new Bucket(start, end, count); in getBucketByIndex()
161 for (Bucket bucket : this) { in quantileFunction()
166 Bucket hitBucket = null; in quantileFunction()
167 for (Bucket bucket : this) { in quantileFunction()
234 public Iterator<Bucket> iterator() { in iterator()
235 return new Iterator<Bucket>() { in iterator()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DAppDataUsageDetailsRepositoryTest.kt32 import com.android.settings.datausage.lib.NetworkStatsRepository.Companion.Bucket
50 Bucket( in <lambda>()
53 state = NetworkStats.Bucket.STATE_DEFAULT, in <lambda>()
57 Bucket( in <lambda>()
60 state = NetworkStats.Bucket.STATE_FOREGROUND, in <lambda>()
91 Bucket( in <lambda>()
94 state = NetworkStats.Bucket.STATE_DEFAULT, in <lambda>()
98 Bucket( in <lambda>()
101 state = NetworkStats.Bucket.STATE_FOREGROUND, in <lambda>()
132 Bucket( in <lambda>()
DNetworkCycleBucketRepositoryTest.kt26 import com.android.settings.datausage.lib.NetworkStatsRepository.Companion.Bucket
45 private fun createRepository(buckets: List<Bucket>) = NetworkCycleBucketRepository( in createRepository()
64 Bucket( in createRepository()
94 Bucket( in loadCycles_policyHasNoCycle_asFourWeeks()
121 Bucket( in loadCycles_noPolicy_asFourWeeks()
150 Bucket( in queryChartData()
156 Bucket( in queryChartData()
DAppDataUsageRepositoryTest.kt29 import com.android.settings.datausage.lib.NetworkStatsRepository.Companion.Bucket
80 Bucket(uid = APP_ID_1, bytes = 1, startTimeStamp = 0, endTimeStamp = 0), in getAppPercent_noAppToHide()
81 Bucket(uid = APP_ID_2, bytes = 2, startTimeStamp = 0, endTimeStamp = 0), in getAppPercent_noAppToHide()
110 Bucket(uid = APP_ID_1, bytes = 1, startTimeStamp = 0, endTimeStamp = 0), in getAppPercent_hasAppToHide()
111 Bucket(uid = APP_ID_2, bytes = 2, startTimeStamp = 0, endTimeStamp = 0), in getAppPercent_hasAppToHide()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/
DStringHistogramEncoderTest.java55 EventVector eventVector, List<LocalIndexHistogram.Bucket> buckets) { in createEvent()
106 LocalIndexHistogram.Bucket.newBuilder() in multipleEventsDisjointStrings()
110 LocalIndexHistogram.Bucket.newBuilder() in multipleEventsDisjointStrings()
118 LocalIndexHistogram.Bucket.newBuilder() in multipleEventsDisjointStrings()
126 LocalIndexHistogram.Bucket.newBuilder() in multipleEventsDisjointStrings()
178 LocalIndexHistogram.Bucket.newBuilder() in multipleEventsSameStrings()
182 LocalIndexHistogram.Bucket.newBuilder() in multipleEventsSameStrings()
190 LocalIndexHistogram.Bucket.newBuilder() in multipleEventsSameStrings()
198 LocalIndexHistogram.Bucket.newBuilder() in multipleEventsSameStrings()
246 LocalIndexHistogram.Bucket.newBuilder() in bucketWithInvalidIndexExcluded()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DNetworkStatsUtilsTest.kt81 val bucket = makeMockBucket(android.app.usage.NetworkStats.Bucket.UID_ALL, in testBucketToEntry()
82 android.app.usage.NetworkStats.Bucket.TAG_NONE, in testBucketToEntry()
83 android.app.usage.NetworkStats.Bucket.STATE_DEFAULT, in testBucketToEntry()
84 android.app.usage.NetworkStats.Bucket.METERED_YES, in testBucketToEntry()
85 android.app.usage.NetworkStats.Bucket.ROAMING_NO, in testBucketToEntry()
86 android.app.usage.NetworkStats.Bucket.DEFAULT_NETWORK_ALL, 1024, 8, 2048, 12) in testBucketToEntry()
109 ): android.app.usage.NetworkStats.Bucket { in makeMockBucket()
110 val ret: android.app.usage.NetworkStats.Bucket = in makeMockBucket()
111 mock(android.app.usage.NetworkStats.Bucket::class.java) in makeMockBucket()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkStatsManagerTest.java18 import static android.app.usage.NetworkStats.Bucket.DEFAULT_NETWORK_ALL;
19 import static android.app.usage.NetworkStats.Bucket.DEFAULT_NETWORK_NO;
20 import static android.app.usage.NetworkStats.Bucket.DEFAULT_NETWORK_YES;
21 import static android.app.usage.NetworkStats.Bucket.METERED_ALL;
22 import static android.app.usage.NetworkStats.Bucket.METERED_NO;
23 import static android.app.usage.NetworkStats.Bucket.METERED_YES;
24 import static android.app.usage.NetworkStats.Bucket.ROAMING_ALL;
25 import static android.app.usage.NetworkStats.Bucket.ROAMING_NO;
26 import static android.app.usage.NetworkStats.Bucket.ROAMING_YES;
27 import static android.app.usage.NetworkStats.Bucket.STATE_ALL;
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DAppDataUsagePreferenceControllerTest.java19 import static android.app.usage.NetworkStats.Bucket.UID_TETHERING;
94 private final Queue<NetworkStats.Bucket> mMockedBuckets = new LinkedBlockingQueue<>();
103 public void addBucket(NetworkStats.Bucket bucket) { in addBucket()
113 public NetworkStats.Bucket getNextBucket(@NonNull NetworkStats unused) { in getNextBucket()
137 private NetworkStats.Bucket getMockBucket(int uid, long rxBytes, long txBytes) { in getMockBucket()
138 NetworkStats.Bucket ret = mock(NetworkStats.Bucket.class); in getMockBucket()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/net/
DFakeNetworkStats.java26 private final ArrayDeque<NetworkStats.Bucket> mBuckets = new ArrayDeque<>();
38 public NetworkStats.Bucket getNextBucket() { in getNextBucket()
46 public void add(NetworkStats.Bucket bucket) { in add()
54 public static class CustomBucket extends NetworkStats.Bucket {
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DAppDataUsagePreferenceController.java19 import static android.app.usage.NetworkStats.Bucket.UID_REMOVED;
20 import static android.app.usage.NetworkStats.Bucket.UID_TETHERING;
83 NetworkStats.Bucket getNextBucket(@NonNull NetworkStats stats) { in getNextBucket()
84 NetworkStats.Bucket bucket = new NetworkStats.Bucket(); in getNextBucket()
104 NetworkStats.Bucket entry = getNextBucket(stats); in onDataLoaded()
120 NetworkStats.Bucket entry, List<UserInfo> profiles) { in aggregateDataUsage()
232 NetworkStats.Bucket entry, int itemCategory, List<AppItem> items) { in accumulate()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/net/
DNetworkStatsWrapper.java37 public NetworkStats.Bucket getNextBucket() { in getNextBucket()
42 NetworkStats.Bucket bucket = new NetworkStats.Bucket(); in getNextBucket()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/data/
DLogAggregators.java21 import com.google.cobalt.LocalIndexHistogram.Bucket;
105 .addBuckets(Bucket.newBuilder().setIndex(stringHash.listIndex()).setCount(1)) in getInitial()
125 Bucket bucket = updatedHistogram.getBuckets(i); in aggregate()
135 Bucket.newBuilder().setIndex(stringHash.listIndex()).setCount(1)); in aggregate()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/data/
DLogAggregatorsTest.java23 import com.google.cobalt.LocalIndexHistogram.Bucket;
46 .addBuckets(Bucket.newBuilder().setIndex(index).setCount(count))) in indexHistogramAggregate()
56 .addBuckets(Bucket.newBuilder().setIndex(index1).setCount(count1)) in indexHistogramAggregate()
57 .addBuckets(Bucket.newBuilder().setIndex(index2).setCount(count2))) in indexHistogramAggregate()
/packages/modules/Connectivity/framework-t/hiddenapi/
Dhiddenapi-max-target-o-low-priority-tiramisu.txt1 Landroid/app/usage/NetworkStats$Bucket;->convertDefaultNetworkStatus(I)I
2 Landroid/app/usage/NetworkStats$Bucket;->convertMetered(I)I
3 Landroid/app/usage/NetworkStats$Bucket;->convertRoaming(I)I
4 Landroid/app/usage/NetworkStats$Bucket;->convertSet(I)I
5 Landroid/app/usage/NetworkStats$Bucket;->convertState(I)I
6 Landroid/app/usage/NetworkStats$Bucket;->convertTag(I)I
7 Landroid/app/usage/NetworkStats$Bucket;->convertUid(I)I
8 Landroid/app/usage/NetworkStats$Bucket;->mBeginTimeStamp:J
9 Landroid/app/usage/NetworkStats$Bucket;->mDefaultNetworkStatus:I
10 Landroid/app/usage/NetworkStats$Bucket;->mEndTimeStamp:J
[all …]
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DNetworkStatsIntegrationTest.kt22 import android.app.usage.NetworkStats.Bucket in <lambda>()
23 import android.app.usage.NetworkStats.Bucket.TAG_NONE in <lambda>()
299 genHttpTrafficWithTag(network, uploadSize, downloadSize, NetworkStats.Bucket.TAG_NONE) in <lambda>()
427 Bucket.STATE_ALL in <lambda>()
467 private fun NetworkStats.buckets() = object : Iterable<NetworkStats.Bucket> { in <lambda>()
468 override fun iterator() = object : Iterator<NetworkStats.Bucket> { in <lambda>()
471 NetworkStats.Bucket().also { assertTrue(getNextBucket(it)) } in <lambda>()
/packages/modules/Connectivity/tests/unit/java/android/app/usage/
DNetworkStatsManagerTest.java145 NetworkStats.Bucket bucket = new NetworkStats.Bucket(); in testQueryDetails()
239 .setMeteredness(NetworkStats.Bucket.METERED_YES).build(); in testQueryTaggedSummary()
260 .setMeteredness(NetworkStats.Bucket.METERED_YES).build(); in testQueryDetailsForDevice()
269 private void assertBucketMatches(Entry expected, NetworkStats.Bucket actual) { in assertBucketMatches()
/packages/services/Car/tests/BugReportApp/libs/
Dgoogle-api-services-storage-v1-rev158-1.25.0.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/maven/ META- ...
/packages/modules/AdServices/adservices/libraries/cobalt/proto/
Daggregate_value.proto35 message Bucket { message
42 repeated Bucket buckets = 1;

12