/packages/modules/StatsD/apex/tests/libstatspull/src/com/android/internal/os/statsd/libstats/ |
D | LibStatsPullTests.java | 89 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 …]
|
D | StatsConfigUtils.java | 59 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/ |
D | StatsdPermissionTest.java | 47 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/ |
D | StatsdRestartTest.java | 38 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/ |
D | AnomalyConfigJobService.java | 73 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()
|
D | AnomalyConfigReceiver.java | 36 final StatsManager statsManager = context.getSystemService(StatsManager.class); in onReceive() local 42 BatteryTipUtils.uploadAnomalyPendingIntent(context, statsManager); in onReceive()
|
D | BatteryTipUtils.java | 118 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/ |
D | PulledMetrics.java | 50 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/ |
D | SettingsDumpService.java | 92 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/ |
D | StatsManagerImpl.java | 28 public StatsManagerImpl(@NonNull StatsManager statsManager) { in StatsManagerImpl() argument 29 mStatsManager = statsManager; in StatsManagerImpl()
|
D | PublisherFactory.java | 105 StatsManagerProxy statsManager = new StatsManagerImpl(stats); in getPublisher() local 107 mPublisherListener, statsManager, mResultStore, mTelemetryHandler); in getPublisher()
|
D | StatsPublisher.java | 193 @NonNull StatsManagerProxy statsManager, in StatsPublisher() argument 197 mStatsManager = statsManager; in StatsPublisher()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | UsageStatsLiveData.kt | 61 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/ |
D | SummaryForAllUidLoader.java | 55 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/ |
D | TetheringDependencies.java | 68 final NetworkStatsManager statsManager = in getOffloadController() local 71 getContext().getContentResolver(), statsManager, log, deps); in getOffloadController()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | TrafficStats.java | 215 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/ |
D | ConnectivityServiceIntegrationTest.kt | 92 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/ |
D | WatchdogPerfHandler.java | 343 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()
|