Home
last modified time | relevance | path

Searched refs:PackageHelper (Results 1 – 11 of 11) 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.java63 import com.android.internal.content.PackageHelper;
95 private static final int APP_INSTALL_AUTO = PackageHelper.APP_INSTALL_AUTO;
97 private static final int APP_INSTALL_DEVICE = PackageHelper.APP_INSTALL_INTERNAL;
99 private static final int APP_INSTALL_SDCARD = PackageHelper.APP_INSTALL_EXTERNAL;
1305 setInstallLoc(PackageHelper.APP_INSTALL_AUTO); in moveFromRawResource()
1422 setInstallLoc(PackageHelper.APP_INSTALL_AUTO); in testMoveAppFailInternalToExternalDelete()
1840 if (userSetting == PackageHelper.APP_INSTALL_AUTO) { in getExpectedInstallLocation()
1842 } else if (userSetting == PackageHelper.APP_INSTALL_EXTERNAL) { in getExpectedInstallLocation()
1844 } else if (userSetting == PackageHelper.APP_INSTALL_INTERNAL) { in getExpectedInstallLocation()
1875 int userSetting = PackageHelper.APP_INSTALL_INTERNAL; in testExistingIUserI()
[all …]
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java42 import com.android.internal.content.PackageHelper;
107 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_APK;
116 sizeBytes = PackageHelper.calculateInstalledSize(pkg, abiOverride);
121 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_URI;
123 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_APK;
132 recommendedInstallLocation = PackageHelper.resolveInstallLocation(context,
186 return PackageHelper.calculateInstalledSize(pkg, abiOverride);
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java56 public class PackageHelper { class
354 ? PackageHelper.RECOMMEND_INSTALL_EPHEMERAL in resolveInstallLocation()
355 : PackageHelper.RECOMMEND_INSTALL_INTERNAL; in resolveInstallLocation()
359 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in resolveInstallLocation()
365 return PackageHelper.RECOMMEND_INSTALL_INTERNAL; in resolveInstallLocation()
367 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in resolveInstallLocation()
371 return PackageHelper.RECOMMEND_FAILED_INSUFFICIENT_STORAGE; in resolveInstallLocation()
/frameworks/base/core/java/android/content/pm/
DPackageInfoLite.java22 import com.android.internal.content.PackageHelper;
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java80 import com.android.internal.content.PackageHelper;
478 if (!PackageHelper.fitsOnInternal(mContext, params)) { in createSessionInternal()
483 if (!PackageHelper.fitsOnExternal(mContext, params)) { in createSessionInternal()
501 params.volumeUuid = PackageHelper.resolveInstallVolume(mContext, params); in createSessionInternal()
DPackageManagerShellCommand.java87 import com.android.internal.content.PackageHelper;
334 params.sessionParams.setSize(PackageHelper.calculateInstalledSize( in setParamsSize()
1057 if (loc == PackageHelper.APP_INSTALL_AUTO) { in runGetInstallLocation()
1059 } else if (loc == PackageHelper.APP_INSTALL_INTERNAL) { in runGetInstallLocation()
1061 } else if (loc == PackageHelper.APP_INSTALL_EXTERNAL) { in runGetInstallLocation()
DPackageInstallerSession.java93 import com.android.internal.content.PackageHelper;
666 PackageHelper.translateAllocateFlags(params.installFlags)); in doWriteInternal()
DPackageManagerService.java279 import com.android.internal.content.PackageHelper;
8934 IStorageManager sm = PackageHelper.getStorageManager();
15316 return PackageHelper.RECOMMEND_FAILED_VERSION_DOWNGRADE;
15327 return PackageHelper.RECOMMEND_FAILED_INVALID_LOCATION;
15329 return PackageHelper.RECOMMEND_INSTALL_INTERNAL;
15333 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL;
15338 return PackageHelper.RECOMMEND_INSTALL_INTERNAL;
15344 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL;
15346 return PackageHelper.RECOMMEND_INSTALL_INTERNAL;
15351 return PackageHelper.RECOMMEND_FAILED_ALREADY_EXISTS;
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java47 import com.android.internal.content.PackageHelper;
783 PackageHelper.APP_INSTALL_AUTO); in onUpgrade()
2592 PackageHelper.APP_INSTALL_AUTO); in loadGlobalSettings()
/frameworks/base/config/
Dboot-image-profile.txt8510 HPLcom/android/internal/content/PackageHelper$1;->getAllow3rdPartyOnInternalConfig(Landroid/content…
8511 HPLcom/android/internal/content/PackageHelper$1;->getExistingAppInfo(Landroid/content/Context;Ljava…
8512 HPLcom/android/internal/content/PackageHelper$1;->getForceAllowOnExternalSetting(Landroid/content/C…
8513 HPLcom/android/internal/content/PackageHelper$1;->getStorageManager(Landroid/content/Context;)Landr…
8514 HPLcom/android/internal/content/PackageHelper$TestableInterface;->getAllow3rdPartyOnInternalConfig(…
8515 HPLcom/android/internal/content/PackageHelper$TestableInterface;->getDataDirectory()Ljava/io/File;
8516 HPLcom/android/internal/content/PackageHelper$TestableInterface;->getExistingAppInfo(Landroid/conte…
8517 HPLcom/android/internal/content/PackageHelper$TestableInterface;->getForceAllowOnExternalSetting(La…
8518 HPLcom/android/internal/content/PackageHelper$TestableInterface;->getStorageManager(Landroid/conten…
8519 HPLcom/android/internal/content/PackageHelper;->getDefaultTestableInterface()Lcom/android/internal/…
[all …]