Home
last modified time | relevance | path

Searched refs:StatsManager (Results 1 – 18 of 18) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DMetricsCollector.java29 import android.app.StatsManager;
52 public class MetricsCollector implements StatsManager.StatsPullAtomCallback {
78 private static final StatsManager.PullAtomMetadata POLICY_PULL_DAILY =
79 new StatsManager.PullAtomMetadata.Builder()
84 private final StatsManager mStatsManager;
89 mStatsManager = (StatsManager) context.getSystemService(Context.STATS_MANAGER); in MetricsCollector()
127 return StatsManager.PULL_SKIP; in onPullAtom()
142 return StatsManager.PULL_SKIP; in pullSimSlotState()
153 return StatsManager.PULL_SUCCESS; in pullSimSlotState()
165 return StatsManager.PULL_SKIP; in pullSupportedRadioAccessFamily()
[all …]
/frameworks/base/apex/statsd/framework/api/
Dsystem-current.txt4 public final class StatsManager {
5 …_USAGE_STATS}) public void addConfig(long, byte[]) throws android.app.StatsManager.StatsUnavailabl…
10 …STATS}) public long[] getRegisteredExperimentIds() throws android.app.StatsManager.StatsUnavailabl…
11 …CKAGE_USAGE_STATS}) public byte[] getReports(long) throws android.app.StatsManager.StatsUnavailabl…
12 …AGE_USAGE_STATS}) public byte[] getStatsMetadata() throws android.app.StatsManager.StatsUnavailabl…
13 …CKAGE_USAGE_STATS}) public void removeConfig(long) throws android.app.StatsManager.StatsUnavailabl…
15 …ngedOperation(@Nullable android.app.PendingIntent) throws android.app.StatsManager.StatsUnavailabl…
16 …tSubscriber(android.app.PendingIntent, long, long) throws android.app.StatsManager.StatsUnavailabl…
19 …hReportsOperation(android.app.PendingIntent, long) throws android.app.StatsManager.StatsUnavailabl…
20 …, @Nullable android.app.StatsManager.PullAtomMetadata, @NonNull java.util.concurrent.Executor, @No…
[all …]
/frameworks/base/apex/statsd/tests/libstatspull/src/com/android/internal/os/statsd/libstats/
DLibStatsPullTests.java20 import android.app.StatsManager;
76 sPullReturnValue = StatsManager.PULL_SUCCESS; in setup()
89 StatsManager statsManager = (StatsManager) mContext.getSystemService( in tearDown()
99 StatsManager statsManager = (StatsManager) mContext.getSystemService( in testPullAtomCallbackRegistration()
133 StatsManager statsManager = (StatsManager) mContext.getSystemService( in testPullAtomCallbackFailure()
136 sPullReturnValue = StatsManager.PULL_SKIP; in testPullAtomCallbackFailure()
154 StatsManager statsManager = (StatsManager) mContext.getSystemService( in testPullAtomCallbackTimeout()
179 StatsManager statsManager = (StatsManager) mContext.getSystemService( in testPullAtomCallbackCache()
218 StatsManager statsManager = (StatsManager) mContext.getSystemService( in testPullAtomCallbackStress()
251 private void createAndAddConfigToStatsd(StatsManager statsManager) throws Exception { in createAndAddConfigToStatsd()
DStatsConfigUtils.java20 import android.app.StatsManager;
56 public static boolean verifyValidConfigExists(StatsManager statsManager, long configId) { in verifyValidConfigExists()
88 public static ConfigMetricsReport getConfigMetricsReport(StatsManager statsManager, in getConfigMetricsReport()
119 public static List<Atom> getGaugeMetricDataList(StatsManager statsManager, long configId) { in getGaugeMetricDataList()
/frameworks/base/apex/statsd/framework/test/src/android/app/
DPullAtomMetadataTest.java21 import android.app.StatsManager.PullAtomMetadata;
36 assertThat(metadata.getTimeoutMillis()).isEqualTo(StatsManager.DEFAULT_TIMEOUT_MILLIS); in testEmpty()
37 assertThat(metadata.getCoolDownMillis()).isEqualTo(StatsManager.DEFAULT_COOL_DOWN_MILLIS); in testEmpty()
47 assertThat(metadata.getCoolDownMillis()).isEqualTo(StatsManager.DEFAULT_COOL_DOWN_MILLIS); in testSetTimeoutMillis()
56 assertThat(metadata.getTimeoutMillis()).isEqualTo(StatsManager.DEFAULT_TIMEOUT_MILLIS); in testSetCoolDownMillis()
66 assertThat(metadata.getTimeoutMillis()).isEqualTo(StatsManager.DEFAULT_TIMEOUT_MILLIS); in testSetAdditiveFields()
67 assertThat(metadata.getCoolDownMillis()).isEqualTo(StatsManager.DEFAULT_COOL_DOWN_MILLIS); in testSetAdditiveFields()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DMetricsCollectorTest.java33 import android.app.StatsManager;
57 private static final StatsManager.PullAtomMetadata POLICY_PULL_DAILY =
58 new StatsManager.PullAtomMetadata.Builder()
126 assertThat(result).isEqualTo(StatsManager.PULL_SUCCESS); in onPullAtom_simSlotState_bothSimPresent()
141 assertThat(result).isEqualTo(StatsManager.PULL_SKIP); in onPullAtom_simSlotState_beforeUiccControllerReady()
158 assertThat(result).isEqualTo(StatsManager.PULL_SUCCESS); in onPullAtom_supportedRadioAccessFamily_singlePhone()
178 assertThat(result).isEqualTo(StatsManager.PULL_SUCCESS); in onPullAtom_supportedRadioAccessFamily_dualPhones()
200 assertThat(result).isEqualTo(StatsManager.PULL_SUCCESS); in onPullAtom_supportedRadioAccessFamily_dualPhonesWithUnknownRaf()
213 assertThat(result).isEqualTo(StatsManager.PULL_SKIP); in onPullAtom_supportedRadioAccessFamily_beforePhoneReady()
227 assertThat(result).isEqualTo(StatsManager.PULL_SUCCESS); in onPullAtom_voiceCallRatUsage_empty()
[all …]
/frameworks/base/apex/statsd/service/java/com/android/server/stats/
DStatsCompanion.java20 import android.app.StatsManager;
140 intent.putExtra(StatsManager.EXTRA_STATS_ACTIVE_CONFIG_KEYS, configIds); in sendActiveConfigsChangedBroadcast()
159 .putExtra(StatsManager.EXTRA_STATS_CONFIG_UID, configUid) in sendSubscriberBroadcast()
160 .putExtra(StatsManager.EXTRA_STATS_CONFIG_KEY, configId) in sendSubscriberBroadcast()
161 .putExtra(StatsManager.EXTRA_STATS_SUBSCRIPTION_ID, subscriptionId) in sendSubscriberBroadcast()
162 .putExtra(StatsManager.EXTRA_STATS_SUBSCRIPTION_RULE_ID, in sendSubscriberBroadcast()
164 .putExtra(StatsManager.EXTRA_STATS_DIMENSIONS_VALUE, dimensionsValue); in sendSubscriberBroadcast()
169 StatsManager.EXTRA_STATS_BROADCAST_SUBSCRIBER_COOKIES, cookieList); in sendSubscriberBroadcast()
DStatsCompanionService.java22 import android.app.StatsManager;
572 final Intent intent = new Intent(StatsManager.ACTION_STATSD_STARTED); in statsdReady()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java69 import android.app.StatsManager;
70 import android.app.StatsManager.PullAtomMetadata;
279 private StatsManager mStatsManager;
409 private class StatsPullAtomCallbackImpl implements StatsManager.StatsPullAtomCallback {
680 mStatsManager = (StatsManager) mContext.getSystemService(Context.STATS_MANAGER); in initializePullersState()
1062 return StatsManager.PULL_SKIP; in pullDataBytesTransferLocked()
1073 return StatsManager.PULL_SKIP; in pullDataBytesTransferLocked()
1094 return StatsManager.PULL_SUCCESS; in pullDataBytesTransferLocked()
1437 return StatsManager.PULL_SKIP;
1449 return StatsManager.PULL_SUCCESS;
[all …]
/frameworks/base/apex/statsd/framework/java/android/os/
DStatsFrameworkInitializer.java21 import android.app.StatsManager;
73 StatsManager.class, in registerServiceWrappers()
74 context -> new StatsManager(context) in registerServiceWrappers()
/frameworks/base/location/java/com/android/internal/location/gnssmetrics/
DGnssMetrics.java19 import android.app.StatsManager;
126 private StatsManager mStatsManager;
142 mStatsManager = (StatsManager) context.getSystemService(Context.STATS_MANAGER); in GnssMetrics()
635 private class StatsPullAtomCallbackImpl implements StatsManager.StatsPullAtomCallback {
659 return StatsManager.PULL_SUCCESS; in onPullAtom()
/frameworks/base/apex/statsd/framework/java/android/app/
DStatsManager.java51 public final class StatsManager { class
130 public StatsManager(Context context) { in StatsManager() method in StatsManager
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRoleObserverTest.java38 import android.app.StatsManager;
157 mock(StatsManager.class), mock(TelephonyManager.class)); in setUp()
DNotificationManagerServiceTest.java101 import android.app.StatsManager;
284 StatsManager mStatsManager;
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreManagerService.java57 import android.app.StatsManager;
172 private StatsManager mStatsManager;
207 mStatsManager = getContext().getSystemService(StatsManager.class); in onStart()
1873 private class StatsPullAtomCallbackImpl implements StatsManager.StatsPullAtomCallback {
1895 return StatsManager.PULL_SUCCESS; in pullBlobData()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java133 import android.app.StatsManager;
482 private StatsManager mStatsManager;
1869 NotificationHistoryManager historyManager, StatsManager statsManager, in init()
2099 mStatsManager = (StatsManager) getContext().getSystemService( in onStart()
2204 private class StatsPullAtomCallbackImpl implements StatsManager.StatsPullAtomCallback {
2234 return StatsManager.PULL_SUCCESS; in pullNotificationStates()
/frameworks/base/api/
Dsystem-current.txt690 public final class StatsManager {
691 …_USAGE_STATS}) public void addConfig(long, byte[]) throws android.app.StatsManager.StatsUnavailabl…
696 …STATS}) public long[] getRegisteredExperimentIds() throws android.app.StatsManager.StatsUnavailabl…
697 …CKAGE_USAGE_STATS}) public byte[] getReports(long) throws android.app.StatsManager.StatsUnavailabl…
698 …AGE_USAGE_STATS}) public byte[] getStatsMetadata() throws android.app.StatsManager.StatsUnavailabl…
699 …CKAGE_USAGE_STATS}) public void removeConfig(long) throws android.app.StatsManager.StatsUnavailabl…
701 …ngedOperation(@Nullable android.app.PendingIntent) throws android.app.StatsManager.StatsUnavailabl…
702 …tSubscriber(android.app.PendingIntent, long, long) throws android.app.StatsManager.StatsUnavailabl…
705 …hReportsOperation(android.app.PendingIntent, long) throws android.app.StatsManager.StatsUnavailabl…
706 …, @Nullable android.app.StatsManager.PullAtomMetadata, @NonNull java.util.concurrent.Executor, @No…
[all …]
/frameworks/base/services/
Dart-profile21770 …m/android/server/notification/NotificationHistoryManager;Landroid/app/StatsManager;Landroid/teleph…