/frameworks/base/core/java/android/net/ |
H A D | NetworkStatsHistory.aidl | 19 parcelable NetworkStatsHistory;
|
H A D | INetworkStatsSession.aidl | 20 import android.net.NetworkStatsHistory; 32 NetworkStatsHistory getHistoryForNetwork(in NetworkTemplate template, int fields); 37 NetworkStatsHistory getHistoryForUid(in NetworkTemplate template, int uid, int set, int tag, int fields); 39 NetworkStatsHistory getHistoryIntervalForUid(in NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end);
|
H A D | INetworkStatsService.aidl | 22 import android.net.NetworkStatsHistory;
|
H A 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; 62 public class NetworkStatsHistory implements Parcelable { class in inherits:Parcelable 100 public NetworkStatsHistory(long bucketDuration) { method in class:NetworkStatsHistory 104 public NetworkStatsHistory(long bucketDuration, int initialSize) { method in class:NetworkStatsHistory 108 public NetworkStatsHistory(lon method in class:NetworkStatsHistory 121 public NetworkStatsHistory(NetworkStatsHistory existing, long bucketDuration) { method in class:NetworkStatsHistory 126 public NetworkStatsHistory(Parcel in) { method in class:NetworkStatsHistory 152 public NetworkStatsHistory(DataInputStream in) throws IOException { method in class:NetworkStatsHistory [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
H A D | ChartData.java | 19 import android.net.NetworkStatsHistory; 22 public NetworkStatsHistory network; 24 public NetworkStatsHistory detail; 25 public NetworkStatsHistory detailDefault; 26 public NetworkStatsHistory detailForeground;
|
H A 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; 103 data.detail = new NetworkStatsHistory(data.detailForeground.getBucketDuration()); 107 data.detailDefault = new NetworkStatsHistory(HOUR_IN_MILLIS); 108 data.detailForeground = new NetworkStatsHistory(HOUR_IN_MILLIS); 109 data.detail = new NetworkStatsHistory(HOUR_IN_MILLIS); 129 * Collect {@link NetworkStatsHistory} for the requested UID, combining with 130 * an existing {@link NetworkStatsHistory} if provided. 132 private NetworkStatsHistory collectHistoryForUi [all...] |
H A D | DataUsageController.java | 20 import static android.net.NetworkStatsHistory.FIELD_RX_BYTES; 21 import static android.net.NetworkStatsHistory.FIELD_TX_BYTES; 33 import android.net.NetworkStatsHistory; 134 final NetworkStatsHistory history = session.getHistoryForNetwork(template, FIELDS); 148 final NetworkStatsHistory.Entry entry = history.getValues(start, end, now, null); 190 private static String historyEntryToString(NetworkStatsHistory.Entry entry) {
|
/frameworks/base/tests/net/java/android/net/ |
H A D | NetworkStatsHistoryTest.java | 19 import static android.net.NetworkStatsHistory.FIELD_ALL; 20 import static android.net.NetworkStatsHistory.FIELD_OPERATIONS; 21 import static android.net.NetworkStatsHistory.FIELD_RX_BYTES; 22 import static android.net.NetworkStatsHistory.FIELD_RX_PACKETS; 23 import static android.net.NetworkStatsHistory.FIELD_TX_BYTES; 24 import static android.net.NetworkStatsHistory.DataStreamUtils.readVarLong; 25 import static android.net.NetworkStatsHistory.DataStreamUtils.writeVarLong; 26 import static android.net.NetworkStatsHistory.Entry.UNKNOWN; 55 private NetworkStatsHistory stats; 69 NetworkStatsHistory [all...] |
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsCollection.java | 35 import android.net.NetworkStatsHistory; 77 * Collection of {@link NetworkStatsHistory}, stored based on combined key of 93 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>(); 230 * Combine all {@link NetworkStatsHistory} in this collection which match 233 public NetworkStatsHistory getHistory(NetworkTemplate template, SubscriptionPlan augmentPlan, 242 final NetworkStatsHistory combined = new NetworkStatsHistory( 284 final NetworkStatsHistory value = mStats.valueAt(i); 290 final NetworkStatsHistory.Entry entry = combined.getValues( 330 final NetworkStatsHistory slice [all...] |
H A D | NetworkStatsObservers.java | 26 import android.net.NetworkStatsHistory; 411 NetworkStatsHistory history = mCollection.getHistory(template, null, uid, 413 NetworkStatsHistory.FIELD_ALL,
|
H A D | NetworkStatsService.java | 38 import static android.net.NetworkStatsHistory.FIELD_ALL; 92 import android.net.NetworkStatsHistory; 555 public NetworkStatsHistory getHistoryForNetwork(NetworkTemplate template, int fields) { 580 public NetworkStatsHistory getHistoryForUid( 593 public NetworkStatsHistory getHistoryIntervalForUid( 662 final NetworkStatsHistory history = internalGetHistoryForNetwork(template, flags, FIELD_ALL, 666 final NetworkStatsHistory.Entry entry = history.getValues(start, end, now, null); 679 private NetworkStatsHistory internalGetHistoryForNetwork(NetworkTemplate template, 997 * iface} to {@link NetworkStatsHistory}. When multiple {@link NetworkInfo} 1160 * {@link NetworkStatsHistory} [all...] |
H A D | NetworkStatsRecorder.java | 29 import android.net.NetworkStatsHistory; 62 * {@link NetworkStatsHistory} that belong to {@link NetworkStatsCollection}. 385 * Rewriter that will remove any {@link NetworkStatsHistory} attributed to
|
/frameworks/base/core/java/android/app/usage/ |
H A D | NetworkStats.java | 23 import android.net.NetworkStatsHistory; 86 private NetworkStatsHistory mHistory = null; 97 private NetworkStatsHistory.Entry mRecycledHistoryEntry = null; 483 NetworkStatsHistory.FIELD_ALL, mStartTimeStamp, mEndTimeStamp); 504 NetworkStatsHistory history = mSession.getHistoryIntervalForUid(mTemplate, uid, 506 NetworkStatsHistory.FIELD_ALL, mStartTimeStamp, mEndTimeStamp); 529 NetworkStatsHistory.FIELD_ALL, mStartTimeStamp, mEndTimeStamp);
|
/frameworks/base/tests/net/java/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 24 import static android.net.NetworkStatsHistory.FIELD_ALL; 36 import android.net.NetworkStatsHistory; 288 NetworkStatsHistory history; 335 NetworkStatsHistory history; 390 NetworkStatsHistory history; 522 private static NetworkStatsHistory getHistory(NetworkStatsCollection collection, 551 NetworkStatsHistory.Entry actual) { 556 NetworkStatsHistory.Entry actual) {
|
H A D | NetworkStatsServiceTest.java | 38 import static android.net.NetworkStatsHistory.FIELD_ALL; 75 import android.net.NetworkStatsHistory; 346 NetworkStatsHistory history = null; 974 final NetworkStatsHistory history = mSession.getHistoryForNetwork(template, FIELD_ALL); 993 final NetworkStatsHistory history = mSession.getHistoryForUid( 1142 private static void assertValues(NetworkStatsHistory stats, long start, long end, long rxBytes, 1144 final NetworkStatsHistory.Entry entry = stats.getValues(start, end, null);
|
/frameworks/base/config/ |
H A D | compiled-classes-phone | 2932 android.net.NetworkStatsHistory 2933 android.net.NetworkStatsHistory$1 2934 android.net.NetworkStatsHistory$DataStreamUtils 2935 android.net.NetworkStatsHistory$Entry
|