Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java19 import static android.provider.MediaStore.Downloads.isDownload;
521 assertTrue(isDownload("/storage/emulated/0/Download/colors.png")); in testIsDownload()
522 assertTrue(isDownload("/storage/emulated/0/Download/test.pdf")); in testIsDownload()
523 assertTrue(isDownload("/storage/emulated/0/Download/dir/foo.mp4")); in testIsDownload()
524 assertTrue(isDownload("/storage/0000-0000/Download/foo.txt")); in testIsDownload()
525 assertTrue(isDownload( in testIsDownload()
527 assertTrue(isDownload( in testIsDownload()
529 assertTrue(isDownload( in testIsDownload()
531 assertTrue(isDownload( in testIsDownload()
535 assertFalse(isDownload("/storage/emulated/0/Pictures/colors.png")); in testIsDownload()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java27 import static android.provider.MediaStore.Downloads.isDownload;
2272 values.put(FileColumns.IS_DOWNLOAD, isDownload(path)); in insertDirectory()
2884 if (path != null && isDownload(path)) { in maybeMarkAsDownload()
3012 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3076 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3156 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3191 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3223 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3236 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3984 final int isDownload = c.getInt(3); in deleteInternal() local
[all …]