Commit Graph

17525 Commits

Author SHA1 Message Date
Automerger Merge Worker
9fb5b68c05 Increase test coverage for NotificationChannel am: 8cfe3433f9 am: 578273355b am: b86d15849d am: 4a9d70751d
Change-Id: I09a1a5c74b6bd982f0b8354a771d909e0ffacaea
2020-03-11 21:12:27 +00:00
Automerger Merge Worker
578273355b Increase test coverage for NotificationChannel am: 8cfe3433f9
Change-Id: I6e7bae49c70534dd5fac3f720b87407ecda425b4
2020-03-11 20:11:41 +00:00
Automerger Merge Worker
b8f156ee60 Merge "Allow to exempt apps from restrictions to RECORD_AUDIO" into rvc-dev am: 093ba7e506 am: cb4312c600 am: 29f553416e am: b4b5fbf5b2
Change-Id: I1479544b11f5da852fd1f9b88f26fc408006a68d
2020-03-11 20:06:54 +00:00
Automerger Merge Worker
29f553416e Merge "Allow to exempt apps from restrictions to RECORD_AUDIO" into rvc-dev am: 093ba7e506 am: cb4312c600
Change-Id: Idd343b6025b99002b5c67d27fcb93a59838e8d83
2020-03-11 16:35:53 +00:00
Automerger Merge Worker
d06fe05225 Merge "Allow to exempt apps from restrictions to RECORD_AUDIO" into rvc-dev am: 093ba7e506
Change-Id: I5978cc85b30a8dba9a7b51323c72d1600e26c76e
2020-03-11 16:23:32 +00:00
Philip P. Moltmann
093ba7e506 Merge "Allow to exempt apps from restrictions to RECORD_AUDIO" into rvc-dev 2020-03-11 16:11:16 +00:00
Automerger Merge Worker
a25b14c80e Merge "Merge "Always notify SystemUI when launching activity to existing task" into rvc-dev am: cfdd34adab am: 0dfbd837a7" into rvc-d1-dev-plus-aosp am: 1dc59bdeca am: b74860d4d1
Change-Id: Icf4489e7990511959f487e17006f22c8df07eee0
2020-03-11 03:44:53 +00:00
Automerger Merge Worker
0dfbd837a7 Merge "Always notify SystemUI when launching activity to existing task" into rvc-dev am: cfdd34adab
Change-Id: I3576ef18b1d08c8ac1b64f3d922c158f0df434b7
2020-03-11 02:32:13 +00:00
Winson Chung
cfdd34adab Merge "Always notify SystemUI when launching activity to existing task" into rvc-dev 2020-03-11 02:28:09 +00:00
Shuo Qian
1f324f6960 Add updateMccMncConfiguration as @TestApi for CTS
Test: cts; https://paste.googleplex.com/5930499648258048
Bug: 147897445
Change-Id: I63288be1acd9e898548ced345799ac1ae69ce427
Merged-In: I63288be1acd9e898548ced345799ac1ae69ce427
(cherry picked from commit 3d873cf7d0)
2020-03-11 00:27:58 +00:00
Automerger Merge Worker
5447d1ea07 Rename AppOpsCollector -> OnOpNotedCallback am: 5892a8f7b0 am: d67461e3d1 am: d2bc94c950 am: 4f809fdc79
Change-Id: Ia3946ce877bbd28ce2b78dbcb4ffb8bd95df44a1
2020-03-10 22:25:36 +00:00
Automerger Merge Worker
d2bc94c950 Rename AppOpsCollector -> OnOpNotedCallback am: 5892a8f7b0 am: d67461e3d1
Change-Id: Ifb61d30c779f9bd3e369c9b677907033287ba928
2020-03-10 21:28:27 +00:00
Automerger Merge Worker
55e7315089 Rename AppOpsCollector -> OnOpNotedCallback am: 5892a8f7b0
Change-Id: I11d511917b324999d28af4ed476631c16b2f3c2e
2020-03-10 21:13:55 +00:00
Leon Scroggins
f0a23ce8dd Merge "App transitions/thumbnails: Switch to HardwareBuffer" 2020-03-10 20:58:39 +00:00
Philip P. Moltmann
5892a8f7b0 Rename AppOpsCollector -> OnOpNotedCallback
and annotate time values used by this area of code correctly.

Fixes: 150699068
Test: Only renames
Change-Id: Ibd5b08900d6855603e7ce59048587d391a5c5410
2020-03-10 11:50:00 -07:00
Philip P. Moltmann
ad787aa128 Allow to exempt apps from restrictions to RECORD_AUDIO
- Extend the concept if "isPrivilidged" to a generic "RestrictionBypass"
  class so that we can add more variants of bypassing.
- Add a new way of bypassing by using a new permission.
- Always except resolvable UIDs (root, shell, media_uid, audioserver,
  cameraserver, system server) from restrictions.

Fixes: 141210120
Test: atest -m CtsAppOpsTestCases FrameworksMockingServicesTests:AppOpsServiceTest FrameworksMockingServicesTests:AppOpsUpgradeTest
Change-Id: I3ca555e9370aa0003400429ee7ab12e95c62a042
2020-03-10 10:06:02 -07:00
Leon Scroggins III
7432f1831c App transitions/thumbnails: Switch to HardwareBuffer
Bug: 148155907
Bug: 150395371
Test: go/wm-smoke

These previously used a GraphicBuffer created from a HARDWARE Bitmap to
parcel the Bitmap. As part of moving UI Rendering into a mainline
module, which will not include/expose GraphicBuffer,
Bitmap#createGraphicBufferHandle is being replaced by
Bitmap#getHardwareBuffer. Switch over to the now public API.

Change-Id: Id714a48a10fd03a03faa371e206e0c478ae1a4b7
2020-03-10 11:46:10 -04:00
Automerger Merge Worker
446d1e58f5 Merge "Update documentation for settings, affiliation API" into rvc-dev am: 153de40327 am: 5dd8db43d0 am: c5b4dafe77 am: 29e603ad64
Change-Id: I447beb9e434681e89e3351695ddded3b288f82cd
2020-03-10 15:41:16 +00:00
Automerger Merge Worker
c5b4dafe77 Merge "Update documentation for settings, affiliation API" into rvc-dev am: 153de40327 am: 5dd8db43d0
Change-Id: I39d4366729fadded0f0b6b4f33494f0eb57b29b6
2020-03-10 14:56:51 +00:00
Lee Shombert
5c960e2eaf Merge "Modify PropertyInvalidatedCache debugging" 2020-03-10 14:33:10 +00:00
Automerger Merge Worker
29ef30ae1d Merge "Update documentation for settings, affiliation API" into rvc-dev am: 153de40327
Change-Id: I026dd32e1542d713326bfd4f57b10d9b405baf5e
2020-03-10 14:31:38 +00:00
Eran Messeri
95d44d2c0e Update documentation for settings, affiliation API
Update the documentation for settings-related and affiliation-related
methods:
* The methods for setting a global and secure settings are documented
  to be mostly deprecated, because there are methods for the settings
  that are honoured and some other settings no longer apply.
* The methods for setting affiliation or binding to a service on another
  user can no longer work between a device owner and profile owner
  since this combination is no longer a valid one.

Bug: 147795815
Test: manual, m update-docs
Change-Id: I316148cb1d90fbe94999f9d1c242f08554869e97
2020-03-10 11:52:11 +00:00
Automerger Merge Worker
d602ad7d7d Merge "Generate WindowInsets with new insets API" into rvc-dev am: 2a77f43bee am: c20552508d am: d93350c51c am: 687bd9460e
Change-Id: I51e4642bbcfc0cca08f658ae59d2e9ceb99f534b
2020-03-10 09:44:29 +00:00
Automerger Merge Worker
d93350c51c Merge "Generate WindowInsets with new insets API" into rvc-dev am: 2a77f43bee am: c20552508d
Change-Id: Ia7e02cf50b2d0a3358cb4063afb98b5f189999e4
2020-03-10 09:18:38 +00:00
Automerger Merge Worker
f9b299c851 Merge "Generate WindowInsets with new insets API" into rvc-dev am: 2a77f43bee
Change-Id: Ida1cc55aea4244a8778bde72b664fc32d55ebabc
2020-03-10 09:02:13 +00:00
Charles Chen
2a77f43bee Merge "Generate WindowInsets with new insets API" into rvc-dev 2020-03-10 08:46:30 +00:00
Automerger Merge Worker
e2c67d131d Merge "Replace auto-revoke whitelist permission flags with appop" into rvc-dev am: 623468289f am: e410b63af1 am: be5c003e8e am: 68e7312596
Change-Id: I9a7d44ef3d1865c59b7212cb8b12f3408ee0208c
2020-03-10 04:26:23 +00:00
Winson Chung
e789ff64c8 Always notify SystemUI when launching activity to existing task
- SysUI can determine what to do based on the type of activity launched
  (ie. expand PIP/Bubbles to fullscreen)

Bug: 148977481
Test: atest TaskStackChangedListenerTest
Test: Launch app in split primary, ensure launching app again triggers
      recents
Test: Launch app in PIP, ensure launching app again triggers it to go
      fullscreen
Test: Launch app in bubble, ensure launching app again triggers bubble
      to expand
Change-Id: I754a71a72dd0e660930b19acbf9fe6ccbb453152
2020-03-10 03:46:48 +00:00
Automerger Merge Worker
e410b63af1 Merge "Replace auto-revoke whitelist permission flags with appop" into rvc-dev am: 623468289f
Change-Id: I8fd2faa055803fcf05edb9760242d24637b37dcd
2020-03-10 03:00:23 +00:00
Eugene Susla
623468289f Merge "Replace auto-revoke whitelist permission flags with appop" into rvc-dev 2020-03-10 02:53:51 +00:00
Julia Reynolds
8cfe3433f9 Increase test coverage for NotificationChannel
Test: cts
Bug: 149361682
Change-Id: I548e42800cf89a225ef1030c53cbbce6ae9a0116
2020-03-10 01:11:39 +00:00
Lee Shombert
a316900ce7 Modify PropertyInvalidatedCache debugging
Bug: 140788621

There is no change in behavior unless DEBUG or VERIFY are true.
1. Do not log queries to a disabled cache.
2. If verification fails, log the failure and return the correct
   value.  This allows the system to continue running for further
   debug.

Test: Boot the phone with a test image that sets DEBUG and VERIFY
true.  Verified that there are limited messages about a disabled
cache (especially for the package_info cache).  Force verification
failures by removing cache invalidation from UserManager.  Verify
that the cache failures are logged but the system runs normally.

Change-Id: I80c604867a6d879c74ff8f8e8a0be0ac110c6581
2020-03-09 14:52:14 +00:00
Automerger Merge Worker
6bbb1a06db Merge "Add permissions data validation in AppOpsService" into rvc-dev am: 1a023125c9 am: 8e93580fe6 am: 8e6f6e6caf am: f2a5970e94
Change-Id: I4465f62fb02f9f548eb3d7d1f741a04a38f84eb3
2020-03-07 23:25:23 +00:00
Automerger Merge Worker
52cab5861b Merge "Fix handling of work profiles in notification history" into rvc-dev am: 10c0d0d26c am: 2e2dbfb89d am: d00a5e18e9 am: ee9cb39fe4
Change-Id: I7fb6dc909f875f4355c1146f348753990e618c7f
2020-03-07 23:07:00 +00:00
Automerger Merge Worker
8e6f6e6caf Merge "Add permissions data validation in AppOpsService" into rvc-dev am: 1a023125c9 am: 8e93580fe6
Change-Id: I36abfd45e6e133ce0ea4e7c8dc4b01ca10d2d477
2020-03-07 01:25:00 +00:00
Automerger Merge Worker
4f81ff7bf5 Merge "Add permissions data validation in AppOpsService" into rvc-dev am: 1a023125c9
Change-Id: Ic066faf4c8b201ef4b1a40e964ad585fb002d876
2020-03-07 01:13:03 +00:00
TreeHugger Robot
1a023125c9 Merge "Add permissions data validation in AppOpsService" into rvc-dev 2020-03-07 00:50:14 +00:00
Neal Eckard
0e34fcd1e5 Merge "Change setButton() documentation to indicate that the settings will apply to the button specified, not just the positive button." 2020-03-07 00:43:11 +00:00
Automerger Merge Worker
d00a5e18e9 Merge "Fix handling of work profiles in notification history" into rvc-dev am: 10c0d0d26c am: 2e2dbfb89d
Change-Id: I356dc3b2080d4510d86e68772cdbc1f9dd36c505
2020-03-06 22:02:34 +00:00
Automerger Merge Worker
54db7e68bc Merge "Fix handling of work profiles in notification history" into rvc-dev am: 10c0d0d26c
Change-Id: I45aa9eb3b72cc70763a8224d572bd538a2206b59
2020-03-06 21:47:33 +00:00
Julia Reynolds
fd9f8349b8 Fix handling of work profiles in notification history
Test: atest
Fixes: 150336474
Change-Id: I9ebe8986b8b66fd3b79a4be7aa203a8e1f1ad8bb
2020-03-06 12:45:21 -05:00
Automerger Merge Worker
ddba8d8397 Merge "Use FrameworkStatsLog instead of StatsLogInternal" into rvc-dev am: 596a1f6f4e
Change-Id: I5ef7e3611f25b3bdcd062e555e99b62e8dc61a4c
2020-03-06 09:45:11 +00:00
Automerger Merge Worker
a7c7a86844 Merge "Update the categories of app kill reaons" into rvc-dev am: 7712b3a92a
Change-Id: Iafdb44bb63ecdc2583da7ce01cb7f75afc0b79f7
2020-03-06 09:40:43 +00:00
Automerger Merge Worker
2137c9cf69 DO NOT MERGE: Remove AppSearch from Android R. am: 0b291791c8
Change-Id: Id435f881696263aaf000422c98776420b341782b
2020-03-06 09:37:41 +00:00
David Cheung
2ead966e7b Add permissions data validation in AppOpsService
Added functionality to collect noteOp noteProxyOp startOp operations for permissions data validation, this functionality is for
developers and can be enabled by modifying the flag. This data will be utilized to ensure permissions are
requested only when necessary.

Bug: 150890258

Test: Manually tested on crosshatch to ensure files are
written/formatted properly with the necessary data and does not
interfere with normal behavior

Design Document: https://docs.google.com/document/d/1RRs3cPgCzF5S1TkTD11MBKJedUp2DAUEGtCQXtrk0XQ/edit?usp=sharing

Change-Id: Ia7fba6ec5e47b7ddd13ca964ae5f6c1afa1cc186
2020-03-05 23:04:05 +00:00
Automerger Merge Worker
aea42c106d Merge "Use FrameworkStatsLog instead of StatsLogInternal" into rvc-dev am: 596a1f6f4e am: 5486a5ccc6 am: 101a787483 am: d6cbeae4ec
Change-Id: If0f40ce117c346fcfac07053ff51db9b59704340
2020-03-05 22:12:00 +00:00
Automerger Merge Worker
101a787483 Merge "Use FrameworkStatsLog instead of StatsLogInternal" into rvc-dev am: 596a1f6f4e am: 5486a5ccc6
Change-Id: I1e4f75ae1c29c7af21c06b8e60f68a52fe2e6b02
2020-03-05 21:53:59 +00:00
Muhammad Qureshi
596a1f6f4e Merge "Use FrameworkStatsLog instead of StatsLogInternal" into rvc-dev 2020-03-05 21:41:04 +00:00
Automerger Merge Worker
80115c65cb Merge "Update the categories of app kill reaons" into rvc-dev am: 7712b3a92a am: 06dc17928d
Change-Id: I467e554e83e29214d8347587e03af9fa25e6159e
2020-03-05 21:36:36 +00:00
Automerger Merge Worker
7c06a370f9 DO NOT MERGE: Remove AppSearch from Android R. am: 0b291791c8 am: 0c71d1f454
Change-Id: I330477222f2f404e83b10c88dd9e1522a698d826
2020-03-05 21:35:03 +00:00