Home
last modified time | relevance | path

Searched refs:statsManager (Results 1 – 10 of 10) sorted by relevance

/packages/modules/StatsD/apex/tests/libstatspull/src/com/android/internal/os/statsd/libstats/
DLibStatsPullTests.java89 StatsManager statsManager = (StatsManager) mContext.getSystemService( in tearDown() local
91 statsManager.removeConfig(sConfigId); in tearDown()
99 StatsManager statsManager = (StatsManager) mContext.getSystemService( in testPullAtomCallbackRegistration() local
102 createAndAddConfigToStatsd(statsManager); in testPullAtomCallbackRegistration()
111 List<Atom> data = StatsConfigUtils.getGaugeMetricDataList(statsManager, sConfigId); in testPullAtomCallbackRegistration()
133 StatsManager statsManager = (StatsManager) mContext.getSystemService( in testPullAtomCallbackFailure() local
135 createAndAddConfigToStatsd(statsManager); in testPullAtomCallbackFailure()
144 List<Atom> data = StatsConfigUtils.getGaugeMetricDataList(statsManager, sConfigId); in testPullAtomCallbackFailure()
154 StatsManager statsManager = (StatsManager) mContext.getSystemService( in testPullAtomCallbackTimeout() local
156 createAndAddConfigToStatsd(statsManager); in testPullAtomCallbackTimeout()
[all …]
DStatsConfigUtils.java56 public static boolean verifyValidConfigExists(StatsManager statsManager, long configId) { in verifyValidConfigExists() argument
59 report = StatsdStatsReport.parser().parseFrom(statsManager.getStatsMetadata()); in verifyValidConfigExists()
88 public static ConfigMetricsReport getConfigMetricsReport(StatsManager statsManager, in getConfigMetricsReport() argument
93 .parseFrom(statsManager.getReports(configId)); in getConfigMetricsReport()
119 public static List<Atom> getGaugeMetricDataList(StatsManager statsManager, long configId) { in getGaugeMetricDataList() argument
120 ConfigMetricsReport report = getConfigMetricsReport(statsManager, configId); in getGaugeMetricDataList()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyConfigJobService.java73 final StatsManager statsManager = getSystemService(StatsManager.class); in onStartJob() local
74 checkAnomalyConfig(statsManager); in onStartJob()
76 BatteryTipUtils.uploadAnomalyPendingIntent(this, statsManager); in onStartJob()
92 synchronized void checkAnomalyConfig(StatsManager statsManager) { in checkAnomalyConfig() argument
105 statsManager.removeConfig(StatsManagerConfig.ANOMALY_CONFIG_KEY); in checkAnomalyConfig()
113 statsManager.addConfig(StatsManagerConfig.ANOMALY_CONFIG_KEY, config); in checkAnomalyConfig()
DAnomalyConfigReceiver.java36 final StatsManager statsManager = context.getSystemService(StatsManager.class); in onReceive() local
42 BatteryTipUtils.uploadAnomalyPendingIntent(context, statsManager); in onReceive()
DBatteryTipUtils.java121 public static void uploadAnomalyPendingIntent(Context context, StatsManager statsManager) in uploadAnomalyPendingIntent() argument
126 statsManager.setBroadcastSubscriber(pendingIntent, in uploadAnomalyPendingIntent()
/packages/providers/MediaProvider/src/com/android/providers/media/metrics/
DPulledMetrics.java50 final StatsManager statsManager = context.getSystemService(StatsManager.class); in initialize() local
51 if (statsManager == null) { in initialize()
58 statsManager.setPullAtomCallback(TRANSCODING_DATA, null /* metadata */, in initialize()
61 statsManager.setPullAtomCallback( in initialize()
/packages/apps/Settings/src/com/android/settings/
DSettingsDumpService.java91 ProcStatsData statsManager = new ProcStatsData(this, false); in dumpMemory() local
92 statsManager.refreshStats(true); in dumpMemory()
93 ProcStatsData.MemInfo memInfo = statsManager.getMemInfo(); in dumpMemory()
98 obj.put("state", statsManager.getMemState()); in dumpMemory()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DUsageStatsLiveData.kt61 val statsManager = Utils.getUserContext(app, user).getSystemService( in <lambda>() constant
63 statsManager.queryUsageStats(interval, now - searchTimeMs, now)?.let { stats -> in <lambda>()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringDependencies.java65 final NetworkStatsManager statsManager = in getOffloadController() local
68 getContext().getContentResolver(), statsManager, log, deps); in getOffloadController()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt92 private lateinit var statsManager: NetworkStatsManager in <lambda>() variable in com.android.server.net.integrationtests.ConnectivityServiceIntegrationTest
197 context.addMockSystemService(Context.NETWORK_STATS_SERVICE, statsManager) in <lambda>()