/aosp12/frameworks/base/services/core/java/com/android/server/stats/pull/ |
H A D | StatsPullAtomService.java | 479 switch (atomTag) { in onPullAtom() 1134 switch(atomTag) { in collectNetworkStatsSnapshotForAtom() 1226 switch (atomTag) { in pullDataBytesTransferLocked() 1254 atomTag, entry.uid, in addNetworkStats() 1780 atomTag, uid, cluster, 2319 atomTag, 2345 atomTag, 2373 atomTag, 3997 switch(atomTag) { 4015 + atomTag); [all …]
|
H A D | SettingsStatsUtil.java | 80 static List<StatsEvent> logGlobalSettings(Context context, int atomTag, int userId) { in logGlobalSettings() argument 91 output.add(createStatsEvent(atomTag, key, value, userId, in logGlobalSettings() 99 static List<StatsEvent> logSystemSettings(Context context, int atomTag, int userId) { in logSystemSettings() argument 110 output.add(createStatsEvent(atomTag, key, value, userId, in logSystemSettings() 118 static List<StatsEvent> logSecureSettings(Context context, int atomTag, int userId) { in logSecureSettings() argument 129 output.add(createStatsEvent(atomTag, key, value, userId, in logSecureSettings() 157 private static StatsEvent createStatsEvent(int atomTag, String key, String value, int userId, in createStatsEvent() argument 160 .setAtomId(atomTag) in createStatsEvent()
|
/aosp12/packages/modules/StatsD/statsd/src/external/ |
H A D | StatsPullerManager.h | 45 const int atomTag; member 54 return atomTag < that.atomTag; 58 return uid == that.uid && atomTag == that.atomTag; 119 void RegisterPullAtomCallback(const int uid, const int32_t atomTag, const int64_t coolDownNs, 123 void UnregisterPullAtomCallback(const int uid, const int32_t atomTag); 134 const int atomTag; member 138 return atomTag == that.atomTag ? configKey < that.configKey : atomTag < that.atomTag;
|
H A D | StatsPullerManager.cpp | 73 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(pullerKey.atomTag, in pullAtomCallbackDied() 88 {{.atomTag = util::TRAIN_INFO, .uid = AID_STATSD}, new TrainInfoPuller()}, in StatsPullerManager() 131 PullerKey key = {.atomTag = tagId, .uid = uid}; in PullLocked() 185 auto& receivers = mReceivers[{.atomTag = tagId, .configKey = configKey}]; in RegisterReceiver() 220 auto receiversIt = mReceivers.find({.atomTag = tagId, .configKey = configKey}); in UnRegisterReceiver() 335 void StatsPullerManager::RegisterPullAtomCallback(const int uid, const int32_t atomTag, in RegisterPullAtomCallback() argument 340 VLOG("RegisterPullerCallback: adding puller for tag %d", atomTag); in RegisterPullAtomCallback() 343 ALOGW("SetPullAtomCallback called with null callback for atom %d.", atomTag); in RegisterPullAtomCallback() 353 PullerKey key = {.atomTag = atomTag, .uid = uid}; in RegisterPullAtomCallback() 361 PullerKey key = {.atomTag = atomTag, .uid = uid}; in UnregisterPullAtomCallback() [all …]
|
H A D | PullResultReceiver.cpp | 28 Status PullResultReceiver::pullFinished(int32_t atomTag, bool success, in pullFinished() argument 30 pullFinishCallback(atomTag, success, output); in pullFinished()
|
/aosp12/frameworks/base/services/core/java/com/android/server/powerstats/ |
H A D | StatsPullAtomCallbackImpl.java | 54 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() argument 55 switch (atomTag) { in onPullAtom() 57 return pullSubsystemSleepState(atomTag, data); in onPullAtom() 59 return pullOnDevicePowerMeasurement(atomTag, data); in onPullAtom() 61 throw new UnsupportedOperationException("Unknown tagId=" + atomTag); in onPullAtom() 80 private int pullOnDevicePowerMeasurement(int atomTag, List<StatsEvent> events) { in pullOnDevicePowerMeasurement() argument 97 atomTag, in pullOnDevicePowerMeasurement() 130 private int pullSubsystemSleepState(int atomTag, List<StatsEvent> events) { in pullSubsystemSleepState() argument 147 atomTag, in pullSubsystemSleepState()
|
/aosp12/packages/modules/StatsD/apex/tests/libstatspull/jni/ |
H A D | stats_pull_helper.cpp | 34 static AStatsManager_PullAtomCallbackReturn pullAtomCallback(int32_t atomTag, AStatsEventList* data, in pullAtomCallback() argument 40 AStatsEvent_setAtomId(event, atomTag); in pullAtomCallback() 49 JNIEnv* /*env*/, jobject /* this */, jint atomTag, jlong timeoutMillis, in Java_com_android_internal_os_statsd_libstats_LibStatsPullTests_setStatsPuller() argument 51 sAtomTag = atomTag; in Java_com_android_internal_os_statsd_libstats_LibStatsPullTests_setStatsPuller()
|
/aosp12/packages/modules/StatsD/lib/libstatspull/ |
H A D | stats_pull_atom_callback.cpp | 115 Status onPullAtom(int32_t atomTag, in onPullAtom() argument 118 int successInt = mCallback(atomTag, &statsEventList, mCookie); in onPullAtom() 138 Status status = resultReceiver->pullFinished(atomTag, success, parcels); in onPullAtom() 141 resultReceiver->pullFinished(atomTag, /*success=*/false, emptyParcels); in onPullAtom() 208 void registerStatsPullAtomCallbackBlocking(int32_t atomTag, in registerStatsPullAtomCallbackBlocking() argument 217 atomTag, cb->getCoolDownMillis(), cb->getTimeoutMillis(), cb->getAdditiveFields(), cb); in registerStatsPullAtomCallbackBlocking() 220 void unregisterStatsPullAtomCallbackBlocking(int32_t atomTag) { in unregisterStatsPullAtomCallbackBlocking() argument 227 statsService->unregisterNativePullAtomCallback(atomTag); in unregisterStatsPullAtomCallbackBlocking()
|
/aosp12/packages/modules/StatsD/aidl/android/os/ |
H A D | IStatsd.aidl | 193 oneway void registerPullAtomCallback(int uid, int atomTag, long coolDownMillis, in registerPullAtomCallback() argument 203 oneway void registerNativePullAtomCallback(int atomTag, long coolDownMillis, long timeoutMillis, in registerNativePullAtomCallback() argument 209 oneway void unregisterPullAtomCallback(int uid, int atomTag); in unregisterPullAtomCallback() argument 216 oneway void unregisterNativePullAtomCallback(int atomTag); in unregisterNativePullAtomCallback() argument
|
H A D | IStatsManagerService.aidl | 131 oneway void registerPullAtomCallback(int atomTag, long coolDownMillis, long timeoutMillis, in registerPullAtomCallback() argument 135 oneway void unregisterPullAtomCallback(int atomTag); in unregisterPullAtomCallback() argument
|
/aosp12/packages/modules/StatsD/framework/java/android/app/ |
H A D | StatsManager.java | 494 public void setPullAtomCallback(int atomTag, @Nullable PullAtomMetadata metadata, in setPullAtomCallback() argument 509 new PullAtomCallbackInternal(atomTag, callback, executor); in setPullAtomCallback() 511 atomTag, coolDownMillis, timeoutMillis, additiveFields, rec); in setPullAtomCallback() 526 public void clearPullAtomCallback(int atomTag) { in clearPullAtomCallback() argument 530 service.unregisterPullAtomCallback(atomTag); in clearPullAtomCallback() 549 public void onPullAtom(int atomTag, IPullAtomResultReceiver resultReceiver) { in onPullAtom() argument 554 int successInt = mCallback.onPullAtom(atomTag, data); in onPullAtom() 562 resultReceiver.pullFinished(atomTag, success, parcels); in onPullAtom() 568 resultReceiver.pullFinished(atomTag, /*success=*/false, emptyData); in onPullAtom() 696 int onPullAtom(int atomTag, @NonNull List<StatsEvent> data); in onPullAtom() argument
|
/aosp12/packages/services/Car/service/src/com/android/car/stats/ |
H A D | CarStatsService.java | 106 (atomTag, data) -> pullVmsClientStats(atomTag, data) in init() 155 private int pullVmsClientStats(int atomTag, List<StatsEvent> pulledData) { in pullVmsClientStats() argument 156 if (atomTag != CarStatsLog.VMS_CLIENT_STATS) { in pullVmsClientStats() 157 Slog.w(TAG, "Unexpected atom tag: " + atomTag); in pullVmsClientStats() 163 atomTag, in pullVmsClientStats()
|
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/metrics/ |
H A D | PulledMetrics.java | 119 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() argument 121 List<StatsEvent> events = pullEvents(atomTag); in onPullAtom() 130 private List<StatsEvent> pullEvents(int atomTag) { in pullEvents() argument 131 switch (atomTag) { in pullEvents()
|
/aosp12/frameworks/base/services/core/jni/stats/ |
H A D | SurfaceFlingerPuller.cpp | 45 AStatsManager_PullAtomCallbackReturn SurfaceFlingerPuller::pull(int32_t atomTag, in pull() argument 52 status_t err = SurfaceComposerClient::onPullAtom(atomTag, &pullDataProto, &success); in pull() 56 atomTag, (int)success, binder::Status::exceptionToString(err).c_str()); in pull() 60 switch (atomTag) { in pull() 66 ALOGW("Invalid atom id for surfaceflinger pullers: %" PRId32, atomTag); in pull()
|
/aosp12/packages/modules/StatsD/tests/src/android/cts/statsd/atom/ |
H A D | DeviceAtomTestCase.java | 114 protected void createAndUploadConfig(int atomTag, boolean useAttribution) throws Exception { in createAndUploadConfig() argument 116 addAtomEvent(conf, atomTag, useAttribution); in createAndUploadConfig() 127 … protected void addAtomEvent(StatsdConfig.Builder conf, int atomTag, FieldValueMatcher.Builder fvm) in addAtomEvent() argument 132 addAtomEvent(conf, atomTag, Arrays.asList(fvm, fvmUid)); in addAtomEvent() 142 protected void addAtomEvent(StatsdConfig.Builder conf, int atomTag, in addAtomEvent() argument 151 addAtomEvent(conf, atomTag, Arrays.asList(fvmUid)); in addAtomEvent()
|
/aosp12/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/ |
H A D | MetricsHelper.java | 51 BackgroundThread.getExecutor(), (atomTag, data) -> { in registerPuller() 52 if (atomTag != FrameworkStatsLog.PENDING_ALARM_INFO) { in registerPuller() 53 throw new UnsupportedOperationException("Unknown tag" + atomTag); in registerPuller() 58 data.add(FrameworkStatsLog.buildStatsEvent(atomTag, in registerPuller()
|
/aosp12/frameworks/native/services/gpuservice/tests/unittests/ |
H A D | TestableGpuStats.h | 28 AStatsManager_PullAtomCallbackReturn makePullAtomCallback(int32_t atomTag) { in makePullAtomCallback() argument 29 return mGpuStats->pullAtomCallback(atomTag, nullptr, mGpuStats); in makePullAtomCallback()
|
/aosp12/packages/modules/StatsD/service/java/com/android/server/stats/ |
H A D | StatsManagerService.java | 173 public void registerPullAtomCallback(int atomTag, long coolDownMillis, long timeoutMillis, in registerPullAtomCallback() argument 177 Log.w(TAG, "Puller callback is null for atom " + atomTag); in registerPullAtomCallback() 181 PullerKey key = new PullerKey(callingUid, atomTag); in registerPullAtomCallback() 198 statsd.registerPullAtomCallback(callingUid, atomTag, coolDownMillis, timeoutMillis, in registerPullAtomCallback() 201 Log.e(TAG, "Failed to access statsd to register puller for atom " + atomTag); in registerPullAtomCallback() 208 public void unregisterPullAtomCallback(int atomTag) { in unregisterPullAtomCallback() argument 211 PullerKey key = new PullerKey(callingUid, atomTag); in unregisterPullAtomCallback() 226 statsd.unregisterPullAtomCallback(callingUid, atomTag); in unregisterPullAtomCallback() 228 Log.e(TAG, "Failed to access statsd to unregister puller for atom " + atomTag); in unregisterPullAtomCallback()
|
/aosp12/frameworks/av/services/mediametrics/ |
H A D | MediaMetricsService.h | 108 static std::string atomTagToKey(int32_t atomTag); 110 int32_t atomTag, AStatsEventList* data, void* cookie); 111 AStatsManager_PullAtomCallbackReturn pullItems(int32_t atomTag, AStatsEventList* data);
|
H A D | MediaMetricsService.cpp | 544 std::string MediaMetricsService::atomTagToKey(int32_t atomTag) in atomTagToKey() argument 546 switch (atomTag) { in atomTagToKey() 555 int32_t atomTag, AStatsEventList* data, void* cookie) in pullAtomCallback() argument 558 return svc->pullItems(atomTag, data); in pullAtomCallback() 562 int32_t atomTag, AStatsEventList* data) in pullItems() argument 564 const std::string key(atomTagToKey(atomTag)); in pullItems()
|
/aosp12/packages/modules/StatsD/statsd/tests/external/ |
H A D | StatsPullerManager_test.cpp | 58 Status onPullAtom(int atomTag, in onPullAtom() argument 61 AStatsEvent* event = createSimpleEvent(atomTag, mUid); in onPullAtom() 71 resultReceiver->pullFinished(atomTag, /*success*/ true, parcels); in onPullAtom()
|
/aosp12/packages/modules/StatsD/statsd/src/ |
H A D | StatsService.h | 173 int32_t uid, int32_t atomTag, int64_t coolDownMillis, int64_t timeoutMillis, 181 int32_t atomTag, int64_t coolDownMillis, int64_t timeoutMillis, 188 virtual Status unregisterPullAtomCallback(int32_t uid, int32_t atomTag) override; 193 virtual Status unregisterNativePullAtomCallback(int32_t atomTag) override;
|
/aosp12/packages/modules/StatsD/tests/src/android/cts/statsd/validation/ |
H A D | ValidationTests.java | 94 final int atomTag = Atom.WAKELOCK_STATE_CHANGED_FIELD_NUMBER; in testPartialWakelock() local 108 createAndUploadConfig(atomTag, true); // True: uses attribution. in testPartialWakelock() 331 final int atomTag = Atom.WAKELOCK_STATE_CHANGED_FIELD_NUMBER; in uploadWakelockDurationBatteryStatsConfig() local 397 .setField(atomTag) in uploadWakelockDurationBatteryStatsConfig() 409 .setAtomId(atomTag) in uploadWakelockDurationBatteryStatsConfig() 420 .setAtomId(atomTag) in uploadWakelockDurationBatteryStatsConfig() 431 .setAtomId(atomTag) in uploadWakelockDurationBatteryStatsConfig() 442 .setAtomId(atomTag) in uploadWakelockDurationBatteryStatsConfig()
|
/aosp12/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/stats/ |
H A D | StatsCollector.java | 93 public int onPullAtom(int atomTag, @NonNull List<StatsEvent> data) { in onPullAtom() argument 95 switch (atomTag) { in onPullAtom() 99 Log.e(TAG, "unexpected atom ID " + atomTag); in onPullAtom()
|
/aosp12/frameworks/base/services/core/java/com/android/server/location/gnss/ |
H A D | GnssMetrics.java | 611 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() argument 612 if (atomTag == FrameworkStatsLog.GNSS_STATS) { in onPullAtom() 613 data.add(FrameworkStatsLog.buildStatsEvent(atomTag, in onPullAtom() 626 } else if (atomTag == FrameworkStatsLog.GNSS_POWER_STATS) { in onPullAtom() 644 data.add(FrameworkStatsLog.buildStatsEvent(atomTag, in onPullAtom() 666 throw new UnsupportedOperationException("Unknown tagId = " + atomTag); in onPullAtom()
|