Home
last modified time | relevance | path

Searched refs:stageDir (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java196 final File stageDir; field in PackageInstallerSession
411 File stageDir, String stageCid, boolean prepared, boolean committed, boolean sealed, in PackageInstallerSession() argument
430 this.stageDir = stageDir; in PackageInstallerSession()
440 if (!params.isMultiPackage && (stageDir == null) == (stageCid == null)) { in PackageInstallerSession()
601 return stageDir.list(); in getNamesLocked()
612 return filterFiles(stageDir, names, sAddedFilter); in getAddedFilesLocked()
618 return filterFiles(stageDir, names, sRemovedFilter); in getRemovedFilesLocked()
649 final File target = new File(stageDir, getRemoveMarkerName(splitName)); in createRemoveSplitMarkerLocked()
706 target = new File(stageDir, name); in doWriteInternal()
719 if (stageDir != null && lengthBytes > 0) { in doWriteInternal()
[all …]
DPackageInstallerService.java291 unclaimedStages.remove(session.stageDir); in reconcileStagesLocked()
610 File stageDir = null; in createSessionInternal() local
614 stageDir = buildSessionDir(sessionId, params); in createSessionInternal()
621 installerPackageName, callingUid, params, createdMillis, stageDir, stageCid, false, in createSessionInternal()
745 static void prepareStageDir(File stageDir) throws IOException { in prepareStageDir() argument
746 if (stageDir.exists()) { in prepareStageDir()
747 throw new IOException("Session dir already exists: " + stageDir); in prepareStageDir()
751 Os.mkdir(stageDir.getAbsolutePath(), 0775); in prepareStageDir()
752 Os.chmod(stageDir.getAbsolutePath(), 0775); in prepareStageDir()
755 throw new IOException("Failed to prepare session dir: " + stageDir, e); in prepareStageDir()
[all …]
DStagingManager.java409 private List<String> findAPKsInDir(File stageDir) { in findAPKsInDir() argument
411 if (stageDir != null && stageDir.exists()) { in findAPKsInDir()
412 for (File file : stageDir.listFiles()) { in findAPKsInDir()
427 if (originalSession.stageDir == null) { in createAndWriteApkSession()
432 List<String> apkFilePaths = findAPKsInDir(originalSession.stageDir); in createAndWriteApkSession()
434 Slog.w(TAG, "Can't find staged APK in " + originalSession.stageDir.getAbsolutePath()); in createAndWriteApkSession()
436 "Can't find staged APK in " + originalSession.stageDir.getAbsolutePath()); in createAndWriteApkSession()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageInstallerSessionTest.java298 assertEquals(expected.stageDir.getAbsolutePath(), actual.stageDir.getAbsolutePath()); in assertSessionsEquivalent()