HomeSort by relevance Sort by last modified time
    Searched full:networkstats (Results 1 - 25 of 35) sorted by null

1 2

  /frameworks/base/core/java/com/android/internal/net/
NetworkStatsFactory.java 19 import static android.net.NetworkStats.SET_ALL;
20 import static android.net.NetworkStats.TAG_NONE;
21 import static android.net.NetworkStats.UID_ALL;
24 import android.net.NetworkStats;
39 * Creates {@link NetworkStats} instances by parsing various {@code /proc/}
67 * Parse and return interface-level summary {@link NetworkStats} measured
74 public NetworkStats readNetworkStatsSummaryDev() throws IOException {
77 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6);
78 final NetworkStats.Entry entry = new NetworkStats.Entry()
    [all...]
  /frameworks/base/core/tests/benchmarks/src/com/android/internal/net/
NetworkStatsFactoryBenchmark.java 19 import android.net.NetworkStats;
43 NetworkStatsFactory.javaReadNetworkStatsDetail(mStats, NetworkStats.UID_ALL);
49 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 0);
51 stats, mStats.getAbsolutePath(), NetworkStats.UID_ALL);
  /external/chromium_org/chrome/browser/net/
network_stats_unittest.cc 53 // Only allow 0 or 1 test because the test 2 in NetworkStats is random.
103 // Test NetworkStats::Start(...) method.
115 NetworkStats* udp_stats_client = new NetworkStats(&mock_socket_factory);
137 void MakeDelayedMockData(NetworkStats::TestType test_type,
149 case NetworkStats::NON_PACED_PACKET_TEST:
152 case NetworkStats::NAT_BIND_TEST:
154 // randomness in NetworkStats::SendProbeRequest() and to match
189 // Test NetworkStats::StartOneTest(...) method.
191 NetworkStats::TestType test_type
    [all...]
network_stats.cc 31 uint32 NetworkStats::maximum_tests_ = 6;
33 uint32 NetworkStats::maximum_sequential_packets_ = 21;
35 uint32 NetworkStats::maximum_NAT_packets_ = 2;
37 uint32 NetworkStats::maximum_NAT_idle_seconds_ = 300;
39 bool NetworkStats::start_test_after_connect_ = true;
120 NetworkStats::NetworkStats(net::ClientSocketFactory* socket_factory)
130 NetworkStats::~NetworkStats() {}
132 bool NetworkStats::Start(net::HostResolver* host_resolver
    [all...]
  /frameworks/base/core/tests/coretests/src/android/net/
NetworkStatsTest.java 19 import static android.net.NetworkStats.SET_DEFAULT;
20 import static android.net.NetworkStats.SET_FOREGROUND;
21 import static android.net.NetworkStats.SET_ALL;
22 import static android.net.NetworkStats.IFACE_ALL;
23 import static android.net.NetworkStats.TAG_NONE;
24 import static android.net.NetworkStats.UID_ALL;
43 final NetworkStats stats = new NetworkStats(TEST_START, 3)
55 final NetworkStats stats = new NetworkStats(TEST_START, 3
    [all...]
NetworkStatsHistoryTest.java 97 new NetworkStats.Entry(1024L, 10L, 2048L, 20L, 2L));
110 new NetworkStats.Entry(1024L, 10L, 128L, 2L, 2L));
126 new NetworkStats.Entry(1000L, 2000L, 5000L, 10000L, 100L));
145 new NetworkStats.Entry(128L, 2L, 256L, 4L, 1L));
147 new NetworkStats.Entry(64L, 1L, 512L, 8L, 2L));
158 new NetworkStats.Entry(2048L, 4L, 2048L, 4L, 2L));
174 new NetworkStats.Entry(256L, 2L, 256L, 2L, 1L));
177 new NetworkStats.Entry(1024L, 10L, 1024L, 10L, 10L));
311 final NetworkStats.Entry entry = new NetworkStats.Entry()
    [all...]
  /frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
BandwidthTest.java 22 import android.net.NetworkStats;
23 import android.net.NetworkStats.Entry;
112 NetworkStats pre_test_stats = fetchDataFromProc(mUid);
120 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext);
123 NetworkStats post_test_stats = fetchDataFromProc(mUid);
124 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats);
172 NetworkStats pre_test_stats = fetchDataFromProc(mUid);
175 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext);
177 NetworkStats post_test_stats = fetchDataFromProc(mUid);
178 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats)
    [all...]
  /frameworks/base/core/tests/coretests/src/com/android/internal/net/
NetworkStatsFactoryTest.java 19 import static android.net.NetworkStats.SET_ALL;
20 import static android.net.NetworkStats.SET_DEFAULT;
21 import static android.net.NetworkStats.SET_FOREGROUND;
22 import static android.net.NetworkStats.TAG_NONE;
23 import static android.net.NetworkStats.UID_ALL;
27 import android.net.NetworkStats;
75 final NetworkStats stats = mFactory.readNetworkStatsDetail();
101 final NetworkStats stats = mFactory.readNetworkStatsDetail();
110 final NetworkStats stats = mFactory.readNetworkStatsSummaryDev();
121 final NetworkStats stats = mFactory.readNetworkStatsSummaryXt()
    [all...]
  /frameworks/base/core/java/android/net/
INetworkStatsSession.aidl 19 import android.net.NetworkStats;
27 NetworkStats getSummaryForNetwork(in NetworkTemplate template, long start, long end);
32 NetworkStats getSummaryForAllUid(in NetworkTemplate template, long start, long end, boolean includeTags);
NetworkStats.java 42 public class NetworkStats implements Parcelable {
152 public NetworkStats(long elapsedRealtime, int initialSize) {
166 public NetworkStats(Parcel parcel) {
196 public NetworkStats clone() {
197 final NetworkStats clone = new NetworkStats(elapsedRealtime, size);
198 NetworkStats.Entry entry = null;
207 public NetworkStats addIfaceValues(
214 public NetworkStats addValues(String iface, int uid, int set, int tag, long rxBytes,
224 public NetworkStats addValues(Entry entry)
    [all...]
NetworkStats.aidl 19 parcelable NetworkStats;
INetworkStatsService.aidl 20 import android.net.NetworkStats;
34 NetworkStats getDataLayerSnapshotForUid(int uid);
NetworkStatsHistory.java 19 import static android.net.NetworkStats.IFACE_ALL;
20 import static android.net.NetworkStats.SET_DEFAULT;
21 import static android.net.NetworkStats.TAG_NONE;
22 import static android.net.NetworkStats.UID_ALL;
286 recordData(start, end, new NetworkStats.Entry(
294 public void recordData(long start, long end, NetworkStats.Entry entry) {
360 final NetworkStats.Entry entry = new NetworkStats.Entry(
549 final NetworkStats.Entry entry = new NetworkStats.Entry
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/
NetworkStatsServiceTest.java 25 import static android.net.NetworkStats.IFACE_ALL;
26 import static android.net.NetworkStats.SET_ALL;
27 import static android.net.NetworkStats.SET_DEFAULT;
28 import static android.net.NetworkStats.SET_FOREGROUND;
29 import static android.net.NetworkStats.TAG_NONE;
30 import static android.net.NetworkStats.UID_ALL;
61 import android.net.NetworkStats;
204 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1)
221 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1)
258 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1
    [all...]
  /packages/apps/Settings/src/com/android/settings/net/
SummaryForAllUidLoader.java 22 import android.net.NetworkStats;
27 public class SummaryForAllUidLoader extends AsyncTaskLoader<NetworkStats> {
56 public NetworkStats loadInBackground() {
ChartDataLoader.java 19 import static android.net.NetworkStats.SET_DEFAULT;
20 import static android.net.NetworkStats.SET_FOREGROUND;
21 import static android.net.NetworkStats.TAG_NONE;
  /external/chromium_org/chrome/common/net/
test_server_locations.h 10 // Hostname used for the NetworkStats test. Should point to a TCP/UDP server
  /frameworks/base/services/tests/servicestests/src/com/android/server/net/
NetworkStatsCollectionTest.java 19 import static android.net.NetworkStats.SET_DEFAULT;
20 import static android.net.NetworkStats.TAG_NONE;
21 import static android.net.NetworkStats.UID_ALL;
27 import android.net.NetworkStats;
144 final NetworkStats.Entry entry = new NetworkStats.Entry();
174 final NetworkStats.Entry entry = collection.getSummary(
181 final NetworkStats.Entry entry = collection.getSummary(
187 NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets) {
  /frameworks/base/services/java/com/android/server/net/
NetworkStatsRecorder.java 19 import static android.net.NetworkStats.TAG_NONE;
24 import android.net.NetworkStats;
25 import android.net.NetworkStats.NonMonotonicObserver;
52 * Logic to record deltas between periodic {@link NetworkStats} snapshots into
78 private NetworkStats mLastSnapshot;
116 public NetworkStats.Entry getTotalSinceBootLocked(NetworkTemplate template) {
123 * {@link #recordSnapshotLocked(NetworkStats, Map, long)} snapshots as long
147 * Record any delta that occurred since last {@link NetworkStats} snapshot,
151 public void recordSnapshotLocked(NetworkStats snapshot,
166 final NetworkStats delta = NetworkStats.subtract
    [all...]
NetworkStatsCollection.java 19 import static android.net.NetworkStats.IFACE_ALL;
20 import static android.net.NetworkStats.SET_ALL;
21 import static android.net.NetworkStats.SET_DEFAULT;
22 import static android.net.NetworkStats.TAG_NONE;
23 import static android.net.NetworkStats.UID_ALL;
27 import android.net.NetworkStats;
163 public NetworkStats getSummary(NetworkTemplate template, long start, long end) {
166 final NetworkStats stats = new NetworkStats(end - start, 24);
167 final NetworkStats.Entry entry = new NetworkStats.Entry()
    [all...]
NetworkStatsService.java 32 import static android.net.NetworkStats.IFACE_ALL;
33 import static android.net.NetworkStats.SET_ALL;
34 import static android.net.NetworkStats.SET_DEFAULT;
35 import static android.net.NetworkStats.SET_FOREGROUND;
36 import static android.net.NetworkStats.TAG_NONE;
37 import static android.net.NetworkStats.UID_ALL;
90 import android.net.NetworkStats;
91 import android.net.NetworkStats.NonMonotonicObserver;
140 private static final String TAG = "NetworkStats";
241 private NetworkStats mUidOperations = new NetworkStats(0L, 10)
    [all...]
  /frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
DataIdleTest.java 21 import android.net.NetworkStats;
22 import android.net.NetworkStats.Entry;
79 final NetworkStats stats = session.getSummaryForAllUid(
93 void reportStats(NetworkStats stats) {
  /frameworks/base/core/java/android/os/
INetworkManagementService.aidl 23 import android.net.NetworkStats;
247 NetworkStats getNetworkStatsSummaryDev();
248 NetworkStats getNetworkStatsSummaryXt();
254 NetworkStats getNetworkStatsDetail();
260 NetworkStats getNetworkStatsUidDetail(int uid);
265 NetworkStats getNetworkStatsTethering();
  /frameworks/base/core/tests/utillib/src/android/test/
BandwidthTestCase.java 18 import android.net.NetworkStats;
105 NetworkStats stats = TrafficStats.stopDataProfiling(null);
106 NetworkStats.Entry entry = stats.getTotal(null);
147 private Bundle getBandwidthStats(NetworkStats.Entry entry){
  /frameworks/base/core/jni/
com_android_internal_net_NetworkStatsFactory.cpp 17 #define LOG_TAG "NetworkStats"
160 "(Landroid/net/NetworkStats;Ljava/lang/String;I)I",
171 jclass clazz = env->FindClass("android/net/NetworkStats");

Completed in 879 milliseconds

1 2