/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | StatsPullAtomService.java | 411 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() argument 413 Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER, "StatsPull-" + atomTag); in onPullAtom() 416 switch (atomTag) { in onPullAtom() 424 return pullDataBytesTransferLocked(atomTag, data); in onPullAtom() 428 return pullBluetoothBytesTransferLocked(atomTag, data); in onPullAtom() 432 return pullKernelWakelockLocked(atomTag, data); in onPullAtom() 436 return pullCpuTimePerFreqLocked(atomTag, data); in onPullAtom() 440 return pullCpuTimePerUidLocked(atomTag, data); in onPullAtom() 444 return pullCpuTimePerUidFreqLocked(atomTag, data); in onPullAtom() 448 return pullCpuActiveTimeLocked(atomTag, data); in onPullAtom() [all …]
|
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()
|
/frameworks/base/cmds/statsd/src/external/ |
D | StatsPullerManager.cpp | 73 StatsdStats::getInstance().notePullerCallbackRegistrationChanged(pullerKey.atomTag, in pullAtomCallbackDied() 88 {{.atomTag = util::TRAIN_INFO, .uid = AID_STATSD}, new TrainInfoPuller()}, in StatsPullerManager() 136 PullerKey key = {.atomTag = tagId, .uid = uid}; in PullLocked() 151 PullerKey key = {.atomTag = tagId, .uid = -1}; in PullLocked() 204 auto& receivers = mReceivers[{.atomTag = tagId, .configKey = configKey}]; in RegisterReceiver() 239 auto receiversIt = mReceivers.find({.atomTag = tagId, .configKey = configKey}); in UnRegisterReceiver() 295 bool pullSuccess = PullLocked(pullInfo.first->atomTag, pullInfo.first->configKey, in OnAlarmFired() 352 void StatsPullerManager::RegisterPullAtomCallback(const int uid, const int32_t atomTag, in RegisterPullAtomCallback() argument 358 VLOG("RegisterPullerCallback: adding puller for tag %d", atomTag); in RegisterPullAtomCallback() 361 ALOGW("SetPullAtomCallback called with null callback for atom %d.", atomTag); 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
|
/frameworks/base/apex/statsd/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()
|
/frameworks/base/apex/statsd/aidl/android/os/ |
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
|
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
|
/frameworks/base/apex/statsd/framework/java/android/app/ |
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
|
/frameworks/native/services/gpuservice/tests/unittests/ |
D | TestableGpuStats.h | 28 AStatsManager_PullAtomCallbackReturn makePullAtomCallback(int32_t atomTag) { in makePullAtomCallback() argument 29 return mGpuStats->pullAtomCallback(atomTag, nullptr, mGpuStats); in makePullAtomCallback()
|
/frameworks/base/services/core/jni/stats/ |
D | SubsystemSleepStatePuller.cpp | 58 static std::function<AStatsManager_PullAtomCallbackReturn(int32_t atomTag, AStatsEventList* data)> 179 static AStatsManager_PullAtomCallbackReturn getIPowerStatsDataLocked(int32_t atomTag, in getIPowerStatsDataLocked() argument 247 static AStatsManager_PullAtomCallbackReturn getIPowerDataLocked(int32_t atomTag, in getIPowerDataLocked() argument 331 std::function<AStatsManager_PullAtomCallbackReturn(int32_t atomTag, AStatsEventList* data)> 333 std::function<AStatsManager_PullAtomCallbackReturn(int32_t atomTag, AStatsEventList * data)> in getPullerLocked() 349 AStatsManager_PullAtomCallbackReturn SubsystemSleepStatePuller::Pull(int32_t atomTag, in Pull() argument 358 return gPuller(atomTag, data); in Pull()
|
D | SubsystemSleepStatePuller.h | 32 AStatsManager_PullAtomCallbackReturn Pull(int32_t atomTag, AStatsEventList* data);
|
D | PowerStatsPuller.h | 32 AStatsManager_PullAtomCallbackReturn Pull(int32_t atomTag, AStatsEventList* data);
|
/frameworks/base/apex/statsd/service/java/com/android/server/stats/ |
D | StatsManagerService.java | 172 public void registerPullAtomCallback(int atomTag, long coolDownMillis, long timeoutMillis, in registerPullAtomCallback() argument 176 Log.w(TAG, "Puller callback is null for atom " + atomTag); in registerPullAtomCallback() 180 PullerKey key = new PullerKey(callingUid, atomTag); in registerPullAtomCallback() 197 statsd.registerPullAtomCallback(callingUid, atomTag, coolDownMillis, timeoutMillis, in registerPullAtomCallback() 200 Log.e(TAG, "Failed to access statsd to register puller for atom " + atomTag); in registerPullAtomCallback() 207 public void unregisterPullAtomCallback(int atomTag) { in unregisterPullAtomCallback() argument 210 PullerKey key = new PullerKey(callingUid, atomTag); in unregisterPullAtomCallback() 225 statsd.unregisterPullAtomCallback(callingUid, atomTag); in unregisterPullAtomCallback() 227 Log.e(TAG, "Failed to access statsd to unregister puller for atom " + atomTag); in unregisterPullAtomCallback()
|
/frameworks/base/cmds/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()
|
/frameworks/base/cmds/statsd/src/ |
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;
|
D | StatsService.cpp | 1233 Status StatsService::registerPullAtomCallback(int32_t uid, int32_t atomTag, int64_t coolDownMillis, in registerPullAtomCallback() argument 1239 mPullerManager->RegisterPullAtomCallback(uid, atomTag, MillisToNano(coolDownMillis), in registerPullAtomCallback() 1246 int32_t atomTag, int64_t coolDownMillis, int64_t timeoutMillis, in registerNativePullAtomCallback() argument 1253 AIBinder_getCallingUid(), kPermissionRegisterPullAtom, atomTag)); in registerNativePullAtomCallback() 1257 mPullerManager->RegisterPullAtomCallback(uid, atomTag, MillisToNano(coolDownMillis), in registerNativePullAtomCallback() 1263 Status StatsService::unregisterPullAtomCallback(int32_t uid, int32_t atomTag) { in unregisterPullAtomCallback() argument 1266 mPullerManager->UnregisterPullAtomCallback(uid, atomTag); in unregisterPullAtomCallback() 1270 Status StatsService::unregisterNativePullAtomCallback(int32_t atomTag) { in unregisterNativePullAtomCallback() argument 1275 AIBinder_getCallingUid(), kPermissionRegisterPullAtom, atomTag)); in unregisterNativePullAtomCallback() 1279 mPullerManager->UnregisterPullAtomCallback(uid, atomTag); in unregisterNativePullAtomCallback()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | MetricsCollector.java | 115 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() argument 116 switch (atomTag) { in onPullAtom() 126 Rlog.e(TAG, String.format("unexpected atom ID %d", atomTag)); in onPullAtom()
|
/frameworks/native/services/gpuservice/gpustats/include/gpustats/ |
D | GpuStats.h | 55 static AStatsManager_PullAtomCallbackReturn pullAtomCallback(int32_t atomTag,
|
/frameworks/base/location/java/com/android/internal/location/gnssmetrics/ |
D | GnssMetrics.java | 637 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() argument 638 if (atomTag != FrameworkStatsLog.GNSS_STATS) { in onPullAtom() 639 throw new UnsupportedOperationException("Unknown tagId = " + atomTag); in onPullAtom() 642 .setAtomId(atomTag) in onPullAtom()
|
/frameworks/native/services/gpuservice/gpustats/ |
D | GpuStats.cpp | 353 AStatsManager_PullAtomCallbackReturn GpuStats::pullAtomCallback(int32_t atomTag, in pullAtomCallback() argument 359 if (atomTag == android::util::GPU_STATS_GLOBAL_INFO) { in pullAtomCallback() 361 } else if (atomTag == android::util::GPU_STATS_APP_INFO) { in pullAtomCallback()
|
/frameworks/base/apex/statsd/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
|