Commit Graph

20339 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Hui Yu
ef1986f495 Merge "Call new API setTemporaryAppAllowlist() and specify temp-allowlist reasonCode." into sc-dev am: 2533037dc5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13705796

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7117c45dc6dce542d72983885bb17fdd3ba50fb0
2021-03-01 18:02:38 +00:00
Ruslan Tkhakokhov
ac5580350c Merge "Update D2D logic in line with new opt-out rules" into sc-dev am: b56fc740bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13699589

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If2236b3d5aec63ff3f1e4540f33c8e11b246009d
2021-03-01 18:00:48 +00:00
Felipe Leme
f2a7576696 Merge "Fixed createAndManageUser() for headless system user mode." into sc-dev 2021-03-01 16:46:04 +00:00
Hui Yu
2533037dc5 Merge "Call new API setTemporaryAppAllowlist() and specify temp-allowlist reasonCode." into sc-dev 2021-03-01 16:30:58 +00:00
Ruslan Tkhakokhov
b56fc740bb Merge "Update D2D logic in line with new opt-out rules" into sc-dev 2021-03-01 14:53:36 +00:00
Kholoud Mohamed
bc986f2f76 Merge "Added some testAPIs in ContentSuggestionsManager" into sc-dev am: 6c80c464e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13582330

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id335dd4c03d6d68ff99d7973139ff0d1391a7953
2021-03-01 13:46:22 +00:00
Kholoud Mohamed
6c80c464e0 Merge "Added some testAPIs in ContentSuggestionsManager" into sc-dev 2021-03-01 12:06:19 +00:00
kholoud mohamed
5384e86d41 Expose some testAPIs in DPM
Exposed the following testAPIs in DevicePolicyManager:
* getDefaultCrossProfilePackages
* getDisallowedSystemApps

Test: confirmed the APIs are callable in CTS tests
Bug: 180500227
Change-Id: I75a9a479920f1ba2c71f0c9b7e0148f90f1832ec
2021-03-01 11:25:36 +00:00
Ruslan Tkhakokhov
75ee2bf7f1 Update D2D logic in line with new opt-out rules
* Ignore android:fullBackupContent for apps targeting Android S+ while
  in D2D
* Update LocalTransport::getTransportFlags() to support
  FLAG_DEVICE_TO_DEVICE_TRANSFER (required for CTS testing)

Bug: 180523564
Test: atest FullBackupRulesHostSideTest
Change-Id: I115c1c76f4b0d8b486cc9f146ef630fda3ff2a03
2021-03-01 10:26:07 +00:00
Jeff DeCew
75020a8aff Merge "Fixes Copyright date & incorrect a11y announcement" into sc-dev am: 1c05dbcd2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13700786

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic18c7f5f26dbd18b042da24739f06021151d38bc
2021-02-27 17:02:06 +00:00
Jeff DeCew
1c05dbcd2b Merge "Fixes Copyright date & incorrect a11y announcement" into sc-dev 2021-02-27 16:37:30 +00:00
Jeff DeCew
09ef67529c Merge changes I57fb542a,If2a13daf into sc-dev am: 6cd5cb738d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13713266

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5bbd00c8c70184c0818a22d27ebeb4747f584c2b
2021-02-27 03:57:40 +00:00
Jeff DeCew
6cd5cb738d Merge changes I57fb542a,If2a13daf into sc-dev
* changes:
  Fix the vertical positioning of the text in collapsed notifications.
  Increase the notification height to 88dp
2021-02-27 03:08:17 +00:00
Jeff DeCew
726294ff05 Fixes Copyright date & incorrect a11y announcement
Fixes: 180118819
Test: Manual
Change-Id: I8a89ece2db075ceb33861109d1634442a670233e
2021-02-26 15:49:16 -05:00
Jeff DeCew
09e36a2cb2 Merge "Hide the snooze button from various notifications." into sc-dev am: 8ceb0f52d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13710325

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic06e110f2e06f7c923a84f67fc292cdca93d0adc
2021-02-26 19:36:51 +00:00
Jeff DeCew
072848e163 Increase the notification height to 88dp
Test: manual
Bug: 181048615
Change-Id: If2a13daf2b4b583102ec0a1d1f3df8b9f17b41dd
2021-02-26 14:18:59 -05:00
Jeff DeCew
8ceb0f52d1 Merge "Hide the snooze button from various notifications." into sc-dev 2021-02-26 19:17:38 +00:00
Yuncheol Heo
28e66c2a77 Introduce a flag removeWithTaskOrganizer.
- The flag allows us to remove the tasks which are managed by
  TaskOrganizer when TO dies.

Bug: 179676966
Test: Launch a Bubble, kill SysUi and check if the Bubble remains in
  ActivityStack.
Change-Id: Ie0ccafd2b4b0393b777b69b7fb70c0ea74f95963
2021-02-26 10:46:52 -08:00
Hui Yu
a31f4f26c4 Call new API setTemporaryAppAllowlist() and specify temp-allowlist reasonCode.
Deprecate/delete setTemporaryAppWhitelistDuration(int type, long duration) which is also a new API added very recently.

Bug: 171305836
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Reboot device, observe "tempAllowListReason" in logcat.

Change-Id: I29181ce224c28277db1d45ec7fd0f79e032e5c90
BYPASS_INCLUSIVE_LANGUAGE_REASON=existing public API
2021-02-26 18:32:06 +00:00
Hui Yu
d117f9ccbf Merge "Specify temp-allowlist reasonCode while calling setPendingIntentAllowlistDuration()." into sc-dev am: edc573f0ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13705260

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iba60d9506c2bca90a7388b7064f4a1da831f7df2
2021-02-26 18:17:52 +00:00
Hui Yu
edc573f0ac Merge "Specify temp-allowlist reasonCode while calling setPendingIntentAllowlistDuration()." into sc-dev 2021-02-26 18:07:47 +00:00
Felipe Leme
161704e504 Fixed createAndManageUser() for headless system user mode.
It was refactored to split the "create" and "manage" parts so the
new user dialog is shown in the proper times, but such changed
broke the API when caller was passing initialExtras or a different
PO component.

To fix this issue, DPMS passes a token when the user is created,
and ignores the callback when the token matches.

This change also improved logging (which helped diagnose this issue).

Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LowStorage,testCreateAndManageUser_MaxUsers,testCreateAndManageUser_GetSecondaryUsers,testCreateAndManageUser_SwitchUser,testCreateAndManageUser_CannotStopCurrentUser,testCreateAndManageUser_StartInBackground,testCreateAndManageUser_StartInBackground_MaxRunningUsers,testCreateAndManageUser_StopUser,testCreateAndManageUser_StopEphemeralUser_DisallowRemoveUser,testCreateAndManageUser_LogoutUser,testCreateAndManageUser_Affiliated,testCreateAndManageUser_Ephemeral,testCreateAndManageUser_LeaveAllSystemApps,testCreateAndManageUser_SkipSetupWizard,testCreateAndManageUser_AddRestrictionSet,testCreateAndManageUser_RemoveRestrictionSet,testUserAddedOrRemovedBroadcasts # on automotive and phone

Bug: 180515783

Change-Id: Ia6bddecd13fcdfc9604f40391ab7b2a5e98c146b
2021-02-26 08:46:09 -08:00