Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/
DTestDrive.java89 int atomId = Integer.valueOf(args[i]); in main() local
90 if (Atom.getDescriptor().findFieldByNumber(atomId) == null) { in main()
94 trackedAtoms.add(atomId); in main()
169 for (int atomId : atomIds) { in createConfig()
170 if (isPulledAtom(atomId)) { in createConfig()
171 builder.addAtomMatcher(createAtomMatcher(atomId, atomMatcherId)); in createConfig()
188 builder.addAtomMatcher(createAtomMatcher(atomId, atomMatcherId)); in createConfig()
196 private static AtomMatcher createAtomMatcher(int atomId, long matcherId) { in createAtomMatcher() argument
200 .setSimpleAtomMatcher(SimpleAtomMatcher.newBuilder().setAtomId(atomId)); in createAtomMatcher()
225 private static boolean isPulledAtom(int atomId) { in isPulledAtom() argument
[all …]
/frameworks/base/cmds/statsd/src/
Dstats_log_util.h94 int64_t truncateTimestampIfNecessary(int atomId, int64_t timestampNs);
96 inline bool isVendorPulledAtom(int atomId) { in isVendorPulledAtom() argument
97 return atomId >= StatsdStats::kVendorPulledAtomStartTag && atomId < StatsdStats::kMaxAtomTag; in isVendorPulledAtom()
Dstats_log_util.cpp544 int64_t truncateTimestampIfNecessary(int atomId, int64_t timestampNs) { in truncateTimestampIfNecessary() argument
545 if (AtomsInfo::kTruncatingTimestampAtomBlackList.find(atomId) != in truncateTimestampIfNecessary()
547 (atomId >= StatsdStats::kTimestampTruncationStartTag && in truncateTimestampIfNecessary()
548 atomId <= StatsdStats::kTimestampTruncationEndTag)) { in truncateTimestampIfNecessary()
/frameworks/base/cmds/statsd/tests/
Dstatsd_test_util.h33 AtomMatcher CreateSimpleAtomMatcher(const string& name, int atomId);
111 FieldMatcher CreateDimensions(const int atomId, const std::vector<int>& fields);
114 FieldMatcher CreateAttributionUidAndTagDimensions(const int atomId,
118 FieldMatcher CreateAttributionUidDimensions(const int atomId,
191 void ValidateUidDimension(const DimensionsValue& value, int node_idx, int atomId, int uid);
192 void ValidateAttributionUidDimension(const DimensionsValue& value, int atomId, int uid);
194 const DimensionsValue& value, int atomId, int uid, const std::string& tag);
196 const DimensionsValue& value, int node_idx, int atomId, int uid, const std::string& tag);
Dstatsd_test_util.cpp22 AtomMatcher CreateSimpleAtomMatcher(const string& name, int atomId) { in CreateSimpleAtomMatcher() argument
26 simple_atom_matcher->set_atom_id(atomId); in CreateSimpleAtomMatcher()
259 FieldMatcher CreateAttributionUidDimensions(const int atomId, in CreateAttributionUidDimensions() argument
262 dimensions.set_field(atomId); in CreateAttributionUidDimensions()
272 FieldMatcher CreateAttributionUidAndTagDimensions(const int atomId, in CreateAttributionUidAndTagDimensions() argument
275 dimensions.set_field(atomId); in CreateAttributionUidAndTagDimensions()
286 FieldMatcher CreateDimensions(const int atomId, const std::vector<int>& fields) { in CreateDimensions() argument
288 dimensions.set_field(atomId); in CreateDimensions()
488 void ValidateAttributionUidDimension(const DimensionsValue& value, int atomId, int uid) { in ValidateAttributionUidDimension() argument
489 EXPECT_EQ(value.field(), atomId); in ValidateAttributionUidDimension()
[all …]
/frameworks/base/cmds/statsd/benchmark/
Dmetric_util.h28 AtomMatcher CreateSimpleAtomMatcher(const string& name, int atomId);
85 FieldMatcher CreateDimensions(const int atomId, const std::vector<int>& fields);
88 FieldMatcher CreateAttributionUidAndTagDimensions(const int atomId,
92 FieldMatcher CreateAttributionUidDimensions(const int atomId,
Dmetric_util.cpp21 AtomMatcher CreateSimpleAtomMatcher(const string& name, int atomId) { in CreateSimpleAtomMatcher() argument
25 simple_atom_matcher->set_atom_id(atomId); in CreateSimpleAtomMatcher()
212 FieldMatcher CreateAttributionUidDimensions(const int atomId, in CreateAttributionUidDimensions() argument
215 dimensions.set_field(atomId); in CreateAttributionUidDimensions()
225 FieldMatcher CreateAttributionUidAndTagDimensions(const int atomId, in CreateAttributionUidAndTagDimensions() argument
228 dimensions.set_field(atomId); in CreateAttributionUidAndTagDimensions()
239 FieldMatcher CreateDimensions(const int atomId, const std::vector<int>& fields) { in CreateDimensions() argument
241 dimensions.set_field(atomId); in CreateDimensions()
/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.h282 void noteAtomLogged(int atomId, int32_t timeSec);
366 void notePullFailed(int atomId);
371 void noteStatsCompanionPullFailed(int atomId);
378 void noteStatsCompanionPullBinderTransactionFailed(int atomId);
383 void noteEmptyData(int atomId);
390 void notePullerCallbackRegistrationChanged(int atomId, bool registered);
DStatsdStats.cpp448 void StatsdStats::noteAtomLogged(int atomId, int32_t timeSec) { in noteAtomLogged() argument
451 if (atomId <= android::util::kMaxPushedAtomId) { in noteAtomLogged()
452 mPushedAtomStats[atomId]++; in noteAtomLogged()
455 mNonPlatformPushedAtomStats[atomId]++; in noteAtomLogged()
469 void StatsdStats::notePullFailed(int atomId) { in notePullFailed() argument
471 mPulledAtomStats[atomId].pullFailed++; in notePullFailed()
474 void StatsdStats::noteStatsCompanionPullFailed(int atomId) { in noteStatsCompanionPullFailed() argument
476 mPulledAtomStats[atomId].statsCompanionPullFailed++; in noteStatsCompanionPullFailed()
479 void StatsdStats::noteStatsCompanionPullBinderTransactionFailed(int atomId) { in noteStatsCompanionPullBinderTransactionFailed() argument
481 mPulledAtomStats[atomId].statsCompanionPullBinderTransactionFailed++; in noteStatsCompanionPullBinderTransactionFailed()
[all …]
/frameworks/base/core/jni/
Dandroid_util_StatsLog.cpp31 jint atomId) { in android_util_StatsLog_write() argument
45 write_buffer_to_statsd((void*) bufferArray, size, atomId); in android_util_StatsLog_write()
/frameworks/base/core/java/com/android/internal/car/
DICarStatsService.aidl30 StatsLogEventWrapper[] pullData(int atomId); in pullData() argument
/frameworks/base/core/java/android/util/
DStatsEvent.java226 private StatsEvent(final int atomId, @Nullable final Buffer buffer, in StatsEvent() argument
228 mAtomId = atomId; in StatsEvent()
360 public Builder setAtomId(final int atomId) { in setAtomId() argument
361 mAtomId = atomId; in setAtomId()
DStatsLog.java247 private static native void writeImpl(@NonNull byte[] buffer, int size, int atomId); in writeImpl() argument
/frameworks/hardware/interfaces/stats/1.0/
Dtypes.hal212 * .atomId = 100000,
233 int32_t atomId;
/frameworks/hardware/interfaces/stats/1.0/vts/functional/
DVtsHalStatsV1_0TargetTest.cpp143 VendorAtom atom = {.reverseDomainName = "com.google.pixel", .atomId = 100001, .values = values}; in TEST_P()
/frameworks/base/cmds/statsd/src/metrics/
DGaugeMetricProducer.h63 const int pullTagId, const int triggerAtomId, const int atomId,
DGaugeMetricProducer.cpp73 const int atomId, const int64_t timeBaseNs, const int64_t startTimeNs, in GaugeMetricProducer() argument
81 mAtomId(atomId), in GaugeMetricProducer()
/frameworks/hardware/interfaces/stats/1.0/test_client/
DStatsClient.cpp178 .reverseDomainName = "com.google.pixel", .atomId = 100001, .values = values}; in main()