Commit Graph

15677 Commits

Author SHA1 Message Date
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
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
Yiwei Zhang
5c33aeabb6 Merge "GpuStats: send a hint of activity launch to GraphicsEnvironment" into qt-dev
am: b137faed01

Change-Id: I4dc7cecee11739ab2ab15bb8a644e845963b6fbb
2019-05-09 23:56:35 -07:00
Yiwei Zhang
b137faed01 Merge "GpuStats: send a hint of activity launch to GraphicsEnvironment" into qt-dev 2019-05-09 23:45:47 +00:00
Sudheer Shanka
4824557746 Merge "Update behavior of setDestinationInExternalPublicDir()." into qt-dev
am: e2ce2e00ca

Change-Id: Ic6f4fb128f5b205f9d8b818c8448705799140651
2019-05-09 13:23:14 -07:00
Julia Tuttle
4f1bf20ba5 Fix typo.
Bug: 130427148
Test: just renaming a variable, still compiles
Change-Id: I6a3f6a8abebf0ccde53705e5b82fd11fa2f7bd51
2019-05-09 15:33:42 +00:00
Sudheer Shanka
e707ddc188 Update behavior of setDestinationInExternalPublicDir().
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: I059c0b19218e07c7813e23c6b2d414d0306434d5
2019-05-08 19:15:08 -07:00
Yiwei Zhang
e54faf5818 GpuStats: send a hint of activity launch to GraphicsEnvironment
USAP preloads the driver in usap pool, and those processes in the pool
are not bound with any applications. Previously we send GpuStats based
on the completion of driver loading. So with usap enabled, we won't be
able to receive stats for system built-in driver.

If we send the stats when all the existing stats fields are filled,
there will be tons of selinux violations, because those non app
processes are trying to send the stats as well.

So we end up sending the stats based on the hint of activity launch.

Bug: 131866357
Test: dumpsys gpu with enable/disable usap and check the selinux
Change-Id: I32fcc15aeba2f2e89ba6dd9deae2c27187d2071e
2019-05-08 18:43:11 -07:00
Beth Thibodeau
38275c3963 Fix progress bar color in foreground notifications
Progress bar color for colorized foreground notifications should be
based on the text color instead

Fixes: 111839310
Test: visual
Change-Id: I17838f8c1c29637914d4cae0aaa5b9d8db263590
2019-05-08 16:41:14 -04:00
Winson Chung
2d181c2f41 Merge "Ensure we only remove messages for the same app info" into qt-dev
am: a69375ec2e

Change-Id: I7b0de9f5b74c65fadac202835633a2f53e2b2a3b
2019-05-07 21:26:38 -07:00
Winson Chung
a69375ec2e Merge "Ensure we only remove messages for the same app info" into qt-dev 2019-05-08 03:52:59 +00:00
Winson Chung
6ee17428b6 Ensure we only remove messages for the same app info
Bug: 130151718
Bug: 132179354
Test: Switch between gesture nav modes, ensure that system and sysui are
      in the right state

Change-Id: I364d155292fc378af552b6ce9e6acca879224693
2019-05-07 13:32:23 -07:00
Kweku Adams
d1f4b90e28 Using ParceledListSlice to send large lists over Binder.
JobScheduler.getAllPendingJobs() and .getAllJobSnapshots() can
potentially contain enough data to exceed the Binder limit. Using a
ParceledListSlice will ensure the data can still be sent over Binder.

Bug: 70648761
Test: atest CtsJobSchedulerTestCases
Test: atest CtsBatterySavingTestCases
Change-Id: I79ea32eac56473ca996cc00312b30d0f72ce22c9
2019-05-07 12:33:43 -07:00
Winson
4160523864 Null check ApplicationInfo for ApplicationPackageManager#loadUnbadgedItemIcon
Broken by I55026af543ff71ac0d947159bc6aeb3b33f31271 which added a shortcut.
Really caused by the method not being annotated correctly so it was
non-obvious that the AppInfo could be null.

Bug: 132078158

Test: atest PackageItemInfoIconTest

Change-Id: Ifd2789a80d2dad86ba4e09b1d9220ecab5d612ec
2019-05-07 10:24:19 -07:00
Mark Renouf
5efa4f6a8b Merge "Adds OnBackPressedOnTaskRoot" into qt-dev
am: 1eb6476824

Change-Id: Ida2fb1f127e9693788882fe90e094473ddbd3ffa
2019-05-07 09:24:47 -07:00
Mark Renouf
1eb6476824 Merge "Adds OnBackPressedOnTaskRoot" into qt-dev 2019-05-07 16:10:12 +00:00
Mark Renouf
446251dc52 Adds OnBackPressedOnTaskRoot
This allows Bubbles to be collapsed instead of finished
when there is only one activity in the stack.

Bug: 126852149
Test: launch activity, press back
Change-Id: Iad8db0549853e3f385d54fc6b6cea5e502d37139
2019-05-07 10:00:07 -04:00
Tim Murray
9f0fd8c1ce Revert "Add optional reasons why permissions were denied"
am: d06c6d2932

Change-Id: I5f0d60ebdea3170f0c0769c8909e91b56b2848d9
2019-05-07 02:36:00 -07:00
Tim Murray
d06c6d2932 Revert "Add optional reasons why permissions were denied"
This reverts commit 3623f3219e.

Reason for revert: 40% startup perf regression

Test: revert
Bug 132129453
Exempt-From-Owner-Approval: critical revert

Change-Id: I19dc33e6a71c9254b4096154f4089c059fe408dd
2019-05-07 07:10:30 +00:00
Makoto Onuki
6b58683047 Merge "Remove (old) STOPSHIP" into qt-dev
am: 772c69bdd3

Change-Id: I857068d07d1cc984e8e447789fee6dbf97f9b1de
2019-05-06 10:17:46 -07:00