/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 100 @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/ |
D | StatsPullAtomService.java | 279 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/ |
D | MetricsCollector.java | 84 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/ |
D | MultipathPolicyTracker.java | 110 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/ |
D | GnssMetrics.java | 126 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/ |
D | BpfCoordinatorTest.java | 93 @Mock private NetworkStatsManager mStatsManager; field in BpfCoordinatorTest 118 return mStatsManager; 151 verify(mStatsManager).registerNetworkStatsProvider(anyString(), in makeBpfCoordinator()
|
D | OffloadControllerTest.java | 111 @Mock private NetworkStatsManager mStatsManager; field in OffloadControllerTest 167 mHardware, mContentResolver, mStatsManager, new SharedLog("test"), mDeps); in makeOffloadController() 171 verify(mStatsManager).registerNetworkStatsProvider(anyString(), in makeOffloadController()
|
D | TetheringTest.java | 189 @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/ |
D | TelephonyTest.java | 288 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/ |
D | BlobStoreManagerService.java | 172 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/ |
D | IpServerTest.java | 147 @Mock private NetworkStatsManager mStatsManager; field in IpServerTest 248 return mStatsManager; in setUp()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 482 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/ |
D | ImsPhoneCallTrackerTest.java | 252 verify(mStatsManager).registerNetworkStatsProvider(anyString(), in setUp()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 284 StatsManager mStatsManager; field in NotificationManagerServiceTest 473 mAppOpsManager, mUm, mHistoryManager, mStatsManager, in setUp() local
|