Searched refs:PackageHelper (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
D | DefaultContainerService.java | 48 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/ |
D | PackageHelperTests.java | 28 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()
|
D | PackageManagerTests.java | 64 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; 1629 setInstallLoc(PackageHelper.APP_INSTALL_AUTO); in moveFromRawResource() 1764 setInstallLoc(PackageHelper.APP_INSTALL_AUTO); in testMoveAppFailInternalToExternalDelete() 2387 if (userSetting == PackageHelper.APP_INSTALL_AUTO) { in getExpectedInstallLocation() 2389 } else if (userSetting == PackageHelper.APP_INSTALL_EXTERNAL) { in getExpectedInstallLocation() 2391 } else if (userSetting == PackageHelper.APP_INSTALL_INTERNAL) { in getExpectedInstallLocation() 2422 int userSetting = PackageHelper.APP_INSTALL_INTERNAL; in testExistingIUserI() [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageHelper.java | 56 public class PackageHelper { class 482 return PackageHelper.RECOMMEND_INSTALL_INTERNAL; in resolveInstallLocation() 486 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in resolveInstallLocation() 492 return PackageHelper.RECOMMEND_INSTALL_INTERNAL; in resolveInstallLocation() 494 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in resolveInstallLocation() 498 return PackageHelper.RECOMMEND_FAILED_INSUFFICIENT_STORAGE; in resolveInstallLocation() 522 sizeBytes += PackageHelper.extractPublicFiles(codeFile, null); in calculateInstalledSize()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerSession.java | 71 import com.android.internal.content.PackageHelper; 290 final String path = PackageHelper.getSdDir(stageCid); in resolveStageDir() 786 return PackageHelper.calculateInstalledSize(pkg, isForwardLocked, params.abiOverride); in calculateInstalledSize() 904 String path = PackageHelper.getSdDir(cid); in resizeContainer() 917 if (!PackageHelper.unMountSdDir(cid)) { in resizeContainer() 922 if (!PackageHelper.resizeSdDir(targetSize, cid, in resizeContainer() 928 path = PackageHelper.mountSdDir(cid, PackageManagerService.getEncryptKey(), in resizeContainer() 937 if (!PackageHelper.finalizeSdDir(cid)) { in finalizeAndFixContainer() 945 if (!PackageHelper.fixSdPermissions(cid, gid, null)) { in finalizeAndFixContainer() 1038 PackageHelper.destroySdDir(stageCid); in destroyInternal()
|
D | PackageInstallerService.java | 89 import com.android.internal.content.PackageHelper; 279 for (String cid : PackageHelper.getSecureContainerList()) { in onSecureContainersAvailable() 292 PackageHelper.mountSdDir(cid, PackageManagerService.getEncryptKey(), in onSecureContainersAvailable() 300 PackageHelper.destroySdDir(cid); in onSecureContainersAvailable() 625 if (!PackageHelper.fitsOnInternal(mContext, params.sizeBytes)) { in createSessionInternal() 630 if (!PackageHelper.fitsOnExternal(mContext, params.sizeBytes)) { in createSessionInternal() 648 params.volumeUuid = PackageHelper.resolveInstallVolume(mContext, in createSessionInternal() 808 if (PackageHelper.createSdDir(sizeBytes, stageCid, PackageManagerService.getEncryptKey(), in prepareExternalStageCid()
|
D | PackageManagerService.java | 210 import com.android.internal.content.PackageHelper; 1479 PackageHelper.getMountService().finishMediaUpdate(); in doHandleMessage() 6014 IMountService ms = PackageHelper.getMountService(); in performBootDexOpt() 10417 resolvedPath = PackageHelper.getSdDir(cid); in OriginInfo() 10508 return PackageHelper.RECOMMEND_FAILED_VERSION_DOWNGRADE; in installLocationPolicy() 10515 return PackageHelper.RECOMMEND_FAILED_INVALID_LOCATION; in installLocationPolicy() 10517 return PackageHelper.RECOMMEND_INSTALL_INTERNAL; in installLocationPolicy() 10521 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in installLocationPolicy() 10526 return PackageHelper.RECOMMEND_INSTALL_INTERNAL; in installLocationPolicy() 10532 return PackageHelper.RECOMMEND_INSTALL_EXTERNAL; in installLocationPolicy() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageInfoLite.java | 22 import com.android.internal.content.PackageHelper;
|
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
D | Pm.java | 68 import com.android.internal.content.PackageHelper; 1022 if (loc == PackageHelper.APP_INSTALL_AUTO) { in runGetInstallLocation() 1024 } else if (loc == PackageHelper.APP_INSTALL_INTERNAL) { in runGetInstallLocation() 1026 } else if (loc == PackageHelper.APP_INSTALL_EXTERNAL) { in runGetInstallLocation()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | DatabaseHelper.java | 47 import com.android.internal.content.PackageHelper; 785 PackageHelper.APP_INSTALL_AUTO); in onUpgrade() 2677 PackageHelper.APP_INSTALL_AUTO); in loadGlobalSettings()
|