/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 19 import static android.net.NetworkStats.DEFAULT_NETWORK_ALL; 20 import static android.net.NetworkStats.DEFAULT_NETWORK_NO; 21 import static android.net.NetworkStats.DEFAULT_NETWORK_YES; 22 import static android.net.NetworkStats.IFACE_ALL; 23 import static android.net.NetworkStats.INTERFACES_ALL; 24 import static android.net.NetworkStats.METERED_ALL; 25 import static android.net.NetworkStats.METERED_NO; 26 import static android.net.NetworkStats.METERED_YES; 27 import static android.net.NetworkStats.ROAMING_ALL; 28 import static android.net.NetworkStats.ROAMING_NO; [all …]
|
D | NetworkStatsHistoryTest.java | 19 import static android.net.NetworkStats.DEFAULT_NETWORK_NO; 20 import static android.net.NetworkStats.IFACE_ALL; 21 import static android.net.NetworkStats.METERED_NO; 22 import static android.net.NetworkStats.ROAMING_NO; 23 import static android.net.NetworkStats.SET_DEFAULT; 24 import static android.net.NetworkStats.TAG_NONE; 25 import static android.net.NetworkStats.UID_ALL; 121 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordSingleBucket() 136 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordEqualBuckets() 154 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordTouchingBuckets() [all …]
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsFactory.java | 19 import static android.net.NetworkStats.INTERFACES_ALL; 20 import static android.net.NetworkStats.TAG_ALL; 21 import static android.net.NetworkStats.UID_ALL; 26 import android.net.NetworkStats; 94 private NetworkStats mPersistSnapshot; 98 private NetworkStats mTunAnd464xlatAdjustedStats; 111 public NetworkStats getNetworkStatsDetail() throws IOException { in getNetworkStatsDetail() 112 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 0); in getNetworkStatsDetail() 124 public NetworkStats getNetworkStatsDev() throws IOException { in getNetworkStatsDev() 125 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6); in getNetworkStatsDev() [all …]
|
D | NetworkStatsService.java | 30 import static android.net.NetworkStats.DEFAULT_NETWORK_ALL; 31 import static android.net.NetworkStats.DEFAULT_NETWORK_NO; 32 import static android.net.NetworkStats.IFACE_ALL; 33 import static android.net.NetworkStats.IFACE_VT; 34 import static android.net.NetworkStats.INTERFACES_ALL; 35 import static android.net.NetworkStats.METERED_ALL; 36 import static android.net.NetworkStats.METERED_NO; 37 import static android.net.NetworkStats.METERED_YES; 38 import static android.net.NetworkStats.ROAMING_ALL; 39 import static android.net.NetworkStats.ROAMING_NO; [all …]
|
D | TrafficStatsRateLimitCache.java | 21 import android.net.NetworkStats; 37 LruCacheWithExpiry<TrafficStatsRateLimitCache.TrafficStatsCacheKey, NetworkStats.Entry> { 82 NetworkStats.Entry get(String iface, int uid) { in get() 99 NetworkStats.Entry getOrCompute(String iface, int uid, in getOrCompute() 100 @NonNull Supplier<NetworkStats.Entry> supplier) { in getOrCompute() 111 void put(String iface, int uid, @NonNull final NetworkStats.Entry entry) { in put()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsFactoryTest.java | 19 import static android.net.NetworkStats.DEFAULT_NETWORK_ALL; 20 import static android.net.NetworkStats.DEFAULT_NETWORK_NO; 21 import static android.net.NetworkStats.METERED_ALL; 22 import static android.net.NetworkStats.METERED_NO; 23 import static android.net.NetworkStats.METERED_YES; 24 import static android.net.NetworkStats.ROAMING_ALL; 25 import static android.net.NetworkStats.ROAMING_NO; 26 import static android.net.NetworkStats.SET_ALL; 27 import static android.net.NetworkStats.SET_DEFAULT; 28 import static android.net.NetworkStats.SET_FOREGROUND; [all …]
|
D | NetworkStatsBaseTest.java | 19 import static android.net.NetworkStats.DEFAULT_NETWORK_ALL; 20 import static android.net.NetworkStats.DEFAULT_NETWORK_NO; 21 import static android.net.NetworkStats.DEFAULT_NETWORK_YES; 22 import static android.net.NetworkStats.METERED_ALL; 23 import static android.net.NetworkStats.METERED_NO; 24 import static android.net.NetworkStats.METERED_YES; 25 import static android.net.NetworkStats.ROAMING_ALL; 26 import static android.net.NetworkStats.ROAMING_NO; 27 import static android.net.NetworkStats.ROAMING_YES; 28 import static android.net.NetworkStats.SET_ALL; [all …]
|
D | NetworkStatsServiceTest.java | 33 import static android.net.NetworkStats.DEFAULT_NETWORK_ALL; 34 import static android.net.NetworkStats.DEFAULT_NETWORK_NO; 35 import static android.net.NetworkStats.DEFAULT_NETWORK_YES; 36 import static android.net.NetworkStats.IFACE_ALL; 37 import static android.net.NetworkStats.INTERFACES_ALL; 38 import static android.net.NetworkStats.METERED_ALL; 39 import static android.net.NetworkStats.METERED_NO; 40 import static android.net.NetworkStats.METERED_YES; 41 import static android.net.NetworkStats.ROAMING_ALL; 42 import static android.net.NetworkStats.ROAMING_NO; [all …]
|
D | NetworkStatsObserversTest.java | 21 import static android.net.NetworkStats.DEFAULT_NETWORK_NO; 22 import static android.net.NetworkStats.DEFAULT_NETWORK_YES; 23 import static android.net.NetworkStats.METERED_NO; 24 import static android.net.NetworkStats.METERED_YES; 25 import static android.net.NetworkStats.ROAMING_NO; 26 import static android.net.NetworkStats.SET_DEFAULT; 27 import static android.net.NetworkStats.TAG_NONE; 45 import android.net.NetworkStats; 323 NetworkStats xtSnapshot = new NetworkStats(TEST_START, 1 /* initialSize */) in testUpdateStats_initialSample_doesNotNotify() 325 NetworkStats uidSnapshot = null; in testUpdateStats_initialSample_doesNotNotify() [all …]
|
/packages/modules/Connectivity/framework-t/src/android/app/usage/ |
D | NetworkStats.java | 42 public final class NetworkStats implements AutoCloseable { class 71 private int mTag = android.net.NetworkStats.TAG_NONE; 88 private android.net.NetworkStats mSummary = null; 103 private android.net.NetworkStats.Entry mRecycledSummaryEntry = null; 107 NetworkStats(Context context, NetworkTemplate template, int flags, long startTimestamp, in NetworkStats() method in NetworkStats 164 public static final int UID_ALL = android.net.NetworkStats.UID_ALL; 269 public static final int TAG_NONE = android.net.NetworkStats.TAG_NONE; 286 case STATE_ALL: return android.net.NetworkStats.SET_ALL; in convertSet() 287 case STATE_DEFAULT: return android.net.NetworkStats.SET_DEFAULT; in convertSet() 288 case STATE_FOREGROUND: return android.net.NetworkStats.SET_FOREGROUND; in convertSet() [all …]
|
D | NetworkStatsManager.java | 22 import static android.net.NetworkStats.METERED_YES; 34 import android.app.usage.NetworkStats.Bucket; 252 NetworkStats stats = in querySummaryForDevice() 253 new NetworkStats(mContext, template, mFlags, startTime, endTime, mService); in querySummaryForDevice() 352 NetworkStats stats; in querySummaryForUser() 353 stats = new NetworkStats(mContext, template, mFlags, startTime, endTime, mService); in querySummaryForUser() 391 public NetworkStats querySummary(int networkType, @Nullable String subscriberId, long startTime, in querySummary() 424 public NetworkStats querySummary(@NonNull NetworkTemplate template, long startTime, in querySummary() 428 NetworkStats result = in querySummary() 429 new NetworkStats(mContext, template, mFlags, startTime, endTime, mService); in querySummary() [all …]
|
/packages/modules/Connectivity/tests/common/java/android/net/netstats/ |
D | NetworkStatsApiTest.kt | 19 import android.net.NetworkStats 20 import android.net.NetworkStats.DEFAULT_NETWORK_NO 21 import android.net.NetworkStats.DEFAULT_NETWORK_YES 22 import android.net.NetworkStats.Entry 23 import android.net.NetworkStats.IFACE_VT 24 import android.net.NetworkStats.METERED_NO 25 import android.net.NetworkStats.METERED_YES 26 import android.net.NetworkStats.ROAMING_NO 27 import android.net.NetworkStats.ROAMING_YES 28 import android.net.NetworkStats.SET_DEFAULT [all …]
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | NetworkStatsUtils.kt | 23 import android.net.NetworkStats in <lambda>() 37 leftStats: NetworkStats, in <lambda>() 38 rightStats: NetworkStats, in <lambda>() 54 val left = NetworkStats.Entry() in <lambda>() 55 val right = NetworkStats.Entry() in <lambda>() 75 fun assertEntryEquals(left: NetworkStats.Entry, right: NetworkStats.Entry) { in assertEntryEquals() 82 fun checkEntryEquals(left: NetworkStats.Entry, right: NetworkStats.Entry): Boolean { in checkEntryEquals() 106 expected: NetworkStats, in assertNetworkStatsEquals() 107 actual: NetworkStats, in assertNetworkStatsEquals() 118 fun assertParcelingIsLossless(stats: NetworkStats) { in assertParcelingIsLossless() [all …]
|
D | TestableNetworkStatsProviderCbBinder.kt | 19 import android.net.NetworkStats 31 val ifaceStats: NetworkStats, 32 val uidStats: NetworkStats 43 override fun notifyStatsUpdated(token: Int, ifaceStats: NetworkStats, uidStats: NetworkStats) { in notifyStatsUpdated() 73 fun expectNotifyStatsUpdated(ifaceStats: NetworkStats, uidStats: NetworkStats) { in expectNotifyStatsUpdated()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/ |
D | NetworkStatsUtilsTest.kt | 19 import android.net.NetworkStats 20 import android.net.NetworkStats.DEFAULT_NETWORK_NO 21 import android.net.NetworkStats.METERED_NO 22 import android.net.NetworkStats.ROAMING_NO 23 import android.net.NetworkStats.SET_DEFAULT 24 import android.net.NetworkStats.TAG_NONE 46 NetworkStats.Entry(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testOrderInsensitiveEquals() 48 NetworkStats.Entry(TEST_IFACE2, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testOrderInsensitiveEquals() 53 val red = NetworkStats(TEST_START, 0) in testOrderInsensitiveEquals() 54 val blue = NetworkStats(TEST_START, 1) in testOrderInsensitiveEquals()
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceControllerTest.java | 19 import static android.app.usage.NetworkStats.Bucket.UID_TETHERING; 28 import android.app.usage.NetworkStats; 94 private final Queue<NetworkStats.Bucket> mMockedBuckets = new LinkedBlockingQueue<>(); 103 public void addBucket(NetworkStats.Bucket bucket) { in addBucket() 108 public boolean hasNextBucket(@NonNull NetworkStats unused) { in hasNextBucket() 113 public NetworkStats.Bucket getNextBucket(@NonNull NetworkStats unused) { in getNextBucket() 132 mPreferenceController.onDataLoaded(mock(NetworkStats.class), new int[0]); in onDataLoaded_statsSizeZero_hasNoPreference() 137 private NetworkStats.Bucket getMockBucket(int uid, long rxBytes, long txBytes) { in getMockBucket() 138 NetworkStats.Bucket ret = mock(NetworkStats.Bucket.class); in getMockBucket() 150 mPreferenceController.onDataLoaded(mock(NetworkStats.class), new int[0]); in onDataLoaded_statsLoaded_hasTwoPreference() [all …]
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStats.java | 66 public final class NetworkStats implements Parcelable, Iterable<NetworkStats.Entry> { class 536 public NetworkStats(long elapsedRealtime, int initialSize) { in NetworkStats() method in NetworkStats 561 public NetworkStats(Parcel parcel) { in NetworkStats() method in NetworkStats 602 public NetworkStats clone() { in clone() 603 final NetworkStats clone = new NetworkStats(elapsedRealtime, size); in clone() 604 NetworkStats.Entry entry = null; in clone() 634 public NetworkStats insertEntry( in insertEntry() 643 public NetworkStats insertEntry(String iface, int uid, int set, int tag, long rxBytes, in insertEntry() 652 public NetworkStats insertEntry(String iface, int uid, int set, int tag, int metered, in insertEntry() 665 public NetworkStats insertEntry(Entry entry) { in insertEntry() [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 21 import static android.net.NetworkStats.DEFAULT_NETWORK_NO; 22 import static android.net.NetworkStats.METERED_NO; 23 import static android.net.NetworkStats.METERED_YES; 24 import static android.net.NetworkStats.ROAMING_NO; 25 import static android.net.NetworkStats.SET_ALL; 26 import static android.net.NetworkStats.SET_DEFAULT; 27 import static android.net.NetworkStats.TAG_NONE; 48 import android.net.NetworkStats.Entry; 142 NetworkStats stats = mManager.queryDetails( in testQueryDetails() 145 NetworkStats.Bucket bucket = new NetworkStats.Bucket(); in testQueryDetails() [all …]
|
/packages/modules/Connectivity/framework-t/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority-tiramisu.txt | 1 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/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | AppsNetworkStatsManager.java | 21 import android.app.usage.NetworkStats; 51 void onDataLoaded(@Nullable NetworkStats stats, @Nullable int[] restrictedUids); in onDataLoaded() 100 private void onAppsNetworkStatsLoaded(NetworkStats stats, int[] restrictedUids) { in onAppsNetworkStatsLoaded() 109 private class AppsNetworkStatsResult implements LoaderManager.LoaderCallbacks<NetworkStats> { 111 public Loader<NetworkStats> onCreateLoader(int id, Bundle args) { in onCreateLoader() 116 public void onLoadFinished(Loader<NetworkStats> loader, NetworkStats data) { in onLoadFinished() 123 public void onLoaderReset(Loader<NetworkStats> loader) { in onLoaderReset()
|
D | AppDataUsagePreferenceController.java | 19 import static android.app.usage.NetworkStats.Bucket.UID_REMOVED; 20 import static android.app.usage.NetworkStats.Bucket.UID_TETHERING; 23 import android.app.usage.NetworkStats; 77 boolean hasNextBucket(@NonNull NetworkStats stats) { in hasNextBucket() 83 NetworkStats.Bucket getNextBucket(@NonNull NetworkStats stats) { in getNextBucket() 84 NetworkStats.Bucket bucket = new NetworkStats.Bucket(); in getNextBucket() 95 public void onDataLoaded(@Nullable NetworkStats stats, @Nullable int[] restrictedUids) { in onDataLoaded() 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/ |
D | NetworkStatsWrapper.java | 21 import android.app.usage.NetworkStats; 28 private final NetworkStats mNetworkStats; 31 public NetworkStatsWrapper(@NonNull NetworkStats networkStats) { in NetworkStatsWrapper() 37 public NetworkStats.Bucket getNextBucket() { in getNextBucket() 42 NetworkStats.Bucket bucket = new NetworkStats.Bucket(); in getNextBucket()
|
/packages/modules/Connectivity/Tethering/apex/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority.txt | 951 Landroid/net/NetworkStats$Entry;-><init>(JJJJJ)V 952 Landroid/net/NetworkStats$Entry;-><init>(Ljava/lang/String;IIIIIIJJJJJ)V 953 Landroid/net/NetworkStats$Entry;-><init>(Ljava/lang/String;IIIJJJJJ)V 954 Landroid/net/NetworkStats$Entry;->add(Landroid/net/NetworkStats$Entry;)V 955 Landroid/net/NetworkStats$Entry;->defaultNetwork:I 956 Landroid/net/NetworkStats$Entry;->isEmpty()Z 957 Landroid/net/NetworkStats$Entry;->isNegative()Z 958 Landroid/net/NetworkStats$Entry;->metered:I 959 Landroid/net/NetworkStats$Entry;->operations:J 960 Landroid/net/NetworkStats$Entry;->roaming:I [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkStatsManagerTest.java | 18 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/Settings/src/com/android/settings/datausage/lib/ |
D | NetworkStatsRepository.kt | 19 import android.app.usage.NetworkStats 32 state: Int = NetworkStats.Bucket.STATE_ALL, in queryAggregateForUid() 35 template, range.lower, range.upper, uid, NetworkStats.Bucket.TAG_NONE, state, in queryAggregateForUid() 74 val state: Int = NetworkStats.Bucket.STATE_ALL, 92 private fun NetworkStats.convertToBuckets(): List<Bucket> = use { in <lambda>() method 94 val bucket = NetworkStats.Bucket() in <lambda>() 109 private val NetworkStats.Bucket.bytes: Long constant
|