Home
last modified time | relevance | path

Searched refs:atom (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/services/core/jni/stats/
DSurfaceFlingerPuller.cpp79 for (const auto& atom : atomList.atom()) { in parseGlobalInfoPull() local
82 optional<BytesField> frameDuration = getBytes(atom.frame_duration(), frameDurationStr); in parseGlobalInfoPull()
84 getBytes(atom.render_engine_timing(), renderEngineTimeStr); in parseGlobalInfoPull()
86 getBytes(atom.sf_deadline_misses(), deadlineMissesStr); in parseGlobalInfoPull()
88 getBytes(atom.sf_prediction_errors(), predictionErrorsStr); in parseGlobalInfoPull()
96 atom.total_frames(), atom.missed_frames(), in parseGlobalInfoPull()
97 atom.client_composition_frames(), atom.display_on_millis(), in parseGlobalInfoPull()
98 atom.animation_millis(), atom.event_connection_count(), in parseGlobalInfoPull()
100 atom.total_timeline_frames(), atom.total_janky_frames(), in parseGlobalInfoPull()
101 atom.total_janky_frames_with_long_cpu(), in parseGlobalInfoPull()
[all …]
/frameworks/av/media/libmediatranscoding/tests/
DTranscodingLogger_tests.cpp172 const SessionEndedAtom& atom = mLoggedAtoms.back(); in validateLatestAtom() local
174 EXPECT_EQ(atom.atomCode, android::media::stats::MEDIA_TRANSCODING_SESSION_ENDED); in validateLatestAtom()
175 EXPECT_EQ(atom.reason, static_cast<int>(reason)); in validateLatestAtom()
176 EXPECT_EQ(atom.callingUid, kDefaultCallingUid); in validateLatestAtom()
177 EXPECT_EQ(atom.status, status); in validateLatestAtom()
178 EXPECT_EQ(atom.srcWidth, kDefaultSrcWidth); in validateLatestAtom()
179 EXPECT_EQ(atom.srcHeight, kDefaultSrcHeight); in validateLatestAtom()
180 EXPECT_EQ(atom.srcMime, kDefaultSrcMime); in validateLatestAtom()
181 EXPECT_EQ(atom.srcProfile, kDefaultSrcProfile); in validateLatestAtom()
182 EXPECT_EQ(atom.srcLevel, kDefaultSrcLevel); in validateLatestAtom()
[all …]
/frameworks/base/services/core/java/com/android/server/stats/bootstrap/
DStatsBootstrapAtomService.java39 public void reportBootstrapAtom(StatsBootstrapAtom atom) { in reportBootstrapAtom() argument
40 if (atom.atomId < 1 || atom.atomId >= 10000) { in reportBootstrapAtom()
41 Slog.e(TAG, "Atom ID " + atom.atomId + " is not a valid atom ID"); in reportBootstrapAtom()
44 StatsEvent.Builder builder = StatsEvent.newBuilder().setAtomId(atom.atomId); in reportBootstrapAtom()
45 for (StatsBootstrapAtomValue value : atom.values) { in reportBootstrapAtom()
67 + " when logging atom " + atom.atomId); in reportBootstrapAtom()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.cpp100 SurfaceflingerStatsGlobalInfo* atom = atomList.add_atom(); in populateGlobalAtom() local
101 atom->set_total_frames(mTimeStats.totalFramesLegacy); in populateGlobalAtom()
102 atom->set_missed_frames(mTimeStats.missedFramesLegacy); in populateGlobalAtom()
103 atom->set_client_composition_frames(mTimeStats.clientCompositionFramesLegacy); in populateGlobalAtom()
104 atom->set_display_on_millis(mTimeStats.displayOnTimeLegacy); in populateGlobalAtom()
105 atom->set_animation_millis(mTimeStats.presentToPresentLegacy.totalTime()); in populateGlobalAtom()
106 atom->set_event_connection_count(mTimeStats.displayEventConnectionsCountLegacy); in populateGlobalAtom()
107 *atom->mutable_frame_duration() = in populateGlobalAtom()
109 *atom->mutable_render_engine_timing() = in populateGlobalAtom()
112 atom->set_total_timeline_frames(globalSlice.second.jankPayload.totalFrames); in populateGlobalAtom()
[all …]
/frameworks/hardware/interfaces/stats/aidl/vts/functional/
DVtsHalStatsTargetTest.cpp57 VendorAtom atom = {.reverseDomainName = "", .atomId = 100001, .values = values}; in TEST_P() local
58 const ndk::ScopedAStatus ret = client->reportVendorAtom(atom); in TEST_P()
78 VendorAtom atom = {.reverseDomainName = "", .atomId = 1000, .values = values}; in TEST_P() local
79 const ndk::ScopedAStatus ret = client->reportVendorAtom(atom); in TEST_P()
99 VendorAtom atom = {.reverseDomainName = "", .atomId = 300001, .values = values}; in TEST_P() local
100 const ndk::ScopedAStatus ret = client->reportVendorAtom(atom); in TEST_P()
120 VendorAtom atom = {.reverseDomainName = "", in TEST_P() local
123 const ndk::ScopedAStatus ret = client->reportVendorAtom(atom); in TEST_P()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTimeStatsTest.cpp1108 const android::surfaceflinger::SurfaceflingerStatsGlobalInfo& atom = atomList.atom(0); in TEST_F() local
1110 EXPECT_EQ(atom.total_frames(), TOTAL_FRAMES); in TEST_F()
1111 EXPECT_EQ(atom.missed_frames(), MISSED_FRAMES); in TEST_F()
1112 EXPECT_EQ(atom.client_composition_frames(), CLIENT_COMPOSITION_FRAMES); in TEST_F()
1114 EXPECT_EQ(atom.animation_millis(), 2); in TEST_F()
1115 EXPECT_EQ(atom.event_connection_count(), DISPLAY_EVENT_CONNECTIONS); in TEST_F()
1116 EXPECT_THAT(atom.frame_duration(), HistogramEq(buildExpectedHistogram({2}, {1}))); in TEST_F()
1117 EXPECT_THAT(atom.render_engine_timing(), HistogramEq(buildExpectedHistogram({1, 2}, {1, 1}))); in TEST_F()
1118 EXPECT_EQ(atom.total_timeline_frames(), 9); in TEST_F()
1119 EXPECT_EQ(atom.total_janky_frames(), 7); in TEST_F()
[all …]
/frameworks/proto_logging/stats/stats_log_api_gen/
DCollation.cpp281 int collate_atom(const Descriptor* atom, AtomDecl* atomDecl, vector<java_type_t>* signature) { in collate_atom() argument
287 for (int j = 0; j < atom->field_count(); j++) { in collate_atom()
288 const FieldDescriptor* field = atom->field(j); in collate_atom()
358 atom->name().c_str()); in collate_atom()
401 bool get_non_chained_node(const Descriptor* atom, AtomDecl* atomDecl, in get_non_chained_node() argument
406 for (int j = 0; j < atom->field_count(); j++) { in get_non_chained_node()
407 const FieldDescriptor* field = atom->field(j); in get_non_chained_node()
505 const Descriptor* atom = atomField->message_type(); in collate_from_field_descriptor() local
507 make_shared<AtomDecl>(atomField->number(), atomField->name(), atom->name(), in collate_from_field_descriptor()
520 errorCount += collate_atom(atom, atomDecl.get(), &signature); in collate_from_field_descriptor()
[all …]
Dutils.cpp194 const shared_ptr<AtomDecl> atom, const AtomDecl& attributionDecl) { in write_cpp_usage() argument
197 for (vector<AtomField>::const_iterator field = atom->fields.begin(); in write_cpp_usage()
198 field != atom->fields.end(); field++) { in write_cpp_usage()
299 const AtomDecl& atom) { in write_java_usage() argument
302 for (vector<AtomField>::const_iterator field = atom.fields.begin(); field != atom.fields.end(); in write_java_usage()
Dtest.proto173 // The atom has only primary field but no exclusive state field.
185 // Having 2 exclusive state field in the atom means the atom is badly designed.
186 // E.g., putting bluetooth state and wifi state in the same atom.
300 extensions 9999; // Pushed atom extension, ExtensionAtomPushed
302 extensions 99999; // Pulled atom extension, ExtensionAtomPulled
Dtest_collation.cpp55 #define EXPECT_NO_ENUM_FIELD(atom) \ argument
57 for (vector<AtomField>::const_iterator field = atom->fields.begin(); \
58 field != atom->fields.end(); field++) { \
64 #define EXPECT_HAS_ENUM_FIELD(atom, field_name, values) \ argument
66 for (vector<AtomField>::const_iterator field = atom->fields.begin(); \
67 field != atom->fields.end(); field++) { \
Dutils.h69 const AtomDecl& atom);
DCollation.h217 int collate_atom(const Descriptor* atom, AtomDecl* atomDecl, vector<java_type_t>* signature);
Drust_writer.cpp162 static bool write_rust_usage(FILE* out, const string& method_name, const shared_ptr<AtomDecl> atom, in write_rust_usage() argument
166 write_rust_method_signature(out, method_name.c_str(), *atom, attributionDecl, in write_rust_usage()
/frameworks/proto_logging/stats/
Datom_field_options.proto26 // Used to annotate an atom that represents a state change. A state change atom must have exactly
33 // Each UidProcessStateChanged atom event represents a state change for a specific uid.
36 // If the atom has 2 or more primary fields, it means the combination of the
105 // Flags to decorate an atom that presents a state change.
108 // Flags to decorate the uid fields in an atom.
/frameworks/av/services/mediametrics/include/mediametricsservice/
DStatsdLog.h30 void log(int atom, const std::string& string) { in log() argument
33 ++mCountMap[atom]; in log()
/frameworks/hardware/interfaces/stats/1.0/
DIStats.hal103 * Report a custom vendor atom.
105 * @param VendorAtom A VendorAtom struct that specifies the atom ID, field
107 * Whether or not the atom is uploaded must be determined by the
108 * atom ID and server-side configs.
Dtypes.hal207 * Generic vendor atom that allows dynamically allocated atoms to be uploaded
211 * VendorAtom atom = {
/frameworks/hardware/interfaces/stats/aidl/test_client/
DAidlStatsClient.cpp82 VendorAtom atom = { in main() local
84 const ndk::ScopedAStatus ret = service->reportVendorAtom(atom); in main()
/frameworks/base/core/java/android/os/
DIStatsBootstrapAtomService.aidl35 void reportBootstrapAtom(in StatsBootstrapAtom atom); in reportBootstrapAtom() argument
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java4336 StorageStats atom = atomWrapper.payload.getStorageStats();
4338 FrameworkStatsLog.KEYSTORE2_STORAGE_STATS, atom.storage_type,
4339 atom.size, atom.unused_size));
4349 RkpPoolStats atom = atomWrapper.payload.getRkpPoolStats();
4351 FrameworkStatsLog.RKP_POOL_STATS, atom.security_level, atom.expiring,
4352 atom.unassigned, atom.attested, atom.total));
4363 KeyCreationWithGeneralInfo atom = atomWrapper.payload.getKeyCreationWithGeneralInfo();
4365 FrameworkStatsLog.KEYSTORE2_KEY_CREATION_WITH_GENERAL_INFO, atom.algorithm,
4366 atom.key_size, atom.ec_curve, atom.key_origin, atom.error_code,
4367 atom.attestation_requested, atomWrapper.count));
[all …]
/frameworks/hardware/interfaces/stats/1.0/vts/functional/
DVtsHalStatsV1_0TargetTest.cpp143 VendorAtom atom = {.reverseDomainName = "", .atomId = 100001, .values = values}; in TEST_P() local
146 client->reportVendorAtom(atom); in TEST_P()
/frameworks/hardware/interfaces/stats/1.0/test_client/
DStatsClient.cpp183 VendorAtom atom = { in main() local
185 client->reportVendorAtom(atom); in main()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DTEST_MAPPING43 … "include-filter": "android.cts.statsd.atom.UidAtomTests#testDangerousPermissionState"
/frameworks/base/core/java/com/android/internal/os/
DBinderLatencyObserver.java159 protected void writeAtomToStatsd(ProtoOutputStream atom) { in writeAtomToStatsd() argument
162 atom.getBytes(), in writeAtomToStatsd()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBinderLatencyObserverTest.java341 protected void writeAtomToStatsd(ProtoOutputStream atom) { in writeAtomToStatsd() argument
342 mWrittenAtoms.add(Arrays.toString(atom.getBytes())); in writeAtomToStatsd()

12