Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java19 import static android.net.NetworkStatsHistory.DataStreamUtils.readVarLong;
20 import static android.net.NetworkStatsHistory.DataStreamUtils.writeVarLong;
21 import static android.net.NetworkStatsHistory.Entry.UNKNOWN;
22 import static android.net.NetworkStatsHistory.FIELD_ALL;
23 import static android.net.NetworkStatsHistory.FIELD_OPERATIONS;
24 import static android.net.NetworkStatsHistory.FIELD_RX_BYTES;
25 import static android.net.NetworkStatsHistory.FIELD_RX_PACKETS;
26 import static android.net.NetworkStatsHistory.FIELD_TX_BYTES;
66 private NetworkStatsHistory stats;
81 NetworkStatsHistory.Entry entry = null; in testReadOriginalVersion()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DChartData.java19 import android.net.NetworkStatsHistory;
22 public NetworkStatsHistory network;
24 public NetworkStatsHistory detail;
25 public NetworkStatsHistory detailDefault;
26 public NetworkStatsHistory detailForeground;
DChartDataLoader.java22 import static android.net.NetworkStatsHistory.FIELD_RX_BYTES;
23 import static android.net.NetworkStatsHistory.FIELD_TX_BYTES;
29 import android.net.NetworkStatsHistory;
106 data.detail = new NetworkStatsHistory(data.detailForeground.getBucketDuration()); in loadInBackground()
110 data.detailDefault = new NetworkStatsHistory(HOUR_IN_MILLIS); in loadInBackground()
111 data.detailForeground = new NetworkStatsHistory(HOUR_IN_MILLIS); in loadInBackground()
112 data.detail = new NetworkStatsHistory(HOUR_IN_MILLIS); in loadInBackground()
135 private NetworkStatsHistory collectHistoryForUid( in collectHistoryForUid()
136 NetworkTemplate template, int uid, int set, NetworkStatsHistory existing) in collectHistoryForUid()
138 final NetworkStatsHistory history = mSession.getHistoryForUid( in collectHistoryForUid()
DNetworkCycleDataLoader.java19 import static android.net.NetworkStatsHistory.FIELD_RX_BYTES;
20 import static android.net.NetworkStatsHistory.FIELD_TX_BYTES;
29 import android.net.NetworkStatsHistory;
117 final NetworkStatsHistory networkHistory = networkSession.getHistoryForNetwork( in loadFourWeeksData()
DDataUsageController.java20 import static android.net.NetworkStatsHistory.FIELD_RX_BYTES;
21 import static android.net.NetworkStatsHistory.FIELD_TX_BYTES;
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java37 import android.net.NetworkStatsHistory;
97 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>();
242 public NetworkStatsHistory getHistory(NetworkTemplate template, SubscriptionPlan augmentPlan, in getHistory()
254 final NetworkStatsHistory combined = new NetworkStatsHistory( in getHistory()
296 final NetworkStatsHistory value = mStats.valueAt(i); in getHistory()
302 final NetworkStatsHistory.Entry entry = combined.getValues( in getHistory()
342 final NetworkStatsHistory sliced = new NetworkStatsHistory( in getHistory()
365 NetworkStatsHistory.Entry historyEntry = null; in getSummary()
372 final NetworkStatsHistory value = mStats.valueAt(i); in getSummary()
403 final NetworkStatsHistory history = findOrCreateHistory(ident, uid, set, tag); in recordData()
[all …]
DNetworkStatsObservers.java26 import android.net.NetworkStatsHistory;
408 NetworkStatsHistory history = mCollection.getHistory(template, null, uid, in getTotalBytesForNetworkUid()
410 NetworkStatsHistory.FIELD_ALL, in getTotalBytesForNetworkUid()
DNetworkStatsService.java45 import static android.net.NetworkStatsHistory.FIELD_ALL;
103 import android.net.NetworkStatsHistory;
712 public NetworkStatsHistory getHistoryForNetwork(NetworkTemplate template, int fields) { in openSessionInternal()
737 public NetworkStatsHistory getHistoryForUid( in openSessionInternal()
750 public NetworkStatsHistory getHistoryIntervalForUid( in openSessionInternal()
809 final NetworkStatsHistory history = internalGetHistoryForNetwork(template, flags, FIELD_ALL, in internalGetSummaryForNetwork()
813 final NetworkStatsHistory.Entry entry = history.getValues(start, end, now, null); in internalGetSummaryForNetwork()
826 private NetworkStatsHistory internalGetHistoryForNetwork(NetworkTemplate template, in internalGetHistoryForNetwork()
DNetworkStatsRecorder.java26 import android.net.NetworkStatsHistory;
/frameworks/base/core/java/android/net/
DINetworkStatsSession.aidl20 import android.net.NetworkStatsHistory;
34 NetworkStatsHistory getHistoryForNetwork(in NetworkTemplate template, int fields); in getHistoryForNetwork()
41NetworkStatsHistory getHistoryForUid(in NetworkTemplate template, int uid, int set, int tag, int f… in getHistoryForUid()
43NetworkStatsHistory getHistoryIntervalForUid(in NetworkTemplate template, int uid, int set, int ta… in getHistoryIntervalForUid()
DNetworkStatsHistory.java23 import static android.net.NetworkStatsHistory.DataStreamUtils.readFullLongArray;
24 import static android.net.NetworkStatsHistory.DataStreamUtils.readVarLongArray;
25 import static android.net.NetworkStatsHistory.DataStreamUtils.writeVarLongArray;
26 import static android.net.NetworkStatsHistory.Entry.UNKNOWN;
27 import static android.net.NetworkStatsHistory.ParcelUtils.readLongArray;
28 import static android.net.NetworkStatsHistory.ParcelUtils.writeLongArray;
65 public class NetworkStatsHistory implements Parcelable { class
110 public NetworkStatsHistory(long bucketDuration) { in NetworkStatsHistory() method in NetworkStatsHistory
114 public NetworkStatsHistory(long bucketDuration, int initialSize) { in NetworkStatsHistory() method in NetworkStatsHistory
118 public NetworkStatsHistory(long bucketDuration, int initialSize, int fields) { in NetworkStatsHistory() method in NetworkStatsHistory
[all …]
DNetworkStatsHistory.aidl19 parcelable NetworkStatsHistory;
DINetworkStatsService.aidl24 import android.net.NetworkStatsHistory;
/frameworks/base/tests/net/java/android/app/usage/
DNetworkStatsManagerTest.java37 import android.net.NetworkStatsHistory;
97 NetworkStatsHistory history1 = new NetworkStatsHistory(10, 2); in testQueryDetails()
101 NetworkStatsHistory history2 = new NetworkStatsHistory(10, 2); in testQueryDetails()
112 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime))) in testQueryDetails()
123 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime))) in testQueryDetails()
184 .thenReturn(new NetworkStatsHistory(10, 0)); in testQueryDetails_NoSubscriberId()
192 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime)); in testQueryDetails_NoSubscriberId()
200 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime)); in testQueryDetails_NoSubscriberId()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java23 import android.net.NetworkStatsHistory;
90 private NetworkStatsHistory mHistory = null;
101 private NetworkStatsHistory.Entry mRecycledHistoryEntry = null;
552 Bucket.convertSet(state), tag, NetworkStatsHistory.FIELD_ALL, in startHistoryEnumeration()
574 NetworkStatsHistory history = mSession.getHistoryIntervalForUid(mTemplate, uid, in startUserUidEnumeration()
576 NetworkStatsHistory.FIELD_ALL, mStartTimeStamp, mEndTimeStamp); in startUserUidEnumeration()
599 NetworkStatsHistory.FIELD_ALL, mStartTimeStamp, mEndTimeStamp); in stepHistory()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataLoaderTest.java34 import android.net.NetworkStatsHistory;
141 final NetworkStatsHistory networkHistory = mock(NetworkStatsHistory.class); in loadFourWeeksData_shouldRecordUsageForLast4Weeks()
DDataUsageControllerTest.java35 import android.net.NetworkStatsHistory;
71 private NetworkStatsHistory mNetworkStatsHistory;
84 new NetworkStatsHistory(DateUtils.DAY_IN_MILLIS /* bucketDuration */)); in setUp()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsCollectionTest.java24 import static android.net.NetworkStatsHistory.FIELD_ALL;
41 import android.net.NetworkStatsHistory;
308 NetworkStatsHistory history; in testAugmentPlan()
355 NetworkStatsHistory history; in testAugmentPlan()
410 NetworkStatsHistory history; in testAugmentPlan()
545 private static NetworkStatsHistory getHistory(NetworkStatsCollection collection, in getHistory()
574 NetworkStatsHistory.Entry actual) { in assertEntry()
579 NetworkStatsHistory.Entry actual) { in assertEntry()
DNetworkStatsServiceTest.java43 import static android.net.NetworkStatsHistory.FIELD_ALL;
84 import android.net.NetworkStatsHistory;
374 NetworkStatsHistory history = null;
1209 final NetworkStatsHistory history = mSession.getHistoryForNetwork(template, FIELD_ALL);
1228 final NetworkStatsHistory history = mSession.getHistoryForUid(
1321 private static void assertValues(NetworkStatsHistory stats, long start, long end, long rxBytes,
1323 final NetworkStatsHistory.Entry entry = stats.getValues(start, end, null);
/frameworks/base/core/proto/android/service/
Dnetstats.proto123 // Corresponds to NetworkStatsHistory.
133 // Corresponds to each bucket in NetworkStatsHistory.
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java113 import android.net.NetworkStatsHistory;
1103 final NetworkStatsHistory history = new NetworkStatsHistory(TimeUnit.HOURS.toMillis(1));
1109 final NetworkStatsHistory.Entry entry = history.getValues(
1227 final NetworkStatsHistory history = new NetworkStatsHistory(TimeUnit.HOURS.toMillis(1));
1233 final NetworkStatsHistory.Entry entry = history.getValues(
1624 final NetworkStatsHistory history = new NetworkStatsHistory(TimeUnit.HOURS.toMillis(1));
1628 final NetworkStatsHistory.Entry entry = history.getValues(
/frameworks/base/config/
Dboot-profile.txt841 Landroid/net/NetworkStatsHistory$DataStreamUtils;->readVarLong(Ljava/io/DataInputStream;)J
848 Landroid/net/NetworkStatsHistory$DataStreamUtils;->readVarLongArray(Ljava/io/DataInputStream;)[J
849 Landroid/net/NetworkStatsHistory;->setLong([JIJ)V
850 Landroid/net/NetworkStatsHistory;->addLong([JIJ)V
851 Landroid/net/NetworkStatsHistory;->getLong([JIJ)J
Dpreloaded-classes4289 android.net.NetworkStatsHistory$1
4290 android.net.NetworkStatsHistory$DataStreamUtils
4291 android.net.NetworkStatsHistory$Entry
4292 android.net.NetworkStatsHistory$ParcelUtils
4293 android.net.NetworkStatsHistory
Dboot-image-profile.txt14366 HSPLandroid/net/NetworkStatsHistory$DataStreamUtils;->readVarLong(Ljava/io/DataInputStream;)J
14367 HSPLandroid/net/NetworkStatsHistory$DataStreamUtils;->readVarLongArray(Ljava/io/DataInputStream;)[J
14368 HPLandroid/net/NetworkStatsHistory$DataStreamUtils;->writeVarLong(Ljava/io/DataOutputStream;J)V
14369 HPLandroid/net/NetworkStatsHistory$DataStreamUtils;->writeVarLongArray(Ljava/io/DataOutputStream;[J…
14370 HSPLandroid/net/NetworkStatsHistory$Entry;-><init>()V
14371 HPLandroid/net/NetworkStatsHistory$ParcelUtils;->writeLongArray(Landroid/os/Parcel;[JI)V
14372 HSPLandroid/net/NetworkStatsHistory;-><init>(J)V
14373 HPLandroid/net/NetworkStatsHistory;-><init>(JI)V
14374 HSPLandroid/net/NetworkStatsHistory;-><init>(JII)V
14375 HSPLandroid/net/NetworkStatsHistory;-><init>(Ljava/io/DataInputStream;)V
[all …]
/frameworks/base/services/
Dart-profile20492 …indOrCreateHistory(Lcom/android/server/net/NetworkIdentitySet;III)Landroid/net/NetworkStatsHistory;
20493 …/net/NetworkTemplate;Landroid/telephony/SubscriptionPlan;IIIIJJII)Landroid/net/NetworkStatsHistory;
20505 …ecordHistory(Lcom/android/server/net/NetworkStatsCollection$Key;Landroid/net/NetworkStatsHistory;)V
20581 …tsService$1;->getHistoryForNetwork(Landroid/net/NetworkTemplate;I)Landroid/net/NetworkStatsHistory;
20582 …atsService$1;->getHistoryForUid(Landroid/net/NetworkTemplate;IIII)Landroid/net/NetworkStatsHistory;
20583 …$1;->getHistoryIntervalForUid(Landroid/net/NetworkTemplate;IIIIJJ)Landroid/net/NetworkStatsHistory;
20692 …;->internalGetHistoryForNetwork(Landroid/net/NetworkTemplate;IIII)Landroid/net/NetworkStatsHistory;