Home
last modified time | relevance | path

Searched refs:TEST_PKG (Results 1 – 25 of 98) sorted by relevance

1234

/cts/hostsidetests/silentupdate/src/com/android/tests/hostside/silentupdate/
DSilentUpdateHostsideTests.java36 private static final String TEST_PKG = "com.android.tests.silentupdate"; field in SilentUpdateHostsideTests
69 runDeviceTests(TEST_PKG, TEST_CLS, "newInstall_RequiresUserAction"); in newInstall_RequiresUserAction()
74 install(CURRENT_APK, TEST_PKG); in updateWithUnknownSourcesDisabled_RequiresUserAction()
76 runDeviceTests(TEST_PKG, TEST_CLS, "updateWithUnknownSourcesDisabled_RequiresUserAction"); in updateWithUnknownSourcesDisabled_RequiresUserAction()
83 runDeviceTests(TEST_PKG, TEST_CLS, "updateAsNonInstallerOfRecord_RequiresUserAction"); in updateAsNonInstallerOfRecord_RequiresUserAction()
88 install(CURRENT_APK, TEST_PKG); in updatedInstall_RequiresNoUserAction()
89 runDeviceTests(TEST_PKG, TEST_CLS, "updatedInstall_RequiresNoUserAction"); in updatedInstall_RequiresNoUserAction()
94 install(S_APK, TEST_PKG); in updatePreTApp_RequiresUserAction()
95 runDeviceTests(TEST_PKG, TEST_CLS, "updatePreTApp_RequiresUserAction"); in updatePreTApp_RequiresUserAction()
100 install(T_APK, TEST_PKG); in updateTApp_RequiresNoUserAction()
[all …]
/cts/hostsidetests/tagging/src/com/android/cts/tagging/
DTaggingSdk30Test.java25 protected static final String TEST_PKG = "android.cts.tagging.sdk30"; field in TaggingSdk30Test
42 uninstallPackage(TEST_PKG, true); in tearDown()
48 runDeviceCompatTestReported(TEST_PKG, ".TaggingTest", in testHeapTaggingCompatFeatureDefault()
57 runDeviceCompatTestReported(TEST_PKG, ".TaggingTest", in testHeapTaggingCompatFeatureEnabled()
69 runDeviceCompatTestReported(TEST_PKG, ".TaggingTest", in testHeapTaggingCompatFeatureDisabled()
81 runDeviceCompatTest(TEST_PKG, ".TaggingTest", "testMemoryTagSyncChecksEnabled", in testMemoryTagChecksSyncCompatFeatureEnabled()
90 runDeviceCompatTest(TEST_PKG, ".TaggingTest", "testMemoryTagAsyncChecksEnabled", in testMemoryTagChecksAsyncCompatFeatureEnabled()
104 runDeviceCompatTest(TEST_PKG, ".TaggingTest", "testPermissive", in testPermissive()
117 runDeviceCompatTest(TEST_PKG, ".TaggingTest", "testMemoryTagChecksDisabled", in testMemoryTagChecksCompatFeatureDisabled()
132 runDeviceCompatTestReported(TEST_PKG, ".TaggingTest", testForWhenSoftwareWantsTagging, in testMemoryTagChecksCompatFeatureEnabledNonMTE()
[all …]
DTaggingSdk30MemtagTest.java23 protected static final String TEST_PKG = "android.cts.tagging.sdk30memtag"; field in TaggingSdk30MemtagTest
40 uninstallPackage(TEST_PKG, true); in tearDown()
49 runDeviceCompatTest(TEST_PKG, ".TaggingTest", "testMemtagOffService", in testMemtagOffService()
58 runDeviceCompatTest(TEST_PKG, ".TaggingTest", "testMemtagOffIsolatedService", in testMemtagOffIsolatedService()
67 runDeviceCompatTest(TEST_PKG, ".TaggingTest", "testMemtagOffAppZygoteService", in testMemtagOffAppZygoteService()
76 runDeviceCompatTest(TEST_PKG, ".TaggingTest", "testExportedMemtagSyncService", in testExportedMemtagSyncService()
85 runDeviceCompatTest(TEST_PKG, ".TaggingTest", "testExportedMemtagOffService", in testExportedMemtagOffService()
94 runDeviceCompatTest(TEST_PKG, ".TaggingTest", "testExportedMemtagSyncAppZygoteService", in testExportedMemtagSyncAppZygoteService()
103 runDeviceCompatTest(TEST_PKG, ".TaggingTest", "testExportedMemtagOffAppZygoteService", in testExportedMemtagOffAppZygoteService()
113 runDeviceCompatTestReported(TEST_PKG, ".TaggingTest", "testExportedMemtagOffService", in testExportedServiceCompatFeatureEnabled()
[all …]
DTaggingManifestEnabledSdk30Test.java23 protected static final String TEST_PKG = "android.cts.tagging"; field in TaggingManifestEnabledSdk30Test
33 uninstallPackage(TEST_PKG, true); in tearDown()
38 runDeviceCompatTestReported(TEST_PKG, DEVICE_TEST_CLASS_NAME, in testHeapTaggingCompatFeatureDefault()
47 runDeviceCompatTestReported(TEST_PKG, DEVICE_TEST_CLASS_NAME, in testHeapTaggingCompatFeatureEnabled()
59 runDeviceCompatTestReported(TEST_PKG, DEVICE_TEST_CLASS_NAME, in testHeapTaggingCompatFeatureDisabled()
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/
DCompatChangesSelinuxTest.java40 protected static final String TEST_PKG = "com.android.cts.appcompat.selinux_app"; field in CompatChangesSelinuxTest
54 assertThat(packageToDomain).containsEntry(TEST_PKG, "untrusted_app_29"); in testTargetSdkQAppIsInQDomainByDefault()
56 uninstallPackage(TEST_PKG, true); in testTargetSdkQAppIsInQDomainByDefault()
67 setCompatConfig(enabledChanges, disabledChanges, TEST_PKG); in testTargetSdkQAppIsInLatestDomainWithLatestOptin()
73 assertThat(packageToDomain).containsEntry(TEST_PKG, "untrusted_app"); in testTargetSdkQAppIsInLatestDomainWithLatestOptin()
76 resetCompatConfig(TEST_PKG, enabledChanges, disabledChanges); in testTargetSdkQAppIsInLatestDomainWithLatestOptin()
77 uninstallPackage(TEST_PKG, true); in testTargetSdkQAppIsInLatestDomainWithLatestOptin()
87 setCompatConfig(enabledChanges, disabledChanges, TEST_PKG); in testTargetSdkQAppIsInRDomainWithROptin()
92 assertThat(packageToDomain).containsEntry(TEST_PKG, "untrusted_app_30"); in testTargetSdkQAppIsInRDomainWithROptin()
95 resetCompatConfig(TEST_PKG, enabledChanges, disabledChanges); in testTargetSdkQAppIsInRDomainWithROptin()
[all …]
DCompatChangesSystemApiTest.java37 protected static final String TEST_PKG = "com.android.cts.appcompat.compatchanges"; field in CompatChangesSystemApiTest
48 uninstallPackage(TEST_PKG, true); in tearDown()
52 runDeviceCompatTest(TEST_PKG, ".CompatChangesTest", "isChangeEnabled_changeEnabled", in testIsChangeEnabled()
58 runDeviceCompatTest(TEST_PKG, ".CompatChangesTest", in testIsChangeEnabledPackageName()
65 runDeviceCompatTest(TEST_PKG, ".CompatChangesTest", "isChangeEnabledUid_changeEnabled", in testIsChangeEnabledUid()
71 runDeviceCompatTest(TEST_PKG, ".CompatChangesTest", "isChangeEnabled_changeDisabled", in testIsChangeDisabled()
77 runDeviceCompatTest(TEST_PKG, ".CompatChangesTest", in testIsChangeDisabledPackageName()
84 runDeviceCompatTest(TEST_PKG, ".CompatChangesTest", "isChangeEnabledUid_changeDisabled", in testIsChangeDisabledUid()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPrivilegedUpdateTests.java43 private static final String TEST_PKG = "com.android.cts.privilegedupdate"; field in PrivilegedUpdateTests
84 getDevice().uninstallPackage(TEST_PKG); in setUp()
95 getDevice().uninstallPackage(TEST_PKG); in tearDown()
106 runDeviceTests(TEST_PKG, ".PrivilegedUpdateTest", "testSystemAppPriorities"); in testSystemAppPriorities()
110 runDeviceTests(TEST_PKG, ".PrivilegedUpdateTest", "testPrivilegedAppPriorities"); in testPrivilegedAppPriorities()
124 runDeviceTests(TEST_PKG, ".PrivilegedUpdateTest", "testPrivilegedAppUpgradePriorities"); in testPrivilegedAppUpgradePrioritiesPreservedOnReboot()
128 runDeviceTests(TEST_PKG, ".PrivilegedUpdateTest", "testPrivilegedAppUpgradePriorities"); in testPrivilegedAppUpgradePrioritiesPreservedOnReboot()
136 runDeviceTests(TEST_PKG, ".PrivilegedAppDisableTest", "testPrivAppAndEnabled"); in testDisableSystemApp()
138 runDeviceTests(TEST_PKG, ".PrivilegedAppDisableTest", "testPrivAppAndDisabled"); in testDisableSystemApp()
148 runDeviceTests(TEST_PKG, ".PrivilegedAppDisableTest", "testPrivAppAndEnabled"); in testDisableUpdatedSystemApp()
[all …]
DPackageVisibilityTest.java45 private static final String TEST_PKG = "com.android.cts.packageaccessapp"; field in PackageVisibilityTest
60 getDevice().uninstallPackage(TEST_PKG); in setUpPackage()
67 getDevice().uninstallPackage(TEST_PKG); in tearDown()
101 Utils.runDeviceTests(getDevice(), TEST_PKG, in testUninstalledPackageVisibility() local
103 Utils.runDeviceTests(getDevice(), TEST_PKG, in testUninstalledPackageVisibility() local
111 Utils.runDeviceTests(getDevice(), TEST_PKG, in testUninstalledPackageVisibility() local
113 Utils.runDeviceTests(getDevice(), TEST_PKG, in testUninstalledPackageVisibility() local
116 Utils.runDeviceTests(getDevice(), TEST_PKG, in testUninstalledPackageVisibility() local
142 Utils.runDeviceTests(getDevice(), TEST_PKG, in testUninstalledPackageVisibility() local
144 Utils.runDeviceTests(getDevice(), TEST_PKG, in testUninstalledPackageVisibility() local
[all …]
/cts/hostsidetests/security/src/android/security/cts/
DZipPathValidatorHostTest.java25 protected static final String TEST_PKG = "android.security.cts"; field in ZipPathValidatorHostTest
36 runDeviceCompatTest(TEST_PKG, in testNewZipFile_whenZipFileHasDangerousEntriesAndChangeEnabled_throws()
46 runDeviceCompatTest(TEST_PKG, in testZipInputStreamGetNextEntry_whenZipFileHasDangerousEntriesAndChangeEnabled_throws()
55 runDeviceCompatTest(TEST_PKG, in testNewZipFile_whenZipFileHasNormalEntriesAndChangeEnabled_doesNotThrow()
65 runDeviceCompatTest(TEST_PKG, in testZipInputStreamGetNextEntry_whenZipFileHasNormalEntriesAndChangeEnabled_doesNotThrow()
76 runDeviceCompatTest(TEST_PKG, in testNewZipFile_whenZipFileHasNormalAndDangerousEntriesAndChangeDisabled_doesNotThrow()
86 runDeviceCompatTest(TEST_PKG, in testZipInputStreamGetNextEntry_whenZipFileHasNormalAndDangerousEntriesAndChangeDisabled_doesNotThrow()
95 runDeviceCompatTest(TEST_PKG, in testLoadingApksWillNotCallZipPathValidator_changeEnabled()
103 runDeviceCompatTest(TEST_PKG, in testLoadingApksWillNotCallZipPathValidator_changeDisabled()
/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostJUnit4DeviceTest.java40 private static final String TEST_PKG = "android.sample.cts.app2"; field in SampleHostJUnit4DeviceTest
41 private static final String TEST_CLASS = TEST_PKG + "." + "SampleDeviceTest";
50 uninstallPackage(getDevice(), TEST_PKG); in setUp() local
57 Assert.assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, TEST_PASSES)); in testRunDeviceTestsPassesInstant()
64 Assert.assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, TEST_PASSES)); in testRunDeviceTestsPassesFull()
71 Assert.assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, TEST_FAILS)); in testRunDeviceTestsFailsInstant()
78 Assert.assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, TEST_FAILS)); in testRunDeviceTestsFailsFull()
85 Assert.assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, TEST_ASSUME_FAILS)); in testRunDeviceTestsAssumeFailsInstant()
92 Assert.assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, TEST_ASSUME_FAILS)); in testRunDeviceTestsAssumeFailsFull()
97 uninstallPackage(getDevice(), TEST_PKG); in tearDown() local
/cts/hostsidetests/gwp_asan/src/android/cts/gwp_asan/
DRecoverableDefaultTest.java45 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG, "1"); in setUp()
46 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG + ":gwp_asan_enabled", "1"); in setUp()
47 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG + ":gwp_asan_default", "1"); in setUp()
53 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG, ""); in tearDown()
54 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG + ":gwp_asan_enabled", ""); in tearDown()
55 mDevice.setProperty(PROCESS_SAMPLING_SYSPROP + TEST_PKG + ":gwp_asan_default", ""); in tearDown()
DNonRecoverableTest.java42 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG, "false"); in setUp()
43 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG + ":gwp_asan_enabled", "false"); in setUp()
44 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG + ":gwp_asan_default", "false"); in setUp()
50 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG, ""); in tearDown()
51 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG + ":gwp_asan_enabled", ""); in tearDown()
52 mDevice.setProperty(RECOVERABLE_SYSPROP + TEST_PKG + ":gwp_asan_default", ""); in tearDown()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2021_39795.java32 private static final String TEST_PKG = "android.security.cts.CVE_2021_39795"; field in CVE_2021_39795
54 "pm grant " + TEST_PKG + " android.permission.READ_EXTERNAL_STORAGE", device); in testPocCVE_2021_39795()
56 "pm grant " + TEST_PKG + " android.permission.WRITE_EXTERNAL_STORAGE", device); in testPocCVE_2021_39795()
60 "appops set --uid " + TEST_PKG + " MANAGE_EXTERNAL_STORAGE allow", device); in testPocCVE_2021_39795()
62 runDeviceTests(TEST_PKG, TEST_PKG + ".DeviceTest", "testFilePresence"); in testPocCVE_2021_39795()
DTestOverlayRequestManageCredentials.java31 private static final String TEST_PKG = field in TestOverlayRequestManageCredentials
42 runDeviceTests(TEST_PKG, TEST_PKG + ".DeviceTest", "testPocBug_205150380"); in testOverlayDisallowed()
56 runDeviceTests(TEST_PKG, TEST_PKG + ".DeviceTest", "testPocBug_302431573"); in testOverlayBypassInLandscapeMode()
DBug_183963253.java32 private static final String TEST_PKG = "android.security.cts.BUG_183963253"; field in Bug_183963253
33 private static final String TEST_CLASS = TEST_PKG + "." + "DeviceTest";
38 uninstallPackage(getDevice(), TEST_PKG); in setUp() local
48 "pm grant " + TEST_PKG + " android.permission.SYSTEM_ALERT_WINDOW"); in testRunDeviceTestsPassesFull()
50 assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, "testTapjacking")); in testRunDeviceTestsPassesFull()
DBug_183410508.java33 private static final String TEST_PKG = "android.security.cts.BUG_183410508"; field in Bug_183410508
34 private static final String TEST_CLASS = TEST_PKG + "." + "DeviceTest";
43 uninstallPackage(getDevice(), TEST_PKG); in setUp() local
53 "pm grant " + TEST_PKG + " android.permission.SYSTEM_ALERT_WINDOW"); in testRunDeviceTestsPassesFull()
55 assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, "testTapjacking")); in testRunDeviceTestsPassesFull()
DCVE_2021_0954.java32 private static final String TEST_PKG = "android.security.cts.CVE_2021_0954"; field in CVE_2021_0954
39 uninstallPackage(device, TEST_PKG); in testPocCVE_2021_0954()
48 "pm grant " + TEST_PKG + " android.permission.SYSTEM_ALERT_WINDOW", device); in testPocCVE_2021_0954()
49 runDeviceTests(TEST_PKG, TEST_PKG + "." + "DeviceTest", "testOverlayButtonPresence"); in testPocCVE_2021_0954()
DBug_183411210.java33 private static final String TEST_PKG = "android.security.cts.BUG_183411210"; field in Bug_183411210
34 private static final String TEST_CLASS = TEST_PKG + "." + "DeviceTest";
42 uninstallPackage(getDevice(), TEST_PKG); in setUp() local
51 "pm grant " + TEST_PKG + " android.permission.SYSTEM_ALERT_WINDOW"); in testRunDeviceTestsPassesFull()
52 assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, "testTapjacking")); in testRunDeviceTestsPassesFull()
DBug_183794206.java33 private static final String TEST_PKG = "android.security.cts.BUG_183794206"; field in Bug_183794206
34 private static final String TEST_CLASS = TEST_PKG + "." + "DeviceTest";
43 uninstallPackage(getDevice(), TEST_PKG); in setUp() local
53 "pm grant " + TEST_PKG + " android.permission.SYSTEM_ALERT_WINDOW"); in testRunDeviceTestsPassesFull()
55 assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, "testTapjacking")); in testRunDeviceTestsPassesFull()
DBug_183411279.java33 private static final String TEST_PKG = "android.security.cts.BUG_183411279"; field in Bug_183411279
34 private static final String TEST_CLASS = TEST_PKG + "." + "DeviceTest";
43 uninstallPackage(getDevice(), TEST_PKG); in setUp() local
53 "pm grant " + TEST_PKG + " android.permission.SYSTEM_ALERT_WINDOW"); in testRunDeviceTestsPassesFull()
55 assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, "testTapjacking")); in testRunDeviceTestsPassesFull()
DBug_182282630.java33 private static final String TEST_PKG = "android.security.cts.BUG_182282630"; field in Bug_182282630
34 private static final String TEST_CLASS = TEST_PKG + "." + "DeviceTest";
43 uninstallPackage(getDevice(), TEST_PKG); in setUp() local
53 "pm grant " + TEST_PKG + " android.permission.SYSTEM_ALERT_WINDOW"); in testRunDeviceTestsPassesFull()
55 assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, "testTapjacking")); in testRunDeviceTestsPassesFull()
DBug_182810085.java33 private static final String TEST_PKG = "android.security.cts.BUG_182810085"; field in Bug_182810085
34 private static final String TEST_CLASS = TEST_PKG + "." + "DeviceTest";
42 uninstallPackage(getDevice(), TEST_PKG); in setUp() local
51 "pm grant " + TEST_PKG + " android.permission.SYSTEM_ALERT_WINDOW"); in testRunDeviceTestsPassesFull()
52 assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, "testTapjacking")); in testRunDeviceTestsPassesFull()
DBug_182808318.java33 private static final String TEST_PKG = "android.security.cts.BUG_182808318"; field in Bug_182808318
34 private static final String TEST_CLASS = TEST_PKG + "." + "DeviceTest";
42 uninstallPackage(getDevice(), TEST_PKG); in setUp() local
52 "pm grant " + TEST_PKG + " android.permission.SYSTEM_ALERT_WINDOW"); in testRunDeviceTestsPassesFull()
54 assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, "testTapjacking")); in testRunDeviceTestsPassesFull()
DBug_183613671.java30 private static final String TEST_PKG = "android.security.cts.BUG_183613671"; field in Bug_183613671
31 private static final String TEST_CLASS = TEST_PKG + "." + "DeviceTest";
39 uninstallPackage(getDevice(), TEST_PKG); in setUp() local
48 "pm grant " + TEST_PKG + " android.permission.SYSTEM_ALERT_WINDOW"); in testRunDeviceTestsPassesFull()
50 assertTrue(runDeviceTests(TEST_PKG, TEST_CLASS, "testTapjacking")); in testRunDeviceTestsPassesFull()
DCVE_2022_20230.java34 static final String TEST_PKG = "android.security.cts.CVE_2022_20230"; field in CVE_2022_20230
35 static final String TEST_CLASS = TEST_PKG + "." + "DeviceTest";
36 public static final String TEST_DEVICE_ADMIN_RECEIVER = TEST_PKG + ".PocDeviceAdminReceiver";
51 AdbUtils.runCommandLine("dpm set-device-owner --user " + USER_ID + " '" + TEST_PKG + "/" in testPocCVE_2022_20230()
54 runDeviceTests(TEST_PKG, TEST_CLASS, "testCVE_2022_20230"); in testPocCVE_2022_20230()

1234