/packages/modules/StatsD/statsd/tests/e2e/ |
D | GaugeMetric_e2e_push_test.cpp | 164 data.bucket_info(0).atom(0).app_start_occurred().type()); in TEST() 166 data.bucket_info(0).atom(0).app_start_occurred().activity_name()); in TEST() 168 data.bucket_info(0).atom(0).app_start_occurred().activity_start_millis()); in TEST() 170 data.bucket_info(0).atom(1).app_start_occurred().type()); in TEST() 172 data.bucket_info(0).atom(1).app_start_occurred().activity_name()); in TEST() 174 data.bucket_info(0).atom(1).app_start_occurred().activity_start_millis()); in TEST() 183 data.bucket_info(1).atom(0).app_start_occurred().type()); in TEST() 185 data.bucket_info(1).atom(0).app_start_occurred().activity_name()); in TEST() 187 data.bucket_info(1).atom(0).app_start_occurred().activity_start_millis()); in TEST() 196 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 …]
|
D | ConfigUpdate_e2e_test.cpp | 212 EXPECT_EQ(data.atom().sync_state_changed().sync_name(), "sync1"); in TEST_F() 215 EXPECT_EQ(data.atom().sync_state_changed().sync_name(), "sync2"); in TEST_F() 224 EXPECT_EQ(data.atom().wakelock_state_changed().tag(), "wl2"); in TEST_F() 227 EXPECT_EQ(data.atom().sync_state_changed().sync_name(), "sync2"); in TEST_F() 230 EXPECT_EQ(data.atom().wakelock_state_changed().tag(), "wl3"); in TEST_F() 239 EXPECT_EQ(data.atom().wakelock_state_changed().tag(), "wl2"); in TEST_F() 251 EXPECT_EQ(data.atom().wakelock_state_changed().tag(), "wl4"); in TEST_F() 260 EXPECT_EQ(data.atom().screen_state_changed().state(), android::view::DISPLAY_STATE_ON); in TEST_F() 269 EXPECT_EQ(data.atom().wakelock_state_changed().tag(), "wl4"); in TEST_F() 272 EXPECT_EQ(data.atom().wakelock_state_changed().tag(), "wl6"); in TEST_F() [all …]
|
/packages/modules/StatsD/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()
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/ |
D | TestDrive.java | 147 String atom = args[first_arg]; in processArgs() local 149 configuration.addAtom(Integer.valueOf(atom)); in processArgs() 151 LOGGER.severe("Bad atom id provided: " + atom); in processArgs() 239 void addAtom(Integer atom) { in addAtom() argument 240 if (Atom.getDescriptor().findFieldByNumber(atom) == null) { in addAtom() 241 LOGGER.severe("No such atom found: " + atom); in addAtom() 244 if (isPulledAtom(atom)) { in addAtom() 245 mPulledAtoms.add(atom); in addAtom() 247 mPushedAtoms.add(atom); in addAtom()
|
/packages/modules/StatsD/apex/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()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/atom/ |
D | AtomTestCase.java | 16 package android.cts.statsd.atom; 18 import static android.cts.statsd.atom.DeviceAtomTestCase.DEVICE_SIDE_TEST_APK; 19 import static android.cts.statsd.atom.DeviceAtomTestCase.DEVICE_SIDE_TEST_PACKAGE; 366 for (Atom atom : bucketInfo.getAtomList()) { in getGaugeMetricDataList() 367 data.add(atom); in getGaugeMetricDataList() 740 Atom atom = data.get(dataIndex).getAtom(); in assertStatesOccurred() local 741 int state = getStateFromAtom.apply(atom); in assertStatesOccurred() 779 Atom atom = data.get(firstStateIdx).getAtom(); in popUntilFind() local 780 if (state.contains(getStateFromAtom.apply(atom))) { in popUntilFind() 802 Atom atom = data.get(lastStateIdx).getAtom(); in popUntilFindFromEnd() local [all …]
|
D | DeviceAtomTestCase.java | 16 package android.cts.statsd.atom; 80 String methodName, int atom, int key, int stateOn, int stateOff, in doDeviceMethodOnOff() argument 83 addAtomEvent(conf, atom, createFvm(key).setEqInt(stateOn)); in doDeviceMethodOnOff() 84 addAtomEvent(conf, atom, createFvm(key).setEqInt(stateOff)); in doDeviceMethodOnOff()
|
D | ProcStateTestCase.java | 16 package android.cts.statsd.atom;
|
D | BufferDebug.java | 17 package android.cts.statsd.atom;
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | GaugeMetricProducer.cpp | 327 for (const auto& atom : bucket.mGaugeAtoms) { in onDumpReportLocked() local 331 writeFieldValueTreeToStream(mAtomId, *(atom.mFields), protoOutput); in onDumpReportLocked() 334 for (const auto& atom : bucket.mGaugeAtoms) { in onDumpReportLocked() local 337 (long long)atom.mElapsedTimestampNs); in onDumpReportLocked() 669 for (const auto& atom : bucket.mGaugeAtoms) { in byteSizeLocked() local 670 if (atom.mFields != nullptr) { in byteSizeLocked() 671 totalSize += atom.mFields->size() * sizeof(FieldValue); in byteSizeLocked()
|
D | MetricProducer.cpp | 334 for (auto atom : mSlicedStateAtoms) { in getUnknownStateKey() local 336 fieldValue.mField.setTag(atom); in getUnknownStateKey()
|
/packages/modules/StatsD/statsd/tests/ |
D | FieldValue_test.cpp | 507 const auto& atom = result.ble_scan_result_received(); in TEST() local 508 ASSERT_EQ(2, atom.attribution_node_size()); in TEST() 509 EXPECT_EQ(1111, atom.attribution_node(0).uid()); in TEST() 510 EXPECT_EQ("location1", atom.attribution_node(0).tag()); in TEST() 511 EXPECT_EQ(2222, atom.attribution_node(1).uid()); in TEST() 512 EXPECT_EQ("location2", atom.attribution_node(1).tag()); in TEST() 513 EXPECT_EQ(999, atom.num_results()); in TEST()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/validation/ |
D | BatteryStatsValidationTests.java | 21 import android.cts.statsd.atom.DeviceAtomTestCase; 106 Atom atom = atomList.get(0); in testPowerUse() local 107 long statsdPowerNas = atom.getDeviceCalculatedPowerUse().getComputedPowerNanoAmpSecs(); in testPowerUse()
|
D | DirectoryValidationTest.java | 3 import android.cts.statsd.atom.DeviceAtomTestCase;
|
D | ValidationTests.java | 21 import android.cts.statsd.atom.DeviceAtomTestCase; 119 atom -> atom.getWakelockStateChanged().getState().getNumber()); in testPartialWakelock()
|
D | ValidationTestUtil.java | 18 import android.cts.statsd.atom.BaseTestCase;
|
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/ |
D | MetricActivationTests.java | 20 import android.cts.statsd.atom.DeviceAtomTestCase; 562 AppBreadcrumbReported atom = eventData.getData(i).getAtom().getAppBreadcrumbReported(); in verifyMetric() local 563 assertThat(atom.getLabel()).isEqualTo(metricMatcherLabel); in verifyMetric()
|
/packages/modules/Permission/service/java/com/android/role/ |
D | TEST_MAPPING | 7 "include-filter": "android.cts.statsd.atom.UidAtomTests#testRoleHolder"
|
/packages/modules/StatsD/tests/src/android/cts/statsd/metadata/ |
D | MetadataTestCase.java | 19 import android.cts.statsd.atom.AtomTestCase;
|
/packages/modules/StatsD/tests/src/android/cts/statsd/apex/ |
D | BootstrapApexTests.java | 21 import android.cts.statsd.atom.BaseTestCase;
|
/packages/modules/StatsD/tests/src/android/cts/statsd/alarm/ |
D | AlarmTests.java | 20 import android.cts.statsd.atom.AtomTestCase;
|
/packages/modules/StatsD/statsd/src/shell/ |
D | shell_data.proto | 28 repeated Atom atom = 1; field
|