summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorSudheer Shanka <sudheersai@google.com>2019-01-29 17:41:15 -0800
committerSudheer Shanka <sudheersai@google.com>2019-01-29 19:09:26 -0800
commit684c02a77303cbef162102c4d1210621a67849d5 (patch)
treee402e345830ee7b01d296121cf64c5bd78c8f966 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parentf43f624efb18dd1d6c9100cf585437e7d6d9850c (diff)
Don't ignore COLUMN_MEDIA_SCANNED values from caller.
Right now, DownloadProvider only uses the COLUMN_MEDIA_SCANNED value if it is coming from addCompletedDownload and for the rest of the requests, it ignores the incoming COLUMN_MEDIA_SCANNED value and always invokes mediascanner. This is not what the documentation says. For e.g., if the caller uses DownloadManager.setDestinationUri() API, then unless otherwise specified, the download doesn't need to be mediascanned. Also, since we are inserting user visible downloads to MediaProvider, use that info to populate the COLUMN_MEDIAPROVIDER_URI column as well and update DownloadProvider to not invoke MediaScanner. Bug: 123440050 Test: atest DownloadProviderTests Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore* Change-Id: I65ccae672eabe2efd5132d4b105c18bb591379fc
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions