Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkStatsSummaryLoader.java20 import android.app.usage.NetworkStatsManager;
34 private final NetworkStatsManager mNetworkStatsManager;
44 mNetworkStatsManager = (NetworkStatsManager) in NetworkStatsSummaryLoader()
DNetworkCycleDataLoader.java23 import android.app.usage.NetworkStatsManager;
51 protected final NetworkStatsManager mNetworkStatsManager;
62 mNetworkStatsManager = (NetworkStatsManager) in NetworkCycleDataLoader()
DDataUsageController.java28 import android.app.usage.NetworkStatsManager;
65 private final NetworkStatsManager mNetworkStatsManager;
78 mNetworkStatsManager = context.getSystemService(NetworkStatsManager.class); in DataUsageController()
/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;
183 requestInfo.callCallback(NetworkStatsManager.CALLBACK_RELEASED); in handleUnregister()
258 callCallback(NetworkStatsManager.CALLBACK_RELEASED); in binderDied()
287 callCallback(NetworkStatsManager.CALLBACK_LIMIT_REACHED); in updateStats()
320 case NetworkStatsManager.CALLBACK_LIMIT_REACHED: in callbackTypeToName()
322 case NetworkStatsManager.CALLBACK_RELEASED: in callbackTypeToName()
DNetworkStatsService.java82 import android.app.usage.NetworkStatsManager;
622 return openSessionInternal(NetworkStatsManager.FLAG_AUGMENT_WITH_SUBSCRIPTION_PLAN, null); in openSession()
650 ? flags & (~NetworkStatsManager.FLAG_POLL_ON_OPEN) in openSessionInternal()
652 if ((usedFlags & (NetworkStatsManager.FLAG_POLL_ON_OPEN in openSessionInternal()
653 | NetworkStatsManager.FLAG_POLL_FORCE)) != 0) { in openSessionInternal()
786 if ((flags & NetworkStatsManager.FLAG_AUGMENT_WITH_SUBSCRIPTION_PLAN) != 0 in resolveSubscriptionPlan()
844 NetworkStatsManager.FLAG_AUGMENT_WITH_SUBSCRIPTION_PLAN, start, end, in getNetworkTotalBytes()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DTetheringDependencies.java19 import android.app.usage.NetworkStatsManager;
66 final NetworkStatsManager statsManager = in getOffloadController()
67 (NetworkStatsManager) getContext().getSystemService(Context.NETWORK_STATS_SERVICE); in getOffloadController()
DOffloadController.java33 import android.app.usage.NetworkStatsManager;
144 ContentResolver contentResolver, NetworkStatsManager nsm, SharedLog log, in OffloadController()
DBpfCoordinator.java30 import android.app.usage.NetworkStatsManager;
164 @NonNull public abstract NetworkStatsManager getNetworkStatsManager(); in getNetworkStatsManager()
DTethering.java67 import android.app.usage.NetworkStatsManager;
343 public NetworkStatsManager getNetworkStatsManager() { in Tethering()
344 return mContext.getSystemService(NetworkStatsManager.class); in Tethering()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleChartDataLoaderTest.java22 import android.app.usage.NetworkStatsManager;
41 private NetworkStatsManager mNetworkStatsManager;
DDataUsageControllerTest.java32 import android.app.usage.NetworkStatsManager;
63 private NetworkStatsManager mNetworkStatsManager;
81 when(mContext.getSystemService(NetworkStatsManager.class)).thenReturn(mNetworkStatsManager); in setUp()
DNetworkCycleDataForUidLoaderTest.java29 import android.app.usage.NetworkStatsManager;
48 private NetworkStatsManager mNetworkStatsManager;
DNetworkCycleDataLoaderTest.java27 import android.app.usage.NetworkStatsManager;
57 private NetworkStatsManager mNetworkStatsManager;
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java35 import android.app.usage.NetworkStatsManager;
36 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.java99 public class NetworkStatsManager { class
133 public NetworkStatsManager(Context context) throws ServiceNotFoundException { in NetworkStatsManager() method in NetworkStatsManager
140 public NetworkStatsManager(Context context, INetworkStatsService service) { in NetworkStatsManager() method in NetworkStatsManager
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java36 import android.app.usage.NetworkStatsManager;
309 assertEquals(NetworkStatsManager.CALLBACK_LIMIT_REACHED, mHandler.lastMessageType); in testUpdateStats_deviceAccess_notifies()
342 assertEquals(NetworkStatsManager.CALLBACK_LIMIT_REACHED, mHandler.lastMessageType); in testUpdateStats_defaultAccess_notifiesSameUid()
407 assertEquals(NetworkStatsManager.CALLBACK_LIMIT_REACHED, mHandler.lastMessageType); in testUpdateStats_userAccess_usageSameUser_notifies()
DNetworkStatsServiceTest.java71 import android.app.usage.NetworkStatsManager;
1083 assertEquals(NetworkStatsManager.CALLBACK_LIMIT_REACHED, latchedHandler.lastMessageType);
1094 assertEquals(NetworkStatsManager.CALLBACK_RELEASED, latchedHandler.lastMessageType);
/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java41 import android.app.usage.NetworkStatsManager;
100 @Mock private NetworkStatsManager mStatsManager;
145 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/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java48 import android.app.usage.NetworkStatsManager;
93 @Mock private NetworkStatsManager mStatsManager;
117 public NetworkStatsManager getNetworkStatsManager() {
DOffloadControllerTest.java56 import android.app.usage.NetworkStatsManager;
111 @Mock private NetworkStatsManager mStatsManager;
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java43 import android.app.usage.NetworkStatsManager;
964 registerService(Context.NETWORK_STATS_SERVICE, NetworkStatsManager.class, in registerService()
965 new CachedServiceFetcher<NetworkStatsManager>() { in registerService()
967 … public NetworkStatsManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
968 return new NetworkStatsManager(ctx.getOuterContext()); in registerService()
/frameworks/base/core/java/android/net/
DTrafficStats.java25 import android.app.usage.NetworkStatsManager;
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java65 import android.app.usage.NetworkStatsManager;
147 @Mock private NetworkStatsManager mStatsManager;
247 public NetworkStatsManager getNetworkStatsManager() { in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTest.java34 import android.app.usage.NetworkStatsManager;
288 protected NetworkStatsManager mStatsManager;

12