Home
last modified time | relevance | path

Searched refs:PackageHelper (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageHelperTests.java27 import com.android.internal.content.PackageHelper;
104 private static final class MockedInterface extends PackageHelper.TestableInterface {
165 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
171 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
177 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
183 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
193 PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
203 PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
213 PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
223 PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
[all …]
DPackageManagerTests.java64 import com.android.internal.content.PackageHelper;
96 private static final int APP_INSTALL_AUTO = PackageHelper.APP_INSTALL_AUTO;
98 private static final int APP_INSTALL_DEVICE = PackageHelper.APP_INSTALL_INTERNAL;
100 private static final int APP_INSTALL_SDCARD = PackageHelper.APP_INSTALL_EXTERNAL;
1206 setInstallLoc(PackageHelper.APP_INSTALL_AUTO); in moveFromRawResource()
1295 setInstallLoc(PackageHelper.APP_INSTALL_AUTO); in testMoveAppFailInternalToExternalDelete()
1509 if (userSetting == PackageHelper.APP_INSTALL_AUTO) { in getExpectedInstallLocation()
1511 } else if (userSetting == PackageHelper.APP_INSTALL_EXTERNAL) { in getExpectedInstallLocation()
1513 } else if (userSetting == PackageHelper.APP_INSTALL_INTERNAL) { in getExpectedInstallLocation()
1544 int userSetting = PackageHelper.APP_INSTALL_INTERNAL; in testExistingIUserI()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java56 public class PackageHelper { class
353 ? PackageHelper.RECOMMEND_INSTALL_EPHEMERAL in resolveInstallLocation()
354 : PackageHelper.RECOMMEND_INSTALL_INTERNAL; in resolveInstallLocation()
358 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in resolveInstallLocation()
364 return PackageHelper.RECOMMEND_INSTALL_INTERNAL; in resolveInstallLocation()
366 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in resolveInstallLocation()
370 return PackageHelper.RECOMMEND_FAILED_INSUFFICIENT_STORAGE; in resolveInstallLocation()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceUtils.java59 import com.android.internal.content.PackageHelper;
742 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_APK; in getMinimalPackageInfo()
751 sizeBytes = PackageHelper.calculateInstalledSize(pkg, abiOverride); in getMinimalPackageInfo()
756 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_URI; in getMinimalPackageInfo()
758 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_APK; in getMinimalPackageInfo()
764 final int recommendedInstallLocation = PackageHelper.resolveInstallLocation(context, in getMinimalPackageInfo()
792 return PackageHelper.calculateInstalledSize(pkg, abiOverride); in calculateInstalledSize()
DPackageInstallerService.java79 import com.android.internal.content.PackageHelper;
563 if (!PackageHelper.fitsOnInternal(mContext, params)) { in createSessionInternal()
577 params.volumeUuid = PackageHelper.resolveInstallVolume(mContext, params); in createSessionInternal()
DPackageManagerShellCommand.java97 import com.android.internal.content.PackageHelper;
467 params.sessionParams.setSize(PackageHelper.calculateInstalledSize( in setParamsSize()
1252 if (loc == PackageHelper.APP_INSTALL_AUTO) { in runGetInstallLocation()
1254 } else if (loc == PackageHelper.APP_INSTALL_INTERNAL) { in runGetInstallLocation()
1256 } else if (loc == PackageHelper.APP_INSTALL_EXTERNAL) { in runGetInstallLocation()
DPackageManagerService.java284 import com.android.internal.content.PackageHelper;
9576 IStorageManager sm = PackageHelper.getStorageManager();
15129 return PackageHelper.RECOMMEND_FAILED_WRONG_INSTALLED_VERSION;
15137 return PackageHelper.RECOMMEND_FAILED_WRONG_INSTALLED_VERSION;
15148 return PackageHelper.RECOMMEND_FAILED_VERSION_DOWNGRADE;
15157 return PackageHelper.RECOMMEND_INSTALL_INTERNAL;
15162 return PackageHelper.RECOMMEND_INSTALL_INTERNAL;
15168 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL;
15170 return PackageHelper.RECOMMEND_INSTALL_INTERNAL;
15175 return PackageHelper.RECOMMEND_FAILED_ALREADY_EXISTS;
[all …]
DPackageInstallerSession.java102 import com.android.internal.content.PackageHelper;
758 PackageHelper.translateAllocateFlags(params.installFlags)); in doWriteInternal()
/frameworks/base/core/java/android/content/pm/
DPackageInfoLite.java24 import com.android.internal.content.PackageHelper;
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallInstalling.java38 import com.android.internal.content.PackageHelper;
149 PackageHelper.calculateInstalledSize(pkg, false, params.abiOverride)); in onCreate()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java48 import com.android.internal.content.PackageHelper;
784 PackageHelper.APP_INSTALL_AUTO); in onUpgrade()
2569 PackageHelper.APP_INSTALL_AUTO); in loadGlobalSettings()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java313 import com.android.internal.content.PackageHelper;
5266 IStorageManager storageManager = PackageHelper.getStorageManager(); in finishBooting()
/frameworks/base/config/
Dboot-image-profile.txt20171 PLcom/android/internal/content/PackageHelper$1;->getAllow3rdPartyOnInternalConfig(Landroid/content/…
20172 PLcom/android/internal/content/PackageHelper$1;->getExistingAppInfo(Landroid/content/Context;Ljava/…
20173 PLcom/android/internal/content/PackageHelper$1;->getForceAllowOnExternalSetting(Landroid/content/Co…
20174 PLcom/android/internal/content/PackageHelper$1;->getStorageManager(Landroid/content/Context;)Landro…
20175 HPLcom/android/internal/content/PackageHelper;->calculateInstalledSize(Landroid/content/pm/PackageP…
20176 HPLcom/android/internal/content/PackageHelper;->calculateInstalledSize(Landroid/content/pm/PackageP…
20177 HPLcom/android/internal/content/PackageHelper;->calculateInstalledSize(Landroid/content/pm/PackageP…
20178 HPLcom/android/internal/content/PackageHelper;->fitsOnInternal(Landroid/content/Context;Landroid/co…
20179 HPLcom/android/internal/content/PackageHelper;->getDefaultTestableInterface()Lcom/android/internal/…
20180 HSPLcom/android/internal/content/PackageHelper;->getStorageManager()Landroid/os/storage/IStorageMan…
[all …]