Home
last modified time | relevance | path

Searched refs:mStatsManager (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java100 @Mock private NetworkStatsManager mStatsManager; field in MultipathPolicyTrackerTest
145 mockService(Context.NETWORK_STATS_SERVICE, NetworkStatsManager.class, mStatsManager); in setUp()
269 verify(mStatsManager, times(1)).registerUsageCallback( in testGetMultipathPreference_SubscriptionQuota()
286 verify(mStatsManager, times(1)).registerUsageCallback( in testGetMultipathPreference_UserWarningQuota()
303 verify(mStatsManager, times(1)).registerUsageCallback( in testGetMultipathPreference_SnoozedWarningQuota()
320 verify(mStatsManager, times(1)).registerUsageCallback( in testGetMultipathPreference_SnoozedBothQuota()
335 verify(mStatsManager, times(1)).registerUsageCallback( in testGetMultipathPreference_SettingChanged()
344 verify(mStatsManager, times(1)).unregisterUsageCallback(any()); in testGetMultipathPreference_SettingChanged()
345 verify(mStatsManager, times(1)).registerUsageCallback( in testGetMultipathPreference_SettingChanged()
360 verify(mStatsManager, times(1)).registerUsageCallback( in testGetMultipathPreference_ResourceChanged()
[all …]
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java279 private StatsManager mStatsManager; field in StatsPullAtomService
680 mStatsManager = (StatsManager) mContext.getSystemService(Context.STATS_MANAGER); in initializePullersState()
984 mStatsManager.setPullAtomCallback( in registerWifiBytesTransfer()
1320 mStatsManager.setPullAtomCallback(
1333 mStatsManager.setPullAtomCallback(
1346 mStatsManager.setPullAtomCallback(
1359 mStatsManager.setPullAtomCallback(
1372 mStatsManager.setPullAtomCallback(
1385 mStatsManager.setPullAtomCallback(
1454 mStatsManager.setPullAtomCallback(
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DMetricsCollector.java84 private final StatsManager mStatsManager; field in MetricsCollector
89 mStatsManager = (StatsManager) context.getSystemService(Context.STATS_MANAGER); in MetricsCollector()
90 if (mStatsManager != null) { in MetricsCollector()
213 mStatsManager.setPullAtomCallback(atomId, policy, ConcurrentUtils.DIRECT_EXECUTOR, this); in registerAtom()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java110 private NetworkStatsManager mStatsManager; field in MultipathPolicyTracker
148 mStatsManager = mContext.getSystemService(NetworkStatsManager.class); in start()
393 mStatsManager.registerUsageCallback(mNetworkTemplate, TYPE_MOBILE, budget, in registerUsageCallback()
401 mStatsManager.unregisterUsageCallback(mUsageCallback); in maybeUnregisterUsageCallback()
/frameworks/base/location/java/com/android/internal/location/gnssmetrics/
DGnssMetrics.java126 private StatsManager mStatsManager; field in GnssMetrics
142 mStatsManager = (StatsManager) context.getSystemService(Context.STATS_MANAGER); in GnssMetrics()
625 mStatsManager.setPullAtomCallback( in registerGnssStats()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java93 @Mock private NetworkStatsManager mStatsManager; field in BpfCoordinatorTest
118 return mStatsManager;
151 verify(mStatsManager).registerNetworkStatsProvider(anyString(), in makeBpfCoordinator()
DOffloadControllerTest.java111 @Mock private NetworkStatsManager mStatsManager; field in OffloadControllerTest
167 mHardware, mContentResolver, mStatsManager, new SharedLog("test"), mDeps); in makeOffloadController()
171 verify(mStatsManager).registerNetworkStatsProvider(anyString(), in makeOffloadController()
DTetheringTest.java189 @Mock private NetworkStatsManager mStatsManager; field in TetheringTest
263 if (Context.NETWORK_STATS_SERVICE.equals(name)) return mStatsManager; in getSystemService()
542 verify(mStatsManager, times(1)).registerNetworkStatsProvider(anyString(), any()); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTest.java288 protected NetworkStatsManager mStatsManager; field in TelephonyTest
625 doReturn(mStatsManager).when(mContext).getSystemService(eq(Context.NETWORK_STATS_SERVICE)); in setUp()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreManagerService.java172 private StatsManager mStatsManager; field in BlobStoreManagerService
207 mStatsManager = getContext().getSystemService(StatsManager.class); in onStart()
1865 mStatsManager.setPullAtomCallback( in registerBlobStorePuller()
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java147 @Mock private NetworkStatsManager mStatsManager; field in IpServerTest
248 return mStatsManager; in setUp()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java482 private StatsManager mStatsManager; field in NotificationManagerService
2052 mStatsManager = statsManager; in init()
2099 mStatsManager = (StatsManager) getContext().getSystemService( in onStart()
2178 mStatsManager.setPullAtomCallback( in registerNotificationPreferencesPullers()
2184 mStatsManager.setPullAtomCallback( in registerNotificationPreferencesPullers()
2190 mStatsManager.setPullAtomCallback( in registerNotificationPreferencesPullers()
2196 mStatsManager.setPullAtomCallback( in registerNotificationPreferencesPullers()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java252 verify(mStatsManager).registerNetworkStatsProvider(anyString(), in setUp()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java284 StatsManager mStatsManager; field in NotificationManagerServiceTest
473 mAppOpsManager, mUm, mHistoryManager, mStatsManager, in setUp() local