Home
last modified time | relevance | path

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

/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java48 import com.android.internal.content.PackageHelper;
160 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_APK;
169 sizeBytes = PackageHelper.calculateInstalledSize(pkg, isForwardLocked, abiOverride);
174 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_URI;
176 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_APK;
189 ret.recommendedInstallLocation = PackageHelper.resolveInstallLocation(context,
257 return PackageHelper.calculateInstalledSize(pkg, isForwardLocked, abiOverride);
319 final long sizeBytes = PackageHelper.calculateInstalledSize(pkg, handle, in copyPackageToContainerInner()
323 final String newMountPath = PackageHelper.createSdDir(sizeBytes, newCid, key, in copyPackageToContainerInner()
348 if (!PackageHelper.finalizeSdDir(newCid)) { in copyPackageToContainerInner()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageHelperTests.java28 import com.android.internal.content.PackageHelper;
86 fullId2 = PackageHelper.createSdDir(1024 * MB_IN_BYTES, fullId, "none", in testMountAndPullSdCard()
89 Log.d(TAG,PackageHelper.getSdDir(fullId)); in testMountAndPullSdCard()
90 PackageHelper.unMountSdDir(fullId); in testMountAndPullSdCard()
108 String path = PackageHelper.mountSdDir(fullId, "none", in getMountRunnable()
125 PackageHelper.destroySdDir(fullId); in getDestroyRunnable()
DPackageManagerTests.java64 import com.android.internal.content.PackageHelper;
86 private static final int APP_INSTALL_AUTO = PackageHelper.APP_INSTALL_AUTO;
88 private static final int APP_INSTALL_DEVICE = PackageHelper.APP_INSTALL_INTERNAL;
90 private static final int APP_INSTALL_SDCARD = PackageHelper.APP_INSTALL_EXTERNAL;
1714 setInstallLoc(PackageHelper.APP_INSTALL_AUTO); in moveFromRawResource()
1849 setInstallLoc(PackageHelper.APP_INSTALL_AUTO); in testMoveAppFailInternalToExternalDelete()
2472 if (userSetting == PackageHelper.APP_INSTALL_AUTO) { in getExpectedInstallLocation()
2474 } else if (userSetting == PackageHelper.APP_INSTALL_EXTERNAL) { in getExpectedInstallLocation()
2476 } else if (userSetting == PackageHelper.APP_INSTALL_INTERNAL) { in getExpectedInstallLocation()
2507 int userSetting = PackageHelper.APP_INSTALL_INTERNAL; in testExistingIUserI()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java55 public class PackageHelper { class
401 return PackageHelper.RECOMMEND_INSTALL_INTERNAL; in resolveInstallLocation()
405 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in resolveInstallLocation()
411 return PackageHelper.RECOMMEND_INSTALL_INTERNAL; in resolveInstallLocation()
413 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in resolveInstallLocation()
424 return PackageHelper.RECOMMEND_MEDIA_UNAVAILABLE; in resolveInstallLocation()
426 return PackageHelper.RECOMMEND_FAILED_INSUFFICIENT_STORAGE; in resolveInstallLocation()
451 sizeBytes += PackageHelper.extractPublicFiles(codeFile, null); in calculateInstalledSize()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java66 import com.android.internal.content.PackageHelper;
273 final String path = PackageHelper.getSdDir(stageCid); in resolveStageDir()
732 return PackageHelper.calculateInstalledSize(pkg, isForwardLocked, params.abiOverride); in calculateInstalledSize()
825 String path = PackageHelper.getSdDir(cid); in resizeContainer()
838 if (!PackageHelper.unMountSdDir(cid)) { in resizeContainer()
843 if (!PackageHelper.resizeSdDir(targetSize, cid, in resizeContainer()
849 path = PackageHelper.mountSdDir(cid, PackageManagerService.getEncryptKey(), in resizeContainer()
858 if (!PackageHelper.finalizeSdDir(cid)) { in finalizeAndFixContainer()
866 if (!PackageHelper.fixSdPermissions(cid, gid, null)) { in finalizeAndFixContainer()
956 PackageHelper.destroySdDir(stageCid); in destroyInternal()
DPackageInstallerService.java80 import com.android.internal.content.PackageHelper;
244 for (String cid : PackageHelper.getSecureContainerList()) { in onSecureContainersAvailable()
257 PackageHelper.mountSdDir(cid, PackageManagerService.getEncryptKey(), in onSecureContainersAvailable()
265 PackageHelper.destroySdDir(cid); in onSecureContainersAvailable()
537 final int resolved = PackageHelper.resolveInstallLocation(mContext, in createSessionInternal()
541 if (resolved == PackageHelper.RECOMMEND_INSTALL_INTERNAL) { in createSessionInternal()
543 } else if (resolved == PackageHelper.RECOMMEND_INSTALL_EXTERNAL) { in createSessionInternal()
703 if (PackageHelper.createSdDir(sizeBytes, stageCid, PackageManagerService.getEncryptKey(), in prepareExternalStageCid()
DPackageManagerService.java65 import com.android.internal.content.PackageHelper;
1114 PackageHelper.getMountService().finishMediaUpdate(); in doHandleMessage()
4540 IMountService ms = PackageHelper.getMountService(); in performBootDexOpt()
8865 resolvedPath = PackageHelper.getSdDir(cid); in OriginInfo()
8927 return PackageHelper.RECOMMEND_FAILED_VERSION_DOWNGRADE; in installLocationPolicy()
8934 return PackageHelper.RECOMMEND_FAILED_INVALID_LOCATION; in installLocationPolicy()
8936 return PackageHelper.RECOMMEND_INSTALL_INTERNAL; in installLocationPolicy()
8940 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in installLocationPolicy()
8945 return PackageHelper.RECOMMEND_INSTALL_INTERNAL; in installLocationPolicy()
8951 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in installLocationPolicy()
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageInfoLite.java22 import com.android.internal.content.PackageHelper;
/frameworks/base/cmds/pm/src/com/android/commands/pm/
DPm.java59 import com.android.internal.content.PackageHelper;
845 if (loc == PackageHelper.APP_INSTALL_AUTO) { in runGetInstallLocation()
847 } else if (loc == PackageHelper.APP_INSTALL_INTERNAL) { in runGetInstallLocation()
849 } else if (loc == PackageHelper.APP_INSTALL_EXTERNAL) { in runGetInstallLocation()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java47 import com.android.internal.content.PackageHelper;
746 PackageHelper.APP_INSTALL_AUTO); in onUpgrade()
2609 PackageHelper.APP_INSTALL_AUTO); in loadGlobalSettings()