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;
2271 values.put(FileColumns.IS_DOWNLOAD, isDownload(path)); in insertDirectory()
2883 if (path != null && isDownload(path)) { in maybeMarkAsDownload()
3011 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3075 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3155 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3190 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3222 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3235 final boolean isDownload = maybeMarkAsDownload(initialValues); in insertInternal()
3983 final int isDownload = c.getInt(3); in deleteInternal() local
[all …]