Home
last modified time | relevance | path

Searched refs:InstallLocationUtils (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/content/pm/
DInstallLocationUtilsTests.java28 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/
DFreeStorageHelper.java35 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()
DInstallingSession.java53 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()
DPackageSessionVerifier.java45 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()
DPackageManagerServiceUtils.java93 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()
DStagingManager.java50 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()
DIPackageManagerBase.java64 import com.android.internal.content.InstallLocationUtils;
450 InstallLocationUtils.APP_INSTALL_AUTO); in getInstallLocation()
DPackageInstallerService.java113 import com.android.internal.content.InstallLocationUtils;
941 if (!InstallLocationUtils.fitsOnInternal(mContext, params)) {
955 params.volumeUuid = InstallLocationUtils.resolveInstallVolume(mContext, params);
DPackageManagerShellCommand.java115 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()
DPackageManagerService.java180 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()
DPackageInstallerSession.java175 import com.android.internal.content.InstallLocationUtils;
1989 InstallLocationUtils.translateAllocateFlags(params.installFlags)); in doWriteInternal()
/frameworks/base/core/java/com/android/internal/content/
DInstallLocationUtils.java58 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/
DPackageManagerTests.java74 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/
DPackageInfoLite.java24 import com.android.internal.content.InstallLocationUtils;
DPackageInstaller.java88 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/
DStagingManagerTest.java51 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/
DDatabaseHelper.java46 import com.android.internal.content.InstallLocationUtils;
775 InstallLocationUtils.APP_INSTALL_AUTO); in onUpgrade()
2527 InstallLocationUtils.APP_INSTALL_AUTO); in loadGlobalSettings()