/frameworks/base/cmds/statsd/tests/e2e/ |
D | GaugeMetric_e2e_push_test.cpp | 185 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 …]
|
D | GaugeMetric_e2e_pull_test.cpp | 164 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/ |
D | ConfigurationTest.java | 61 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 …]
|
D | TestDriveTest.java | 167 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/ |
D | Collation.cpp | 286 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 …]
|
D | test_collation.cpp | 56 #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++) { \
|
D | utils.cpp | 120 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()
|
D | test.proto | 150 // 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.
|
D | utils.h | 76 const AtomDecl& atom);
|
D | Collation.h | 196 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/ |
D | TestDrive.java | 139 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/ |
D | atom_field_options.proto | 26 // 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/ |
D | LibStatsPullTests.java | 123 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()
|
D | StatsConfigUtils.java | 110 for (Atom atom : bucketInfo.getAtomList()) { in getGaugeMetricDataList() 111 data.add(atom); in getGaugeMetricDataList()
|
/frameworks/hardware/interfaces/stats/1.0/ |
D | IStats.hal | 103 * 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/ |
D | GaugeMetricProducer.cpp | 266 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()
|
D | MetricProducer.cpp | 299 for (auto atom : mSlicedStateAtoms) { in getUnknownStateKey() local 301 fieldValue.mField.setTag(atom); in getUnknownStateKey()
|
/frameworks/base/services/core/java/com/android/server/role/ |
D | TEST_MAPPING | 7 "include-filter": "android.cts.statsd.atom.UidAtomTests#testRoleHolder"
|
/frameworks/hardware/interfaces/stats/1.0/vts/functional/ |
D | VtsHalStatsV1_0TargetTest.cpp | 143 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/ |
D | FieldValue_test.cpp | 513 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/ |
D | StatsClient.cpp | 177 VendorAtom atom = { in main() local 179 client->reportVendorAtom(atom); in main()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | TEST_MAPPING | 51 "include-filter": "android.cts.statsd.atom.UidAtomTests#testAppOps"
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | TEST_MAPPING | 43 … "include-filter": "android.cts.statsd.atom.UidAtomTests#testDangerousPermissionState"
|
/frameworks/base/core/java/android/app/ |
D | TEST_MAPPING | 35 "include-filter": "android.cts.statsd.atom.UidAtomTests#testAppOps"
|
/frameworks/base/cmds/statsd/src/shell/ |
D | shell_data.proto | 28 repeated Atom atom = 1; field
|