Home
last modified time | relevance | path

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

/frameworks/base/tools/stats_log_api_gen/
Dtest_collation.cpp59 #define EXPECT_NO_ENUM_FIELD(atom) \ argument
61 for (vector<AtomField>::const_iterator field = atom->fields.begin(); \
62 field != atom->fields.end(); field++) { \
68 #define EXPECT_HAS_ENUM_FIELD(atom, field_name, values) \ argument
70 for (vector<AtomField>::const_iterator field = atom->fields.begin(); \
71 field != atom->fields.end(); field++) { \
118 set<AtomDecl>::const_iterator atom = atoms.decls.begin(); in TEST() local
119 EXPECT_EQ(1, atom->code); in TEST()
120 EXPECT_EQ("int_atom", atom->name); in TEST()
121 EXPECT_EQ("IntAtom", atom->message); in TEST()
[all …]
Dmain.cpp144 for (set<AtomDecl>::const_iterator atom = atoms.decls.begin(); in write_atoms_info_cpp() local
145 atom != atoms.decls.end(); atom++) { in write_atoms_info_cpp()
146 for (vector<AtomField>::const_iterator field = atom->fields.begin(); in write_atoms_info_cpp()
147 field != atom->fields.end(); field++) { in write_atoms_info_cpp()
149 string constant = make_constant_name(atom->name); in write_atoms_info_cpp()
161 for (set<AtomDecl>::const_iterator atom = atoms.decls.begin(); in write_atoms_info_cpp() local
162 atom != atoms.decls.end(); atom++) { in write_atoms_info_cpp()
163 if (atom->whitelisted) { in write_atoms_info_cpp()
164 string constant = make_constant_name(atom->name); in write_atoms_info_cpp()
174 for (set<AtomDecl>::const_iterator atom = atoms.decls.begin(); in write_atoms_info_cpp() local
[all …]
DCollation.cpp164 int collate_atom(const Descriptor *atom, AtomDecl *atomDecl, in collate_atom() argument
172 for (int j = 0; j < atom->field_count(); j++) { in collate_atom()
173 const FieldDescriptor *field = atom->field(j); in collate_atom()
250 atom->name().c_str()); in collate_atom()
330 bool get_non_chained_node(const Descriptor *atom, AtomDecl *atomDecl, in get_non_chained_node() argument
335 for (int j = 0; j < atom->field_count(); j++) { in get_non_chained_node()
336 const FieldDescriptor *field = atom->field(j); in get_non_chained_node()
400 const Descriptor *atom = atomField->message_type(); in collate_atoms() local
401 AtomDecl atomDecl(atomField->number(), atomField->name(), atom->name()); in collate_atoms()
413 errorCount += collate_atom(atom, &atomDecl, &signature); in collate_atoms()
[all …]
Dtest.proto149 // The atom has only primary field but no exclusive state field.
163 // Having 2 exclusive state field in the atom means the atom is badly designed.
164 // E.g., putting bluetooth state and wifi state in the same atom.
DCollation.h120 int collate_atom(const Descriptor *atom, AtomDecl *atomDecl, vector<java_type_t> *signature);
/frameworks/base/cmds/statsd/tests/e2e/
DGaugeMetric_e2e_push_test.cpp181 data.bucket_info(0).atom(0).app_start_occurred().type()); in TEST()
183 data.bucket_info(0).atom(0).app_start_occurred().activity_name()); in TEST()
185 data.bucket_info(0).atom(0).app_start_occurred().activity_start_millis()); in TEST()
187 data.bucket_info(0).atom(1).app_start_occurred().type()); in TEST()
189 data.bucket_info(0).atom(1).app_start_occurred().activity_name()); in TEST()
191 data.bucket_info(0).atom(1).app_start_occurred().activity_start_millis()); in TEST()
200 data.bucket_info(1).atom(0).app_start_occurred().type()); in TEST()
202 data.bucket_info(1).atom(0).app_start_occurred().activity_name()); in TEST()
204 data.bucket_info(1).atom(0).app_start_occurred().activity_start_millis()); in TEST()
213 data.bucket_info(2).atom(0).app_start_occurred().type()); in TEST()
[all …]
DGaugeMetric_e2e_pull_test.cpp160 EXPECT_TRUE(data.bucket_info(0).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST()
161 EXPECT_GT(data.bucket_info(0).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST()
169 EXPECT_TRUE(data.bucket_info(1).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST()
170 EXPECT_GT(data.bucket_info(1).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST()
178 EXPECT_TRUE(data.bucket_info(2).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST()
179 EXPECT_GT(data.bucket_info(2).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST()
187 EXPECT_TRUE(data.bucket_info(3).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST()
188 EXPECT_GT(data.bucket_info(3).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST()
196 EXPECT_TRUE(data.bucket_info(4).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST()
197 EXPECT_GT(data.bucket_info(4).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/
Datom_field_options.proto35 // Used to annotate an atom that reprsents a state change. A state change atom must have exactly ONE
42 // Each of this UidProcessStateChanged atom represents a state change for a specific uid.
45 // If the atom has 2 or more primary fields, it means the combination of the primary fields are
78 // Flags to decorate an atom that presents a state change.
81 // Flags to decorate the uid fields in an atom.
Dstats_log.proto47 optional Atom atom = 2; field
153 repeated Atom atom = 3; field
Datoms.proto61 * The master atom class. This message defines all of the available
431 * - The field ids for each atom must start at 1, and count upwards by 1.
440 * - If an atom represents work that can be attributed to an app, there can
453 * This atom is deprecated starting in Q. Please use ThermalThrottlingSeverityStateChanged.
2458 // The UID that logged this atom.
2850 // The uid of the application that sent this custom atom.
3057 // NOTE: DO NOT annotate uid field in this atom. This atom is specially handled in statsd.
3195 * An atom for generic metrics logging. Available from Android Q.
3198 // The uid of the application that sent this custom atom.
3399 /* Test atom, is not logged anywhere */
[all …]
/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/base/cmds/statsd/src/metrics/
DGaugeMetricProducer.cpp279 for (const auto& atom : bucket.mGaugeAtoms) { in onDumpReportLocked() local
283 writeFieldValueTreeToStream(mAtomId, *(atom.mFields), protoOutput); in onDumpReportLocked()
286 for (const auto& atom : bucket.mGaugeAtoms) { in onDumpReportLocked() local
288 truncateTimestampIfNecessary(mAtomId, atom.mElapsedTimestamps); in onDumpReportLocked()
607 for (const auto& atom : bucket.mGaugeAtoms) { in byteSizeLocked() local
608 if (atom.mFields != nullptr) { in byteSizeLocked()
609 totalSize += atom.mFields->size() * sizeof(FieldValue); in byteSizeLocked()
/frameworks/base/cmds/statsd/tests/
DFieldValue_test.cpp474 const auto& atom = result.ble_scan_result_received(); in TEST() local
475 EXPECT_EQ(2, atom.attribution_node_size()); in TEST()
476 EXPECT_EQ(1111, atom.attribution_node(0).uid()); in TEST()
477 EXPECT_EQ("location1", atom.attribution_node(0).tag()); in TEST()
478 EXPECT_EQ(2222, atom.attribution_node(1).uid()); in TEST()
479 EXPECT_EQ("location2", atom.attribution_node(1).tag()); in TEST()
480 EXPECT_EQ(999, atom.num_results()); in TEST()
/frameworks/base/services/core/java/com/android/server/role/
DTEST_MAPPING7 "include-filter": "android.cts.statsd.atom.UidAtomTests#testRoleHolder"
/frameworks/hardware/interfaces/stats/1.0/vts/functional/
DVtsHalStatsV1_0TargetTest.cpp156 VendorAtom atom = {.reverseDomainName = "com.google.pixel", .atomId = 100001, .values = values}; in TEST_F() local
159 client->reportVendorAtom(atom); in TEST_F()
/frameworks/hardware/interfaces/stats/1.0/test_client/
DStatsClient.cpp177 VendorAtom atom = { in main() local
179 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/cmds/statsd/src/shell/
Dshell_data.proto28 repeated Atom atom = 1; field
/frameworks/opt/gamesdk/third_party/cube/app/src/main/cpp/
Dcube.cpp2559 … if ((*(xcb_client_message_event_t *)event).data.data32[0] == (*atom_wm_delete_window).atom) { in handle_xcb_event()
2638 …nection, XCB_PROP_MODE_REPLACE, xcb_window, (*reply).atom, 4, 32, 1, &(*atom_wm_delete_window).ato… in create_xcb_window()
Dcube.c2695 …if ((*(xcb_client_message_event_t *)event).data.data32[0] == (*demo->atom_wm_delete_window).atom) { in demo_handle_xcb_event()
2772 …xcb_change_property(demo->connection, XCB_PROP_MODE_REPLACE, demo->xcb_window, (*reply).atom, 4, 3… in demo_create_xcb_window()
2773 &(*demo->atom_wm_delete_window).atom); in demo_create_xcb_window()