/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | InstallLocationUtilsTests.java | 28 import com.android.internal.content.InstallLocationUtils; 108 private static final class MockedInterface extends InstallLocationUtils.TestableInterface { 169 volume = InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 175 volume = InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 181 volume = InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 187 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() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | FreeStorageHelper.java | 35 import com.android.internal.content.InstallLocationUtils; 201 == InstallLocationUtils.RECOMMEND_FAILED_INVALID_URI) { in freeCacheForInstallation() 203 InstallLocationUtils.RECOMMEND_FAILED_INSUFFICIENT_STORAGE; in freeCacheForInstallation() 218 IStorageManager sm = InstallLocationUtils.getStorageManager(); in performFstrimIfNeeded()
|
D | InstallingSession.java | 53 import com.android.internal.content.InstallLocationUtils; 205 return InstallLocationUtils.getInstallationErrorCode(recommendedInstallLocation); in overrideInstallLocation() 213 recommendedInstallLocation = InstallLocationUtils.installLocationPolicy( in overrideInstallLocation() 222 if (recommendedInstallLocation == InstallLocationUtils.RECOMMEND_INSTALL_EXTERNAL) { in overrideInstallLocation() 266 == InstallLocationUtils.RECOMMEND_FAILED_INSUFFICIENT_STORAGE) { in handleStartCopy()
|
D | PackageSessionVerifier.java | 45 import com.android.internal.content.InstallLocationUtils; 345 if (InstallLocationUtils.getStorageManager().supportsCheckpoint()) { in endVerification() 346 InstallLocationUtils.getStorageManager().startCheckpoint(2); in endVerification() 533 checkActiveSessions(InstallLocationUtils.getStorageManager().supportsCheckpoint()); in checkActiveSessions()
|
D | PackageManagerServiceUtils.java | 93 import com.android.internal.content.InstallLocationUtils; 903 ret.recommendedInstallLocation = InstallLocationUtils.RECOMMEND_FAILED_INVALID_APK; in getMinimalPackageInfo() 911 sizeBytes = InstallLocationUtils.calculateInstalledSize(pkg, abiOverride); in getMinimalPackageInfo() 915 InstallLocationUtils.RECOMMEND_FAILED_INVALID_URI; in getMinimalPackageInfo() 918 InstallLocationUtils.RECOMMEND_FAILED_INVALID_APK; in getMinimalPackageInfo() 935 recommendedInstallLocation = InstallLocationUtils.resolveInstallLocation(context, in getMinimalPackageInfo() 972 return InstallLocationUtils.calculateInstalledSize(result.getResult(), abiOverride); in calculateInstalledSize()
|
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()
|
D | IPackageManagerBase.java | 64 import com.android.internal.content.InstallLocationUtils; 450 InstallLocationUtils.APP_INSTALL_AUTO); in getInstallLocation()
|
D | PackageInstallerService.java | 113 import com.android.internal.content.InstallLocationUtils; 941 if (!InstallLocationUtils.fitsOnInternal(mContext, params)) { 955 params.volumeUuid = InstallLocationUtils.resolveInstallVolume(mContext, params);
|
D | PackageManagerShellCommand.java | 115 import com.android.internal.content.InstallLocationUtils; 705 sessionSize += InstallLocationUtils.calculateInstalledSize(pkgLite, in setParamsSize() 2064 if (loc == InstallLocationUtils.APP_INSTALL_AUTO) { in runGetInstallLocation() 2066 } else if (loc == InstallLocationUtils.APP_INSTALL_INTERNAL) { in runGetInstallLocation() 2068 } else if (loc == InstallLocationUtils.APP_INSTALL_EXTERNAL) { in runGetInstallLocation()
|
D | PackageManagerService.java | 180 import com.android.internal.content.InstallLocationUtils; 6033 if (loc == InstallLocationUtils.APP_INSTALL_AUTO in setInstallLocation() 6034 || loc == InstallLocationUtils.APP_INSTALL_INTERNAL in setInstallLocation() 6035 || loc == InstallLocationUtils.APP_INSTALL_EXTERNAL) { in setInstallLocation()
|
D | PackageInstallerSession.java | 175 import com.android.internal.content.InstallLocationUtils; 1989 InstallLocationUtils.translateAllocateFlags(params.installFlags)); in doWriteInternal()
|
/frameworks/base/core/java/com/android/internal/content/ |
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()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PackageManagerTests.java | 74 import com.android.internal.content.InstallLocationUtils; 108 private static final int APP_INSTALL_AUTO = InstallLocationUtils.APP_INSTALL_AUTO; 110 private static final int APP_INSTALL_DEVICE = InstallLocationUtils.APP_INSTALL_INTERNAL; 112 private static final int APP_INSTALL_SDCARD = InstallLocationUtils.APP_INSTALL_EXTERNAL; 1222 setInstallLoc(InstallLocationUtils.APP_INSTALL_AUTO); in moveFromRawResource() 1311 setInstallLoc(InstallLocationUtils.APP_INSTALL_AUTO); in testMoveAppFailInternalToExternalDelete() 1525 if (userSetting == InstallLocationUtils.APP_INSTALL_AUTO) { in getExpectedInstallLocation() 1527 } else if (userSetting == InstallLocationUtils.APP_INSTALL_EXTERNAL) { in getExpectedInstallLocation() 1529 } else if (userSetting == InstallLocationUtils.APP_INSTALL_INTERNAL) { in getExpectedInstallLocation() 1560 int userSetting = InstallLocationUtils.APP_INSTALL_INTERNAL; in testExistingIUserI() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageInfoLite.java | 24 import com.android.internal.content.InstallLocationUtils;
|
D | PackageInstaller.java | 88 import com.android.internal.content.InstallLocationUtils; 2585 return InstallLocationUtils.calculateInstalledSize(mPkg, params.abiOverride); in calculateInstalledSize() 2599 return InstallLocationUtils.calculateInstalledSize(mPkg, params.abiOverride, in calculateInstalledSize()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | StagingManagerTest.java | 51 import com.android.internal.content.InstallLocationUtils; 103 .mockStatic(InstallLocationUtils.class) in setUp() 108 when(InstallLocationUtils.getStorageManager()).thenReturn(mStorageManager); in setUp()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | DatabaseHelper.java | 46 import com.android.internal.content.InstallLocationUtils; 775 InstallLocationUtils.APP_INSTALL_AUTO); in onUpgrade() 2527 InstallLocationUtils.APP_INSTALL_AUTO); in loadGlobalSettings()
|