Home
last modified time | relevance | path

Searched refs:installPackage (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/core/tests/overlaytests/host/src/com/android/server/om/hosttest/
DInstallOverlayTests.java72 installPackage("OverlayHostTests_NonPlatformSignatureOverlay.apk"); in failToInstallNonPlatformSignedOverlayTargetPreQ()
82 installPackage("OverlayHostTests_PlatformSignatureStaticOverlay.apk"); in installedIsStaticOverlayIsMutable()
88 installPackage("OverlayHostTests_PlatformSignatureOverlay.apk"); in installPlatformSignedOverlay()
96 installPackage("OverlayHostTests_AppOverlayV1.apk"); in installPlatformSignedAppOverlayAndUpdate()
105 installPackage("OverlayHostTests_AppOverlayV2.apk"); in installPlatformSignedAppOverlayAndUpdate()
118 installPackage("OverlayHostTests_FrameworkOverlayV1.apk"); in installPlatformSignedFrameworkOverlayAndUpdate()
127 installPackage("OverlayHostTests_FrameworkOverlayV2.apk"); in installPlatformSignedFrameworkOverlayAndUpdate()
141 installPackage("OverlayHostTests_FrameworkOverlayV1.apk"); in enabledFrameworkOverlayMustAffectNewlyInstalledPackage()
166 installPackage("OverlayHostTests_AppOverlayV1.apk"); in changesPersistedWhenUninstallingDisabledOverlay()
177 installPackage("OverlayHostTests_AppOverlayV1.apk"); in testAdbShellOMSInterface()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/
DAppEnumerationInternalTests.java92 installPackage(SYNC_PROVIDER_APK_PATH, true /* forceQueryable */); in querySyncProviders_canSeeForceQueryable()
104 installPackage(SYNC_PROVIDER_APK_PATH, false /* forceQueryable */); in querySyncProviders_cannotSeeSyncProvider()
114 installPackage(HAS_APPOP_PERMISSION_APK_PATH, true /* forceQueryable */); in getAppOpPermissionPackages_canSeeForceQueryable()
124 installPackage(HAS_APPOP_PERMISSION_APK_PATH, false /* forceQueryable */); in getAppOpPermissionPackages_cannotSeeHasAppOpPermission()
134 installPackage(SHARED_USER_APK_PATH, true /* forceQueryable */); in getUidForSharedUser_canSeeForceQueryable()
142 installPackage(SHARED_USER_APK_PATH, false /* forceQueryable */); in getUidForSharedUser_cannotSeeSharedUser()
151 installPackage(SHARED_USER_APK_PATH, false /* forceQueryable */); in getLaunchIntentSenderForPackage_intentSender_cannotDetectPackage()
171 installPackage(SHARED_USER_APK_PATH, true /* forceQueryable */); in mediaProjectionManager_createProjection_canSeeForceQueryable()
183 installPackage(SHARED_USER_APK_PATH, false /* forceQueryable */); in mediaProjectionManager_createProjection_cannotSeeTarget()
193 private static void installPackage(String apkPath, boolean forceQueryable) { in installPackage() method in AppEnumerationInternalTests
DCrossUserPackageVisibilityTests.java195 installPackage(CROSS_USER_TEST_APK_FILE); in testGetFlagsForUid_cannotDetectCrossUserPkg()
315 private static void installPackage(File apk) { in installPackage() method in CrossUserPackageVisibilityTests
/frameworks/base/services/tests/BackgroundInstallControlServiceTests/host/src/com/android/server/pm/test/
DBackgroundInstallControlServiceHostTest.java50 installPackage(TEST_DATA_DIR + MOCK_APK_FILE_1); in testGetMockBackgroundInstalledPackages()
51 installPackage(TEST_DATA_DIR + MOCK_APK_FILE_2); in testGetMockBackgroundInstalledPackages()
85 private void installPackage(String path) throws DeviceNotAvailableException { in installPackage() method in BackgroundInstallControlServiceHostTest
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/
DFactoryPackageTest.kt56 assertThat(device.installPackage(versionTwoFile, true)).isNull() in testGetInstalledPackagesFactoryOnlyFlag()
68 assertThat(device.installPackage(deviceSideFile, true)).isNull() in runDeviceTest()
DInvalidNewSystemAppTest.kt71 assertThat(device.installPackage(versionTwoFile, true)).isNull() in verify()
83 assertThat(device.installPackage(versionFourFile, true)).isNull() in verify()
DTamperedUpdatedSystemPackageTest.kt128 assertThat(device.installPackage(versionTwoFile, true)).isNull() in detectApkAndXmlTamperingAtBoot()
155 assertThat(device.installPackage(versionTwoFile, true)).isNull() in detectApkTamperingAtBoot()
DPackageInstallerSessionTest.kt51 Truth.assertThat(device.installPackage(deviceSideFile, true)).isNull() in runDeviceTest()
DBootTest.kt43 device.installPackage(testApkFile, true) in installApk()
DSdCardEjectionTests.kt90 assertThat(device.installPackage(hostApkFile, true)).isNull() in launchActivity()
121 assertThat(device.installPackage(usesApkFile, true)).isNull() in uninstallStaticLibraryInUse()
DOverlayPathsUninstallSystemUpdatesTest.kt67 assertThat(device.installPackage(versionTwoFile, true)).isNull() in verify()
DApexUpdateTest.kt73 device.installPackage(testInformation.getDependencyFile(APK_FILE_NAME, false), false) in apexModuleName()
DHostUtils.kt46 return installPackage(file, reinstall, *extraArgs) in installJavaResourceApk()
/frameworks/base/services/tests/BackgroundInstallControlServiceTests/host/test-app/BackgroundInstallControlServiceTestApp/src/com/android/server/pm/test/app/
DBackgroundInstallControlServiceTest.java142 installPackage(TEST_DATA_DIR + MOCK_APK_FILE, MOCK_PACKAGE_NAME); in testRegisterBackgroundInstallControlCallback()
172 installPackage(TEST_DATA_DIR + MOCK_APK_FILE, MOCK_PACKAGE_NAME); in testUnregisterBackgroundInstallControlCallback()
177 private static boolean installPackage(String apkPath, String packageName) { in installPackage() method in BackgroundInstallControlServiceTest
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DNonAbUpdateInstaller.java43 RecoverySystem.installPackage(mContext, mCopiedUpdateFile); in installUpdateInThread()
/frameworks/base/apct-tests/perftests/core/src/android/app/
DOverlayManagerPerfTest.java70 sSmallOverlays.add(installer.installPackage("Overlay" + i +".apk")); in classSetUp()
71 sLargeOverlays.add(installer.installPackage("LargeOverlay" + i +".apk")); in classSetUp()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DAppUtilsTest.java173 mShadowPackageManager.installPackage(packageInfo); in isMainlineModule_hasApexPackageName_shouldCheckByPackageInfo()
187 mShadowPackageManager.installPackage(packageInfo); in isMainlineModule_noApexPackageName_shouldCheckBySourceDirPath()
/frameworks/base/tests/RollbackTest/MultiUserRollbackTest/src/com/android/tests/rollback/host/
DMultiUserRollbackTest.java68 installPackage("RollbackTest.apk", "--user all"); in setup()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DTestPackageInstaller.java55 public InstalledPackage installPackage(String resourceName) throws IOException, in installPackage() method in TestPackageInstaller
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DApexManagerTest.java397 newApexInfo = mApexManager.installPackage(installedApex, /* force= */ false); in testInstallPackage_activeOnSystem()
428 newApexInfo = mApexManager.installPackage(installedApex, /* force= */ false); in testInstallPackage_activeOnData()
449 () -> mApexManager.installPackage(installedApex, /* force= */ false)); in testInstallPackageBinderCallFails()
/frameworks/base/tests/BinaryTransparencyHostTest/src/android/transparency/test/
DBinaryTransparencyHostTest.java177 installPackage("com.android.apex.cts.shim.v2_rebootless.apex", "--force-non-staged"); in installRebootlessApex()
/frameworks/base/tests/StagedInstallTest/src/com/android/tests/stagedinstallinternal/host/
DStagedInstallInternalTest.java175 getDevice().installPackage(apex, false, extraArgs); in installTestApex()
242 installPackage(APK_IN_APEX_TESTAPEX_NAME + "_v2.apex", "--staged"); in testApkInApexPruneCache()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java120 installPackage(msg.getData()); in handleMessage()
210 private void installPackage(Bundle argsBundle) { in installPackage() method in WearPackageInstallerService
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DServiceRestarterTest.java410 assertTrue("Unable to install package " + apkPath, installPackage(apkPath)); in testServiceWithDepPkgStopped()
435 private boolean installPackage(String apkPath) throws Exception { in installPackage() method in ServiceRestarterTest
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java5819 installPackage(USER_0, CALLING_PACKAGE_1); in checkBackupAndRestore_success()
5831 installPackage(USER_0, LAUNCHER_1); in checkBackupAndRestore_success()
5848 installPackage(USER_0, CALLING_PACKAGE_2); in checkBackupAndRestore_success()
5879 installPackage(USER_0, CALLING_PACKAGE_3); in checkBackupAndRestore_success()
5896 installPackage(USER_P0, CALLING_PACKAGE_1); in checkBackupAndRestore_success()
5903 installPackage(USER_0, LAUNCHER_2); in checkBackupAndRestore_success()
5937 installPackage(USER_0, CALLING_PACKAGE_1); in checkBackupAndRestore_success()
5944 installPackage(USER_0, LAUNCHER_1); in checkBackupAndRestore_success()
5974 installPackage(USER_0, CALLING_PACKAGE_2); in checkBackupAndRestore_success()
6007 installPackage(USER_0, CALLING_PACKAGE_1); in checkBackupAndRestore_publisherNotRestored()
[all …]

12