Commit Graph

20361 Commits

Author SHA1 Message Date
Jin Seok Park
9c7005732a Merge "Revise PendingIntent.queryIntentComponents API" into sc-dev am: 378f7fa946
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13755748

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id50d6b2eca2a559bcb9a3728882dbfd503892a29
2021-03-05 05:18:24 +00:00
Jin Seok Park
378f7fa946 Merge "Revise PendingIntent.queryIntentComponents API" into sc-dev 2021-03-05 05:16:02 +00:00
Felipe Leme
3d0305f683 Merge "Add parent check on DevicePolicyManager.isSafeOperation()" into sc-dev am: d42e4a6771
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13765254

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I67cb3a9317e7b8bb9a029370a1187100e30b278b
2021-03-04 17:29:18 +00:00
Winson Chiu
1d47bb6d0a Merge changes I28bc7390,I2b248726,Ia7b7acff,Ia81866d2,I5b0deac6, ... into sc-dev am: 933bea0ee8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13746616

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1599daf63253bb6f982321bf1cbcd1da25c1abb9
2021-03-04 17:26:15 +00:00
Felipe Leme
d42e4a6771 Merge "Add parent check on DevicePolicyManager.isSafeOperation()" into sc-dev 2021-03-04 17:20:20 +00:00
Winson Chiu
933bea0ee8 Merge changes I28bc7390,I2b248726,Ia7b7acff,Ia81866d2,I5b0deac6, ... into sc-dev
* changes:
  Rename to DomainVerificationUserState
  Rename to DomainVerificationInternalUserState
  Expose getDomainVerificationUserSelection as public API
  Fix setDomainVerificationLinkHandlingAllowed docs
  Rename get -> queryValidVerificationPackageNames
  Make DomainVerificationManager a final class
2021-03-04 16:57:00 +00:00
Ruslan Tkhakokhov
02f1e465ef Merge "Support disableIfNoEncryptionCapabilities attribute" into sc-dev am: 2fd65e2d0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13754125

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iefa564ac0c85fbc5dcf8629e833e4ae5d87b2625
2021-03-04 14:24:38 +00:00
Ruslan Tkhakokhov
2fd65e2d0e Merge "Support disableIfNoEncryptionCapabilities attribute" into sc-dev 2021-03-04 13:48:18 +00:00
Rajeev Kumar
0d18624078 Merge changes I0bd9becd,I1f2967dc into sc-dev am: 2c293a43a3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13604966

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I626d62a5775a0d69fed5fab99b5986f2a5f28037
2021-03-04 04:45:21 +00:00
Rajeev Kumar
2c293a43a3 Merge changes I0bd9becd,I1f2967dc into sc-dev
* changes:
  Add new component usage event (2/2)
  Add new component usage event (1/2)
2021-03-04 04:32:52 +00:00
Alex Mang
80b4bb36c9 Merge "Propagate ContentCaptureManager allowlist update to activities" into sc-dev am: d77366e4f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13634645

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icb217df0361b3751df45d11c0fc13ed347a8e3dc
2021-03-04 02:40:44 +00:00
Felipe Leme
f377c28fc5 Add parent check on DevicePolicyManager.isSafeOperation()
Test: atest ManagedProfileTest#testParentProfileApiDisabled
Fixes: 180922138

Change-Id: I8b709edca8bd96569484be2f14bd7cb9768fa54e
2021-03-03 18:36:01 -08:00
Alex Mang
d77366e4f2 Merge "Propagate ContentCaptureManager allowlist update to activities" into sc-dev 2021-03-04 02:26:25 +00:00
Jeff DeCew
ff4c095947 Merge "Change groups to use number in the expander." into sc-dev am: 82336d7562
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13761485

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I50e4f1f9252a63a8d23d6c3eb397d1f567885abb
2021-03-04 02:16:51 +00:00
Kevin Han
157db238a6 Add new component usage event (1/2)
Add a new usage event to UsageStats when a component in a package is
used (content provider binding, explicit broadcast, activity resume)
and it is considered to be important usage.

The follow-up CL will handle the service binding case as it is a little
complicated due to job bindings.

Bug: 175829712
Test: adb shell dumpsys usagestats <package-name>
Test: atest UserUsageStatsServiceTest
Change-Id: I1f2967dcf5999a8f0affea94bce4c0873a04e022
2021-03-03 17:15:23 -08:00
Jeff DeCew
82336d7562 Merge "Change groups to use number in the expander." into sc-dev 2021-03-04 01:12:21 +00:00
Jeff DeCew
03dbfe42ba Merge changes Ifbf07b27,Ic9cd89e8 into sc-dev am: 82b5194584
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13733645

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I620ca394a6f8bdca20664592ac9d1e4f3284db63
2021-03-03 21:42:11 +00:00
Jeff DeCew
138403add7 Change groups to use number in the expander.
* Old codepath is maintained; switch with config_showNotificationGroupCountInExpander.
* Use the default expander colors for low priority header.
* Uses the correct color for the old group overflow.
* Fixes the header view to correctly accomodates growing expander.

Bug: 181048615
Test: manual, visual inspection of groups and notification types that use headers
Change-Id: Ia314a6028645016df39d3e948fdc4eb194ed9ff2
2021-03-03 16:04:45 -05:00
Jeff DeCew
82b5194584 Merge changes Ifbf07b27,Ic9cd89e8 into sc-dev
* changes:
  Notification color overhaul.
  Implement the new visual style of the expand button
2021-03-03 21:02:08 +00:00
Ruslan Tkhakokhov
04b8fd0229 Support disableIfNoEncryptionCapabilities attribute
Support disableIfNoEncryptionCapabilities attribute in the
XML config specified by android:dataExtractionRules.The attribute, only applicable to <cloudBackup>, will disable cloud backup if the transport doesn't offer encryption.

Bug: 180523028
Test: atest FullbackupRulesHostSideTest
Change-Id: Ic6dab65834b51ff62c1e1a17b34b850f720681a1
2021-03-03 17:03:08 +00:00
Stanislav Zholnin
55887426b4 Merge "Add API support for permission access timeline." into sc-dev am: 4f5072825d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13582326

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5d9335d65ad89cc09591d869261c9c0e19653e8c
2021-03-03 16:42:32 +00:00
Stanislav Zholnin
4f5072825d Merge "Add API support for permission access timeline." into sc-dev 2021-03-03 16:35:28 +00:00
Jin Seok Park
8a228cf12a Revise PendingIntent.queryIntentComponents API
1. Make return type NonNull
2. Use ParceledListSlice for binder call from PendingIntent to
ActivityManagerService

Bug: 180617184
Test: atest CtsAppTestCases:android.app.cts.PendingIntentTest
      #testGetIntentComponentAndType
Change-Id: Ifc4d111da07b9e1c665c07568cbed994927b0ff2
2021-03-04 01:12:37 +09:00
Chilun Huang
434737ae2b Merge "Add ownership for ConfigurationController" am: c8677e4d05 am: 00a8690dc9 am: e58d56d580 am: 921b1b0055
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1612036

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I927b04c32b392b1d736c5cdd58104a8d7982e285
2021-03-03 13:39:33 +00:00
Chilun Huang
921b1b0055 Merge "Add ownership for ConfigurationController" am: c8677e4d05 am: 00a8690dc9 am: e58d56d580
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1612036

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idd9deec4fbed0cc64f9803ba6142f602b7597f8c
2021-03-03 13:28:21 +00:00
Junyu Lai
be6d014f2c Merge "[FUI18] Expose notifyNetworkStatus as system API" into sc-dev am: 755168f912
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13749978

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If9fc215289dd1e110c2df7f0aeaebb1c67847e7f
2021-03-03 13:02:52 +00:00
Stanislav Zholnin
07e6855f8b Add API support for permission access timeline.
Test: in development
Bug: 176965672
Change-Id: Ib06452946fda2fcbd32ac6172ea4a43dabde7b67
2021-03-03 11:03:07 +00:00
Chilun Huang
e58d56d580 Merge "Add ownership for ConfigurationController" am: c8677e4d05 am: 00a8690dc9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1612036

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If7bcd0a1ec24961df911e2b89d3a83969354e6ac
2021-03-03 08:34:30 +00:00
Chilun Huang
00a8690dc9 Merge "Add ownership for ConfigurationController" am: c8677e4d05
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1612036

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I15f1598662278724e1ee158d6c00ab2388399007
2021-03-03 08:07:14 +00:00
junyulai
b4308db579 [FUI18] Expose notifyNetworkStatus as system API
Test: m -j doc-comment-check-docs
Bug: 174123988
Change-Id: I11d4c9ab24de87fb2ad120e3787b78b73133e874
2021-03-03 15:34:42 +08:00
Riddle Hsu
83fff6cdb7 Merge "Optimize the Parcel read/write of remote animation" into sc-dev am: 304d3a07ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13698197

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iadeb68e1bf695bf39cbd37ea8dc6f9528ee94b26
2021-03-03 04:37:02 +00:00
Riddle Hsu
304d3a07ea Merge "Optimize the Parcel read/write of remote animation" into sc-dev 2021-03-03 03:58:07 +00:00
Jeff DeCew
c55ad9f8c2 Notification color overhaul.
Notifications now (based on a config) use the theme accent color instead of the app-provided color to colorize various elements within the notification (e.g. progress bar, actions).

Bug: 181048615
Test: exhausting visual inspection of as many notification combinations as the code led me to.
Change-Id: Ifbf07b27c65da9b17a0f0ecf6e1e6237126d015a
2021-03-02 16:10:43 -05:00
Jeff DeCew
f437e2c61f Implement the new visual style of the expand button
Bug: 181048615
Test: visual and talkback testing of normal notifs, conversations, groups.
Change-Id: Ic9cd89e899a03010a523bee4f1ef72fbfbd8b43f
2021-03-02 16:10:00 -05:00
Winson
5333c7557a Expose getDomainVerificationUserSelection as public API
This is now visible to all apps to get the verified status of domains
which they declare. Because this is already restricted by app
visibility, opening up the API with no changes should be sufficient.

The permission requirement was also removed, since normals apps will
not have it.

This will only expose a relevant status when used with the changes at
Ib14049e397154616f84a2264167ac30659cd81c9.

Bug: 180955393

CTS-Coverage-Bug: 179382047

Change-Id: Ia7b7acffe41ac435f9bda98cd4e0ee422c8df328
2021-03-02 12:24:16 -08:00
Winson
6a4df7f5e2 Make DomainVerificationManager a final class
Makes testing a little more difficult, but mirrors the other system
service classes.

Bug: 181101101

Test: atest com.android.server.pm.test.verify.domain

Change-Id: I39a3c2160943a0a6c77fe792446ed2f1407fb0e0
2021-03-02 12:24:15 -08:00
Joanne Chung
07b7aae9e3 Merge "Add shell commands and dump information for Translation" into sc-dev am: 7e3f7d1061
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13708845

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib57e5dddd425dba265d2c654c82c5c089391a3a6
2021-03-02 11:42:40 +00:00
Joanne Chung
7e3f7d1061 Merge "Add shell commands and dump information for Translation" into sc-dev 2021-03-02 11:39:07 +00:00
Kholoud Mohamed
64ba9a842d Merge "Expose some testAPIs in DPM" into sc-dev am: dcbd16339d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13725539

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6a48eb82c679d8f7acfbc06302bc69f97e82b08c
2021-03-02 10:05:11 +00:00
Kholoud Mohamed
dcbd16339d Merge "Expose some testAPIs in DPM" into sc-dev 2021-03-02 10:03:14 +00:00
Joanne Chung
8da8e5d10e Update ContentCaptureContext to have a token information am: af76755ff7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13449290

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib0f128abc45b6ef97fbca33b6404ed0541501c69
2021-03-02 07:00:28 +00:00
Joanne Chung
af76755ff7 Update ContentCaptureContext to have a token information
In order to support auto translation, we need to give information to
content capture service to let the app can use this information to
find the Activity which needed to be translated.

It's not safe to provide an activity token to the client app directly
even if it is a privilege app. They can use this activity token to
access many activity/windows related functions. We create a new token
for use for content capture and translation. This token will be used
get the target Activity for translation new APIs.

This change focuses on the Content capture API change, the API change
about translation will be done in the next change,

Bug: 177789967
Test: manual. Make sure cc service can get the information.
Test: atest android.view.contentcapture.ContentCaptureContextTest
Test: atest CtsContentCaptureServiceTestCases

Change-Id: Ife8096a8bd1e71ce4e686d95043e347222ad7ee6
2021-03-02 06:47:48 +00:00
Chilun
2ce64824e9 Add ownership for ConfigurationController
Bug: 127877792
Test: manual
Change-Id: I01b89191ef1b9c2bf82573b265ef2e04ce7acb18
2021-03-02 06:29:17 +00:00
Alex Mang
842dd79ec5 Propagate ContentCaptureManager allowlist update to activities
Ref Doc: go/propagate-ccm-allowlist

BYPASS_INCLUSIVE_LANGUAGE_REASON=logging existing function call name
Tested: manually on device
Bug: 177345035
Bug: 165025636

Change-Id: I46c41a1e3e8a91a08889f5505e5bc1510776e253
2021-03-01 22:26:02 -08:00
Lucas Dupin
092a87dea5 Merge "Make WallpaperColors hints public" into sc-dev am: 965c170d50
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13713285

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib6a77885f4679be793b4bbee430bab975c3f25ed
2021-03-02 01:09:13 +00:00
Lucas Dupin
965c170d50 Merge "Make WallpaperColors hints public" into sc-dev 2021-03-02 01:07:05 +00:00
Lucas Dupin
83b2f37853 Make WallpaperColors hints public
Per AOSP request, developers would like to access this API, which was
currently marked as @SystemAPI.

Test: atest WallpaperColorsTest
Fixes: 142843776
Change-Id: I3970ab3ce92de78c3f1a994b6bc560518edf626c
2021-03-01 22:51:22 +00:00
Yuncheol Heo
ce9512edd7 Merge "Introduce a flag removeWithTaskOrganizer." into sc-dev am: 83ad0adb52
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13701558

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I93b9db4249f2d2bba40fead1d9cf4a0403a04270
2021-03-01 21:27:40 +00:00
Yuncheol Heo
83ad0adb52 Merge "Introduce a flag removeWithTaskOrganizer." into sc-dev 2021-03-01 21:13:45 +00:00
Felipe Leme
ec7d92a735 Merge "Fixed createAndManageUser() for headless system user mode." into sc-dev am: f2a7576696
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13679504

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I84048171bc1acf78920c2a63dea393c7761938ae
2021-03-01 18:04:32 +00:00