Home
last modified time | relevance | path

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

12

/frameworks/base/cmds/statsd/tests/e2e/
DGaugeMetric_e2e_push_test.cpp185 data.bucket_info(0).atom(0).app_start_occurred().type()); in TEST()
187 data.bucket_info(0).atom(0).app_start_occurred().activity_name()); in TEST()
189 data.bucket_info(0).atom(0).app_start_occurred().activity_start_millis()); in TEST()
191 data.bucket_info(0).atom(1).app_start_occurred().type()); in TEST()
193 data.bucket_info(0).atom(1).app_start_occurred().activity_name()); in TEST()
195 data.bucket_info(0).atom(1).app_start_occurred().activity_start_millis()); in TEST()
204 data.bucket_info(1).atom(0).app_start_occurred().type()); in TEST()
206 data.bucket_info(1).atom(0).app_start_occurred().activity_name()); in TEST()
208 data.bucket_info(1).atom(0).app_start_occurred().activity_start_millis()); in TEST()
217 data.bucket_info(2).atom(0).app_start_occurred().type()); in TEST()
[all …]
DGaugeMetric_e2e_pull_test.cpp164 EXPECT_TRUE(data.bucket_info(0).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST()
165 EXPECT_GT(data.bucket_info(0).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST()
172 EXPECT_TRUE(data.bucket_info(1).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST()
173 EXPECT_GT(data.bucket_info(1).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST()
180 EXPECT_TRUE(data.bucket_info(2).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST()
181 EXPECT_GT(data.bucket_info(2).atom(0).subsystem_sleep_state().time_millis(), 0); in TEST()
188 EXPECT_TRUE(data.bucket_info(3).atom(0).subsystem_sleep_state().subsystem_name().empty()); in TEST()
189 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/tools/localtools/test/com/android/statsd/shelltools/testdrive/
DConfigurationTest.java61 final int atom = 90; in testOnePushed() local
62 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePushed()
63 mConfiguration.addAtom(atom); in testOnePushed()
84 assertEquals(atom, in testOnePushed()
92 final int atom = 10022; in testOnePulled() local
93 assertTrue(TestDrive.Configuration.isPulledAtom(atom)); in testOnePulled()
94 mConfiguration.addAtom(atom); in testOnePulled()
131 assertEquals(atom, in testOnePulled()
147 for (int atom : pushedAtoms) { in testOnePulledTwoPushed()
148 assertFalse(TestDrive.Configuration.isPulledAtom(atom)); in testOnePulledTwoPushed()
[all …]
DTestDriveTest.java167 for (Integer atom : configuration.mPushedAtoms) { in collectAtoms()
168 result[result_index++] = atom; in collectAtoms()
170 for (Integer atom : configuration.mPulledAtoms) { in collectAtoms()
171 result[result_index++] = atom; in collectAtoms()
/frameworks/base/tools/stats_log_api_gen/
DCollation.cpp286 int collate_atom(const Descriptor* atom, AtomDecl* atomDecl, vector<java_type_t>* signature) { in collate_atom() argument
292 for (int j = 0; j < atom->field_count(); j++) { in collate_atom()
293 const FieldDescriptor* field = atom->field(j); in collate_atom()
378 atom->name().c_str()); in collate_atom()
421 bool get_non_chained_node(const Descriptor* atom, AtomDecl* atomDecl, in get_non_chained_node() argument
426 for (int j = 0; j < atom->field_count(); j++) { in get_non_chained_node()
427 const FieldDescriptor* field = atom->field(j); in get_non_chained_node()
517 const Descriptor* atom = atomField->message_type(); in collate_atoms() local
519 make_shared<AtomDecl>(atomField->number(), atomField->name(), atom->name()); in collate_atoms()
532 errorCount += collate_atom(atom, atomDecl.get(), &signature); in collate_atoms()
[all …]
Dtest_collation.cpp56 #define EXPECT_NO_ENUM_FIELD(atom) \ argument
58 for (vector<AtomField>::const_iterator field = atom->fields.begin(); \
59 field != atom->fields.end(); field++) { \
65 #define EXPECT_HAS_ENUM_FIELD(atom, field_name, values) \ argument
67 for (vector<AtomField>::const_iterator field = atom->fields.begin(); \
68 field != atom->fields.end(); field++) { \
Dutils.cpp120 const shared_ptr<AtomDecl> atom, const AtomDecl& attributionDecl) { in write_cpp_usage() argument
123 for (vector<AtomField>::const_iterator field = atom->fields.begin(); in write_cpp_usage()
124 field != atom->fields.end(); field++) { in write_cpp_usage()
292 const AtomDecl& atom) { in write_java_usage() argument
295 for (vector<AtomField>::const_iterator field = atom.fields.begin(); field != atom.fields.end(); in write_java_usage()
Dtest.proto150 // The atom has only primary field but no exclusive state field.
162 // Having 2 exclusive state field in the atom means the atom is badly designed.
163 // E.g., putting bluetooth state and wifi state in the same atom.
Dutils.h76 const AtomDecl& atom);
DCollation.h196 int collate_atom(const Descriptor* atom, AtomDecl* atomDecl, vector<java_type_t>* signature);
/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/
DTestDrive.java139 String atom = args[first_arg]; in processArgs() local
141 configuration.addAtom(Integer.valueOf(atom)); in processArgs()
143 LOGGER.severe("Bad atom id provided: " + atom); in processArgs()
225 void addAtom(Integer atom) { in addAtom() argument
226 if (Atom.getDescriptor().findFieldByNumber(atom) == null) { in addAtom()
227 LOGGER.severe("No such atom found: " + atom); in addAtom()
230 if (isPulledAtom(atom)) { in addAtom()
231 mPulledAtoms.add(atom); in addAtom()
233 mPushedAtoms.add(atom); in addAtom()
/frameworks/base/cmds/statsd/src/
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/base/apex/statsd/tests/libstatspull/src/com/android/internal/os/statsd/libstats/
DLibStatsPullTests.java123 TestAtoms.PullCallbackAtom atom = in testPullAtomCallbackRegistration() local
125 assertThat(atom.getLongVal()).isEqualTo(1); in testPullAtomCallbackRegistration()
207 TestAtoms.PullCallbackAtom atom = in testPullAtomCallbackCache() local
209 assertThat(atom.getLongVal()).isEqualTo(1); in testPullAtomCallbackCache()
245 TestAtoms.PullCallbackAtom atom = in testPullAtomCallbackStress() local
247 assertThat(atom.getLongVal()).isEqualTo(1); in testPullAtomCallbackStress()
DStatsConfigUtils.java110 for (Atom atom : bucketInfo.getAtomList()) { in getGaugeMetricDataList()
111 data.add(atom); in getGaugeMetricDataList()
/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.
/frameworks/base/cmds/statsd/src/metrics/
DGaugeMetricProducer.cpp266 for (const auto& atom : bucket.mGaugeAtoms) { in onDumpReportLocked() local
270 writeFieldValueTreeToStream(mAtomId, *(atom.mFields), protoOutput); in onDumpReportLocked()
273 for (const auto& atom : bucket.mGaugeAtoms) { in onDumpReportLocked() local
276 (long long)atom.mElapsedTimestampNs); in onDumpReportLocked()
608 for (const auto& atom : bucket.mGaugeAtoms) { in byteSizeLocked() local
609 if (atom.mFields != nullptr) { in byteSizeLocked()
610 totalSize += atom.mFields->size() * sizeof(FieldValue); in byteSizeLocked()
DMetricProducer.cpp299 for (auto atom : mSlicedStateAtoms) { in getUnknownStateKey() local
301 fieldValue.mField.setTag(atom); in getUnknownStateKey()
/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.cpp143 VendorAtom atom = {.reverseDomainName = "com.google.pixel", .atomId = 100001, .values = values}; in TEST_P() local
146 client->reportVendorAtom(atom); in TEST_P()
/frameworks/base/cmds/statsd/tests/
DFieldValue_test.cpp513 const auto& atom = result.ble_scan_result_received(); in TEST() local
514 ASSERT_EQ(2, atom.attribution_node_size()); in TEST()
515 EXPECT_EQ(1111, atom.attribution_node(0).uid()); in TEST()
516 EXPECT_EQ("location1", atom.attribution_node(0).tag()); in TEST()
517 EXPECT_EQ(2222, atom.attribution_node(1).uid()); in TEST()
518 EXPECT_EQ("location2", atom.attribution_node(1).tag()); in TEST()
519 EXPECT_EQ(999, atom.num_results()); in TEST()
/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/appop/
DTEST_MAPPING51 "include-filter": "android.cts.statsd.atom.UidAtomTests#testAppOps"
/frameworks/base/services/core/java/com/android/server/pm/permission/
DTEST_MAPPING43 … "include-filter": "android.cts.statsd.atom.UidAtomTests#testDangerousPermissionState"
/frameworks/base/core/java/android/app/
DTEST_MAPPING35 "include-filter": "android.cts.statsd.atom.UidAtomTests#testAppOps"
/frameworks/base/cmds/statsd/src/shell/
Dshell_data.proto28 repeated Atom atom = 1; field

12