Searched refs:directoryPath (Results 1 – 2 of 2) sorted by relevance
1111 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());
1270 private static void assertRelativePathForDirectory(String directoryPath, String relativePath) { in assertRelativePathForDirectory() argument1271 assertWithMessage("extractRelativePathForDirectory(" + directoryPath + ") :") in assertRelativePathForDirectory()1272 .that(extractRelativePathForDirectory(directoryPath)) in assertRelativePathForDirectory()