Home
last modified time | relevance | path

Searched refs:TEST_APK_PACKAGE_NAME (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DUpdateOwnershipEnforcementMultiUserTest.kt69 var sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installWithoutRequestingUpdateOwnership_hasNoUpdateOwner()
73 sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installWithoutRequestingUpdateOwnership_hasNoUpdateOwner()
87 var sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installWithRequestingUpdateOwnership_updateOwnerIsTheSame_ownerRetained()
93 sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installWithRequestingUpdateOwnership_updateOwnerIsTheSame_ownerRetained()
107 var sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installWithRequestingUpdateOwnership_updateOwnerIsNotTheSame_hasNoUpdateOwner()
113 sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installWithRequestingUpdateOwnership_updateOwnerIsNotTheSame_hasNoUpdateOwner()
125 var sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installWithRequestingUpdateOwnership_noUpdateOwnerIsSet_hasNoUpdateOwner()
131 sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installWithRequestingUpdateOwnership_noUpdateOwnerIsSet_hasNoUpdateOwner()
149 var sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installExistingPackage_updateOwnerIsNotTheSame_hasNoUpdateOwner()
181 var sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installExistingPackage_updateOwnerIsTheSame_ownerRetained()
[all …]
DInstallAppMetadataTest.kt65 pm.getAppMetadataSource(TEST_APK_PACKAGE_NAME) in getAppMetadataSourceWithNoPermission()
73 pm.getAppMetadataSource(TEST_APK_PACKAGE_NAME) in getAppMetadataSourceApNotInstall()
128 pm.getAppMetadata(TEST_APK_PACKAGE_NAME) in getAppMetadataWithNoPermission()
174 TEST_APK_PACKAGE_NAME, in readAppMetadataFileShouldFail()
186 val data = pm.getAppMetadata(TEST_APK_PACKAGE_NAME) in installApk()
191 assertThat(pm.getAppMetadataSource(TEST_APK_PACKAGE_NAME)) in installApk()
195 assertThat(pm.getAppMetadataSource(TEST_APK_PACKAGE_NAME)) in installApk()
240 val data = pm.getAppMetadata(TEST_APK_PACKAGE_NAME) in assertAppMetadata()
247 assertThat(pm.getAppMetadataSource(TEST_APK_PACKAGE_NAME)) in assertAppMetadata()
253 assertThat(pm.getAppMetadataSource(TEST_APK_PACKAGE_NAME)) in assertAppMetadata()
DUpdateOwnershipEnforcementTest.kt116 val sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in setRequestUpdateOwnership_whenInitialInstall_hasUpdateOwner()
138 val sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in setRequestUpdateOwnership_whenUpdate_hasNoUpdateOwner()
151 var sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in uninstallUpdateOwner_hasNoUpdateOwner()
156 sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in uninstallUpdateOwner_hasNoUpdateOwner()
167 val sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installViaShellCommand_enableUpdateOwnership()
349 val sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in updateOwnershipEnforcement_updateByNonOwner_hasNoUpdateOwner()
367 val sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in setRequestUpdateOwnership_notRequestWhenUpdate_ownerRetained()
441 var sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in relinquishUpdateOwnership_notFromUpdateOwner_throwSecurityException()
445 pm.relinquishUpdateOwnership(TEST_APK_PACKAGE_NAME) in relinquishUpdateOwnership_notFromUpdateOwner_throwSecurityException()
449 sourceInfo = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in relinquishUpdateOwnership_notFromUpdateOwner_throwSecurityException()
DSessionTest.kt142 assertEquals(CATEGORY_UNDEFINED, pm.getApplicationInfo(TEST_APK_PACKAGE_NAME, 0).category) in setAppCategory()
145 pm.setApplicationCategoryHint(TEST_APK_PACKAGE_NAME, CATEGORY_MAPS) in setAppCategory()
147 assertEquals(CATEGORY_MAPS, pm.getApplicationInfo(TEST_APK_PACKAGE_NAME, 0).category) in setAppCategory()
158 pm.getApplicationEnabledSetting(TEST_APK_PACKAGE_NAME) in setApplicationEnabledSettingPersistent()
164 pm.getApplicationEnabledSetting(TEST_APK_PACKAGE_NAME) in setApplicationEnabledSettingPersistent()
171 pm.getApplicationEnabledSetting(TEST_APK_PACKAGE_NAME) in setApplicationEnabledSettingPersistent()
177 pm.getApplicationEnabledSetting(TEST_APK_PACKAGE_NAME) in setApplicationEnabledSettingPersistent()
184 pm.getApplicationEnabledSetting(TEST_APK_PACKAGE_NAME) in setApplicationEnabledSettingPersistent()
286 TEST_APK_PACKAGE_NAME, in disablePackage()
DInstallSourceInfoTest.kt67 val info = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installViaIntent()
78 val info = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installViaAdb()
92 val info = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installViaAdbValidInstallerName()
105 val info = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installViaAdbInvalidInstallerName()
137 val info = pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installViaSession()
DInstallInfoTest.kt54 assertEquals(TEST_APK_PACKAGE_NAME, installInfo.packageName) in <lambda>()
65 assertEquals(TEST_APK_PACKAGE_NAME, installInfo.packageName) in <lambda>()
84 assertEquals(TEST_APK_PACKAGE_NAME, installInfo.packageName) in <lambda>()
DInstallSourceInfoMultiUserTest.kt62 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in tearDown()
81 val info = userContext.packageManager.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in installOnUserAndCheckInfo()
DPreapprovalInstallTest.kt127 assertThat(pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME).updateOwnerPackageName) in requestUserPreapprovalWithUpdateOwnership_userAgree_statusSuccess()
561 return preparePreapprovalDetails(TEST_APP_LABEL, ULocale.US, TEST_APK_PACKAGE_NAME) in preparePreapprovalDetails()
565 return preparePreapprovalDetails(TEST_APP_LABEL_V2, ULocale.US, TEST_APK_PACKAGE_NAME) in preparePreapprovalDetailsV2()
569 return preparePreapprovalDetails(TEST_APP_LABEL_PL, ULocale("pl"), TEST_APK_PACKAGE_NAME) in preparePreapprovalDetailsInPl()
573 return preparePreapprovalDetails(TEST_FAKE_APP_LABEL, ULocale.US, TEST_APK_PACKAGE_NAME) in prepareWrongPreapprovalDetails()
DPackageInstallerTestBase.kt76 const val TEST_APK_PACKAGE_NAME = "android.packageinstaller.emptytestapp.cts" in <lambda>() constant
156 context.packageManager.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
384 return pm.getPackageInfo(TEST_APK_PACKAGE_NAME, flags) in <lambda>()
396 packageName: String = TEST_APK_PACKAGE_NAME, in <lambda>()
501 uninstallPackage(TEST_APK_PACKAGE_NAME) in <lambda>()
DIntentTest.kt179 intent.data = Uri.fromParts("package", TEST_APK_PACKAGE_NAME, null) in reinstallViaPackageUri()
279 return pm.getInstallSourceInfo(TEST_APK_PACKAGE_NAME) in getInstallSourceInfo()
DSessionParamsPermissionStateTest.kt258 TEST_APK_PACKAGE_NAME, in <lambda>()
265 .setPackageName(TEST_APK_PACKAGE_NAME) in <lambda>()
/cts/tests/tests/packageinstaller/install_appop_denied/src/android/packageinstaller/install_appop_denied/cts/
DPackageInstallerTestBase.kt52 const val TEST_APK_PACKAGE_NAME = "android.packageinstaller.emptytestapp.cts" in <lambda>() constant
106 context.packageManager.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
175 pm.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
180 pm.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
213 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in <lambda>()
/cts/tests/tests/packageinstaller/install_appop_default/src/android/packageinstaller/install_appop_default/cts/
DPackageInstallerTestBase.kt52 const val TEST_APK_PACKAGE_NAME = "android.packageinstaller.emptytestapp.cts" in <lambda>() constant
106 context.packageManager.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
175 pm.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
180 pm.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
213 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in <lambda>()
/cts/tests/tests/packageinstaller/userrestriction/src/android/packageinstaller/userrestriction/cts/
DUserRestrictionInstallTest.kt86 const val TEST_APK_PACKAGE_NAME = "android.packageinstaller.emptytestapp.cts" in <lambda>() constant
112 cmd.addOperand(TEST_APK_PACKAGE_NAME) in <lambda>()
116 fail("Could not uninstall $TEST_APK_PACKAGE_NAME") in <lambda>()
138 .that(TestApis.packages().find(TEST_APK_PACKAGE_NAME).installedOnUser(initialUser)) in <lambda>()
145 .that(TestApis.packages().find(TEST_APK_PACKAGE_NAME).installedOnUser(workProfile)) in <lambda>()
164 .that(TestApis.packages().find(TEST_APK_PACKAGE_NAME).installedOnUser(workProfile)) in <lambda>()
221 it.packageName().equals(TEST_APK_PACKAGE_NAME) in <lambda>()
228 it.packageName().equals(TEST_APK_PACKAGE_NAME) in <lambda>()
255 it.packageName().equals(TEST_APK_PACKAGE_NAME) in <lambda>()
331 it.packageName().equals(TEST_APK_PACKAGE_NAME) in <lambda>()
[all …]
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallTest.java85 private static final String TEST_APK_PACKAGE_NAME = "android.packageinstaller.emptytestapp.cts"; field in UninstallTest
145 intent.setData(Uri.parse("package:" + TEST_APK_PACKAGE_NAME)); in startUninstall()
260 VersionedPackage pkg = new VersionedPackage(TEST_APK_PACKAGE_NAME, in testUninstallApi()
281 Log.d(LOG_TAG, "Testing if package " + TEST_APK_PACKAGE_NAME + " is installed for user " in isInstalled()
284 mPackageManager.getPackageInfo(TEST_APK_PACKAGE_NAME, /* flags= */ 0); in isInstalled()
287 Log.v(LOG_TAG, "Package " + TEST_APK_PACKAGE_NAME + " not installed for user " in isInstalled()
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/
DNoPermissionTests.kt45 private const val TEST_APK_PACKAGE_NAME = "android.packageinstaller.emptytestapp.cts" in <lambda>() constant
178 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in <lambda>()
/cts/tests/tests/packageinstaller/test-apps/criticaluserjourneyinstaller/src/android/packageinstaller/cts/cujinstaller/
DMainActivity.java52 private static final String TEST_APK_PACKAGE_NAME = "android.packageinstaller.emptytestapp.cts"; field in MainActivity
177 params.setAppPackageName(TEST_APK_PACKAGE_NAME); in startInstallationViaPackageInstallerSession()
208 intent.setData(Uri.fromParts("package", TEST_APK_PACKAGE_NAME, null)); in startInstallationViaIntentWithPackageUri()
/cts/tests/tests/packageinstaller/criticaluserjourney/src/android/packageinstaller/criticaluserjourney/cts/
DPackageInstallerCujTestBase.java95 private static final String TEST_APK_PACKAGE_NAME = "android.packageinstaller.emptytestapp.cts"; field in PackageInstallerCujTestBase
407 assertThat(isInstalledAndVerifyAppName(TEST_APK_PACKAGE_NAME, TEST_APK_LABEL)).isTrue(); in assertTestPackageInstalled()
740 uninstallPackage(TEST_APK_PACKAGE_NAME); in uninstallTestPackage()
761 return isInstalled(TEST_APK_PACKAGE_NAME); in isTestPackageInstalled()
782 return isInstalledAndVerifyAppName(TEST_APK_PACKAGE_NAME, TEST_APK_V2_LABEL); in isTestPackageLabelV2Installed()