Home
last modified time | relevance | path

Searched refs:isDownload (Results 1 – 5 of 5) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java23 import static com.android.providers.media.util.FileUtils.isDownload;
1178 assertTrue(isDownload("/storage/emulated/0/Download/colors.png")); in testIsDownload()
1179 assertTrue(isDownload("/storage/emulated/0/Download/test.pdf")); in testIsDownload()
1180 assertTrue(isDownload("/storage/emulated/0/Download/dir/foo.mp4")); in testIsDownload()
1181 assertTrue(isDownload("/storage/0000-0000/Download/foo.txt")); in testIsDownload()
1183 assertFalse(isDownload("/storage/emulated/0/Pictures/colors.png")); in testIsDownload()
1184 assertFalse(isDownload("/storage/emulated/0/Pictures/Download/colors.png")); in testIsDownload()
1185 assertFalse(isDownload("/storage/emulated/0/Android/data/com.example/Download/foo.txt")); in testIsDownload()
1186 assertFalse(isDownload("/storage/emulated/0/Download")); in testIsDownload()
/packages/providers/MediaProvider/src/com/android/providers/media/dao/
DFileRow.java155 public boolean isDownload() { in isDownload() method in FileRow
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java150 import static com.android.providers.media.util.FileUtils.isDownload;
1001 insertedRow.getId(), insertedRow.getMediaType(), insertedRow.isDownload());
1034 final boolean isDownload = oldRow.isDownload() || newRow.isDownload();
1042 oldRow.getMediaType(), isDownload);
1066 newRow.getMediaType(), isDownload);
1085 deletedRow.getId(), deletedRow.getMediaType(), deletedRow.isDownload());
1095 deletedRow.getMediaType(), deletedRow.isDownload());
1162 long id, int mediaType, boolean isDownload) { in acceptWithExpansion() argument
1191 if (isDownload) { in acceptWithExpansion()
1203 id, mediaType, isDownload); in acceptWithExpansion()
[all …]
DDatabaseHelper.java386 final boolean isDownload = Integer.parseInt(split[3]) != 0; in onConfigure()
398 .setIsDownload(isDownload) in onConfigure()
485 final boolean isDownload = Integer.parseInt(split[3]) != 0; in onConfigure()
492 .setIsDownload(isDownload) in onConfigure()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java944 public static boolean isDownload(@NonNull String path) {