Home
last modified time | relevance | path

Searched refs:statsManager (Results 1 – 18 of 18) 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.java59 public static boolean verifyValidConfigExists(StatsManager statsManager, long configId) { in verifyValidConfigExists() argument
62 report = StatsdStatsReport.parser().parseFrom(statsManager.getStatsMetadata()); in verifyValidConfigExists()
91 public static ConfigMetricsReport getConfigMetricsReport(StatsManager statsManager, in getConfigMetricsReport() argument
96 .parseFrom(statsManager.getReports(configId)); in getConfigMetricsReport()
128 public static List<Atom> getGaugeMetricDataList(StatsManager statsManager, long configId) { in getGaugeMetricDataList() argument
129 ConfigMetricsReport report = getConfigMetricsReport(statsManager, configId); in getGaugeMetricDataList()
/packages/modules/StatsD/framework/test/hostsidetests/app/src/com/android/tests/statsd/framework/appnopermission/
DStatsdPermissionTest.java47 StatsManager statsManager = context.getSystemService(StatsManager.class); in testApisThrowExceptionWithoutPermission() local
50 -> statsManager.addConfig(1234, in testApisThrowExceptionWithoutPermission()
59 StatsManager.StatsUnavailableException.class, () -> statsManager.removeConfig(1234)); in testApisThrowExceptionWithoutPermission()
63 StatsManager.StatsUnavailableException.class, () -> statsManager.getReports(1234)); in testApisThrowExceptionWithoutPermission()
67 StatsManager.StatsUnavailableException.class, () -> statsManager.getStatsMetadata()); in testApisThrowExceptionWithoutPermission()
71 () -> statsManager.getRegisteredExperimentIds()); in testApisThrowExceptionWithoutPermission()
78 () -> statsManager.setBroadcastSubscriber(pi, 123, 0)); in testApisThrowExceptionWithoutPermission()
82 () -> statsManager.setBroadcastSubscriber(null, 123, 0)); in testApisThrowExceptionWithoutPermission()
86 () -> statsManager.setFetchReportsOperation(pi, 123)); in testApisThrowExceptionWithoutPermission()
90 () -> statsManager.setFetchReportsOperation(null, 123)); in testApisThrowExceptionWithoutPermission()
[all …]
/packages/modules/StatsD/framework/test/hostsidetests/app/src/com/android/tests/statsd/framework/app/
DStatsdRestartTest.java38 StatsManager statsManager = context.getSystemService(StatsManager.class); in testApisThrowExceptionWhenStatsdNotAlive() local
41 -> statsManager.addConfig(1234, in testApisThrowExceptionWhenStatsdNotAlive()
50 StatsManager.StatsUnavailableException.class, () -> statsManager.removeConfig(1234)); in testApisThrowExceptionWhenStatsdNotAlive()
54 StatsManager.StatsUnavailableException.class, () -> statsManager.getReports(1234)); in testApisThrowExceptionWhenStatsdNotAlive()
58 StatsManager.StatsUnavailableException.class, () -> statsManager.getStatsMetadata()); in testApisThrowExceptionWhenStatsdNotAlive()
62 () -> statsManager.getRegisteredExperimentIds()); in testApisThrowExceptionWhenStatsdNotAlive()
/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.java118 public static void uploadAnomalyPendingIntent(Context context, StatsManager statsManager) in uploadAnomalyPendingIntent() argument
123 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.java92 ProcStatsData statsManager = new ProcStatsData(this, false); in dumpMemory() local
93 statsManager.refreshStats(true); in dumpMemory()
94 ProcStatsData.MemInfo memInfo = statsManager.getMemInfo(); in dumpMemory()
99 obj.put("state", statsManager.getMemState()); in dumpMemory()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DStatsManagerImpl.java28 public StatsManagerImpl(@NonNull StatsManager statsManager) { in StatsManagerImpl() argument
29 mStatsManager = statsManager; in StatsManagerImpl()
DPublisherFactory.java105 StatsManagerProxy statsManager = new StatsManagerImpl(stats); in getPublisher() local
107 mPublisherListener, statsManager, mResultStore, mTelemetryHandler); in getPublisher()
DStatsPublisher.java193 @NonNull StatsManagerProxy statsManager, in StatsPublisher() argument
197 mStatsManager = statsManager; in StatsPublisher()
/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/apps/Car/Settings/src/com/android/car/settings/datausage/
DSummaryForAllUidLoader.java55 public SummaryForAllUidLoader(Context context, NetworkStatsManager statsManager, Bundle args) { in SummaryForAllUidLoader() argument
58 mNetworkStatsManager = statsManager; in SummaryForAllUidLoader()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringDependencies.java68 final NetworkStatsManager statsManager = in getOffloadController() local
71 getContext().getContentResolver(), statsManager, log, deps); in getOffloadController()
/packages/modules/Connectivity/framework-t/src/android/net/
DTrafficStats.java215 final NetworkStatsManager statsManager = in init() local
217 if (statsManager == null) { in init()
224 sStatsService = statsManager.getBinder(); in init()
/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>()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogPerfHandler.java343 StatsManager statsManager = mContext.getSystemService(StatsManager.class); in init() local
344 statsManager.setPullAtomCallback(CAR_WATCHDOG_SYSTEM_IO_USAGE_SUMMARY, in init()
346 statsManager.setPullAtomCallback(CAR_WATCHDOG_UID_IO_USAGE_SUMMARY, in init()