summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * | | | | Merge "Trigger mediascan after a download is completed." into qt-devbsears2019-08-012-0/+11
| | | |\ \ \ \ \
| | | | * | | | | Trigger mediascan after a download is completed.Sudheer Shanka2019-07-312-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a media item is inserted, media_type will be automatically updated but some of the other media attributes will only be updated after a media scan. Bug: 138419471 Test: manual Test: atest DownloadProviderTests Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java Change-Id: If8192b31fb7da37425480e7afa53dd1304533b76
* | | | | | | | | Snap for 5760827 from d799e0fe6c402d03160322977fdc3059a312d8ab to ↵android-build-team Robot2019-07-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: I7ae9c33597310aef1d60557d784148e2a4472b54
| * | | | | | | | [automerger skipped] Import translations. DO NOT MERGEBill Yi2019-07-240-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 61f1c5a1ba -s ours am skip reason: subject contains skip directive Change-Id: Ibfc8a581b1c1e12c9335eb485a888fea6f127c18
| | * | | | | | | Import translations. DO NOT MERGEBill Yi2019-07-241-2/+2
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: Ifcf4d278763f447d7cb5adb0fc6c4cb33110c3f0
* | | | | | | | Snap for 5730547 from 49ffd31dc3ab329e1b06d4f64fc824ca136c37f6 to ↵android-build-team Robot2019-07-165-40/+40
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: Ibd3603b58ca93b29c68ebd4a3a97a7b1599dc6c3
| * | | | | | | Import translations. DO NOT MERGEBill Yi2019-07-145-40/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: Ie766048fd98383e9815d408aad6e9ba4a59841cd
* | | | | | | | Snap for 5713042 from bfec3085e848dbf3c08a33b5ca640a67f2625a0f to ↵android-build-team Robot2019-07-092-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: I6ebfe4503f7717b572581bd8555c5964d65dd86b
| * | | | | | | Set FGS priority for download jobs with visible notifications.Sudheer Shanka2019-07-082-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bb4439869f Change-Id: I82e9cbed762f2e8917cbef6009d9d7653e88ae9a
| | * | | | | | Set FGS priority for download jobs with visible notifications.Sudheer Shanka2019-07-032-1/+2
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is what DownloadProvider used to do pre-Q using PRIORITY_FOREGROUND_APP but in Q, we added a new priority to denote FGS but DownloadProvider was still using PRIORITY_FOREGROUND_APP which is now considered a lower priority than FGS and some jobs are getting preempted unnecessarily. So, update DownloadProvider to mark download jobs with FGS priority instead of BFGS priority. This still has some issues but at least this will be kind of reverting DownloadProvider to its pre-Q behavior. Bug: 135982638 Test: manual - Go through DO provisioning a few times and check admin app can be successfully downloaded. Test: atest DownloadProviderTests Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java Change-Id: I020e366845d768da271b860a7ace91318e67d8ae
* | | | | | | Snap for 5691478 from 2071933e6a25d5dbaa3b85a6bf0c79211373be6b to ↵android-build-team Robot2019-06-270-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: Iaea4847920c2a970882d5066aee2c8814c6957d9
| * | | | | | [automerger skipped] Import translations. DO NOT MERGEBill Yi2019-06-250-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f52b0bd3df -s ours am skip reason: subject contains skip directive Change-Id: Ieddf3ab5f63f6572eb23858a98f054e46753bf0e
| | * | | | | Import translations. DO NOT MERGEBill Yi2019-06-253-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: Ide5c53d86bdaa894b17f6820fa3ebf7dc34db424
* | | | | | | Snap for 5688259 from ee2be9caaaabc99e4fdba272168b166c4ea9a9fa to ↵android-build-team Robot2019-06-263-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: I7751ca2dc1198ac5e7cffc5f7420092f855d7a0f
| * | | | | | Import translations. DO NOT MERGEBill Yi2019-06-253-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: Ice58e55ddb5d458c12c7c2d43975cfdb74239aa6
* | | | | | | Snap for 5671249 from 6f5e17445781694a22ad63b5b9d840796c9cf431 to ↵android-build-team Robot2019-06-196-1/+34
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: I8886bdb3405620bf489e74fca4a5cad96995958f
| * | | | | | Whitelist DownloadManager.ACTION_NOTIFICATION_CLICKED broadcast for ↵Michal Karpinski2019-06-186-1/+34
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | background activity starts am: 45bab8a520 Change-Id: I1ec75e310970b26cf6bf18249e79d2a743003d88
| | * | | | | Whitelist DownloadManager.ACTION_NOTIFICATION_CLICKED broadcastMichal Karpinski2019-06-186-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for background activity starts When the DownloadManager download notification is clicked, that broadcast is sent to an app, and the app should be able to open activities from bg for its duration. Bug: 135515407 Test: com.android.providers.downloads.PublicApiFunctionalTest#testNotificationClickedBroadcast Test: manual Change-Id: Ic1691f5bda890ceb2938ac76f4ca2a4c7e7a1160
* | | | | | | Snap for 5663715 from 86608d1b8712c93dc06ae533051099231ddab46c to ↵android-build-team Robot2019-06-1510-20/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: Ib23734e55e3c228cd55742cd41825aa6d15f51e6
| * | | | | | Merge "Delegate deletion of mediaprovider downloads to FileSystemProvider." ↵Sudheer Shanka2019-06-141-10/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into qt-dev am: c2dc83fb4c Change-Id: I811574ad96e5525ac76918efdff3293881f0404b
| | * | | | | Merge "Delegate deletion of mediaprovider downloads to FileSystemProvider." ↵Sudheer Shanka2019-06-141-10/+2
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | into qt-dev
| | | * | | | | Delegate deletion of mediaprovider downloads to FileSystemProvider.Sudheer Shanka2019-06-131-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using ContentResolver.delete() directly on MediaProvider doesn't work for uris corresponding to directories. For now, delegate this deletion to FileSystemProvider which will try deleting all entries regex-matching the file path. Bug: 135031305 Test: manual Change-Id: Iac18d0fd0be05758aaf2c03971d716592d96699b
| * | | | | | | Merge "Import translations. DO NOT MERGE" into qt-r1-devTreeHugger Robot2019-06-149-10/+10
| |\ \ \ \ \ \ \
| | * | | | | | | Import translations. DO NOT MERGEBill Yi2019-06-139-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: I016980d27b2f13f5a05ce5a7798b3911af0a342a
| * | | | | | | | [automerger skipped] Import translations. DO NOT MERGE am: 00cced240d -s oursBill Yi2019-06-140-0/+0
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| / / / / / / | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | am: 1a7a0ecbc4 -s ours am skip reason: subject contains skip directive Change-Id: Iacb8a7ec806f53fdf2179313af7730f588bffa04
| | * | | | | | [automerger skipped] Import translations. DO NOT MERGEBill Yi2019-06-140-0/+0
| | |\ \ \ \ \ \ | | | |/ / / / / | | |/| / / / / | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | am: 00cced240d -s ours am skip reason: subject contains skip directive Change-Id: I43d16ab9ca453633ff0aefd1b226c7b62a067052
| | | * | | | Import translations. DO NOT MERGEBill Yi2019-06-1320-41/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: I7e105e0b1484a04abdba3f72bcc140ff6f3480e3
* | | | | | | Snap for 5645956 from ce228d74763e32477003c65dfb5ec42f25f6cc48 to ↵android-build-team Robot2019-06-090-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: Ic9bf917a31357bcb16d8570f40b7e693bfdab2cb
| * | | | | | [automerger skipped] Import translations. DO NOT MERGEBill Yi2019-06-090-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f66042e2d0 -s ours am skip reason: subject contains skip directive Change-Id: Id37fe9bd3096a9c497126a6f7dbe869b1fe560d4
| | * | | | | Import translations. DO NOT MERGEBill Yi2019-06-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: Iee77bf7755e593379fa2b004d916fcb71aa9b3c0
* | | | | | | Snap for 5616725 from 24928d930e70185179e5c6ae078b00608fbd9ba4 to ↵android-build-team Robot2019-05-301-1/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: I60cd0d07f641a4ce5055961dd8685b35f292855a
| * | | | | | Merge "Delete entries of uninstalled pkgs which haven't started ↵Sudheer Shanka2019-05-291-1/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | downloading." into qt-dev am: 1ab3616ee2 Change-Id: I285dde017e503bf2348256cde44e9eeb82f8d1be
| | * | | | | Merge "Delete entries of uninstalled pkgs which haven't started ↵TreeHugger Robot2019-05-291-1/+4
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | downloading." into qt-dev
| | | * | | | | Delete entries of uninstalled pkgs which haven't started downloading.Sudheer Shanka2019-05-291-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: 133741222 Test: manual Test: atest DownloadProviderTests Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java Change-Id: I00796e5ff8e9b30d153490f997fb7c776b600e57
* | | | | | | | Snap for 5606001 from c60322906062762b3ba87a7149d489f96b6d7bc2 to ↵android-build-team Robot2019-05-250-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: I9b7d7742d40041f625857d5515c228b0c30a0704
| * | | | | | | [automerger skipped] Import translations. DO NOT MERGEBill Yi2019-05-240-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 36432867c1 -s ours am skip reason: subject contains skip directive Change-Id: I8daa5eb5ace287c27b2bd27ae069686e23439ba7
| | * | | | | | Import translations. DO NOT MERGEBill Yi2019-05-247-8/+8
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: If8e7af64199b4c977195c4ee66919aa9045580b0
* | | | | | | Snap for 5595555 from f2ac1e336e3f34b5ae6a528f0931e6aa237f3979 to ↵android-build-team Robot2019-05-232-188/+78
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: I3bdd7fe6ce49bac4626a5d69669d69bcc6f27133
| * | | | | | Merge "Don't use linked mediastore uris in DownloadProvider operations." ↵Sudheer Shanka2019-05-212-188/+78
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into qt-dev am: 7221fab459 Change-Id: If2798954f856ad280c147d252fd2f3d1c955de17
| | * | | | | Merge "Don't use linked mediastore uris in DownloadProvider operations." ↵Sudheer Shanka2019-05-222-188/+78
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | into qt-dev
| | | * | | | | Don't use linked mediastore uris in DownloadProvider operations.Sudheer Shanka2019-05-212-188/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When MediaProvider db gets recreated, all the media content ids get renumbered. It's possible that when DownloadProvider is trying to delete an entry, it is holding onto a invalid mediastore uri. So, don't use linked mediastore uris in DownloadProvider operations. Also, revoke any prior uri grants of media content from DownloadStorageProvider. Bug: 132087334 Test: manual Test: atest DownloadProviderTests Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/AppSecurityTests.java Change-Id: If6fb479da7e937ecdfa23136811f3456f7bcd75c
* | | | | | | | Snap for 5591454 from 27e60ccf09da043e5cd1ecd7242fc35e0d138856 to ↵android-build-team Robot2019-05-221-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: If4c3be9190eec7cc809a3b017fae8bc6378561ac
| * | | | | | | Update DownloadStorageProvider for trailing '/' in RELATIVE_PATHshafik2019-05-211-2/+2
| |\| | | | | | | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | am: 333602c3ab Change-Id: I3a573cfd4cd1dc8dfed3ef949eee965527a337f3
| | * | | | | Update DownloadStorageProvider for trailing '/' in RELATIVE_PATHshafik2019-05-211-2/+2
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add trailing '/' to RELATIVE_PATH selection args in db queries. Test: atest --test-mapping packages/providers/MediaProvider Bug:132631113 Change-Id: Ib8887dbb0e49dc76df6e4292d36e8f5948f256c5
* | | | | | Snap for 5582435 from d79866aadd52570901ad49a2d73097e7878fef31 to ↵android-build-team Robot2019-05-184-14/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: I6e53f3b357869bde10ff73567ed607f28e296509
* | | | | | Allow files to be created under download dirs from MediaStore.Sudheer Shanka2019-05-141-3/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d79866aadd Change-Id: I60e28e1e25a085c1615e894bc2558a48c14d1fb4
| * | | | | Allow files to be created under download dirs from MediaStore.Sudheer Shanka2019-05-131-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, allow files to be renamed if they are not in pending state and trigger a media scan when a new file is created. Bug: 127844893 Bug: 127802924 Test: manual Change-Id: Iec14c5d349930c5fae54ac3346ee5cf11fcda387
* | | | | | Update behavior of setDestinationInExternalPublicDir().Sudheer Shanka2019-05-094-106/+157
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 8d7668ae0d Change-Id: I0e43ddb0d59c10e77aa84056ed023750c90ad63b
| * | | | | Update behavior of setDestinationInExternalPublicDir().Sudheer Shanka2019-05-094-106/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow apps to use DownloadManager for downloading files into known public dirs other than "Download" but don't include them as part of Downloads collection. Bug: 132136431 Test: manual Test: atest DownloadProviderTests Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java Change-Id: I62d4f810c71c9231e2b6d8e276a0a1e326382e14
* | | | | | Merge "Don't log when checking if a filepath belongs to certain dirs." into ↵Sudheer Shanka2019-05-072-4/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-dev am: fd26f316f0 Change-Id: I3a23566d35d63b7227c02c82b64f4fc508670a89