/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsHistoryTest.java | 19 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/ |
D | ChartData.java | 19 import android.net.NetworkStatsHistory; 22 public NetworkStatsHistory network; 24 public NetworkStatsHistory detail; 25 public NetworkStatsHistory detailDefault; 26 public NetworkStatsHistory detailForeground;
|
D | ChartDataLoader.java | 22 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()
|
D | NetworkCycleDataLoader.java | 19 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()
|
D | DataUsageController.java | 20 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/ |
D | NetworkStatsCollection.java | 37 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 …]
|
D | NetworkStatsObservers.java | 26 import android.net.NetworkStatsHistory; 408 NetworkStatsHistory history = mCollection.getHistory(template, null, uid, in getTotalBytesForNetworkUid() 410 NetworkStatsHistory.FIELD_ALL, in getTotalBytesForNetworkUid()
|
D | NetworkStatsService.java | 45 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()
|
D | NetworkStatsRecorder.java | 26 import android.net.NetworkStatsHistory;
|
/frameworks/base/core/java/android/net/ |
D | INetworkStatsSession.aidl | 20 import android.net.NetworkStatsHistory; 34 NetworkStatsHistory getHistoryForNetwork(in NetworkTemplate template, int fields); in getHistoryForNetwork() 41 …NetworkStatsHistory getHistoryForUid(in NetworkTemplate template, int uid, int set, int tag, int f… in getHistoryForUid() 43 …NetworkStatsHistory getHistoryIntervalForUid(in NetworkTemplate template, int uid, int set, int ta… in getHistoryIntervalForUid()
|
D | NetworkStatsHistory.java | 23 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 …]
|
D | NetworkStatsHistory.aidl | 19 parcelable NetworkStatsHistory;
|
D | INetworkStatsService.aidl | 24 import android.net.NetworkStatsHistory;
|
/frameworks/base/tests/net/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 37 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/ |
D | NetworkStats.java | 23 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/ |
D | NetworkCycleDataLoaderTest.java | 34 import android.net.NetworkStatsHistory; 141 final NetworkStatsHistory networkHistory = mock(NetworkStatsHistory.class); in loadFourWeeksData_shouldRecordUsageForLast4Weeks()
|
D | DataUsageControllerTest.java | 35 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/ |
D | NetworkStatsCollectionTest.java | 24 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()
|
D | NetworkStatsServiceTest.java | 43 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/ |
D | netstats.proto | 123 // Corresponds to NetworkStatsHistory. 133 // Corresponds to each bucket in NetworkStatsHistory.
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 113 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/ |
D | boot-profile.txt | 841 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
|
D | preloaded-classes | 4289 android.net.NetworkStatsHistory$1 4290 android.net.NetworkStatsHistory$DataStreamUtils 4291 android.net.NetworkStatsHistory$Entry 4292 android.net.NetworkStatsHistory$ParcelUtils 4293 android.net.NetworkStatsHistory
|
D | boot-image-profile.txt | 14366 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/ |
D | art-profile | 20492 …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;
|