/frameworks/base/cmds/statsd/src/state/ |
D | StateManager.cpp | 55 void StateManager::registerListener(const int32_t atomId, wp<StateListener> listener) { in registerListener() argument 57 if (mStateTrackers.find(atomId) == mStateTrackers.end()) { in registerListener() 58 mStateTrackers[atomId] = new StateTracker(atomId); in registerListener() 60 mStateTrackers[atomId]->registerListener(listener); in registerListener() 63 void StateManager::unregisterListener(const int32_t atomId, wp<StateListener> listener) { in unregisterListener() argument 71 auto it = mStateTrackers.find(atomId); in unregisterListener() 82 atomId); in unregisterListener() 87 bool StateManager::getStateValue(const int32_t atomId, const HashableDimensionKey& key, in getStateValue() argument 89 auto it = mStateTrackers.find(atomId); in getStateValue()
|
D | StateManager.h | 57 void registerListener(const int32_t atomId, wp<StateListener> listener); 61 void unregisterListener(const int32_t atomId, wp<StateListener> listener); 67 bool getStateValue(const int32_t atomId, const HashableDimensionKey& queryKey, 79 inline int getListenersCount(const int32_t atomId) const { in getListenersCount() argument 80 auto it = mStateTrackers.find(atomId); in getListenersCount()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ChooserActivityLoggerFake.java | 29 public int atomId; field in ChooserActivityLoggerFake.CallRecord 48 CallRecord(int atomId, UiEventLogger.UiEventEnum eventId, in CallRecord() argument 50 this.atomId = atomId; in CallRecord() 56 CallRecord(int atomId, String packageName, InstanceId instanceId, String mimeType, in CallRecord() argument 59 this.atomId = atomId; in CallRecord() 70 CallRecord(int atomId, String packageName, InstanceId instanceId, int targetType, in CallRecord() argument 72 this.atomId = atomId; in CallRecord()
|
/frameworks/base/cmds/statsd/tests/ |
D | statsd_test_util.h | 60 AtomMatcher CreateSimpleAtomMatcher(const string& name, int atomId); 180 FieldMatcher CreateDimensions(const int atomId, const std::vector<int>& fields); 183 FieldMatcher CreateAttributionUidAndTagDimensions(const int atomId, 187 FieldMatcher CreateAttributionUidDimensions(const int atomId, 190 FieldMatcher CreateAttributionUidAndOtherDimensions(const int atomId, 212 shared_ptr<LogEvent> CreateTwoValueLogEvent(int atomId, int64_t eventTimeNs, int32_t value1, 215 void CreateTwoValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, int32_t value1, 218 shared_ptr<LogEvent> CreateThreeValueLogEvent(int atomId, int64_t eventTimeNs, int32_t value1, 221 void CreateThreeValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, int32_t value1, 227 std::shared_ptr<LogEvent> CreateRepeatedValueLogEvent(int atomId, int64_t eventTimeNs, [all …]
|
D | statsd_test_util.cpp | 45 AtomMatcher CreateSimpleAtomMatcher(const string& name, int atomId) { in CreateSimpleAtomMatcher() argument 49 simple_atom_matcher->set_atom_id(atomId); in CreateSimpleAtomMatcher() 399 FieldMatcher CreateAttributionUidDimensions(const int atomId, in CreateAttributionUidDimensions() argument 402 dimensions.set_field(atomId); in CreateAttributionUidDimensions() 412 FieldMatcher CreateAttributionUidAndTagDimensions(const int atomId, in CreateAttributionUidAndTagDimensions() argument 415 dimensions.set_field(atomId); in CreateAttributionUidAndTagDimensions() 426 FieldMatcher CreateDimensions(const int atomId, const std::vector<int>& fields) { in CreateDimensions() argument 428 dimensions.set_field(atomId); in CreateDimensions() 435 FieldMatcher CreateAttributionUidAndOtherDimensions(const int atomId, in CreateAttributionUidAndOtherDimensions() argument 438 FieldMatcher dimensions = CreateAttributionUidDimensions(atomId, positions); in CreateAttributionUidAndOtherDimensions() [all …]
|
D | FieldValue_test.cpp | 43 void makeLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeLogEvent() argument 47 AStatsEvent_setAtomId(statsEvent, atomId); in makeLogEvent() 56 void makeLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeLogEvent() argument 60 AStatsEvent_setAtomId(statsEvent, atomId); in makeLogEvent() 320 int atomId = 10; in TEST() local 328 Field field1(atomId, pos1, /*depth=*/2); in TEST() 329 Field field2(atomId, pos2, /*depth=*/2); in TEST() 330 Field field3(atomId, pos3, /*depth=*/2); in TEST() 331 Field field4(atomId, pos4, /*depth=*/2); in TEST() 332 Field field5(atomId, pos5, /*depth=*/0); in TEST() [all …]
|
D | LogEntryMatcher_test.cpp | 47 void makeIntLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeIntLogEvent() argument 50 AStatsEvent_setAtomId(statsEvent, atomId); in makeIntLogEvent() 57 void makeFloatLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeFloatLogEvent() argument 60 AStatsEvent_setAtomId(statsEvent, atomId); in makeFloatLogEvent() 67 void makeStringLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeStringLogEvent() argument 70 AStatsEvent_setAtomId(statsEvent, atomId); in makeStringLogEvent() 77 void makeIntWithBoolAnnotationLogEvent(LogEvent* logEvent, const int32_t atomId, in makeIntWithBoolAnnotationLogEvent() argument 81 AStatsEvent_setAtomId(statsEvent, atomId); in makeIntWithBoolAnnotationLogEvent() 88 void makeAttributionLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeAttributionLogEvent() argument 92 AStatsEvent_setAtomId(statsEvent, atomId); in makeAttributionLogEvent() [all …]
|
/frameworks/base/tools/stats_log_api_gen/ |
D | Collation.h | 97 const int atomId; member 101 inline Annotation(AnnotationId annotationId, int atomId, AnnotationType type, in Annotation() 103 : annotationId(annotationId), atomId(atomId), type(type), value(value) { in Annotation() 109 return atomId == that.atomId ? annotationId < that.annotationId : atomId < that.atomId;
|
/frameworks/base/cmds/statsd/src/ |
D | stats_log_util.h | 107 inline bool isVendorPulledAtom(int atomId) { in isVendorPulledAtom() argument 108 return atomId >= StatsdStats::kVendorPulledAtomStartTag && atomId < StatsdStats::kMaxAtomTag; in isVendorPulledAtom() 111 inline bool isPulledAtom(int atomId) { in isPulledAtom() argument 112 return atomId >= StatsdStats::kPullAtomStartTag && atomId < StatsdStats::kVendorAtomStartTag; in isPulledAtom()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | MetricProducer.cpp | 120 for (auto atomId : mSlicedStateAtoms) { in onMatchedLogEventLocked() local 122 if (statePrimaryKeys.find(atomId) != statePrimaryKeys.end()) { in onMatchedLogEventLocked() 124 queryStateValue(atomId, statePrimaryKeys[atomId], &value); in onMatchedLogEventLocked() 128 queryStateValue(atomId, DEFAULT_DIMENSION_KEY, &value); in onMatchedLogEventLocked() 130 mapStateValue(atomId, &value); in onMatchedLogEventLocked() 269 void MetricProducer::queryStateValue(const int32_t atomId, const HashableDimensionKey& queryKey, in queryStateValue() argument 271 if (!StateManager::getInstance().getStateValue(atomId, queryKey, value)) { in queryStateValue() 273 value->mField.setTag(atomId); in queryStateValue() 274 ALOGW("StateTracker not found for state atom %d", atomId); in queryStateValue() 279 void MetricProducer::mapStateValue(const int32_t atomId, FieldValue* value) { in mapStateValue() argument [all …]
|
D | MetricsManager.cpp | 128 int32_t atomId = pullAtomPackages.atom_id(); in MetricsManager() local 133 mPullAtomUids[atomId].insert(it->second); in MetricsManager() 135 mPullAtomPackages[atomId].insert(pullPackage); in MetricsManager() 189 for (int atomId : it->getSlicedStateAtoms()) { in ~MetricsManager() local 190 StateManager::getInstance().unregisterListener(atomId, it); in ~MetricsManager() 217 for (const auto& [atomId, uids] : mPullAtomUids) { in initPullAtomSources() 218 mCombinedPullAtomUids[atomId].insert(uids.begin(), uids.end()); in initPullAtomSources() 220 for (const auto& [atomId, packages] : mPullAtomPackages) { in initPullAtomSources() 223 mCombinedPullAtomUids[atomId].insert(uids.begin(), uids.end()); in initPullAtomSources() 299 vector<int32_t> MetricsManager::getPullAtomUids(int32_t atomId) { in getPullAtomUids() argument [all …]
|
D | DurationMetricProducer.cpp | 163 void DurationMetricProducer::onStateChanged(const int64_t eventTimeNs, const int32_t atomId, in onStateChanged() argument 170 mapStateValue(atomId, &newStateCopy); in onStateChanged() 185 if (!containsLinkedStateValues(whatIt.first, primaryKey, mMetric2StateLinks, atomId)) { in onStateChanged() 188 whatIt.second->onStateChanged(eventTimeNs, atomId, newStateCopy); in onStateChanged() 585 for (auto atomId : mSlicedStateAtoms) { in onMatchedLogEventLocked() local 587 if (statePrimaryKeys.find(atomId) != statePrimaryKeys.end()) { in onMatchedLogEventLocked() 589 queryStateValue(atomId, statePrimaryKeys[atomId], &value); in onMatchedLogEventLocked() 593 queryStateValue(atomId, DEFAULT_DIMENSION_KEY, &value); in onMatchedLogEventLocked() 595 mapStateValue(atomId, &value); in onMatchedLogEventLocked()
|
/frameworks/base/cmds/statsd/benchmark/ |
D | metric_util.h | 29 AtomMatcher CreateSimpleAtomMatcher(const string& name, int atomId); 86 FieldMatcher CreateDimensions(const int atomId, const std::vector<int>& fields); 89 FieldMatcher CreateAttributionUidAndTagDimensions(const int atomId, 93 FieldMatcher CreateAttributionUidDimensions(const int atomId,
|
D | metric_util.cpp | 23 AtomMatcher CreateSimpleAtomMatcher(const string& name, int atomId) { in CreateSimpleAtomMatcher() argument 27 simple_atom_matcher->set_atom_id(atomId); in CreateSimpleAtomMatcher() 214 FieldMatcher CreateAttributionUidDimensions(const int atomId, in CreateAttributionUidDimensions() argument 217 dimensions.set_field(atomId); in CreateAttributionUidDimensions() 227 FieldMatcher CreateAttributionUidAndTagDimensions(const int atomId, in CreateAttributionUidAndTagDimensions() argument 230 dimensions.set_field(atomId); in CreateAttributionUidAndTagDimensions() 241 FieldMatcher CreateDimensions(const int atomId, const std::vector<int>& fields) { in CreateDimensions() argument 243 dimensions.set_field(atomId); in CreateDimensions()
|
/frameworks/base/cmds/statsd/src/guardrail/ |
D | StatsdStats.h | 292 void noteAtomLogged(int atomId, int32_t timeSec); 381 void notePullFailed(int atomId); 386 void notePullUidProviderNotFound(int atomId); 392 void notePullerNotFound(int atomId); 397 void notePullBinderCallFailed(int atomId); 402 void noteEmptyData(int atomId); 409 void notePullerCallbackRegistrationChanged(int atomId, bool registered); 651 int getPushedAtomErrors(int atomId) const;
|
D | StatsdStats.cpp | 459 void StatsdStats::noteAtomLogged(int atomId, int32_t timeSec) { in noteAtomLogged() argument 462 if (atomId <= kMaxPushedAtomId) { in noteAtomLogged() 463 mPushedAtomStats[atomId]++; in noteAtomLogged() 466 mNonPlatformPushedAtomStats[atomId]++; in noteAtomLogged() 480 void StatsdStats::notePullFailed(int atomId) { in notePullFailed() argument 482 mPulledAtomStats[atomId].pullFailed++; in notePullFailed() 485 void StatsdStats::notePullUidProviderNotFound(int atomId) { in notePullUidProviderNotFound() argument 487 mPulledAtomStats[atomId].pullUidProviderNotFound++; in notePullUidProviderNotFound() 490 void StatsdStats::notePullerNotFound(int atomId) { in notePullerNotFound() argument 492 mPulledAtomStats[atomId].pullerNotFound++; in notePullerNotFound() [all …]
|
/frameworks/base/cmds/statsd/tests/external/ |
D | StatsPullerManager_test.cpp | 47 AStatsEvent* createSimpleEvent(int32_t atomId, int32_t value) { in createSimpleEvent() argument 49 AStatsEvent_setAtomId(event, atomId); in createSimpleEvent() 79 vector<int32_t> getPullAtomUids(int atomId) override { in getPullAtomUids() argument 80 if (atomId == pullTagId1) { in getPullAtomUids() 82 } else if (atomId == pullTagId2) { in getPullAtomUids()
|
/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/ |
D | TestDrive.java | 220 static boolean isPulledAtom(int atomId) { in isPulledAtom() argument 221 return atomId >= PULL_ATOM_START && atomId <= MAX_PLATFORM_ATOM_TAG in isPulledAtom() 222 || atomId >= VENDOR_PULLED_ATOM_START_TAG; in isPulledAtom() 258 for (int atomId : mPulledAtoms) { in createConfig() 259 builder.addAtomMatcher(createAtomMatcher(atomId, atomMatcherId)); in createConfig() 276 for (int atomId : mPushedAtoms) { in createConfig() 277 final AtomMatcher atomMatcher = createAtomMatcher(atomId, atomMatcherId++); in createConfig() 306 private static AtomMatcher createAtomMatcher(int atomId, long matcherId) { in createAtomMatcher() argument 310 .setSimpleAtomMatcher(SimpleAtomMatcher.newBuilder().setAtomId(atomId)); in createAtomMatcher()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | SysUiStatsEvent.java | 37 public Builder setAtomId(int atomId) { in setAtomId() argument 38 mBuilder.setAtomId(atomId); in setAtomId()
|
/frameworks/native/services/stats/ |
D | StatsHal.cpp | 116 if (vendorAtom.atomId < 100000 || vendorAtom.atomId >= 200000) { in reportVendorAtom() 117 ALOGE("Atom ID %ld is not a valid vendor atom ID", (long) vendorAtom.atomId); in reportVendorAtom() 125 AStatsEvent_setAtomId(event, vendorAtom.atomId); in reportVendorAtom()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | WrappedSysUiStatsEvent.java | 47 public Builder setAtomId(int atomId) { in setAtomId() argument 48 mAtomId = atomId; in setAtomId() 49 super.setAtomId(atomId); in setAtomId()
|
/frameworks/base/apex/statsd/jni/ |
D | android_util_StatsLog.cpp | 28 jint atomId) { in android_util_StatsLog_write() argument 42 write_buffer_to_statsd((void*) bufferArray, size, atomId); in android_util_StatsLog_write()
|
/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | OringDurationTracker.h | 47 void onStateChanged(const int64_t timestamp, const int32_t atomId, 65 void updateCurrentStateKey(const int32_t atomId, const FieldValue& newState);
|
D | MaxDurationTracker.h | 57 void onStateChanged(const int64_t timestamp, const int32_t atomId, 68 void updateCurrentStateKey(const int32_t atomId, const FieldValue& newState);
|
D | OringDurationTracker.cpp | 330 void OringDurationTracker::onStateChanged(const int64_t timestamp, const int32_t atomId, in onStateChanged() argument 337 updateCurrentStateKey(atomId, newState); in onStateChanged() 344 updateCurrentStateKey(atomId, newState); in onStateChanged() 452 void OringDurationTracker::updateCurrentStateKey(const int32_t atomId, const FieldValue& newState) { in updateCurrentStateKey() argument 455 if (stateValuesKey->getValues()[i].mField.getTag() == atomId) { in updateCurrentStateKey()
|