Home
last modified time | relevance | path

Searched refs:startsWithIgnoreCase (Results 1 – 7 of 7) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DStringUtilsTest.java20 import static com.android.providers.media.util.StringUtils.startsWithIgnoreCase;
51 assertTrue(startsWithIgnoreCase("image/jpg", "image/")); in testStartsWithIgnoreCase()
52 assertTrue(startsWithIgnoreCase("Image/Jpg", "image/")); in testStartsWithIgnoreCase()
54 assertFalse(startsWithIgnoreCase("image/", "image/jpg")); in testStartsWithIgnoreCase()
56 assertFalse(startsWithIgnoreCase("image/jpg", "audio/")); in testStartsWithIgnoreCase()
57 assertFalse(startsWithIgnoreCase("image/jpg", null)); in testStartsWithIgnoreCase()
58 assertFalse(startsWithIgnoreCase(null, "audio/")); in testStartsWithIgnoreCase()
59 assertFalse(startsWithIgnoreCase(null, null)); in testStartsWithIgnoreCase()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DMimeUtils.java108 return StringUtils.startsWithIgnoreCase(mimeType, "audio/"); in isAudioMimeType()
113 return StringUtils.startsWithIgnoreCase(mimeType, "video/"); in isVideoMimeType()
128 return StringUtils.startsWithIgnoreCase(mimeType, "image/"); in isImageMimeType()
184 if (StringUtils.startsWithIgnoreCase(mimeType, "text/")) return true; in isDocumentMimeType()
DStringUtils.java69 public static boolean startsWithIgnoreCase(@Nullable String target, @Nullable String other) { in startsWithIgnoreCase() method in StringUtils
DFileUtils.java1202 if (StringUtils.startsWithIgnoreCase(relativePath, "Android/media")) {
1206 return StringUtils.startsWithIgnoreCase(relativePath, crossUserRoot + "/Android/media");
/packages/providers/MediaProvider/tools/photopicker-gradle/app/src/main/java/com/android/providers/media/tools/photopicker/
DPhotoPickerToolActivity.java299 return startsWithIgnoreCase(mimeType, "video/"); in isVideoMimeType()
305 private static boolean startsWithIgnoreCase(@Nullable String target, @Nullable String other) { in startsWithIgnoreCase() method in PhotoPickerToolActivity
/packages/providers/MediaProvider/tools/photopicker/src/com/android/providers/media/tools/photopicker/
DPhotoPickerToolActivity.java354 return startsWithIgnoreCase(mimeType, "video/"); in isVideoMimeType()
360 private static boolean startsWithIgnoreCase(@Nullable String target, @Nullable String other) { in startsWithIgnoreCase() method in PhotoPickerToolActivity
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java2984 StringUtils.startsWithIgnoreCase(mimeType, supportedPrimaryMimeType)); in isMimeTypeSupportedInPath()
9026 && StringUtils.startsWithIgnoreCase(mimeTypeFilter, "image/");