Commit Graph

15696 Commits

Author SHA1 Message Date
Sudheer Shanka
b1d710c9e4 Merge "Don't use linked mediastore uris in DownloadProvider operations." into qt-dev am: 4344e7c721
am: d8e1bc5fc3

Change-Id: I269490094c08c2890dc46ee0e3250c6d16120ecf
2019-05-22 05:51:13 -07:00
Felipe Leme
3d558a409d Merge "Minor improvements on voice interaction workflows." into qt-dev am: 7aa28bd502
am: 729b6b43ad

Change-Id: Icb11a14839a4848547d9b4bbbd05612ba2347109
2019-05-22 04:14:46 -07:00
Sudheer Shanka
d8e1bc5fc3 Merge "Don't use linked mediastore uris in DownloadProvider operations." into qt-dev
am: 4344e7c721

Change-Id: I912be1f21f44fe1959a67c76d175b77b055b2700
2019-05-21 22:32:21 -07:00
Sudheer Shanka
4344e7c721 Merge "Don't use linked mediastore uris in DownloadProvider operations." into qt-dev 2019-05-22 02:20:08 +00:00
Felipe Leme
729b6b43ad Merge "Minor improvements on voice interaction workflows." into qt-dev
am: 7aa28bd502

Change-Id: I5a3efbb5f90d576f467b1d9dcbc83d168cc05f24
2019-05-21 17:37:07 -07:00
TreeHugger Robot
7aa28bd502 Merge "Minor improvements on voice interaction workflows." into qt-dev 2019-05-21 21:05:41 +00:00
Issei Suzuki
f79caa5307 Merge "Synchronize bubble activity rendering status and its visibility change." into qt-r1-dev
am: 08b7be8843

Change-Id: Icbe900fab13c5fd717ccae38c812f03bea8ee143
2019-05-21 11:57:00 -07:00
Sudheer Shanka
1b817f65db Don't use linked mediastore uris in DownloadProvider operations.
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: I4885f5a0ae0b3ab660426605a8a43b8c1d66a4c7
2019-05-21 10:21:43 -07:00
Issei Suzuki
cac2a50465 Synchronize bubble activity rendering status and its visibility change.
- Add an API ITaskStackListener.onSingleTaskDisplayDrawn() to notifity contents
  are drawn for the first time on a display which can only contain one task.
- BubbleController updates contents visibility (actually alpha value) of
  the Surface in a ActivityView.

Bug: 130442248
Test: atest WmTests:TaskStackChangedListenerTest
Change-Id: Ie5aed373996419b059935889b564ca91c2e3cf23
2019-05-21 13:23:41 +08:00
Winson
5639e2cf29 Merge "Force system ApplicationInfo update and notify DisplayManager" into qt-dev am: 70e0438d59
am: ad982e23cc

Change-Id: I8e2d8de5899970353bf90a769ed92bccd188626d
2019-05-20 14:42:05 -07:00
TreeHugger Robot
70e0438d59 Merge "Force system ApplicationInfo update and notify DisplayManager" into qt-dev 2019-05-20 19:12:20 +00:00
Mark Renouf
fb9e35db21 Merge "Adds setCornerRadius to ActivityView & SurfaceView" into qt-dev am: b46293f8f6
am: 8cce984f02

Change-Id: I505f07bca9b1f8bf80c75abe2cf2f10248b8b9b1
2019-05-20 10:44:30 -07:00
TreeHugger Robot
b46293f8f6 Merge "Adds setCornerRadius to ActivityView & SurfaceView" into qt-dev 2019-05-20 16:30:20 +00:00
Philip P. Moltmann
1461266a01 Merge "Whitelist all perms on installExistingPackage" into qt-dev am: 4f09b09f62
am: 55dc51e9ab

Change-Id: Ic1a680f6ce0d7218040f13b44bb42b31f8204793
2019-05-17 13:39:25 -07:00
Philip P. Moltmann
4f09b09f62 Merge "Whitelist all perms on installExistingPackage" into qt-dev 2019-05-17 19:56:19 +00:00
Mark Renouf
34d04f36c3 Adds setCornerRadius to ActivityView & SurfaceView
Applies corner radius to Bubbles when expanded, based on
dialogCornerRadius theme attribute.

Test: manual -- Enable Bubbles, add one and expand, observe corners
Bug: 123545569
Change-Id: I88162a974534786b4ac8bed4e0fa1302bded9096
2019-05-16 11:22:25 -04:00
Rubin Xu
15fcca9cf5 Merge "Do not compare ID when deduplicating SecurityEvent" into qt-dev am: 8c10c28673
am: 870c6e846c

Change-Id: I818f66d0c4dc1a3c96cf9de3f781e01bb0943b15
2019-05-16 07:36:38 -07:00
Michael Wachenschwanz
b368a162b1 Merge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev am: a324083f3d
am: 92b6c29858

Change-Id: Idef9793bfbefa1b4a41c9b62b48c35de3202bd41
2019-05-16 07:26:04 -07:00
Rubin Xu
8c10c28673 Merge "Do not compare ID when deduplicating SecurityEvent" into qt-dev 2019-05-16 11:17:48 +00:00
Michael Wachenschwanz
a324083f3d Merge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev 2019-05-16 06:18:48 +00:00
Ian Pedowitz
c3d6694ec7 Merge "Revert "Revert "Remove deprecated System APIs added in Q.""" into qt-dev
am: 3bd719b534

Change-Id: I75ac2a3f5b4dda3da0000b497b49a941e0fdd839
2019-05-15 18:14:12 -07:00
Felipe Leme
ada5184574 Minor improvements on voice interaction workflows.
Bug: 131411751
Fixes: 132783948

Test: atest CtsVoiceInteractionTestCases CtsAssistTestCases

Change-Id: I28c8577caa35a783863f4313487c6e9b9abc8ff2
2019-05-15 22:40:38 +00:00
Philip P. Moltmann
a4bd150588 Whitelist all perms on installExistingPackage
The code allows to also whitelist only a select set of permissions, but
this is not yet exposed in the API.

Also: Fix up shell commands for restricted permissions

Fixes: 132368462
Test: - Enabled app via device admin in secondary profile
        -> verified that permissions were whitelisted
      - Installed existing and new app using --restrictpermissions and
        not
	-> verified that permissions were whitelisted or not
      atest AppRestrictionsHelperTest
            RestrictedPermissionsTest
Change-Id: I9cd76c555b40663f2e25ad86e8a54991baae346c
Merged-In: I9787e63d8beb8f6b1ba2d15532d4c0f69dbdf863
2019-05-15 11:09:45 -07:00
Rubin Xu
17d08f474c Do not compare ID when deduplicating SecurityEvent
Two SecurityEvents should be considered identical as long as
their event content equals, disregarding the id field.

Test: manual
Change-Id: I811f9a104ed3a0d9e02991aeb9e3653c5c02efc3
Fix: 132367517
2019-05-15 17:39:46 +01:00
Ian Pedowitz
3bd719b534 Merge "Revert "Revert "Remove deprecated System APIs added in Q.""" into qt-dev 2019-05-15 16:28:54 +00:00
Lei Yu
fcde0225e6 Merge "Use merged NetworkTemplate to query data usage" into qt-dev
am: 35fcd6b0e3

Change-Id: I1030f49eb9e24ad8bc4a10c3ab8890c34d20f8f6
2019-05-14 17:51:03 -07:00
Lei Yu
35fcd6b0e3 Merge "Use merged NetworkTemplate to query data usage" into qt-dev 2019-05-15 00:27:23 +00:00
Felipe Leme
69cd215add Merge "Fixed NPE on VoiceInteractor.destroy()" into qt-dev
am: aa6965983b

Change-Id: Ie61b20e6726e8c6d2bda92c65514d2e2f38213dd
2019-05-14 13:42:04 -07:00
TreeHugger Robot
aa6965983b Merge "Fixed NPE on VoiceInteractor.destroy()" into qt-dev 2019-05-14 20:27:44 +00:00
Felipe Leme
8092cdaeda Fixed NPE on VoiceInteractor.destroy()
Fixes: 131411751
Test: atest CtsVoiceInteractionTestCases # ran a few times on different devices, got no failures

Change-Id: I484db53772bf503f091f30f67ae92c8ae52d4105
2019-05-14 10:15:31 -07:00
Kweku Adams
ec114695bb Merge "Using ParceledListSlice to send large lists over Binder." into qt-dev
am: 3245017b87

Change-Id: If6de28dec87bb63bfa3329fb599164c0dc29a39f
2019-05-14 09:42:09 -07:00
TreeHugger Robot
3245017b87 Merge "Using ParceledListSlice to send large lists over Binder." into qt-dev 2019-05-14 16:25:28 +00:00
Suprabh Shukla
169bed7b7a Revert "Revert "Remove deprecated System APIs added in Q.""
This reverts commit 79a19effee.

Bug: 129975435
Change-Id: I113c87f8c0b7ab225e4b99ef2462ae12e199b816
2019-05-13 21:04:39 +00:00
Julia Tuttle
ba01cd11b6 Merge "Fix typo." into qt-dev
am: 2d976f9b3d

Change-Id: Ia9a534658e099b7bec121ce1f61c18b5650a4f00
2019-05-13 12:49:57 -07:00
TreeHugger Robot
2d976f9b3d Merge "Fix typo." into qt-dev 2019-05-13 19:31:34 +00:00
Lei Yu
c00a30eb8a Use merged NetworkTemplate to query data usage
This CL uses merged NetworkTemplate so that it shows correct
data for carrier which is a virtual that has multiple
subscriberId under the hood.

By doing this, this CL also adds several hidden API so settings
can query by NetworkTemplate directly.

Fixes: 120566366
Test: RunSettingsLibRoboTests
Change-Id: I8b747697933c75b48b14387adafb5ac9ca165926
2019-05-13 11:42:23 -07:00
Winson
4778632d30 DO NOT MERGE: Delete persisted historical app ops on package uninstall
am: 4e3b435c0e

Change-Id: I7228388fbd93e8554524f8ebed9372bbcaa0ad88
2019-05-10 18:47:35 -07:00
TreeHugger Robot
895d5c546c Merge "DO NOT MERGE: Delete persisted historical app ops on package uninstall" into qt-dev 2019-05-11 00:09:22 +00:00
Julia Tuttle
f4c92225a6 Merge "Clarify required/optional fields in BubbleMetadata." into qt-dev
am: 9af275a752

Change-Id: Ic23c6c52192a7c9598ae5a768511639a151baaeb
2019-05-10 16:24:34 -07:00
Winson
52a1044cd2 Merge "Document non-effective mode return of AppOps batch fetch" into qt-dev
am: 1a91f0ddf3

Change-Id: I8f63a1a0516beb0b45ef9f94ff1fb11c3221da3d
2019-05-10 16:08:33 -07:00
TreeHugger Robot
9af275a752 Merge "Clarify required/optional fields in BubbleMetadata." into qt-dev 2019-05-10 22:22:37 +00:00
TreeHugger Robot
1a91f0ddf3 Merge "Document non-effective mode return of AppOps batch fetch" into qt-dev 2019-05-10 21:25:32 +00:00
Michael Wachenschwanz
d1e659be25 Clarify UsageStatsManager#queryUsageStats behavior
Fixes: 67037735
Test: n/a
Change-Id: I02f90f9ae93257dbe883710288a7a35ba87e1f26
2019-05-10 14:20:32 -07:00
Winson
6d9c83fdb9 Merge "Null check ApplicationInfo for ApplicationPackageManager#loadUnbadgedItemIcon" into qt-dev
am: 04d00184cc

Change-Id: I7e236108ec5c8ecb6454b33e2045043c2a802e79
2019-05-10 12:32:40 -07:00
Winson
4e3b435c0e DO NOT MERGE: Delete persisted historical app ops on package uninstall
They're removed from the current state, but not the persisted state.

This adds HistoricalRegistry#clearHistoryForPackage which reads the
disk state, strips the corresponding UID/package, and re-writes
to disk.

Bug: 129796626

Test: manual test app with location access
Test: atest AppOpsServiceTest#testPackageRemovedHistoricalOps

Change-Id: I8daa2e3474b400a3789b2eaf178441c6d1578af1
2019-05-10 19:24:02 +00:00
TreeHugger Robot
04d00184cc Merge "Null check ApplicationInfo for ApplicationPackageManager#loadUnbadgedItemIcon" into qt-dev 2019-05-10 18:46:49 +00:00
Winson
6a864b55d0 Document non-effective mode return of AppOps batch fetch
The getPackagesForOps and getOpsForPackage APIs don't convert the
mode of the return ops to their effective state, which isn't obvious.

Bug: 119281847

Test: none necessary

Change-Id: I60dd26ab771e73f2893981550a71cdaa353056c2
2019-05-10 10:58:52 -07:00
Julia Tuttle
d9f4835edb Clarify required/optional fields in BubbleMetadata.
Bug: 130427148
Test: make docs, examine out/
Change-Id: I8def5c4481be881784fb656ca77917eb9834eb79
2019-05-10 13:52:03 -04:00
Beth Thibodeau
f14b9b8eb0 Merge "Fix progress bar color in foreground notifications" into qt-dev
am: 6b8db61901

Change-Id: I33c01bf4017764fee9b14095eb1da6ecfb6ab073
2019-05-10 06:30:22 -07:00
Beth Thibodeau
6b8db61901 Merge "Fix progress bar color in foreground notifications" into qt-dev 2019-05-10 13:05:37 +00:00