Commit Graph

20748 Commits

Author SHA1 Message Date
Jeff DeCew
a5b0ed3b0c Merge "Set the height of the right_icon in addition to the width" into sc-dev 2021-05-13 19:48:40 +00:00
Jeff DeCew
0fb49d82a6 Set the height of the right_icon in addition to the width
This ensures that the Notification fully specifies the size of the notification in the RemoteViews, and ensures that CTS tests pass.

Fixes: 180652028
Test: atest NotificationTemplateApi30Test
Change-Id: Ie5715880437f1e42b16226196cf67ca52bc09ee1
2021-05-13 12:25:56 -04:00
Ahaan Ugale
cc4fa5f3b6 Merge "Pipe UiTranslationSpec through to the UiTranslationController." into sc-dev 2021-05-13 15:24:12 +00:00
Jeff DeCew
cd86f38402 Merge "Allow populating left_icon independently of right_icon." into sc-dev 2021-05-12 23:32:35 +00:00
Makoto Onuki
b5ddeefc09 Merge "Clean up setForegroundServiceBehavior()" into sc-dev 2021-05-12 19:59:44 +00:00
Jeff DeCew
b85d1f4f39 Allow populating left_icon independently of right_icon.
* Mainly this fixes a "bug" with the BigPictureStyle.showBigPictureWhenCollapsed() that would cause the big picture, which is known to be important for the notification, to be hidden on the right and shown on the left.  Instead the BigPicture will now remain visible in its large form on the right, and the left icon will be populated with the large icon.
* Additionally, this fixes some quirks with other layouts, such as MediaStyle and MessagingStyle that the largeIcon would be missing (sometimes only in one expansion state) when it could be shown in the left column.
* Finally, this fixes a few bugs in the expansion animation that were caused by logic for determining the showing icon being inconsistent between Notification.java and the notification view wrappers.

Bug: 186421651
Test: post notifications of all these types in and outside of groups.
Change-Id: Ifd1d817afcb1b6fa8cfb79baee96364af8c7af3c
2021-05-12 15:57:43 -04:00
Ahaan Ugale
f765882432 Pipe UiTranslationSpec through to the UiTranslationController.
And use it to conditionally enable content padding for requested views.

Fix: 179693024
Test: atest android.translation.cts.UiTranslationManagerTest
Test: adb shell dumpsys activity <ACTIVITY> --translation
Change-Id: I23fb29a60525d736f2dcf9d11b548c62332c412c
2021-05-12 11:47:15 -07:00
Jeff DeCew
9e30756592 Merge "Show minimized header text with the correct text weight" into sc-dev 2021-05-12 17:57:57 +00:00
Makoto Onuki
f0a6659080 Clean up setForegroundServiceBehavior()
Test: build
Bug: 186433888
Change-Id: Ie27cc91cf013bdfb90ab9c60a8c56370f226b87d
2021-05-12 08:22:41 -07:00
Ryan Mitchell
75baeda560 Merge "Use internal lock for ResourcesManager" into sc-dev 2021-05-12 15:02:06 +00:00
Jeff DeCew
aeddbdc7c9 Merge changes I11400a55,I49461363,Ia18b2dc3,I8c554755 into sc-dev
* changes:
  Simplify SmartReplyView padding layout logic
  Smart action buttons now have 8dp corner radius
  Fix measure logic so that priority children can have more than 1/N space.
  Update the style of emphasized notification actions.
2021-05-11 22:35:37 +00:00
Jeff DeCew
9c1f4e12c9 Show minimized header text with the correct text weight
Fixes: 184863420
Test: visual
Change-Id: Ic16f9e88e118e7ea5fe14054cf1c35318d4a6ddd
2021-05-11 17:10:34 -04:00
Kholoud Mohamed
80ed0ced6c Merge "Allow forceUpdateUserSetupComplete for non system users" into sc-dev 2021-05-11 14:50:38 +00:00
Rubin Xu
c91f0da4fd Merge "Update SecurityLog javadoc" into sc-dev 2021-05-11 09:31:51 +00:00
kholoud mohamed
158dd8fc09 Allow forceUpdateUserSetupComplete for non system users
Test: atest android.devicepolicy.cts.DevicePolicyManagerTest
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Bug: 183716601
Change-Id: Id2340ac1c6404ac41ca7b5a31c6fbb1577804595
2021-05-11 09:25:20 +01:00
Charles Chen
c8bf38ce25 Merge "Fix IME switch dialog crash on Dual rootDA display" into sc-dev 2021-05-11 04:08:49 +00:00
Jeff DeCew
2ca6b4399a Update the style of emphasized notification actions.
* This removed many of the differences between CallStyle and emphasized actions.
* These actions are now pill shaped with a solid bg color, no stroke, less height, less spacing between, and wrapping content instead of splitting space equally.

Fixes: 187533622
Test: manual testing with Notify, Notify2, and Clock (using timers and alarms)
Change-Id: I8c554755755c59f2756870f7cd2e0c533d22d823
2021-05-10 21:41:52 -04:00
Jing Ji
0ec24536c5 Merge "Add support to log app kill stats into statsd" into sc-dev 2021-05-10 16:34:21 +00:00
Rubin Xu
b59d8e1e21 Update SecurityLog javadoc
Bug: 183695861
Test: m -j docs
Change-Id: Idf05e69bda53ffe205683898984b6aa4677f2466
2021-05-10 15:20:45 +01:00
Jeff DeCew
0601cb9bd7 Merge "Remove exception whe Colorized notificiation uses COLOR_DEFAULT." into sc-dev 2021-05-10 13:29:08 +00:00
Ruslan Tkhakokhov
c4646c09ba Merge "Don't restore notification channel if its sound is unavailable" into sc-dev 2021-05-09 20:36:02 +00:00
Hyunyoung Song
048fc0ae1a Merge "All Apps Search API council feedback (second round)" into sc-dev 2021-05-09 19:05:04 +00:00
Jing Ji
40eba65382 Add support to log app kill stats into statsd
Bug: 184859606
Bug: 154511130
Test: statsd_testdrive
Test: atest CtsStatsdAtomHostTestCases:AppExitHostTest
Change-Id: Ia7856c95346c1f0f621948abd11d9648ffbdd7c5
2021-05-08 19:11:28 -07:00
Jing Ji
d5c7dc045b Merge "Kill process if it's cached & idle and in forced-app-standby mode" into sc-dev 2021-05-09 00:23:05 +00:00
Jing Ji
6cf25139a0 Kill process if it's cached & idle and in forced-app-standby mode
This behavior could be turned OFF via the flag kill_fas_cached_idle
in device_config.

Bug: 152573287
Test: atest FrameworksServicesTests:ActivityManagerTest
Test: atest FrameworksMockingServicesTests:AppStateTrackerTest
Change-Id: Ifa6950582fbf6a24595b36163810f3c7e9345394
2021-05-07 14:27:30 -07:00
Hyunyoung Song
c8478e5a9d All Apps Search API council feedback (second round)
Bug: 186756959
Test: atest CtsSearchUiServiceTestCases
Change-Id: I0c83d79ede8801f71c89e71cc6ec2c73b2d8bfcd
2021-05-07 11:41:43 -07:00
Jeff DeCew
e7cc53041d Remove exception whe Colorized notificiation uses COLOR_DEFAULT.
This restores behavior of API 30 that ensures that ranking is unaffected by the notification's color.  Specifically, this allows apps to set COLOR_DEFAULT on Colorized notifications, which in future versions may result in using a system-provided (theme-dependant) background color.

Bug: 187508265
Test: atest NotificationComparatorTest NotificationTest AppOpsCoordinatorTest NotificationGutsManagerTest NotificationManagerServiceTest NotificationBuilderTest
Change-Id: I4a61e9c8dc75871b79ec5ed5ce4416343e8d014f
2021-05-07 13:57:17 -04:00
Lucas Dupin
284edfdcc6 Merge "Allow I/O wallpaper to use dark text mode." into sc-dev 2021-05-07 15:53:16 +00:00
Rubin Xu
f7a6c02cc8 Remove unused isProfileActivePasswordSufficientForParent()
Bug: 182561862
Test: builds
Change-Id: I26d18113862c64c51333f62b81db65e335ccd18c
2021-05-07 11:22:35 +01:00
Charles Chen
71cb758286 Fix IME switch dialog crash on Dual rootDA display
The crash is because when the IME switch dialog created window token
is removed, it should switch back to listen to ImeContainer.
However, previous CL use the wrong API findAreaForToken, which only
finds the DisplayArea.Token under mAreaForLayer list.
In this scenario, we cannot find one because ImeContainer is moved to
its sub-RootDisplayArea.

This CL updates the naming and add more javaDoc to prevent from
confusion.

Test: atest WindowContextListenerControllerTests
Test: manual - repro steps in b/186366728#comment1
fixes: 186366728

Change-Id: I50d3247b0a158e83d09be893d31802d673a60697
2021-05-07 10:03:02 +00:00
Shan Huang
4d5a9f9d76 Allow I/O wallpaper to use dark text mode.
Test: Manual
Bug: 187489482
Change-Id: I8e30d536dc1083b8ff8b96899aead1d80becba2e
2021-05-07 17:37:37 +08:00
Treehugger Robot
397273a160 Merge "Move myself to emeritus section" am: c8fd9b844b am: b4a032843b am: cc7e711cfd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697183

Change-Id: Idd77c2249d3bc6a7b59ff95d4616bf3e8cf1e048
2021-05-07 03:39:34 +00:00
Treehugger Robot
cc7e711cfd Merge "Move myself to emeritus section" am: c8fd9b844b am: b4a032843b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697183

Change-Id: Ie735d8b711a7e852c010398f5ea2f9ce00ead32b
2021-05-07 03:11:46 +00:00
TreeHugger Robot
6a483f4f46 Merge "Fix a serialization issue in sync op reporting" into sc-dev 2021-05-07 01:57:32 +00:00
Svet Ganov
2ae82e1302 Fix a serialization issue in sync op reporting
If the application thread is not ready yet we cannot
get the package name and were shrt circuiting which
let to leaving the remainder of the payload in the
parcel breaking subsequent content reads.

bug: 184616098

Test: atest CtsAppOpsTestCases

Change-Id: I83f0d74deb87f2b4517d8a4d10b5331c7d41bb89
2021-05-07 00:12:58 +00:00
Ben Lin
394f4792e6 Merge "PiP: API - explain isStashed in more detail." into sc-dev 2021-05-06 21:29:58 +00:00
TreeHugger Robot
8c62b2ba7c Merge "Rename OnProjectionStateChangeListener -> OnProjectionStateChangedListener" into sc-dev 2021-05-06 18:36:32 +00:00
Eran Messeri
d5296e3ec4 Move myself to emeritus section
Will no longer be actively developing Device Policy Manager code.

Bug: 187395769
Test: N/A
Change-Id: Ifed25031a8b57e22dec0c8c5e07e27a92431b13f
2021-05-06 15:13:18 +01:00
TreeHugger Robot
38e2d409ea Merge "Fix issues with getHistoricalOps() results overflowing Binder connection." into sc-dev 2021-05-06 12:53:24 +00:00
Ben Lin
5059bd6b37 PiP: API - explain isStashed in more detail.
Bug: 185972980
Test: None. Documentation update.
Change-Id: I7653a394a9ecdc0c89e65604a466f8448439f8fe
2021-05-05 18:44:24 -07:00
Svetoslav Ganov
720add59c7 Merge "Prepare AttributionSource to expose to native" into sc-dev 2021-05-05 23:23:54 +00:00
Kurt Dresner
81f2994f35 Rename OnProjectionStateChangeListener -> OnProjectionStateChangedListener
Bug: 175130323
Test: Presubmits
Change-Id: Ica48cd073e256055d5cac0f12e9ce814227eb0d6
2021-05-05 15:27:31 -07:00
Chavi Weingarten
9a0bcd29df Merge "Capture layer and children when calling takeSurfaceControlScreenshot" into sc-dev 2021-05-05 19:43:52 +00:00
TreeHugger Robot
969a1a8643 Merge "Add javadoc for trampoline restrictions" into sc-dev 2021-05-05 18:41:38 +00:00
Tom Natan
43bf4624ec Merge "Add an API method for clearing compat overrides on release builds" am: b9680bac79 am: 9e9e1c4af5 am: 65654644bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688626

Change-Id: Id1b221629fee21648ee2a4683ab9a34b2efef1d6
2021-05-05 16:41:16 +00:00
Tom Natan
65654644bc Merge "Add an API method for clearing compat overrides on release builds" am: b9680bac79 am: 9e9e1c4af5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688626

Change-Id: Ic1b9bb5b3f6cfba5192838020fc1b9770715f80a
2021-05-05 16:13:03 +00:00
Patrik Torstensson
6cf087a368 Use internal lock for ResourcesManager
- Create a new package private method for
  applyNewResourceDirs that takes the lock internally in
  the resources manager class
- Move all locking to use the internal lock object

Bug: 186411938
Test: on device and local build
Change-Id: Idb49c76ceca51ed656fd47b82fad0afca1b2740b
2021-05-05 08:52:46 -07:00
Bernardo Rufino
0875925d06 Add javadoc for trampoline restrictions
Added to notification APIs and browser exemption in ROLE_BROWSER in
topic CL.

Bug: 167676448
Test: Builds
Change-Id: Ibb4bee91fc2b8fcd8bbe194812cc8c3fa22c41ec
2021-05-05 16:41:42 +01:00
Tom Natan
b9680bac79 Merge "Add an API method for clearing compat overrides on release builds" 2021-05-05 14:58:41 +00:00
Stanislav Zholnin
ecb45f7e33 Fix issues with getHistoricalOps() results overflowing Binder connection.
Test: manually tested.
Bug: 186193371
Change-Id: I391cb36a86308c89056965a47596707257a2a0af
2021-05-05 14:07:02 +01:00