Home
last modified time | relevance | path

Searched refs:DeviceUtils (Results 1 – 25 of 47) sorted by relevance

12

/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DHostAtomTests.java23 import android.cts.statsdatom.lib.DeviceUtils;
89 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
90 DeviceUtils.turnBatteryStatsAutoResetOff(getDevice()); in setUp()
98 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
99 DeviceUtils.turnBatteryStatsAutoResetOn(getDevice()); in tearDown()
114 DeviceUtils.turnScreenOn(getDevice()); in testScreenStateChangedAtom()
116 DeviceUtils.turnScreenOff(getDevice()); in testScreenStateChangedAtom()
135 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testScreenStateChangedAtom()
139 DeviceUtils.turnScreenOn(getDevice()); in testScreenStateChangedAtom()
141 DeviceUtils.turnScreenOff(getDevice()); in testScreenStateChangedAtom()
[all …]
DUidAtomTests.java24 import android.cts.statsdatom.lib.DeviceUtils;
96 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
104 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
118 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testIsolatedToHostUidMapping()
122 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", in testIsolatedToHostUidMapping()
129 assertThat(atom.getUid()).isEqualTo(DeviceUtils.getStatsdTestAppUid(getDevice())); in testIsolatedToHostUidMapping()
135 boolean hasKernel = DeviceUtils.isKernelGreaterEqual(getDevice(), Pair.create(4, 19)); in shouldTestLmkdStats()
138 || "true".equals(DeviceUtils.getProperty(getDevice(), "ro.lmk.log_stats")); in shouldTestLmkdStats()
147 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testLmkKillOccurred()
149 int appUid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testLmkKillOccurred()
[all …]
DProcStateAtomTests.java24 import android.cts.statsdatom.lib.DeviceUtils;
128 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
136 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
151 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testForegroundService()
170 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testForeground()
188 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testBackground()
191 DeviceUtils.executeBackgroundService(getDevice(), ACTION_BACKGROUND_SLEEP); in testBackground()
207 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testTop()
221 if (DeviceUtils.hasFeature(getDevice(), FEATURE_WATCH)) return; in testTopSleeping()
227 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testTopSleeping()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appstart/
DAppStartStatsTests.java23 import android.cts.statsdatom.lib.DeviceUtils;
55 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
59 DeviceUtils.turnScreenOn(getDevice()); in setUp()
69 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
80 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testAppStartOccurred()
83 DeviceUtils.STATSD_ATOM_TEST_PKG, false)); in testAppStartOccurred()
85 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testAppStartOccurred()
93 assertThat(atom.getPkgName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testAppStartOccurred()
104 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testHibernatingAppStartOccurred()
108 DeviceUtils.STATSD_ATOM_TEST_PKG, true)); in testHibernatingAppStartOccurred()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/
DProcessMemoryStatsTests.java24 import android.cts.statsdatom.lib.DeviceUtils;
43 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
51 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
62 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testProcessMemoryState()
66 try (AutoCloseable a = DeviceUtils.withActivity(getDevice(), in testProcessMemoryState()
67 DeviceUtils.STATSD_ATOM_TEST_PKG, "StatsdCtsForegroundActivity", "action", in testProcessMemoryState()
77 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testProcessMemoryState()
85 assertThat(state.getProcessName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testProcessMemoryState()
99 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testProcessMemoryHighWaterMark()
103 try (AutoCloseable a = DeviceUtils.withActivity(getDevice(), in testProcessMemoryHighWaterMark()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/
DAppHibernationStatsTest.java23 import android.cts.statsdatom.lib.DeviceUtils;
48 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
57 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
69 getHibernationCommand(DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating()
71 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating()
76 getHibernationCommand(DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating()
89 getHibernationCommand(DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromHibernatingToNotHibernating()
91 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromHibernatingToNotHibernating()
96 getHibernationCommand(DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromHibernatingToNotHibernating()
107 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelHibernatedApps()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/
DCpuStatsTests.java24 import android.cts.statsdatom.lib.DeviceUtils;
43 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
51 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
61 if (DeviceUtils.hasFeature(getDevice(), DeviceUtils.FEATURE_WATCH)) return; in testCpuTimePerUid()
63 ConfigUtils.uploadConfigForPulledAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCpuTimePerUid()
67 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testSimpleCpu"); in testCpuTimePerUid()
76 int appUid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testCpuTimePerUid()
87 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCpuTimePerClusterFreq()
91 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testSimpleCpu"); in testCpuTimePerClusterFreq()
108 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCpuCyclesPerUidCluster()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/wifi/
DWifiStatsTests.java27 import android.cts.statsdatom.lib.DeviceUtils;
57 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
65 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
75 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_WIFI)) return; in testWifiLockHighPerf()
76 if (DeviceUtils.hasFeature(getDevice(), FEATURE_PC)) return; in testWifiLockHighPerf()
78 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testWifiLockHighPerf()
80 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testWifiLockHighPerf"); in testWifiLockHighPerf()
104 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_WIFI)) return; in testWifiLockLowLatency()
105 if (DeviceUtils.hasFeature(getDevice(), FEATURE_PC)) return; in testWifiLockLowLatency()
107 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testWifiLockLowLatency()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/alarm/
DAlarmStatsTests.java24 import android.cts.statsdatom.lib.DeviceUtils;
47 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
55 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
67 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testWakeupAlarm()
71 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testWakeupAlarm()
73 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testWakeupAlarm"); in testWakeupAlarm()
80 assertThat(wao.getPackageName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testWakeupAlarm()
85 if (DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) return; in testAlarmScheduled()
89 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testAlarmScheduled()
91 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testAlarmScheduled"); in testAlarmScheduled()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/notification/
DNotificationStatsTests.java23 import android.cts.statsdatom.lib.DeviceUtils;
43 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
51 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
61 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testNotificationPackagePreferenceExtraction()
64 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testNotificationPackagePreferenceExtraction()
79 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testNotificationPackagePreferenceExtraction()
95 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testNotificationChannelPreferencesExtraction()
98 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testNotificationChannelPreferencesExtraction()
114 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testNotificationChannelPreferencesExtraction()
134 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testNotificationChannelGroupPreferencesExtraction()
[all …]
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DIncrementalAppErrorStatsTests.java26 import android.cts.statsdatom.lib.DeviceUtils;
79 DeviceUtils.installTestApp(getDevice(), HELPER_APK, HELPER_PACKAGE, mCtsBuild); in setUp()
83 DeviceUtils.STATSD_ATOM_TEST_APK, TEST_REMOTE_DIR, mCtsBuild, getDevice()); in setUp()
94 final File apk = buildHelper.getTestFile(DeviceUtils.STATSD_ATOM_TEST_APK); in setUp()
97 DeviceUtils.STATSD_ATOM_TEST_APK + SIGNATURE_FILE_SUFFIX); in setUp()
112 assertTrue(getDevice().isPackageInstalled(DeviceUtils.STATSD_ATOM_TEST_PKG)); in setUp()
114 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testLoadingApks"); in setUp()
127 getDevice().uninstallPackage(DeviceUtils.STATSD_ATOM_TEST_PKG); in tearDown()
128 assertFalse(getDevice().isPackageInstalled(DeviceUtils.STATSD_ATOM_TEST_PKG)); in tearDown()
139 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testAppCrashOnIncremental()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/
DBytesTransferredTest.java23 import android.cts.statsdatom.lib.DeviceUtils;
50 DeviceUtils.installTestApp(getDevice(), DeviceUtils.STATSD_ATOM_TEST_APK, in setUp()
51 DeviceUtils.STATSD_ATOM_TEST_PKG, mCtsBuild); in setUp()
59 DeviceUtils.uninstallTestApp(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG); in tearDown()
184 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) return; in doTestMobileBytesTransferThat()
187 DeviceUtils.STATSD_ATOM_TEST_PKG); in doTestMobileBytesTransferThat()
190 DeviceUtils.STATSD_ATOM_TEST_PKG); in doTestMobileBytesTransferThat()
196 DeviceUtils.runDeviceTests(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, ".AtomTests", in doTestMobileBytesTransferThat()
200 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in doTestMobileBytesTransferThat()
221 final int appUid = DeviceUtils.getAppUid(getDevice(), in doTestMobileBytesTransferThat()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/binderstats/
DBinderStatsTests.java24 import android.cts.statsdatom.lib.DeviceUtils;
47 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
55 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
66 DeviceUtils.unplugDevice(getDevice()); in testBinderStats()
74 ConfigUtils.createConfigBuilder(DeviceUtils.STATSD_ATOM_TEST_PKG); in testBinderStats()
76 /*uidInAttributionChain=*/false, DeviceUtils.STATSD_ATOM_TEST_PKG); in testBinderStats()
79 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testBinderStats()
85 int appUid = DeviceUtils.getAppUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG); in testBinderStats()
DLooperStatsTests.java24 import android.cts.statsdatom.lib.DeviceUtils;
45 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
53 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
64 DeviceUtils.unplugDevice(getDevice()); in testLooperStats()
67 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testLooperStats()
70 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testLooperStats()
79 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testLooperStats()
109 DeviceUtils.plugInAc(getDevice()); in testLooperStats()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/bluetooth/
DBluetoothStatsTests.java25 import android.cts.statsdatom.lib.DeviceUtils;
50 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
58 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
68 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_BLUETOOTH_LE)) return; in testBleScan()
78 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testBleScan()
81 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testBleScanUnoptimized"); in testBleScan()
90 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_BLUETOOTH_LE)) return; in testBleUnoptimizedScan()
101 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testBleUnoptimizedScan()
104 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testBleScanUnoptimized"); in testBleUnoptimizedScan()
125 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_BLUETOOTH_LE)) return; in testBleOpportunisticScan()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/integrity/
DIntegrityCheckStatsTests.java25 import android.cts.statsdatom.lib.DeviceUtils;
45 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
53 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
64 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testIntegrityCheckAtomReportedDuringInstall()
67 DeviceUtils.uninstallStatsdTestApp(getDevice()); in testIntegrityCheckAtomReportedDuringInstall()
68 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in testIntegrityCheckAtomReportedDuringInstall()
76 assertThat(result.getPackageName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testIntegrityCheckAtomReportedDuringInstall()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterycycle/
DBatteryCycleStatsTests.java23 import android.cts.statsdatom.lib.DeviceUtils;
44 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
52 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
63 if (DeviceUtils.hasFeature(getDevice(), FEATURE_WATCH)) return; in testBatteryCycleCount()
65 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testBatteryCycleCount()
75 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryCycleCount()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterystats/
DBatteryUsageStatsTests.java23 import android.cts.statsdatom.lib.DeviceUtils;
52 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
60 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
89 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in runBatteryUsageStatsAtomTest()
96 ConfigUtils.createConfigBuilder(DeviceUtils.STATSD_ATOM_TEST_PKG); in runBatteryUsageStatsAtomTest()
148 DeviceUtils.unplugDevice(getDevice()); in unplugDevice()
153 DeviceUtils.resetBatteryStatus(getDevice()); in plugInDevice()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/gnss/
DGnssStatsTests.java24 import android.cts.statsdatom.lib.DeviceUtils;
45 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
53 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
64 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testGnssStats()
67 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_LOCATION_GPS)) return; in testGnssStats()
73 DeviceUtils.STATSD_ATOM_TEST_PKG)); in testGnssStats()
76 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testGpsStatus"); in testGnssStats()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/jobscheduler/
DJobSchedulerStatsTests.java23 import android.cts.statsdatom.lib.DeviceUtils;
49 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
57 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
78 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testScheduledJobState()
80 DeviceUtils.allowImmediateSyncs(getDevice()); in testScheduledJobState()
81 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testScheduledJob"); in testScheduledJobState()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/telephony/
DTelephonyStatsTests.java23 import android.cts.statsdatom.lib.DeviceUtils;
90 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
98 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
108 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) { in testSimSlotState()
112 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testSimSlotState()
136 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) { in testSupportedRadioAccessFamily()
140 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testSupportedRadioAccessFamily()
160 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) { in testCarrierIdTableVersion()
166 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCarrierIdTableVersion()
179 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) { in testAirplaneModeEvent_shortToggle()
[all …]
/cts/hostsidetests/media/src/android/media/metrics/cts/
DMediaMetricsAtomTests.java23 import android.cts.statsdatom.lib.DeviceUtils;
51 DeviceUtils.installTestApp(getDevice(), TEST_APK, TEST_PKG, mCtsBuild); in setUp()
61 DeviceUtils.uninstallTestApp(getDevice(), TEST_PKG); in tearDown()
73 DeviceUtils.runDeviceTests( in testPlaybackStateEvent_default()
93 DeviceUtils.runDeviceTests( in testPlaybackStateEvent()
113 DeviceUtils.runDeviceTests( in testPlaybackErrorEvent_default()
138 DeviceUtils.runDeviceTests( in testPlaybackErrorEvent()
163 DeviceUtils.runDeviceTests( in testTrackChangeEvent_default()
194 DeviceUtils.runDeviceTests( in testTrackChangeEvent_text()
223 DeviceUtils.runDeviceTests( in testTrackChangeEvent_audio()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appexit/
DAppExitHostTest.java30 import android.cts.statsdatom.lib.DeviceUtils;
64 DeviceUtils.installTestApp(getDevice(), TEST_APK, TEST_PKG, mCtsBuild); in setUp()
65 DeviceUtils.installTestApp(getDevice(), HELPER_APK1, HELPER_PKG1, mCtsBuild); in setUp()
66 DeviceUtils.installTestApp(getDevice(), HELPER_APK2, HELPER_PKG2, mCtsBuild); in setUp()
80 DeviceUtils.uninstallTestApp(getDevice(), TEST_PKG); in tearDown()
81 DeviceUtils.uninstallTestApp(getDevice(), HELPER_PKG1); in tearDown()
82 DeviceUtils.uninstallTestApp(getDevice(), HELPER_PKG2); in tearDown()
126 DeviceUtils.runDeviceTests(getDevice(), TEST_PKG, TEST_CLASS, testMethod); in performLogStatsdTest()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/settingsstats/
DSettingsStatsTests.java23 import android.cts.statsdatom.lib.DeviceUtils;
42 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
50 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
88 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testSettingsStatsReported()
92 try (AutoCloseable a = DeviceUtils.withActivity(getDevice(), in testSettingsStatsReported()
93 DeviceUtils.STATSD_ATOM_TEST_PKG, "StatsdCtsForegroundActivity", "action", in testSettingsStatsReported()
/cts/hostsidetests/car/src/android/car/cts/
DGarageModeAtomTests.java22 import android.cts.statsdatom.lib.DeviceUtils;
60 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
67 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
78 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_AUTOMOTIVE)) { in testGarageModeOnOff()
82 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testGarageModeOnOff()

12