Home
last modified time | relevance | path

Searched refs:ConfigUtils (Results 1 – 25 of 85) sorted by relevance

1234

/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/express/
DExpresslogAtomsTests.java22 import android.cts.statsdatom.lib.ConfigUtils;
83 ConfigUtils.removeConfig(getDevice()); in setUp()
91 ConfigUtils.removeConfig(getDevice()); in tearDown()
107 StatsdConfig.Builder config = ConfigUtils.createConfigBuilder(EXPRESSLOG_TEST_PKG); in testExpressLogCounterAtom()
109 ConfigUtils.createFvm(metricIdFieldNumber).setEqInt(testMetricId); in testExpressLogCounterAtom()
110 ConfigUtils.addEventMetric(config, atomTag, List.of(expressMetricIdMatcher)); in testExpressLogCounterAtom()
111 ConfigUtils.uploadConfig(getDevice(), config); in testExpressLogCounterAtom()
136 StatsdConfig.Builder config = ConfigUtils.createConfigBuilder(EXPRESSLOG_TEST_PKG); in testExpressLogCounterWithUidAtom()
138 ConfigUtils.createFvm(metricIdFieldNumber).setEqInt(testMetricId); in testExpressLogCounterWithUidAtom()
139 ConfigUtils.addEventMetric(config, atomTag, List.of(expressMetricIdMatcher)); in testExpressLogCounterWithUidAtom()
[all …]
/cts/hostsidetests/input/src/android/input/cts/hostside/
DInputAtomsTest.kt19 import android.cts.statsdatom.lib.ConfigUtils
63 ConfigUtils.removeConfig(device) in setUp()
71 ConfigUtils.removeConfig(device) in tearDown()
77 val builder = ConfigUtils.createConfigBuilder("AID_NOBODY") in testInputDeviceUsageAtom()
78 ConfigUtils.addEventMetric( in testInputDeviceUsageAtom()
82 ConfigUtils.uploadConfig(device, builder) in testInputDeviceUsageAtom()
263 val builder = ConfigUtils.createConfigBuilder("AID_NOBODY") in setupTouchpadUsageConfig()
264 ConfigUtils.addGaugeMetric(builder, InputExtensionAtoms.TOUCHPAD_USAGE_FIELD_NUMBER) in setupTouchpadUsageConfig()
265 ConfigUtils.uploadConfig(device, builder) in setupTouchpadUsageConfig()
277 val builder = ConfigUtils.createConfigBuilder("AID_NOBODY") in testKeyboardConfiguredAtom()
[all …]
/cts/hostsidetests/systemui/src/android/host/systemui/
DStatsdNotificationAtomTest.java22 import android.cts.statsdatom.lib.ConfigUtils;
54 ConfigUtils.removeConfig(getDevice()); in setUp()
61 ConfigUtils.removeConfig(getDevice()); in tearDown()
72 StatsdConfigProto.StatsdConfig.Builder config = ConfigUtils.createConfigBuilder( in testNotificationReported()
74 StatsdConfigProto.FieldValueMatcher.Builder fvm = ConfigUtils.createFvm( in testNotificationReported()
77 ConfigUtils.addEventMetric(config, AtomsProto.Atom.NOTIFICATION_REPORTED_FIELD_NUMBER, in testNotificationReported()
79 ConfigUtils.uploadConfig(getDevice(), config); in testNotificationReported()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/permissionstate/
DDangerousPermissionStateTests.java23 import android.cts.statsdatom.lib.ConfigUtils;
44 ConfigUtils.removeConfig(getDevice()); in setUp()
52 ConfigUtils.removeConfig(getDevice()); in tearDown()
70 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testDangerousPermissionState()
111 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testDangerousPermissionStateSampled()
122 ConfigUtils.removeConfig(getDevice()); in testDangerousPermissionStateSampled()
129 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testDangerousPermissionStateSampled()
141 ConfigUtils.removeConfig(getDevice()); in testDangerousPermissionStateSampled()
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/
DStatsdBlobStoreAtomTest.java21 import android.cts.statsdatom.lib.ConfigUtils;
52 ConfigUtils.removeConfig(getDevice()); in setUp()
60 ConfigUtils.removeConfig(getDevice()); in tearDown()
68 ConfigUtils.createConfigBuilder(TARGET_PKG); in testPushedBlobStoreStats()
69 ConfigUtils.addEventMetricForUidAtom(conf, AtomsProto.Atom.BLOB_COMMITTED_FIELD_NUMBER, in testPushedBlobStoreStats()
71 ConfigUtils.addEventMetricForUidAtom(conf, AtomsProto.Atom.BLOB_LEASED_FIELD_NUMBER, in testPushedBlobStoreStats()
73 ConfigUtils.addEventMetricForUidAtom(conf, AtomsProto.Atom.BLOB_OPENED_FIELD_NUMBER, in testPushedBlobStoreStats()
75 ConfigUtils.uploadConfig(getDevice(), conf); in testPushedBlobStoreStats()
105 ConfigUtils.uploadConfigForPulledAtom(getDevice(), TARGET_PKG, in testPulledBlobStoreStats()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memorysafety/
DMteStateTest.java21 import android.cts.statsdatom.lib.ConfigUtils;
54 ConfigUtils.removeConfig(getDevice()); in setUp()
62 ConfigUtils.removeConfig(getDevice()); in tearDown()
70 ConfigUtils.createConfigBuilder(DeviceUtils.STATSD_ATOM_TEST_PKG); in testMteState()
71 ConfigUtils.addGaugeMetric( in testMteState()
73 ConfigUtils.uploadConfig(getDevice(), config); in testMteState()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appstart/
DAppStartStatsTests.java23 import android.cts.statsdatom.lib.ConfigUtils;
56 ConfigUtils.removeConfig(getDevice()); in setUp()
70 ConfigUtils.removeConfig(getDevice()); in tearDown()
113 ConfigUtils.createConfigBuilder(DeviceUtils.STATSD_ATOM_TEST_PKG); in runTestAppStartOccurredCommon()
114 ConfigUtils.addEventMetricForUidAtom( in runTestAppStartOccurredCommon()
119 ConfigUtils.addEventMetricForUidAtom( in runTestAppStartOccurredCommon()
124 ConfigUtils.uploadConfig(getDevice(), config); in runTestAppStartOccurredCommon()
162 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testHibernatingAppStartOccurred()
181 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testHibernatingAppStartOccurredTwice_isHibernatingShouldBeFalseSecondTime()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/binderstats/
DBinderStatsTests.java24 import android.cts.statsdatom.lib.ConfigUtils;
46 ConfigUtils.removeConfig(getDevice()); in setUp()
54 ConfigUtils.removeConfig(getDevice()); in tearDown()
75 ConfigUtils.createConfigBuilder(DeviceUtils.STATSD_ATOM_TEST_PKG); in testBinderStats()
76 ConfigUtils.addGaugeMetricForUidAtom(config, Atom.BINDER_CALLS_FIELD_NUMBER, in testBinderStats()
78 ConfigUtils.uploadConfig(getDevice(), config); in testBinderStats()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/
DAppHibernationStatsTest.java23 import android.cts.statsdatom.lib.ConfigUtils;
47 ConfigUtils.removeConfig(getDevice()); in setUp()
56 ConfigUtils.removeConfig(getDevice()); in tearDown()
72 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating()
92 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromHibernatingToNotHibernating()
108 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelHibernatedApps()
130 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testGlobalHibernatedApps()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/perfetto/
DPerfettoTests.java23 import android.cts.statsdatom.lib.ConfigUtils;
87 ConfigUtils.removeConfig(getDevice()); in setUp()
110 ConfigUtils.removeConfig(getDevice()); in tearDown()
124 ConfigUtils.addEventMetric(config, AtomsProto.Atom.PERFETTO_UPLOADED_FIELD_NUMBER); in testPerfettoUploadedIncidentdAtoms()
125 ConfigUtils.uploadConfig(getDevice(), config); in testPerfettoUploadedIncidentdAtoms()
146 ConfigUtils.addEventMetric(config, AtomsProto.Atom.PERFETTO_UPLOADED_FIELD_NUMBER); in testSkipReportAtoms()
147 ConfigUtils.uploadConfig(getDevice(), config); in testSkipReportAtoms()
166 ConfigUtils.addEventMetric(config, AtomsProto.Atom.PERFETTO_UPLOADED_FIELD_NUMBER); in testReportAtoms()
167 ConfigUtils.addEventMetric(config, Atom.TRACING_SERVICE_REPORT_EVENT_FIELD_NUMBER); in testReportAtoms()
168 ConfigUtils.uploadConfig(getDevice(), config); in testReportAtoms()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/perf/
DProcStatsTests.java22 import android.cts.statsdatom.lib.ConfigUtils;
45 ConfigUtils.removeConfig(getDevice()); in setUp()
53 ConfigUtils.removeConfig(getDevice()); in tearDown()
70 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testProcessState()
85 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCachedState()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/devicepower/
DDevicePowerStatsTests.java23 import android.cts.statsdatom.lib.ConfigUtils;
43 ConfigUtils.removeConfig(getDevice()); in setUp()
51 ConfigUtils.removeConfig(getDevice()); in tearDown()
65 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testOnDevicePowerMeasurement()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/
DVmStatTests.java23 import android.cts.statsdatom.lib.ConfigUtils;
41 ConfigUtils.removeConfig(getDevice()); in setUp()
49 ConfigUtils.removeConfig(getDevice()); in tearDown()
68 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in pullVmStatAsGaugeMetric()
DSystemMemoryStatsTests.java23 import android.cts.statsdatom.lib.ConfigUtils;
42 ConfigUtils.removeConfig(getDevice()); in setUp()
50 ConfigUtils.removeConfig(getDevice()); in tearDown()
77 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in pullSystemMemoryAsGaugeMetric()
DProcessDmabufMemoryTests.java23 import android.cts.statsdatom.lib.ConfigUtils;
43 ConfigUtils.removeConfig(getDevice()); in setUp()
51 ConfigUtils.removeConfig(getDevice()); in tearDown()
81 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in pullAsGaugeMetric()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/
DCpuStatsTests.java24 import android.cts.statsdatom.lib.ConfigUtils;
42 ConfigUtils.removeConfig(getDevice()); in setUp()
50 ConfigUtils.removeConfig(getDevice()); in tearDown()
64 ConfigUtils.uploadConfigForPulledAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCpuTimePerUid()
88 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCpuTimePerClusterFreq()
109 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCpuCyclesPerUidCluster()
132 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCpuCyclesPerThreadGroupCluster()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterycycle/
DBatteryCycleStatsTests.java23 import android.cts.statsdatom.lib.ConfigUtils;
43 ConfigUtils.removeConfig(getDevice()); in setUp()
51 ConfigUtils.removeConfig(getDevice()); in tearDown()
66 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testBatteryCycleCount()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/tls/
DTlsHandshakeStatsTests.java23 import android.cts.statsdatom.lib.ConfigUtils;
43 ConfigUtils.removeConfig(getDevice()); in setUp()
51 ConfigUtils.removeConfig(getDevice()); in tearDown()
65 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testTlsHandshake()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/gnss/
DGnssPsdsDownloadStatsTest.java24 import android.cts.statsdatom.lib.ConfigUtils;
53 ConfigUtils.removeConfig(getDevice()); in setUp()
61 ConfigUtils.removeConfig(getDevice()); in tearDown()
79 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testGnssPsdsDownload()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/jobscheduler/
DJobSchedulerStatsTests.java23 import android.cts.statsdatom.lib.ConfigUtils;
56 ConfigUtils.removeConfig(getDevice()); in setUp()
64 ConfigUtils.removeConfig(getDevice()); in tearDown()
81 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testScheduledJobState()
104 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testScheduledJobState_CancelledJob()
133 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testScheduledJobStatePriority()
/cts/hostsidetests/appcompat/hiddenapi/src/android/compat/hiddenapi/cts/
DHostsideStatsdAtomTests.java24 import android.cts.statsdatom.lib.ConfigUtils;
62 ConfigUtils.removeConfig(getDevice()); in setUp()
68 ConfigUtils.removeConfig(getDevice()); in tearDown()
93 final StatsdConfig.Builder config = ConfigUtils.createConfigBuilder(TEST_PKG); in hiddenApiUsed()
94 ConfigUtils.addEventMetricForUidAtom(config, Atom.HIDDEN_API_USED_FIELD_NUMBER, in hiddenApiUsed()
96 ConfigUtils.uploadConfig(getDevice(), config); in hiddenApiUsed()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DStatsdAppSecurityAtomTest.java22 import android.cts.statsdatom.lib.ConfigUtils;
47 ConfigUtils.removeConfig(getDevice()); in setUp()
55 ConfigUtils.removeConfig(getDevice()); in tearDown()
69 ConfigUtils.uploadConfigForPulledAtom(getDevice(), STATSD_APP_PKG, in testRoleHolder()
/cts/hostsidetests/car/src/android/car/cts/
DGarageModeAtomTests.java22 import android.cts.statsdatom.lib.ConfigUtils;
54 ConfigUtils.removeConfig(getDevice()); in setUp()
66 ConfigUtils.removeConfig(getDevice()); in tearDown()
83 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testGarageModeOnOff()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/integrity/
DIntegrityCheckStatsTests.java25 import android.cts.statsdatom.lib.ConfigUtils;
44 ConfigUtils.removeConfig(getDevice()); in setUp()
52 ConfigUtils.removeConfig(getDevice()); in tearDown()
65 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testIntegrityCheckAtomReportedDuringInstall()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/
DBytesTransferredTest.java23 import android.cts.statsdatom.lib.ConfigUtils;
49 ConfigUtils.removeConfig(getDevice()); in setUp()
58 ConfigUtils.removeConfig(getDevice()); in tearDown()
164 final StatsdConfig.Builder config = ConfigUtils.createConfigBuilder( in doTestMobileBytesTransferThat()
167 ConfigUtils.addGaugeMetricForUidAtom(config, atomId, /*uidInAttributionChain=*/false, in doTestMobileBytesTransferThat()
170 ConfigUtils.addGaugeMetric(config, atomId); in doTestMobileBytesTransferThat()
172 ConfigUtils.uploadConfig(getDevice(), config); in doTestMobileBytesTransferThat()

1234