/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | InstallLocationUtilsTests.java | 28 import com.android.internal.content.InstallLocationUtils; 169 volume = InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 175 volume = InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 197 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 207 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 217 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 227 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 297 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 307 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 317 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/content/ |
H A D | InstallLocationUtils.java | 58 public class InstallLocationUtils { class 395 ? InstallLocationUtils.RECOMMEND_INSTALL_EPHEMERAL in resolveInstallLocation() 396 : InstallLocationUtils.RECOMMEND_INSTALL_INTERNAL; in resolveInstallLocation() 400 return InstallLocationUtils.RECOMMEND_INSTALL_EXTERNAL; in resolveInstallLocation() 406 return InstallLocationUtils.RECOMMEND_INSTALL_INTERNAL; in resolveInstallLocation() 408 return InstallLocationUtils.RECOMMEND_INSTALL_EXTERNAL; in resolveInstallLocation() 412 return InstallLocationUtils.RECOMMEND_FAILED_INSUFFICIENT_STORAGE; in resolveInstallLocation()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
H A D | PackageManagerTests.java | 74 import com.android.internal.content.InstallLocationUtils; 1220 setInstallLoc(InstallLocationUtils.APP_INSTALL_AUTO); in moveFromRawResource() 1309 setInstallLoc(InstallLocationUtils.APP_INSTALL_AUTO); in testMoveAppFailInternalToExternalDelete() 1558 int userSetting = InstallLocationUtils.APP_INSTALL_INTERNAL; in testExistingIUserI() 1570 int userSetting = InstallLocationUtils.APP_INSTALL_EXTERNAL; in testExistingIUserE() 1577 int userSetting = InstallLocationUtils.APP_INSTALL_AUTO; in testExistingIUserA() 1622 int userSetting = InstallLocationUtils.APP_INSTALL_INTERNAL; in testUserI() 1634 int userSetting = InstallLocationUtils.APP_INSTALL_EXTERNAL; in testUserE() 1641 int userSetting = InstallLocationUtils.APP_INSTALL_AUTO; in testUserA() 1652 int userSetting = InstallLocationUtils.APP_INSTALL_INTERNAL; in testUserPrefOffUserI() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | InstallingSession.java | 52 import com.android.internal.content.InstallLocationUtils; 196 return InstallLocationUtils.getInstallationErrorCode(recommendedInstallLocation); in overrideInstallLocation() 204 recommendedInstallLocation = InstallLocationUtils.installLocationPolicy( in overrideInstallLocation() 213 if (recommendedInstallLocation == InstallLocationUtils.RECOMMEND_INSTALL_EXTERNAL) { in overrideInstallLocation() 257 == InstallLocationUtils.RECOMMEND_FAILED_INSUFFICIENT_STORAGE) { in handleStartCopy()
|
H A D | PackageSessionVerifier.java | 43 import com.android.internal.content.InstallLocationUtils; 342 if (InstallLocationUtils.getStorageManager().supportsCheckpoint()) { in endVerification() 343 InstallLocationUtils.getStorageManager().startCheckpoint(2); in endVerification() 530 checkActiveSessions(InstallLocationUtils.getStorageManager().supportsCheckpoint()); in checkActiveSessions()
|
H A D | PackageManagerServiceUtils.java | 91 import com.android.internal.content.InstallLocationUtils; 916 ret.recommendedInstallLocation = InstallLocationUtils.RECOMMEND_FAILED_INVALID_APK; in getMinimalPackageInfo() 923 sizeBytes = InstallLocationUtils.calculateInstalledSize(pkg, abiOverride); in getMinimalPackageInfo() 926 ret.recommendedInstallLocation = InstallLocationUtils.RECOMMEND_FAILED_INVALID_URI; in getMinimalPackageInfo() 928 ret.recommendedInstallLocation = InstallLocationUtils.RECOMMEND_FAILED_INVALID_APK; in getMinimalPackageInfo() 942 recommendedInstallLocation = InstallLocationUtils.resolveInstallLocation(context, in getMinimalPackageInfo() 979 return InstallLocationUtils.calculateInstalledSize(result.getResult(), abiOverride); in calculateInstalledSize()
|
H A D | StagingManager.java | 50 import com.android.internal.content.InstallLocationUtils; 232 InstallLocationUtils.getStorageManager().abortChanges( in abortCheckpoint() 658 supportsCheckpoint = InstallLocationUtils.getStorageManager().supportsCheckpoint(); in restoreSessions() 659 needsCheckpoint = InstallLocationUtils.getStorageManager().needsCheckpoint(); in restoreSessions()
|
H A D | IPackageManagerBase.java | 63 import com.android.internal.content.InstallLocationUtils; 453 InstallLocationUtils.APP_INSTALL_AUTO); in getInstallLocation()
|
H A D | PackageInstallerService.java | 95 import com.android.internal.content.InstallLocationUtils; 865 if (!InstallLocationUtils.fitsOnInternal(mContext, params)) { 879 params.volumeUuid = InstallLocationUtils.resolveInstallVolume(mContext, params);
|
H A D | PackageManagerShellCommand.java | 109 import com.android.internal.content.InstallLocationUtils; 706 sessionSize += InstallLocationUtils.calculateInstalledSize(pkgLite, in setParamsSize() 1824 if (loc == InstallLocationUtils.APP_INSTALL_AUTO) { in runGetInstallLocation() 1826 } else if (loc == InstallLocationUtils.APP_INSTALL_INTERNAL) { in runGetInstallLocation() 1828 } else if (loc == InstallLocationUtils.APP_INSTALL_EXTERNAL) { in runGetInstallLocation()
|
H A D | PackageManagerService.java | 180 import com.android.internal.content.InstallLocationUtils; 2900 == InstallLocationUtils.RECOMMEND_FAILED_INVALID_URI) { 2902 InstallLocationUtils.RECOMMEND_FAILED_INSUFFICIENT_STORAGE; 2993 IStorageManager sm = InstallLocationUtils.getStorageManager(); 5951 if (loc == InstallLocationUtils.APP_INSTALL_AUTO 5952 || loc == InstallLocationUtils.APP_INSTALL_INTERNAL 5953 || loc == InstallLocationUtils.APP_INSTALL_EXTERNAL) {
|
H A D | PackageInstallerSession.java | 163 import com.android.internal.content.InstallLocationUtils; 1747 InstallLocationUtils.translateAllocateFlags(params.installFlags)); in doWriteInternal()
|
/aosp14/frameworks/base/core/java/android/content/pm/ |
H A D | PackageInfoLite.java | 24 import com.android.internal.content.InstallLocationUtils;
|
H A D | PackageInstaller.java | 86 import com.android.internal.content.InstallLocationUtils; 2165 return InstallLocationUtils.calculateInstalledSize(mPkg, params.abiOverride); in calculateInstalledSize() 2179 return InstallLocationUtils.calculateInstalledSize(mPkg, params.abiOverride, in calculateInstalledSize()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
H A D | StagingManagerTest.java | 51 import com.android.internal.content.InstallLocationUtils; 103 .mockStatic(InstallLocationUtils.class) in setUp() 108 when(InstallLocationUtils.getStorageManager()).thenReturn(mStorageManager); in setUp()
|
/aosp14/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | DatabaseHelper.java | 46 import com.android.internal.content.InstallLocationUtils; 775 InstallLocationUtils.APP_INSTALL_AUTO); in onUpgrade() 2529 InstallLocationUtils.APP_INSTALL_AUTO); in loadGlobalSettings()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityManagerService.java | 405 import com.android.internal.content.InstallLocationUtils; 5107 IStorageManager storageManager = InstallLocationUtils.getStorageManager(); in finishBooting()
|