Home
last modified time | relevance | path

Searched refs:directoryPath (Results 1 – 2 of 2) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java1111 public static @Nullable String extractRelativePathForDirectory(@Nullable String directoryPath) {
1112 if (directoryPath == null) return null;
1114 if (directoryPath.equals("/storage/emulated") ||
1115 directoryPath.equals("/storage/emulated/")) {
1124 if (!directoryPath.endsWith("/")) {
1126 directoryPath += "/";
1129 final Matcher matcher = PATTERN_RELATIVE_PATH.matcher(directoryPath);
1131 if (matcher.end() == directoryPath.length()) {
1135 return directoryPath.substring(matcher.end());
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java1270 private static void assertRelativePathForDirectory(String directoryPath, String relativePath) { in assertRelativePathForDirectory() argument
1271 assertWithMessage("extractRelativePathForDirectory(" + directoryPath + ") :") in assertRelativePathForDirectory()
1272 .that(extractRelativePathForDirectory(directoryPath)) in assertRelativePathForDirectory()