Home
last modified time | relevance | path

Searched refs:getCanonicalPath (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMmsFileProvider.java68 if (!filePath.getCanonicalPath() in getFile()
69 .startsWith(getDirectory(context).getCanonicalPath())) { in getFile()
71 + filePath.getCanonicalPath() in getFile()
73 + getDirectory(context).getCanonicalPath()); in getFile()
DMediaScratchFileProvider.java97 if (!filePath.getCanonicalPath() in getFileWithExtension()
98 .startsWith(getDirectory(context).getCanonicalPath())) { in getFileWithExtension()
100 + filePath.getCanonicalPath() in getFileWithExtension()
102 + getDirectory(context).getCanonicalPath()); in getFileWithExtension()
/packages/apps/DocumentsUI/src/com/android/documentsui/util/
DFileUtils.java35 public static String getCanonicalPath(@NonNull String path) throws IOException { in getCanonicalPath() method in FileUtils
37 return new File(path).getCanonicalPath(); in getCanonicalPath()
53 return getCanonicalPath(docIdPath); in getPathFromStorageDocId()
/packages/modules/Connectivity/networksecurity/service/src/com/android/server/net/ct/
DDirectoryUtils.java30 throw new IOException("Unable to make directory " + dir.getCanonicalPath()); in makeDir()
41 throw new IOException("Failed to set " + file.getCanonicalPath() + " readable"); in setWorldReadable()
56 throw new IOException("Failed to set " + file.getCanonicalPath() + " executable"); in setWorldExecutable()
DCompatibilityVersion.java111 if (newLogsDir.getCanonicalPath().equals(mCurrentLogsDirSymlink.getCanonicalPath())) { in install()
134 Os.symlink(newLogsDir.getCanonicalPath(), tempSymlink.getCanonicalPath()); in install()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/
DCoexManagerTest.java391 .thenReturn(createFileFromResource(FILEPATH_LTE_40_NEIGHBORING).getCanonicalPath()); in testTelephonyCallback_defaultAlgorithmEnabledXmlExists_registersWithTelephony()
412 .thenReturn(createFileFromResource(FILEPATH_LTE_40_NEIGHBORING).getCanonicalPath()); in testTelephonyCallback_defaultAlgorithmDisabled_doesNotRegisterWithTelephony()
428 .thenReturn(createFileFromResource(FILEPATH_LTE_40_NEIGHBORING).getCanonicalPath()); in testGetCoexUnsafeChannels_neighboringLte40_returns2gNeighboringChannels()
460 .thenReturn(createFileFromResource(FILEPATH_LTE_46_NEIGHBORING).getCanonicalPath()); in testGetCoexUnsafeChannels_neighboringLte46_returns5gNeighboringChannels()
493 .thenReturn(createFileFromResource(FILEPATH_LTE_27_HARMONIC).getCanonicalPath()); in testGetCoexUnsafeChannels_channel27065Example_returnsCorrectWifiChannels()
525 .thenReturn(createFileFromResource(FILEPATH_LTE_7_INTERMOD).getCanonicalPath()); in testGetCoexUnsafeChannels_channel3350Example_returnsCorrectWifiChannels()
557 .thenReturn(createFileFromResource(FILEPATH_LTE_40_NEIGHBORING).getCanonicalPath()); in testGetCoexUnsafeChannels_entire2gBandUnsafe_excludesDefault2gChannel()
585 .thenReturn(createFileFromResource(FILEPATH_LTE_46_NEIGHBORING).getCanonicalPath()); in testGetCoexUnsafeChannels_entire5gBandUnsafe_excludesDefault5gChannel()
613 .thenReturn(createFileFromResource(FILEPATH_LTE_40_NEIGHBORING).getCanonicalPath()); in testGetCoexUnsafeChannels_mockCellChannelsAdded_mockCellChannelsUsed()
657 .thenReturn(createFileFromResource(FILEPATH_LTE_40_OVERRIDE).getCanonicalPath()); in testGetCoexUnsafeChannels_overrideExists_overrideChannelsAdded()
[all …]
/packages/providers/MediaProvider/legacy/src/com/android/providers/media/util/
DLegacyFileUtils.java212 path = getCanonicalPath(data); in extractRelativePath()
252 data = new File(data).getCanonicalPath(); in computeValuesFromData()
325 public static String getCanonicalPath(@NonNull String path) throws IOException { in getCanonicalPath() method in LegacyFileUtils
327 return new File(path).getCanonicalPath(); in getCanonicalPath()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/multichip/
DUwbMultichipDataTest.java126 getClass()).getCanonicalPath()); in testInitializeMultiChipOneChipConfig()
148 getClass()).getCanonicalPath()); in testInitializeMultiChipNoPosition()
170 getClass()).getCanonicalPath()); in testInitializeMultiChipTwoChipConfig()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsPartsCleanup.java89 .getCanonicalPath(); in getAllMmsPartsInPartsDir()
95 return p.getCanonicalPath(); in getAllMmsPartsInPartsDir()
DMmsProvider.java583 .getDir(PARTS_DIR_NAME, 0).getCanonicalPath(); in insert()
584 if (!new File(path).getCanonicalPath().startsWith(partsDirPath)) { in insert()
966 String partsDirPath = getContext().getDir(PARTS_DIR_NAME, 0).getCanonicalPath(); in update()
1096 if (!filePath.getCanonicalPath() in safeOpenFileHelper()
1097 .startsWith(getContext().getDir(PARTS_DIR_NAME, 0).getCanonicalPath())) { in safeOpenFileHelper()
1099 + filePath.getCanonicalPath() in safeOpenFileHelper()
1101 + getContext().getDir(PARTS_DIR_NAME, 0).getCanonicalPath()); in safeOpenFileHelper()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerStorageCleanUpService.java125 recordedProgramDirs.add(recordedProgramDir.getCanonicalPath()); in getRecordedProgramsDirs()
153 if (!recordedProgramDirs.contains(recordingDir.getCanonicalPath())) { in doInBackground()
/packages/modules/Connectivity/networksecurity/tests/unit/src/com/android/server/net/ct/
DCompatibilityVersionTest.java128 assertThat(logListFile.getCanonicalPath()) in testCompatibilityVersion_installSuccessful()
136 .getCanonicalPath()); in testCompatibilityVersion_installSuccessful()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDictionaryMaker.java91 if (new File(path1).getCanonicalPath().equals(new File(path2).getCanonicalPath())) { in checkNotSameFile()
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/
DSatelliteAccessConfigurationParserTest.java278 SatelliteAccessConfigurationParser.parse(file.getCanonicalPath())); in testParsingValidSatelliteAccessConfiguration()
285 String jsonString = readJsonStringFromFile(file.getCanonicalPath()); in testParsingInvalidSatelliteAccessConfiguration()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DCameraTest.java47 assertEquals(-1, f.getCanonicalPath().indexOf("test_fd_leak.3gp")); in testVideoCaptureIntentFdLeak()
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DCameraTest.java50 assertEquals(-1, f.getCanonicalPath().indexOf("test_fd_leak.3gp")); in testVideoCaptureIntentFdLeak()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DClipStorageReader.java51 mCanonicalPath = file.getCanonicalPath(); // Resolve symlink in ClipStorageReader()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DFileSystemPermissionTest.java863 fileName = f.getCanonicalPath(); in tryFileOpenRead()
887 System.out.println("looking at " + f.getCanonicalPath()); in tryFileRead()
1216 String thisDir = dir.getCanonicalPath(); in getWritableDirectoriesAndSubdirectoriesOf()
1240 return !f.getAbsolutePath().equals(f.getCanonicalPath()); in isSymbolicLink()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/
DSharedImageProvider.java158 if (!path.getCanonicalPath().startsWith(LOCAL_PATH)) { in ensureValidImagePath()
/packages/services/Telephony/utils/satellite/configdatagenerator/src/main/java/com/android/telephony/tools/configdatagenerate/
DSatelliteConfigProtoGenerator.java178 throw new IOException("file read fail: " + file.getCanonicalPath()); in readFileToByteArray()
/packages/apps/Traceur/src_common/com/android/traceur/
DWinscopeUtils.java122 Log.v(TAG, "Copied winscope trace file " + outFile.getCanonicalPath()); in traceDump()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java1121 path = getCanonicalPath(data);
1342 data = new File(data).getCanonicalPath();
1430 values.put(MediaColumns.DATA, filePath.getCanonicalPath());
1849 public static String getCanonicalPath(@NonNull String path) throws IOException {
1851 return new File(path).getCanonicalPath();
/packages/apps/Contacts/src/com/android/contacts/util/
DContactPhotoUtils.java186 return !file.getCanonicalPath().startsWith("/storage/"); in isFilePathAndNotStorage()
/packages/apps/TV/common/src/com/android/tv/common/recording/
DRecordingStorageStatusManager.java196 rootPath = root != null ? root.getCanonicalPath() : null; in getRecordingRootDataDirectory()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DDownloadProviderFunctionalTest.java106 assertStartsWith(getContext().getCacheDir().getCanonicalPath(), in testDownloadToCache()

12