Home
last modified time | relevance | path

Searched refs:extractRelativePath (Results 1 – 8 of 8) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/util/
DXAttrUtils.java20 import static com.android.providers.media.util.FileUtils.extractRelativePath;
67 + extractRelativePath(path) + extractDisplayName(path); in getFileAttributesFromXAttr()
DFileUtils.java1115 public static @Nullable String extractRelativePath(@Nullable String data) {
1197 final String relativePath = extractRelativePath(path);
1257 final String relativePath = extractRelativePath(path);
1352 values.put(MediaColumns.RELATIVE_PATH, extractRelativePath(data));
1606 final String[] relativePath = sanitizePath(extractRelativePath(dir.getAbsolutePath()));
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DFileUtilsTest.java45 import static com.android.providers.media.util.FileUtils.extractRelativePath;
547 extractRelativePath(prefix + "foo.jpg")); in testExtractRelativePath()
549 extractRelativePath(prefix + "DCIM/foo.jpg")); in testExtractRelativePath()
551 extractRelativePath(prefix + "DCIM/My Vacation/foo.jpg")); in testExtractRelativePath()
553 extractRelativePath(prefix + "DCIM/../Pictures/.//foo.jpg")); in testExtractRelativePath()
555 extractRelativePath(prefix + "DCIM/Pictures/./..//..////foo.jpg")); in testExtractRelativePath()
557 extractRelativePath(prefix + "DCIM/foo.jpg/.//../../Android/data/poc")); in testExtractRelativePath()
560 assertEquals(null, extractRelativePath("/sdcard/\\\u0000")); in testExtractRelativePath()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java746 public static @Nullable String extractRelativePath(@Nullable String data) { in extractRelativePath() method in Helpers
DDownloadProvider.java1003 mediaValues.put(MediaStore.Downloads.RELATIVE_PATH, Helpers.extractRelativePath(filePath)); in convertToMediaProviderValues()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java21 import static com.android.providers.media.util.FileUtils.extractRelativePath;
1479 final String relativePath = extractRelativePath(audio.getAbsolutePath()); in testQueryAudioViewsNoItemWithColumn()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java140 import static com.android.providers.media.util.FileUtils.extractRelativePath;
3531 final String[] oldRelativePath = sanitizePath(extractRelativePath(oldPath)); in renameForFuse()
3532 final String[] newRelativePath = sanitizePath(extractRelativePath(newPath)); in renameForFuse()
4677 relativePaths.add(extractRelativePath(values.getAsString(MediaColumns.DATA))); in assertPrivatePathNotInValues()
4840 values.put(FileColumns.RELATIVE_PATH, extractRelativePath(path)); in insertDirectory()
10252 values.put(FileColumns.RELATIVE_PATH, extractRelativePath(path));
10541 final String[] relativePath = sanitizePath(extractRelativePath(path));
DTranscodeHelperImpl.java852 final String relativePath = FileUtils.extractRelativePath(path); in supportsTranscode()