/packages/modules/StatsD/statsd/src/external/ |
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;
|
D | StatsPullerManager.cpp | 50 {{.atomTag = util::TRAIN_INFO, .uid = AID_STATSD}, new TrainInfoPuller()}, in StatsPullerManager() 92 PullerKey key = {.atomTag = tagId, .uid = uid}; in PullLocked() 154 auto& receivers = mReceivers[{.atomTag = tagId, .configKey = configKey}]; in RegisterReceiver() 189 auto receiversIt = mReceivers.find({.atomTag = tagId, .configKey = configKey}); in UnRegisterReceiver() 245 bool pullSuccess = PullLocked(pullInfo.first->atomTag, pullInfo.first->configKey, in OnAlarmFired() 304 void StatsPullerManager::RegisterPullAtomCallback(const int uid, const int32_t atomTag, in RegisterPullAtomCallback() argument 309 VLOG("RegisterPullerCallback: adding puller for tag %d", atomTag); in RegisterPullAtomCallback() 312 ALOGW("SetPullAtomCallback called with null callback for atom %d.", atomTag); in RegisterPullAtomCallback() 319 sp<StatsCallbackPuller> puller = new StatsCallbackPuller(atomTag, callback, actualCoolDownNs, in RegisterPullAtomCallback() 321 PullerKey key = {.atomTag = atomTag, .uid = uid}; in RegisterPullAtomCallback() [all …]
|
D | PullResultReceiver.cpp | 28 Status PullResultReceiver::pullFinished(int32_t atomTag, bool success, in pullFinished() argument 30 pullFinishCallback(atomTag, success, output); in pullFinished()
|
D | PullResultReceiver.h | 39 Status pullFinished(int32_t atomTag, bool success,
|
D | StatsCallbackPuller.cpp | 62 int32_t atomTag, bool success, const vector<StatsEventParcel>& output) { in PullInternal() argument
|
/packages/modules/StatsD/framework/java/android/app/ |
D | StatsManager.java | 506 public void setPullAtomCallback(int atomTag, @Nullable PullAtomMetadata metadata, in setPullAtomCallback() argument 521 new PullAtomCallbackInternal(atomTag, callback, executor); in setPullAtomCallback() 523 atomTag, coolDownMillis, timeoutMillis, additiveFields, rec); in setPullAtomCallback() 538 public void clearPullAtomCallback(int atomTag) { in clearPullAtomCallback() argument 542 service.unregisterPullAtomCallback(atomTag); in clearPullAtomCallback() 561 public void onPullAtom(int atomTag, IPullAtomResultReceiver resultReceiver) { in onPullAtom() argument 566 int successInt = mCallback.onPullAtom(atomTag, data); in onPullAtom() 574 resultReceiver.pullFinished(atomTag, success, parcels); in onPullAtom() 580 resultReceiver.pullFinished(atomTag, /*success=*/false, emptyData); in onPullAtom() 708 int onPullAtom(int atomTag, @NonNull List<StatsEvent> data); in onPullAtom() argument
|
/packages/modules/StatsD/lib/libstatspull/ |
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() 239 void registerStatsPullAtomCallbackBlocking(int32_t atomTag, in registerStatsPullAtomCallbackBlocking() argument 249 atomTag, cb->getCoolDownMillis(), cb->getTimeoutMillis(), cb->getAdditiveFields(), cb); in registerStatsPullAtomCallbackBlocking() 252 void unregisterStatsPullAtomCallbackBlocking(int32_t atomTag, in unregisterStatsPullAtomCallbackBlocking() argument 260 statsService->unregisterNativePullAtomCallback(atomTag); in unregisterStatsPullAtomCallbackBlocking()
|
/packages/services/Car/service/src/com/android/car/stats/ |
D | CarStatsService.java | 109 (atomTag, data) -> pullVmsClientStats(atomTag, data) in init() 159 private int pullVmsClientStats(int atomTag, List<StatsEvent> pulledData) { in pullVmsClientStats() argument 160 if (atomTag != CarStatsLog.VMS_CLIENT_STATS) { in pullVmsClientStats() 161 Slogf.w(TAG, "Unexpected atom tag: " + atomTag); in pullVmsClientStats() 167 atomTag, in pullVmsClientStats()
|
/packages/modules/StatsD/apex/tests/libstatspull/jni/ |
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()
|
/packages/modules/StatsD/aidl/android/os/ |
D | IStatsd.aidl | 194 oneway void registerPullAtomCallback(int uid, int atomTag, long coolDownMillis, in registerPullAtomCallback() argument 204 oneway void registerNativePullAtomCallback(int atomTag, long coolDownMillis, long timeoutMillis, in registerNativePullAtomCallback() argument 210 oneway void unregisterPullAtomCallback(int uid, int atomTag); in unregisterPullAtomCallback() argument 217 oneway void unregisterNativePullAtomCallback(int atomTag); in unregisterNativePullAtomCallback() argument
|
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
|
D | IPullAtomCallback.aidl | 29 oneway void onPullAtom(int atomTag, IPullAtomResultReceiver resultReceiver); in onPullAtom() argument
|
D | IPullAtomResultReceiver.aidl | 30 oneway void pullFinished(int atomTag, boolean success, in StatsEventParcel[] output); in pullFinished() argument
|
/packages/modules/StatsD/tests/src/android/cts/statsd/atom/ |
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()
|
D | AtomTestCase.java | 286 protected void createAndUploadConfig(int atomTag) throws Exception { in createAndUploadConfig() argument 288 addAtomEvent(conf, atomTag); in createAndUploadConfig() 665 protected void addAtomEvent(StatsdConfig.Builder conf, int atomTag) throws Exception { in addAtomEvent() argument 666 addAtomEvent(conf, atomTag, new ArrayList<FieldValueMatcher.Builder>()); in addAtomEvent() 676 protected void addAtomEvent(StatsdConfig.Builder conf, int atomTag, in addAtomEvent() argument 679 addAtomEvent(conf, atomTag, Arrays.asList(fvm)); in addAtomEvent()
|
/packages/providers/MediaProvider/src/com/android/providers/media/metrics/ |
D | PulledMetrics.java | 127 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() argument 129 List<StatsEvent> events = pullEvents(atomTag); in onPullAtom() 138 private List<StatsEvent> pullEvents(int atomTag) { in pullEvents() argument 139 switch (atomTag) { in pullEvents()
|
/packages/modules/StatsD/service/java/com/android/server/stats/ |
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()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/validation/ |
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() 332 final int atomTag = Atom.WAKELOCK_STATE_CHANGED_FIELD_NUMBER; in uploadWakelockDurationBatteryStatsConfig() local 398 .setField(atomTag) in uploadWakelockDurationBatteryStatsConfig() 410 .setAtomId(atomTag) in uploadWakelockDurationBatteryStatsConfig() 421 .setAtomId(atomTag) in uploadWakelockDurationBatteryStatsConfig() 432 .setAtomId(atomTag) in uploadWakelockDurationBatteryStatsConfig() 443 .setAtomId(atomTag) in uploadWakelockDurationBatteryStatsConfig()
|
/packages/services/Mms/src/com/android/mms/service/metrics/ |
D | MmsMetricsCollector.java | 114 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() argument 115 switch (atomTag) { in onPullAtom() 121 Log.e(TAG, String.format("unexpected atom ID %d", atomTag)); in onPullAtom()
|
/packages/modules/StatsD/statsd/src/ |
D | StatsService.h | 176 int32_t uid, int32_t atomTag, int64_t coolDownMillis, int64_t timeoutMillis, 184 int32_t atomTag, int64_t coolDownMillis, int64_t timeoutMillis, 191 virtual Status unregisterPullAtomCallback(int32_t uid, int32_t atomTag) override; 196 virtual Status unregisterNativePullAtomCallback(int32_t atomTag) override;
|
D | StatsService.cpp | 1236 Status StatsService::registerPullAtomCallback(int32_t uid, int32_t atomTag, int64_t coolDownMillis, in registerPullAtomCallback() argument 1242 mPullerManager->RegisterPullAtomCallback(uid, atomTag, MillisToNano(coolDownMillis), in registerPullAtomCallback() 1249 int32_t atomTag, int64_t coolDownMillis, int64_t timeoutMillis, in registerNativePullAtomCallback() argument 1256 AIBinder_getCallingUid(), kPermissionRegisterPullAtom, atomTag)); in registerNativePullAtomCallback() 1260 mPullerManager->RegisterPullAtomCallback(uid, atomTag, MillisToNano(coolDownMillis), in registerNativePullAtomCallback() 1266 Status StatsService::unregisterPullAtomCallback(int32_t uid, int32_t atomTag) { in unregisterPullAtomCallback() argument 1269 mPullerManager->UnregisterPullAtomCallback(uid, atomTag); in unregisterPullAtomCallback() 1273 Status StatsService::unregisterNativePullAtomCallback(int32_t atomTag) { in unregisterNativePullAtomCallback() argument 1278 AIBinder_getCallingUid(), kPermissionRegisterPullAtom, atomTag)); in unregisterNativePullAtomCallback() 1282 mPullerManager->UnregisterPullAtomCallback(uid, atomTag); in unregisterNativePullAtomCallback()
|
D | HashableDimensionKey.h | 145 explicit AtomDimensionKey(const int32_t atomTag, const HashableDimensionKey& atomFieldValues) in AtomDimensionKey() argument 146 : mAtomTag(atomTag), mAtomFieldValues(atomFieldValues){}; in AtomDimensionKey()
|
/packages/modules/StatsD/statsd/tests/external/ |
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()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/stats/ |
D | StatsCollector.java | 96 public int onPullAtom(int atomTag, @NonNull List<StatsEvent> data) { in onPullAtom() argument 98 switch (atomTag) { in onPullAtom() 102 Log.e(TAG, "unexpected atom ID " + atomTag); in onPullAtom()
|
/packages/modules/StatsD/apex/tests/libstatspull/src/com/android/internal/os/statsd/libstats/ |
D | LibStatsPullTests.java | 282 private native void setStatsPuller(int atomTag, long timeoutMillis, long coolDownMillis, in setStatsPuller() argument 285 private native void clearStatsPuller(int atomTag); in clearStatsPuller() argument
|