HomeSort by relevance Sort by last modified time
    Searched refs:NetworkStats (Results 1 - 25 of 36) sorted by null

1 2

  /frameworks/base/core/java/android/net/
NetworkStats.aidl 19 parcelable NetworkStats;
INetworkStatsService.aidl 20 import android.net.NetworkStats;
34 NetworkStats getDataLayerSnapshotForUid(int uid);
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 44 public class NetworkStats implements Parcelable {
157 public NetworkStats(long elapsedRealtime, int initialSize) {
186 public NetworkStats(Parcel parcel) {
218 public NetworkStats clone() {
219 final NetworkStats clone = new NetworkStats(elapsedRealtime, size);
220 NetworkStats.Entry entry = null;
229 public NetworkStats addIfaceValues(
236 public NetworkStats addValues(String iface, int uid, int set, int tag, long rxBytes,
246 public NetworkStats addValues(Entry entry)
    [all...]
TrafficStats.java 103 * Snapshot of {@link NetworkStats} when the currently active profiling
109 private static NetworkStats sActiveProfilingStart;
225 * @return Detailed {@link NetworkStats} of data that occurred since last
229 public static NetworkStats stopDataProfiling(Context context) {
236 final NetworkStats profilingStop = getDataLayerSnapshotForUid(context);
237 final NetworkStats profilingDelta = NetworkStats.subtract(
602 * Return detailed {@link NetworkStats} for the current UID. Requires no
605 private static NetworkStats getDataLayerSnapshotForUid(Context context) {
  /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);
  /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_ALL;
21 import static android.net.NetworkStats.TAG_NONE;
22 import static android.net.NetworkStats.UID_ALL;
25 import android.net.NetworkStats;
44 * Creates {@link NetworkStats} instances by parsing various {@code /proc/}
85 * Parse and return interface-level summary {@link NetworkStats} measured
92 public NetworkStats readNetworkStatsSummaryDev() throws IOException {
95 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6)
    [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...]
  /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);
138 void MakeDelayedMockData(NetworkStats::TestType test_type,
150 case NetworkStats::PACKET_SIZE_TEST:
151 case NetworkStats::NON_PACED_PACKET_TEST:
154 case NetworkStats::NAT_BIND_TEST:
156 // randomness in NetworkStats::SendProbeRequest() and to match
191 // Test NetworkStats::StartOneTest(...) method
    [all...]
network_stats.cc 32 uint32 NetworkStats::maximum_tests_ = 8;
34 uint32 NetworkStats::maximum_sequential_packets_ = 21;
36 uint32 NetworkStats::maximum_NAT_packets_ = 2;
38 uint32 NetworkStats::maximum_NAT_idle_seconds_ = 300;
40 bool NetworkStats::start_test_after_connect_ = true;
125 NetworkStats::NetworkStats(net::ClientSocketFactory* socket_factory)
138 NetworkStats::~NetworkStats() {}
140 bool NetworkStats::Start(net::HostResolver* host_resolver
    [all...]
network_stats.h 56 class NetworkStats {
96 explicit NetworkStats(net::ClientSocketFactory* socket_factory);
97 // NetworkStats is deleted in TestPhaseComplete() when all tests are done.
98 ~NetworkStats();
325 base::WeakPtrFactory<NetworkStats> weak_factory_;
327 DISALLOW_COPY_AND_ASSIGN(NetworkStats);
  /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...]
  /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() {
  /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...]
  /frameworks/base/core/java/android/os/
INetworkManagementService.aidl 23 import android.net.NetworkStats;
242 NetworkStats getNetworkStatsSummaryDev();
243 NetworkStats getNetworkStatsSummaryXt();
249 NetworkStats getNetworkStatsDetail();
255 NetworkStats getNetworkStatsUidDetail(int uid);
260 NetworkStats getNetworkStatsTethering();
  /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/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/services/core/java/com/android/server/net/
NetworkStatsService.java 30 import static android.net.NetworkStats.IFACE_ALL;
31 import static android.net.NetworkStats.SET_ALL;
32 import static android.net.NetworkStats.SET_DEFAULT;
33 import static android.net.NetworkStats.SET_FOREGROUND;
34 import static android.net.NetworkStats.TAG_NONE;
35 import static android.net.NetworkStats.UID_ALL;
83 import android.net.NetworkStats;
84 import android.net.NetworkStats.NonMonotonicObserver;
133 private static final String TAG = "NetworkStats";
233 private NetworkStats mUidOperations = new NetworkStats(0L, 10)
    [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;
30 import android.net.NetworkStats;
167 public NetworkStats getSummary(NetworkTemplate template, long start, long end) {
170 final NetworkStats stats = new NetworkStats(end - start, 24);
171 final NetworkStats.Entry entry = new NetworkStats.Entry()
    [all...]
NetworkStatsRecorder.java 19 import static android.net.NetworkStats.TAG_NONE;
24 import android.net.NetworkStats;
25 import android.net.NetworkStats.NonMonotonicObserver;
53 * Logic to record deltas between periodic {@link NetworkStats} snapshots into
79 private NetworkStats mLastSnapshot;
117 public NetworkStats.Entry getTotalSinceBootLocked(NetworkTemplate template) {
124 * {@link #recordSnapshotLocked(NetworkStats, Map, long)} snapshots as long
161 * Record any delta that occurred since last {@link NetworkStats} snapshot,
165 public void recordSnapshotLocked(NetworkStats snapshot,
180 final NetworkStats delta = NetworkStats.subtract
    [all...]
  /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){
  /external/chromium_org/net/http/
http_server_properties.h 144 struct NetworkStats {
242 NetworkStats stats) = 0;
244 virtual const NetworkStats* GetServerNetworkStats(
http_server_properties_impl.h 155 // Methods for NetworkStats.
157 NetworkStats stats) OVERRIDE;
159 virtual const NetworkStats* GetServerNetworkStats(
166 typedef std::map<HostPortPair, NetworkStats> ServerNetworkStatsMap;

Completed in 1048 milliseconds

1 2