Home
last modified time | relevance | path

Searched refs:parentFile (Results 1 – 11 of 11) sorted by relevance

/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A DFileUtil.java143 File parentFile = child; in isSameOrSubDirectory() local
144 while (parentFile != null) { in isSameOrSubDirectory()
145 if (base.equals(parentFile)) { in isSameOrSubDirectory()
148 parentFile = parentFile.getParentFile(); in isSameOrSubDirectory()
/aosp12/frameworks/base/core/java/com/android/internal/content/
H A DF2fsUtils.java168 File parentFile = new File(childPath).getCanonicalFile(); in isChild() local
169 while (parentFile != null) { in isChild()
170 if (base.equals(parentFile)) { in isChild()
173 parentFile = parentFile.getParentFile(); in isChild()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DTransferOwnershipMetadataManagerTest.java119 File parentFile = canonicalFile.getParentFile(); in testLoad() local
121 Log.d(TAG, "testLoad: getCanonicalFile.getParentFile " + parentFile); in testLoad()
122 Log.d(TAG, "testLoad: parent mkdirs? " + parentFile.mkdirs()); in testLoad()
123 Log.d(TAG, "testLoad: parent exists? " + parentFile.exists()); in testLoad()
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
H A DMockSystem.kt280 wheneverStatic { Environment.getDataDirectory() }.thenReturn(dataAppDirectory.parentFile)
282 .thenReturn(File(dataAppDirectory.parentFile, "system"))
374 val parentFile = apkPath.parentFile regex
375 val settingBuilder = withSetting(createBasicSettingBuilder(parentFile, pkg))
391 val pkg = PackageImpl.forTesting(packageName, apkPath.parentFile.path) as PackageImpl
420 fun createBasicSettingBuilder(parentFile: File, pkg: AndroidPackage): PackageSettingBuilder {
421 return createBasicSettingBuilder(parentFile, pkg.packageName, pkg.longVersionCode,
431 parentFile: File,
437 .setCodePath(parentFile.path)
481 val basePath = path.parentFile
[all …]
/aosp12/frameworks/base/core/java/android/gesture/
H A DGestureLibraries.java93 final File parentFile = file.getParentFile(); in save() local
94 if (!parentFile.exists()) { in save()
95 if (!parentFile.mkdirs()) { in save()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppUtility.java466 File parentFile = child; in isSameOrSubDirectory() local
467 while (parentFile != null) { in isSameOrSubDirectory()
468 if (base.equals(parentFile)) { in isSameOrSubDirectory()
471 parentFile = parentFile.getParentFile(); in isSameOrSubDirectory()
/aosp12/packages/apps/Camera2/src/com/android/camera/
H A DStorage.java344 File parentFile = new File(filePath).getParentFile(); in createDirectoryIfNeeded() local
348 if (parentFile.exists()) { in createDirectoryIfNeeded()
349 return parentFile.isDirectory(); in createDirectoryIfNeeded()
354 return parentFile.mkdirs(); in createDirectoryIfNeeded()
/aosp12/frameworks/opt/setupwizard/tools/gradle/
H A Ddist-unit-tests.gradle30 destinationDir = junitReport.destination.parentFile
95 destinationDir = jacocoTask.reports.html.destination.parentFile
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/
H A DDeskClockBackupAgent.kt69 variableDestination = File(variableDestination.parentFile, prefFileName)
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/
H A DDatabaseHelper.java1036 File parentFile = playlistFile.getParentFile(); in migratePlaylistFiles() local
1037 if (parentFile.getName().equalsIgnoreCase("Playlists")) { in migratePlaylistFiles()
1038 parentFile = new File(parentFile.getParentFile(), Environment.DIRECTORY_MUSIC); in migratePlaylistFiles()
1046 playlistFile = FileUtils.buildUniqueFile(parentFile, mimeType, playlistName); in migratePlaylistFiles()
/aosp12/frameworks/base/tools/processors/staledataclass/src/android/processor/staledataclass/
H A DStaleDataclassProcessor.kt161 repoRoot = generateSequence(WORKING_DIR) { it.parentFile }