Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java1196 static boolean isExternalMediaDirectory(@NonNull String path, String crossUserRoot) {
1205 if (!TextUtils.isEmpty(crossUserRoot)) {
1206 return StringUtils.startsWithIgnoreCase(relativePath, crossUserRoot + "/Android/media");
1272 static String extractTopLevelDir(String[] relativePathSegments, String crossUserRoot) {
1276 if (crossUserRoot != null && crossUserRoot.equals(topLevelDir)) {
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DFileUtilsTest.java606 final String crossUserRoot = SystemProperties.get("external_storage.cross_user.root", null); in testExtractTopLevelDirForCrossUser() local
607 Assume.assumeFalse(TextUtils.isEmpty(crossUserRoot)); in testExtractTopLevelDirForCrossUser()
621 extractTopLevelDir(prefix + crossUserRoot + "/foo.jpg")); in testExtractTopLevelDirForCrossUser()
623 extractTopLevelDir(prefix + crossUserRoot + "/DCIM/foo.jpg")); in testExtractTopLevelDirForCrossUser()
625 extractTopLevelDir(prefix + crossUserRoot + "/DCIM/My Vacation/foo.jpg")); in testExtractTopLevelDirForCrossUser()