use of com.android.internal.os.InstallerConnection.InstallerException in project android_frameworks_base by ResurrectionRemix.
the class PackageInstallerSession method destroyInternal.
private void destroyInternal() {
synchronized (mLock) {
mSealed = true;
mDestroyed = true;
// Force shut down all bridges
for (FileBridge bridge : mBridges) {
bridge.forceClose();
}
}
if (stageDir != null) {
try {
mPm.mInstaller.rmPackageDir(stageDir.getAbsolutePath());
} catch (InstallerException ignored) {
}
}
if (stageCid != null) {
PackageHelper.destroySdDir(stageCid);
}
}
use of com.android.internal.os.InstallerConnection.InstallerException in project android_frameworks_base by ResurrectionRemix.
the class Installer method getAppSize.
public void getAppSize(String uuid, String pkgname, int userid, int flags, long ceDataInode, String codePath, PackageStats stats) throws InstallerException {
final String[] res = mInstaller.execute("get_app_size", uuid, pkgname, userid, flags, ceDataInode, codePath);
try {
stats.codeSize += Long.parseLong(res[1]);
stats.dataSize += Long.parseLong(res[2]);
stats.cacheSize += Long.parseLong(res[3]);
} catch (ArrayIndexOutOfBoundsException | NumberFormatException e) {
throw new InstallerException("Invalid size result: " + Arrays.toString(res));
}
}
Aggregations