Home
last modified time | relevance | path

Searched refs:getDevice (Results 1 – 25 of 697) sorted by relevance

12345678910>>...28

/cts/hostsidetests/rollback/src/com/android/cts/rollback/host/
DRollbackManagerHostTest.java76 HostFlagsValueProvider.createCheckFlagsRule(this::getDevice);
89 getDevice().executeShellCommand("for i in $(pm list staged-sessions --only-sessionid " in cleanUp()
91 getDevice().executeShellCommand("pm uninstall com.android.cts.install.lib.testapp.A"); in cleanUp()
92 getDevice().executeShellCommand("pm uninstall com.android.cts.install.lib.testapp.B"); in cleanUp()
93 getDevice().executeShellCommand("pm uninstall com.android.cts.install.lib.testapp.C"); in cleanUp()
104 getDevice().reboot(); in testApkOnlyStagedRollback()
106 getDevice().reboot(); in testApkOnlyStagedRollback()
119 getDevice().reboot(); in testApkOnlyMultipleStagedRollback()
121 getDevice().reboot(); in testApkOnlyMultipleStagedRollback()
134 getDevice().reboot(); in testApkOnlyMultipleStagedPartialRollback()
[all …]
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DPoc17_01.java39 if(containsDriver(getDevice(), "/dev/nvhost-vic")) { in testPocCVE_2016_8425()
40 AdbUtils.runPoc("CVE-2016-8425", getDevice(), 60); in testPocCVE_2016_8425()
50 if(containsDriver(getDevice(), "/dev/nvhost-gpu")) { in testPocCVE_2016_8426()
51 AdbUtils.runPoc("CVE-2016-8426", getDevice(), 60); in testPocCVE_2016_8426()
61 if(containsDriver(getDevice(), "/dev/nvhost-gpu") || in testPocCVE_2016_8427()
62 containsDriver(getDevice(), "/dev/nvhost-dbg-gpu")) { in testPocCVE_2016_8427()
63 AdbUtils.runPoc("CVE-2016-8427", getDevice(), 60); in testPocCVE_2016_8427()
73 if(containsDriver(getDevice(), "/dev/nvmap")) { in testPocCVE_2016_8428()
74 AdbUtils.runPoc("CVE-2016-8428", getDevice(), 60); in testPocCVE_2016_8428()
84 if(containsDriver(getDevice(), "/dev/nvmap")) { in testPocCVE_2016_8429()
[all …]
DPoc16_11.java38 AdbUtils.runCommandLine("logcat -c", getDevice()); in testPocCVE_2012_6702()
39 AdbUtils.runPoc("CVE-2012-6702", getDevice(), 60); in testPocCVE_2012_6702()
40 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2012_6702()
50 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6730()
51 AdbUtils.runPoc("CVE-2016-6730", getDevice(), 60); in testPocCVE_2016_6730()
61 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6731()
62 AdbUtils.runPoc("CVE-2016-6731", getDevice(), 60); in testPocCVE_2016_6731()
72 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6732()
73 AdbUtils.runPoc("CVE-2016-6732", getDevice(), 60); in testPocCVE_2016_6732()
83 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6733()
[all …]
DPoc17_03.java41 if (containsDriver(getDevice(), "/dev/kgsl-3d0")) { in testPocCVE_2016_8479()
42 AdbUtils.runPocNoOutput("CVE-2016-8479", getDevice(), TIMEOUT_NONDETERMINISTIC); in testPocCVE_2016_8479()
55 if (containsDriver(getDevice(), "/dev/ion") && in testPocCVE_2017_0508()
56 containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2017_0508()
57 AdbUtils.runPocNoOutput("CVE-2017-0508", getDevice(), 30); in testPocCVE_2017_0508()
70 if (containsDriver(getDevice(), "/dev/dri/renderD128")) { in testPocCVE_2017_0333()
71 AdbUtils.runPocNoOutput("CVE-2017-0333", getDevice(), 30); in testPocCVE_2017_0333()
83 if (containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2017_0334()
84 String out = AdbUtils.runPoc("CVE-2017-0334", getDevice()); in testPocCVE_2017_0334()
113 AdbUtils.runPocAssertNoCrashes("CVE-2017-0479", getDevice(), "audioserver"); in testPocCVE_2017_0479()
[all …]
/cts/hostsidetests/content/src/android/content/cts/
DContextCrossProfileHostTest.java75 mParentUserId = getDevice().getCurrentUser(); in setUp()
77 if (!getDevice().isHeadlessSystemUserMode()) { in setUp()
84 getDevice().installPackageForUser( in setUp()
91 getDevice().uninstallPackage(TEST_WITH_PERMISSION_PKG); in tearDown()
92 getDevice().uninstallPackage(TEST_SERVICE_WITH_PERMISSION_PKG); in tearDown()
107 getDevice().startUser(userInSameProfileGroup, /* waitFlag= */true); in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser()
109 getDevice().installPackageForUser( in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser()
115 getDevice().installPackageForUser( in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser()
120 getDevice(), in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser()
135 getDevice().startUser(userInSameProfileGroup, /* waitFlag= */true); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService()
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPrivilegedUpdateTests.java61 String defaultAbi = AbiFormatter.getDefaultAbi(getDevice(), mAbi.getBitness()); in isDefaultAbi()
79 Utils.prepareSingleUser(getDevice()); in setUp()
83 getDevice().uninstallPackage(SHIM_PKG); in setUp()
84 getDevice().uninstallPackage(TEST_PKG); in setUp()
86 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(TEST_APK), false)); in setUp()
87 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in setUp()
94 getDevice().uninstallPackage(SHIM_PKG); in tearDown()
95 getDevice().uninstallPackage(TEST_PKG); in tearDown()
96 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in tearDown()
100 getDevice().uninstallPackage(SHIM_PKG); in testPrivilegedAppUpgradeRestricted()
[all …]
DPackageVisibilityTest.java56 mUsers = Utils.prepareMultipleUsers(getDevice()); in setUpPackage()
58 getDevice().executeShellCommand("settings get global package_verifier_enable"); in setUpPackage()
59 getDevice().executeShellCommand("settings put global package_verifier_enable 0"); in setUpPackage()
60 getDevice().uninstallPackage(TEST_PKG); in setUpPackage()
61 getDevice().uninstallPackage(TINY_PKG); in setUpPackage()
67 getDevice().uninstallPackage(TEST_PKG); in tearDown()
68 getDevice().uninstallPackage(TINY_PKG); in tearDown()
69 getDevice().executeShellCommand("settings put global package_verifier_enable " in tearDown()
90 getDevice().startUser(userId, /* waitFlag= */ true); in testUninstalledPackageVisibility()
101 Utils.runDeviceTests(getDevice(), TEST_PKG, in testUninstalledPackageVisibility()
[all …]
DOverlayHostTest.java87 getDevice().uninstallPackage(TEST_APP_PACKAGE); in tearDown()
91 String result = getDevice().executeShellCommand("cmd overlay dump"); in getStateForOverlay()
93 String overlayPackageForCurrentUser = overlayPackage + ":" + getDevice().getCurrentUser(); in getStateForOverlay()
129 getDevice().uninstallPackage(TARGET_PACKAGE);
130 getDevice().uninstallPackage(overlayPackage);
131 assertFalse(getDevice().getInstalledPackageNames().contains(OVERLAY_ALL_PACKAGE));
132 assertFalse(getDevice().getInstalledPackageNames().contains(overlayPackage));
138 getDevice().executeShellCommand("cmd overlay enable --user current " + overlayPackage);
141 getDevice().uninstallPackage(TARGET_PACKAGE);
142 getDevice().uninstallPackage(overlayPackage);
[all …]
DAppSecurityTests.java112 Utils.prepareSingleUser(getDevice()); in setUp()
133 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts()
134 getDevice().uninstallPackage(SIMPLE_APP_DIFF_CERT_APK); in testAppUpgradeDifferentCerts()
140 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts()
141 getDevice().uninstallPackage(SIMPLE_APP_DIFF_CERT_APK); in testAppUpgradeDifferentCerts()
162 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testAppFailAccessPrivateData()
163 getDevice().uninstallPackage(APP_ACCESS_DATA_PKG); in testAppFailAccessPrivateData()
171 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testAppFailAccessPrivateData()
172 getDevice().uninstallPackage(APP_ACCESS_DATA_PKG); in testAppFailAccessPrivateData()
192 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testUninstallRemovesData()
[all …]
DDirectBootHostTest.java65 Utils.prepareSingleUser(getDevice()); in setUp()
69 getDevice().uninstallPackage(PKG); in setUp()
70 getDevice().uninstallPackage(OTHER_PKG); in setUp()
75 getDevice().uninstallPackage(PKG); in tearDown()
76 getDevice().uninstallPackage(OTHER_PKG); in tearDown()
116 getDevice().executeShellCommand("am start -a android.intent.action.MAIN" in doDirectBootTest()
129 getDevice().rebootUntilOnline(); in doDirectBootTest()
130 waitForBootCompleted(getDevice()); in doDirectBootTest()
143 getDevice().uninstallPackage(PKG); in doDirectBootTest()
146 getDevice().rebootUntilOnline(); in doDirectBootTest()
[all …]
DEphemeralTest.java124 Utils.prepareSingleUser(getDevice()); in setUp()
145 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, "testQuery"); in testNormalQuery()
153 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, "testStartNormal"); in testNormalStartNormal()
161 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, in testNormalStartEphemeral()
170 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, "testQuery"); in testEphemeralQuery()
178 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartNormal()
190 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed01()
198 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed02()
206 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed03()
214 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed04()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DHostAtomTests.java80 ConfigUtils.removeConfig(getDevice()); in setUp()
81 ReportUtils.clearReports(getDevice()); in setUp()
82 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
83 DeviceUtils.turnBatteryStatsAutoResetOff(getDevice()); in setUp()
89 ConfigUtils.removeConfig(getDevice()); in tearDown()
90 ReportUtils.clearReports(getDevice()); in tearDown()
91 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
92 DeviceUtils.turnBatteryStatsAutoResetOn(getDevice()); in tearDown()
107 DeviceUtils.turnScreenOn(getDevice()); in testScreenStateChangedAtom()
109 DeviceUtils.turnScreenOff(getDevice()); in testScreenStateChangedAtom()
[all …]
DUidAtomTests.java90 ConfigUtils.removeConfig(getDevice()); in setUp()
91 ReportUtils.clearReports(getDevice()); in setUp()
92 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
98 ConfigUtils.removeConfig(getDevice()); in tearDown()
99 ReportUtils.clearReports(getDevice()); in tearDown()
100 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
114 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testIsolatedToHostUidMapping()
118 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", in testIsolatedToHostUidMapping()
122 List<EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice()); in testIsolatedToHostUidMapping()
125 assertThat(atom.getUid()).isEqualTo(DeviceUtils.getStatsdTestAppUid(getDevice())); in testIsolatedToHostUidMapping()
[all …]
/cts/hostsidetests/tagging/src/com/android/cts/tagging/
DMemtagBootctlTest.java50 testInfo.getDevice().getProperty("ro.arm64.memtag.bootctl_supported"), in setUp()
52 mPreviousState = testInfo.getDevice().getProperty("arm64.memtag.bootctl"); in setUp()
61 testInfo.getDevice().setProperty("arm64.memtag.bootctl", mPreviousState); in tearDown()
62 testInfo.getDevice().reboot(); in tearDown()
74 assertThat(getDevice().pullFileContents("/proc/cpuinfo")).contains(" mte"); in checkMteOn()
79 assertThat(getDevice().pullFileContents("/proc/cpuinfo")).doesNotContain(" mte"); in checkMteOff()
86 getDevice().setProperty("arm64.memtag.bootctl", "memtag-once"); in testMemtagOnce()
87 getDevice().reboot(); in testMemtagOnce()
88 assertThat(getDevice().getProperty("arm64.memtag.bootctl")).isAnyOf("", "none", null); in testMemtagOnce()
90 getDevice().reboot(); in testMemtagOnce()
[all …]
/cts/hostsidetests/os/src/android/os/cts/
DStaticSharedLibsHostTests.java133 getDevice().uninstallPackage(STATIC_LIB_CONSUMER3_PKG); in cleanUp()
134 getDevice().uninstallPackage(STATIC_LIB_CONSUMER2_PKG); in cleanUp()
135 getDevice().uninstallPackage(STATIC_LIB_CONSUMER1_PKG); in cleanUp()
136 getDevice().uninstallPackage(STATIC_LIB_NATIVE_CONSUMER_PKG); in cleanUp()
137 getDevice().uninstallPackage(STATIC_LIB_PROVIDER7_PKG); in cleanUp()
138 getDevice().uninstallPackage(STATIC_LIB_PROVIDER6_PKG); in cleanUp()
139 getDevice().uninstallPackage(STATIC_LIB_PROVIDER5_PKG); in cleanUp()
140 getDevice().uninstallPackage(STATIC_LIB_PROVIDER4_PKG); in cleanUp()
141 getDevice().uninstallPackage(STATIC_LIB_PROVIDER3_PKG); in cleanUp()
142 getDevice().uninstallPackage(STATIC_LIB_PROVIDER2_PKG); in cleanUp()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/
DMediaCapabilitiesTests.java53 ConfigUtils.removeConfig(getDevice()); in setUp()
54 ReportUtils.clearReports(getDevice()); in setUp()
55 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
63 ConfigUtils.removeConfig(getDevice()); in tearDown()
64 ReportUtils.clearReports(getDevice()); in tearDown()
65 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
76 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TV)) return; in testSurroundSoundCapabilities()
78 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testSurroundSoundCapabilities()
82 getDevice().executeShellCommand( in testSurroundSoundCapabilities()
84 getDevice().executeShellCommand( in testSurroundSoundCapabilities()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/voiceinteraction/
DHotwordDetectorKeyphraseTriggeredStatsTest.java88 if (!isSupportedDevice(getDevice())) return; in setUp()
91 ConfigUtils.removeConfig(getDevice()); in setUp()
92 ReportUtils.clearReports(getDevice()); in setUp()
93 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
94 DeviceUtils.installTestApp(getDevice(), TEST_APK, TEST_PKG, mCtsBuild); in setUp()
98 ConfigUtils.uploadConfigForPushedAtom(getDevice(), TEST_PKG, in setUp()
104 if (!isSupportedDevice(getDevice())) return; in tearDown()
106 ConfigUtils.removeConfig(getDevice()); in tearDown()
107 ReportUtils.clearReports(getDevice()); in tearDown()
108 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
[all …]
DHotwordAudioEgressEventReportedStatsTest.java80 if (!isSupportedDevice(getDevice())) return; in setUp()
83 ConfigUtils.removeConfig(getDevice()); in setUp()
84 ReportUtils.clearReports(getDevice()); in setUp()
85 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
86 DeviceUtils.installTestApp(getDevice(), TEST_APK, TEST_PKG, mCtsBuild); in setUp()
90 ConfigUtils.uploadConfigForPushedAtom(getDevice(), TEST_PKG, in setUp()
96 if (!isSupportedDevice(getDevice())) return; in tearDown()
98 ConfigUtils.removeConfig(getDevice()); in tearDown()
99 ReportUtils.clearReports(getDevice()); in tearDown()
100 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
[all …]
DHotwordDetectorCreateRequestedStatsTests.java68 if (!isSupportedDevice(getDevice())) return; in setUp()
71 ConfigUtils.removeConfig(getDevice()); in setUp()
72 ReportUtils.clearReports(getDevice()); in setUp()
73 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
74 DeviceUtils.installTestApp(getDevice(), TEST_APK, TEST_PKG, mCtsBuild); in setUp()
78 ConfigUtils.uploadConfigForPushedAtom(getDevice(), TEST_PKG, in setUp()
84 if (!isSupportedDevice(getDevice())) return; in tearDown()
86 ConfigUtils.removeConfig(getDevice()); in tearDown()
87 ReportUtils.clearReports(getDevice()); in tearDown()
88 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
[all …]
/cts/hostsidetests/testharness/src/android/testharness/cts/
DTestHarnessModeDeviceTest.java52 getDevice().executeShellCommand("touch /sdcard/test.txt"); in testHarnessModeDeletesFiles()
53 getDevice().executeShellCommand("touch /data/local/tmp/test.txt"); in testHarnessModeDeletesFiles()
55 if (getDevice().doesFileExist("/sdcard/test.txt") in testHarnessModeDeletesFiles()
56 && getDevice().doesFileExist("/data/local/tmp/test.txt")) { in testHarnessModeDeletesFiles()
76 getDevice().executeShellCommand("settings get global transition_animation_scale"); in testHarnessModeRemovesAndResetsSettings()
78 getDevice().executeShellCommand("settings put global test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings()
79 getDevice().executeShellCommand("settings put secure test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings()
80 getDevice().executeShellCommand("settings put system test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings()
81 getDevice().executeShellCommand("settings put global transition_animation_scale 2.0"); in testHarnessModeRemovesAndResetsSettings()
88 getDevice().executeShellCommand("settings get global test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/
DAppHibernationStatsTest.java47 ConfigUtils.removeConfig(getDevice()); in setUp()
48 ReportUtils.clearReports(getDevice()); in setUp()
49 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
50 getDevice().executeShellCommand(CMD_ENABLE_APP_HIBERNATION); in setUp()
56 ConfigUtils.removeConfig(getDevice()); in tearDown()
57 ReportUtils.clearReports(getDevice()); in tearDown()
58 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
69 getDevice().executeShellCommand( in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating()
72 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating()
76 getDevice().executeShellCommand( in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating()
[all …]
/cts/hostsidetests/angle/src/android/angle/cts/
DCtsAngleDeveloperOptionHostTest.java51 setGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_PKGS, pkgName); in setAndValidateAngleDevOptionPkgDriver()
52 setGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_VALUES, driverValue); in setAndValidateAngleDevOptionPkgDriver()
54 String devOption = getGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_PKGS); in setAndValidateAngleDevOptionPkgDriver()
60 devOption = getGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_VALUES); in setAndValidateAngleDevOptionPkgDriver()
69 stopPackage(getDevice(), pkgName); in setAndValidatePkgDriver()
116 stopPackage(getDevice(), ANGLE_NATIVE_DRIVER_CHECK_PKG); in checkNativeDriver()
117 clearSettings(getDevice()); in checkNativeDriver()
122 clearSettings(getDevice()); in setUp()
124 stopPackage(getDevice(), ANGLE_DRIVER_TEST_PKG); in setUp()
125 stopPackage(getDevice(), ANGLE_DRIVER_TEST_SEC_PKG); in setUp()
[all …]
/cts/hostsidetests/locale/src/android/localemanager/cts/
DAppSupportedLocalesChangedAtomTest.java51 ConfigUtils.removeConfig(getDevice()); in setUp()
52 ReportUtils.clearReports(getDevice()); in setUp()
53 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in setUp()
60 ConfigUtils.removeConfig(getDevice()); in tearDown()
61 ReportUtils.clearReports(getDevice()); in tearDown()
76 List<StatsLog.EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice()); in testAtomLogging_overrideLocaleConfig_logsAtomSuccessfully()
80 verifyAtomDetails(DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), in testAtomLogging_overrideLocaleConfig_logsAtomSuccessfully()
81 DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), NUM_OVERRIDE_LOCALES, in testAtomLogging_overrideLocaleConfig_logsAtomSuccessfully()
92 List<StatsLog.EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice()); in testAtomLogging_removeOverride_logsAtomSuccessfully()
96 verifyAtomDetails(DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), in testAtomLogging_removeOverride_logsAtomSuccessfully()
[all …]
/cts/hostsidetests/appsearch/src/android/appsearch/cts/
DAppSearchMultiUserTest.java56 testInfo.getDevice().isMultiUserSupported()); in setUpClass()
58 sInitialUserId = testInfo.getDevice().getPrimaryUserId(); in setUpClass()
59 sSecondaryUserId = testInfo.getDevice().createUser("Test_User"); in setUpClass()
60 assertThat(testInfo.getDevice().startUser(sSecondaryUserId)).isTrue(); in setUpClass()
65 if (!getDevice().isUserRunning(sSecondaryUserId)) { in setUp()
66 getDevice().startUser(sSecondaryUserId, /*waitFlag=*/true); in setUp()
78 testInfo.getDevice().removeUser(sSecondaryUserId); in tearDownClass()
94 getDevice().stopUser(sSecondaryUserId, /*waitFlag=*/true, /*forceFlag=*/true); in testStopUser_persistData()
95 getDevice().startUser(sSecondaryUserId, /*waitFlag=*/true); in testStopUser_persistData()
106 getDevice().stopUser(sSecondaryUserId, /*waitFlag=*/true, /*forceFlag=*/true); in testPackageUninstall_onLockedUser()
[all …]
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DComponentStateChangedReportedStatsTests.java81 HostFlagsValueProvider.createCheckFlagsRule(this::getDevice);
86 ConfigUtils.removeConfig(getDevice()); in setUp()
87 ReportUtils.clearReports(getDevice()); in setUp()
93 getDevice().uninstallPackage(TEST_INSTALL_PACKAGE); in tearDown()
94 ConfigUtils.removeConfig(getDevice()); in tearDown()
95 ReportUtils.clearReports(getDevice()); in tearDown()
101 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testComponentStateChangedReportedForWholeApp()
109 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testComponentStateChangedReportedForWholeApp()
110 String.valueOf(getDevice().getCurrentUser()))).isTrue(); in testComponentStateChangedReportedForWholeApp()
113 runDeviceTests(getDevice(), HELPER_PACKAGE, HELPER_CLASS, in testComponentStateChangedReportedForWholeApp()
[all …]

12345678910>>...28