Home
last modified time | relevance | path

Searched refs:NetworkStatsManager (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsObservers.java19 import static android.app.usage.NetworkStatsManager.MIN_THRESHOLD_BYTES;
23 import android.app.usage.NetworkStatsManager;
184 requestInfo.callCallback(NetworkStatsManager.CALLBACK_RELEASED); in handleUnregister()
259 callCallback(NetworkStatsManager.CALLBACK_RELEASED); in binderDied()
288 callCallback(NetworkStatsManager.CALLBACK_LIMIT_REACHED); in updateStats()
321 case NetworkStatsManager.CALLBACK_LIMIT_REACHED: in callbackTypeToName()
323 case NetworkStatsManager.CALLBACK_RELEASED: in callbackTypeToName()
DNetworkStatsService.java76 import android.app.usage.NetworkStatsManager;
518 return openSessionInternal(NetworkStatsManager.FLAG_AUGMENT_WITH_SUBSCRIPTION_PLAN, null); in openSession()
548 ? flags & (~NetworkStatsManager.FLAG_POLL_ON_OPEN) in openSessionInternal()
550 if ((usedFlags & (NetworkStatsManager.FLAG_POLL_ON_OPEN in openSessionInternal()
551 | NetworkStatsManager.FLAG_POLL_FORCE)) != 0) { in openSessionInternal()
684 if ((flags & NetworkStatsManager.FLAG_AUGMENT_WITH_SUBSCRIPTION_PLAN) != 0 in resolveSubscriptionPlan()
743 NetworkStatsManager.FLAG_AUGMENT_WITH_SUBSCRIPTION_PLAN, start, end, in getNetworkTotalBytes()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java33 import android.app.usage.NetworkStatsManager;
34 import android.app.usage.NetworkStatsManager.UsageCallback;
110 private NetworkStatsManager mStatsManager;
148 mStatsManager = mContext.getSystemService(NetworkStatsManager.class); in start()
361 if (budget > NetworkStatsManager.MIN_THRESHOLD_BYTES) { in updateMultipathBudget()
/frameworks/base/core/java/android/app/usage/
DNetworkStatsManager.java91 public class NetworkStatsManager { class
124 public NetworkStatsManager(Context context) throws ServiceNotFoundException { in NetworkStatsManager() method in NetworkStatsManager
131 public NetworkStatsManager(Context context, INetworkStatsService service) { in NetworkStatsManager() method in NetworkStatsManager
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java42 import android.app.usage.NetworkStatsManager;
325 assertEquals(NetworkStatsManager.CALLBACK_LIMIT_REACHED, mHandler.lastMessageType); in testUpdateStats_deviceAccess_notifies()
360 assertEquals(NetworkStatsManager.CALLBACK_LIMIT_REACHED, mHandler.lastMessageType); in testUpdateStats_defaultAccess_notifiesSameUid()
429 assertEquals(NetworkStatsManager.CALLBACK_LIMIT_REACHED, mHandler.lastMessageType); in testUpdateStats_userAccess_usageSameUser_notifies()
DNetworkStatsServiceTest.java69 import android.app.usage.NetworkStatsManager;
1006 assertEquals(NetworkStatsManager.CALLBACK_LIMIT_REACHED, latchedHandler.lastMessageType); in testRegisterUsageCallback()
1017 assertEquals(NetworkStatsManager.CALLBACK_RELEASED, latchedHandler.lastMessageType); in testRegisterUsageCallback()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java42 import android.app.usage.NetworkStatsManager;
99 @Mock private NetworkStatsManager mStatsManager;
144 mockService(Context.NETWORK_STATS_SERVICE, NetworkStatsManager.class, mStatsManager); in setUp()
/frameworks/base/tests/net/java/android/app/usage/
DNetworkStatsManagerTest.java59 private NetworkStatsManager mManager;
67 mManager = new NetworkStatsManager(InstrumentationRegistry.getContext(), mService); in setUp()
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java31 import android.app.usage.NetworkStatsManager;
809 registerService(Context.NETWORK_STATS_SERVICE, NetworkStatsManager.class, in registerService()
810 new CachedServiceFetcher<NetworkStatsManager>() { in registerService()
812 … public NetworkStatsManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
813 return new NetworkStatsManager(ctx.getOuterContext()); in registerService()
/frameworks/base/core/java/android/net/
DTrafficStats.java24 import android.app.usage.NetworkStatsManager;
/frameworks/base/api/
Dtest-current.txt207 public class NetworkStatsManager {
Dcurrent.txt7421 public class NetworkStatsManager {
7429 …gisterUsageCallback(int, java.lang.String, long, android.app.usage.NetworkStatsManager.UsageCallba…
7430 …gisterUsageCallback(int, java.lang.String, long, android.app.usage.NetworkStatsManager.UsageCallba…
7431 method public void unregisterUsageCallback(android.app.usage.NetworkStatsManager.UsageCallback);
7434 public static abstract class NetworkStatsManager.UsageCallback {
7435 ctor public NetworkStatsManager.UsageCallback();
/frameworks/base/config/
Dpreloaded-classes566 android.app.usage.NetworkStatsManager
Dhiddenapi-public-dex.txt4614 Landroid/app/usage/NetworkStatsManager$UsageCallback;
4615 Landroid/app/usage/NetworkStatsManager$UsageCallback;-><init>()V
4616 Landroid/app/usage/NetworkStatsManager$UsageCallback;->onThresholdReached(ILjava/lang/String;)V
4617 Landroid/app/usage/NetworkStatsManager;
4618 Landroid/app/usage/NetworkStatsManager;->queryDetails(ILjava/lang/String;JJ)Landroid/app/usage/Netw…
4619 Landroid/app/usage/NetworkStatsManager;->queryDetailsForUid(ILjava/lang/String;JJI)Landroid/app/usa…
4620 Landroid/app/usage/NetworkStatsManager;->queryDetailsForUidTag(ILjava/lang/String;JJII)Landroid/app…
4621 Landroid/app/usage/NetworkStatsManager;->queryDetailsForUidTagState(ILjava/lang/String;JJIII)Landro…
4622 Landroid/app/usage/NetworkStatsManager;->querySummary(ILjava/lang/String;JJ)Landroid/app/usage/Netw…
4623 Landroid/app/usage/NetworkStatsManager;->querySummaryForDevice(ILjava/lang/String;JJ)Landroid/app/u…
[all …]
Dboot-image-profile.txt1168 HPLandroid/app/usage/NetworkStatsManager$CallbackHandler;->handleMessage(Landroid/os/Message;)V
1169 HPLandroid/app/usage/NetworkStatsManager$UsageCallback;->onThresholdReached(ILjava/lang/String;)V
1170 …PLandroid/app/usage/NetworkStatsManager;->registerUsageCallback(Landroid/net/NetworkTemplate;IJLan…
1171 HPLandroid/app/usage/NetworkStatsManager;->unregisterUsageCallback(Landroid/app/usage/NetworkStatsM…
15372 …erviceRegistry$73;->createService(Landroid/app/ContextImpl;)Landroid/app/usage/NetworkStatsManager;
16339 HSPLandroid/app/usage/NetworkStatsManager;->createTemplate(ILjava/lang/String;)Landroid/net/Network…
16340 HSPLandroid/app/usage/NetworkStatsManager;->querySummary(ILjava/lang/String;JJ)Landroid/app/usage/N…
54270 Landroid/app/usage/NetworkStatsManager$CallbackHandler;
54271 Landroid/app/usage/NetworkStatsManager$UsageCallback;
54272 Landroid/app/usage/NetworkStatsManager;
Dhiddenapi-light-greylist.txt981 Landroid/app/usage/NetworkStatsManager;-><init>(Landroid/content/Context;)V