/frameworks/base/cmds/statsd/tools/dogfood/src/com/android/statsd/dogfood/ |
D | MainActivity.java | 44 StatsManager mStatsManager; field in MainActivity 174 if (mStatsManager != null) { in onCreate() 176 byte[] data = mStatsManager.getReports(CONFIG_ID); in onCreate() 201 if (mStatsManager != null) { in onCreate() 203 mStatsManager.addConfig(CONFIG_ID, config); in onCreate() 226 if (mStatsManager != null) { in onCreate() 228 mStatsManager.setFetchReportsOperation(pi, CONFIG_ID); in onCreate() 250 if (mStatsManager != null) { in onCreate() 252 mStatsManager.setFetchReportsOperation(null, CONFIG_ID); in onCreate() 267 mStatsManager = (StatsManager) getSystemService("stats"); in onCreate()
|
/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/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | MetricsCollector.java | 65 private final StatsManager mStatsManager; field in MetricsCollector 70 mStatsManager = (StatsManager) context.getSystemService(Context.STATS_MANAGER); in MetricsCollector() 71 if (mStatsManager != null) { in MetricsCollector()
|
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | LoadtestActivity.java | 179 private StatsManager mStatsManager; field in LoadtestActivity 307 mStatsManager = (StatsManager) getSystemService("stats"); in onCreate() 357 if (mStatsManager != null) { in getMetadata() 360 data = mStatsManager.getStatsMetadata(); in getMetadata() 383 if (mStatsManager != null) { in getData() 386 data = mStatsManager.getReports(ConfigFactory.CONFIG_ID); in getData() 576 if (mStatsManager != null) { in clearConfigs() 579 mStatsManager.removeConfig(ConfigFactory.CONFIG_ID); in clearConfigs() 589 if (mStatsManager != null) { in setConfig() 591 mStatsManager.addConfig(ConfigFactory.CONFIG_ID, configData.bytes); in setConfig()
|
/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/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 | 283 protected NetworkStatsManager mStatsManager; field in TelephonyTest 615 doReturn(mStatsManager).when(mContext).getSystemService(eq(Context.NETWORK_STATS_SERVICE)); in setUp()
|
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 148 @Mock private NetworkStatsManager mStatsManager; field in IpServerTest 252 return mStatsManager; in setUp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTrackerTest.java | 251 verify(mStatsManager).registerNetworkStatsProvider(anyString(), in setUp()
|