Commit Graph

368524 Commits

Author SHA1 Message Date
Kevin Hufnagle
902fefdcd2 docs: Edited UNINSTALL_SHORTCUT permission desc.
Added a callout and a message that more strongly discourages use of
the UNINSTALL_SHORTCUT permission.

Test: make ds-docs -j16

Bug: 72864896
Change-Id: Iacb7a1718c4688e9061bdfd3b50b7afc8f170abb
2018-06-19 20:06:24 +00:00
TreeHugger Robot
1b65af27d8 Merge "Fix NotificaitonPanelView x-axis shift with IME" into pi-dev 2018-06-18 18:42:47 +00:00
Lucas Dupin
0e52664b0c Merge "Fade to black without showing system wallpaper" into pi-dev 2018-06-18 18:08:41 +00:00
felkachang
7749c9a5e9 Fix NotificaitonPanelView x-axis shift with IME
IME will trigger the fitSystemWindow. And, there is a difference of
the parameter insets between IME and no IME. The insets.right and
insets.left report 0 without IME but positive number with IME
because IME is a type of system window and trigger fitSystemWindow
and then take the cutout as part of system window.

StatusBarWindowView handle the following condition
cutout > 0 && cutout == systemWindowInset and make its children not
layout on the safe inset both of cut out and system window. In order
to handle that cut out become system window, to take the maximum of
cut out and system window to make sure that the safe inset is
decided in StatusBarWindowView and its view decent only care about
the corner cut out.

Because StatusBarWindowView make both of PhoneStatusBarView's parent
and NotificationPanelView to have the margin for both of cutout and
system window, the counting of the padding and panel translation of
the HeadsUpStatusBarView need to do the relative changes.

Change-Id: Iafdc6a85e0e7d360b1bfc1e820f6e0779c32753f
Fix: 79957419
Fix: 109945733
Fix: 109865908
Test: atest SystemUITests
2018-06-18 10:37:31 -07:00
Selim Cinek
ed9df0d176 Merge "Fixed an issue where the contentHeight was wrong" into pi-dev 2018-06-18 17:32:20 +00:00
TreeHugger Robot
32066387e1 Merge "Pulse animation synchronization" into pi-dev 2018-06-18 16:57:24 +00:00
Lucas Dupin
f8463ee043 Fade to black without showing system wallpaper
When on the lock screen, and going to AOD animated, user would
temporarily see the system wallpaper. That's not what we want,
we want to fade from semi-transparent black to black, on top
of the backdrop - lock screen wallpaper or media art.

Test: press power on the lock screen when playing media
Test: press power on the lock screen after dismissing media
Test: unlock from AOD
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Fixes: 80575770
Change-Id: I6796e844add889ff86be0cd2052db7c5d5073039
2018-06-18 09:24:38 -07:00
Jorim Jaggi
e8a1e7a423 Merge "DO NOT MERGE Fix crash in case of no overlays" into pi-dev 2018-06-18 15:52:09 +00:00
Jorim Jaggi
58150a7e6e Merge "Prevent showing windows while animating to avoid color mode switch" into pi-dev 2018-06-18 15:25:03 +00:00
Jorim Jaggi
af0d6d26d1 Prevent showing windows while animating to avoid color mode switch
If we switch the color mode during a transition, it's pretty much
guaranteed that SF is going to jank. To work around that, we
disallow showing the real content while an activity with a
non-standard-color mode is animating.

Test: Reopen photos, observe no jank
Bug: 79878256
Change-Id: Id27db483844d9424ccfb9afdebd31325eae0cdd8
2018-06-18 15:56:34 +02:00
Jorim Jaggi
0fca17c2a6 DO NOT MERGE Fix crash in case of no overlays
Fixes: 110330180
Test: Rotate a device without overlays/cutout
Change-Id: Ib0701e26893489fcee0de6aaec26901aef0b8348
2018-06-18 12:45:49 +00:00
Ahmed ElArabawy
ef4a56f9e4 Merge "WiFi: Add configs for SAR support of body sensors" into pi-dev 2018-06-18 12:26:40 +00:00
Bill Yi
42fb737d13 Merge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev am: 3c047ea7fa am: 3cca4e7b06
am: d4a1791bd7

Change-Id: I165a9d006345b6624877fc3b453ceb2b0baa83fb
2018-06-18 00:23:36 -07:00
Bill Yi
8d70303da7 [automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped: b06ba83b23 am: 437da4c13d -s ours am: f57c14b641 -s ours
am: bc1dc5c368  -s ours

Change-Id: Ied727ed9887bc299b944611f1caed5896d8e81ce
2018-06-18 00:15:09 -07:00
Bill Yi
d4a1791bd7 Merge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev am: 3c047ea7fa
am: 3cca4e7b06

Change-Id: Ifaa547b16411e79759647dd9cc53ea76526f5e5d
2018-06-18 00:09:08 -07:00
Bill Yi
bc1dc5c368 [automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped: b06ba83b23 am: 437da4c13d -s ours
am: f57c14b641  -s ours

Change-Id: Id5433baa969e08bd0253cb921bdaa541a1eaad3a
2018-06-18 00:02:54 -07:00
Bill Yi
3cca4e7b06 Merge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev
am: 3c047ea7fa

Change-Id: Ie97567da2988d921748f9b4ca86f658a5222f43b
2018-06-17 23:55:44 -07:00
Bill Yi
f57c14b641 [automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped: b06ba83b23
am: 437da4c13d  -s ours

Change-Id: I8227403ab7fa849fcc096d3a0acfa583843abf3b
2018-06-17 23:53:27 -07:00
Bill Yi
15123e0230 [automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped: 693ad9800b am: cb1a10f5b6 -s ours am: d996012ef5 -s ours
am: 97ee183747  -s ours

Change-Id: I606378e5028548c5189a9fe554a868512112578c
2018-06-17 23:33:25 -07:00
TreeHugger Robot
3c047ea7fa Merge changes from topic "am-aabaca13-84ab-4de5-bfa1-2add13867c06" into oc-dev
* changes:
  [automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped: b06ba83b23
  [automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4
  Import translations. DO NOT MERGE
2018-06-18 06:27:04 +00:00
Bill Yi
97ee183747 [automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped: 693ad9800b am: cb1a10f5b6 -s ours
am: d996012ef5  -s ours

Change-Id: Idcb8df6ed5993f00170408e685080aa525f291e1
2018-06-17 23:26:21 -07:00
Bill Yi
d996012ef5 [automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped: 693ad9800b
am: cb1a10f5b6  -s ours

Change-Id: Ib5adcfbe4afabfee3e391ec528272f210b408a10
2018-06-17 23:18:56 -07:00
Android Build Merger (Role)
437da4c13d [automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4 skipped: b06ba83b23
Change-Id: Iae0ad51f828f91b8211e0671900f2ffa1265c655
2018-06-17 12:14:12 +00:00
Android Build Merger (Role)
b06ba83b23 [automerger skipped] Import translations. DO NOT MERGE skipped: 422582d9c4
Change-Id: I3f93da28223af89a03736689e7f35a723b864ff5
2018-06-17 12:14:05 +00:00
Bill Yi
422582d9c4 Import translations. DO NOT MERGE
Change-Id: I681a0e79a709f3cabf8b661ec5229480d99dd840
Auto-generated-cl: translation import
2018-06-17 05:13:32 -07:00
Android Build Merger (Role)
cb1a10f5b6 [automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d skipped: 693ad9800b
Change-Id: I387f439df9441d64a658344837e4a2bd0f88a128
2018-06-17 10:03:39 +00:00
Android Build Merger (Role)
693ad9800b [automerger skipped] Import translations. DO NOT MERGE skipped: cbc81e618d
Change-Id: I6a3ddad855bdc4ae74eab3e6e2cd42290176aab4
2018-06-17 10:03:31 +00:00
Bill Yi
cbc81e618d Import translations. DO NOT MERGE
Change-Id: Ied5693d3e59e24f43a7a1577471819c269c7d6df
Auto-generated-cl: translation import
2018-06-17 03:02:56 -07:00
TreeHugger Robot
c5901f5a06 Merge "Skip null values in Utils.safeForeach" into pi-dev 2018-06-16 03:16:06 +00:00
TreeHugger Robot
a74fbef8ce Merge "Don't back up Assist Gesture setup/sensitivity" into pi-dev 2018-06-16 00:28:17 +00:00
Lucas Dupin
2a6bdfd908 Pulse animation synchronization
Fade in pulsing notification after a delay and
fix clock scale delay.

Fixes: 109809484
Fixes: 110204622
Test: visual
Change-Id: I3b62c4c2508d7b536287020801a58cb317e88ac0
2018-06-15 14:03:12 -07:00
Selim Cinek
37e96a8fa5 Merge "Hiding replied notification icons from AOD" into pi-dev 2018-06-15 20:44:08 +00:00
Adrian Roos
b91dd1d944 Merge changes I90451c14,I9fb27a0a into pi-dev
* changes:
  DO NOT MERGE WM: correctly draw the rounded corner / cutout overlay during rotation
  WM: Fix seamless rotation
2018-06-15 20:28:13 +00:00
Eric Laurent
706303541e Merge "audioservice: fix a2dp connection race condition" into pi-dev 2018-06-15 17:43:42 +00:00
Selim Cinek
f4b04ae0bb Fixed an issue where the contentHeight was wrong
The content height was using the regular topPadding which
factored in the darkAmount, but wasn't updating the contentHeight.
Since updating the contentHeight is pretty expensive, we are
now using the regular topPadding whenever the lock screen
isn't fully dark, which will make sure that everything is
properly positioned and not faded.

Change-Id: Ida9f29443efc1eb80924b0e755ea5338adfe23f7
Fixes: 110091926
Test: adb shell setprop debug.force_no_blanking true and observe proper layout after animations
2018-06-15 10:35:03 -07:00
Beverly
94c28e75c6 Skip null values in Utils.safeForeach
Test: ZenModeControllerImplTest.java
Bug: 110209145
Change-Id: I4234be630c84444a70d8cb380ca6a692a4ff5cbc
2018-06-15 17:21:36 +00:00
Philip P. Moltmann
af76df93e3 Merge "Abbreviate permission labels less aggressively" into pi-dev 2018-06-15 17:18:52 +00:00
Tony Huang
1250cd1407 Fix solid circle show on message notification
Message app or other apps will use some format code or controll
code on SenderName to fit RTL or other design, and symbols will
produced by these code. The special code pattern not include these
code, so it will go charIcon flow.
Although these code is not visible, we should just ignore them to
get symbol strings

Change-Id: I20ef459b10ba7504ec0c997ed815cb485817d2bc
Fixes: 109746235
Test: Check notification form message app on RTL
Test: atest SystemUITests
2018-06-15 02:59:57 +00:00
Adrian Roos
28c25e219a DO NOT MERGE WM: correctly draw the rounded corner / cutout overlay during rotation
When we freeze the screen, we really don't want the overlay to appear
on the screenshot - otherwise this will lead to it rotating with the
screen content. This means the overlay currently disappears during the
transition. We cannot just draw it over the screenshot, because it
might be in inconsistent state.

We fix this by temporarily undoing the effects of the screen rotation
transform on the overlay's window token. Then, once the window has
performed relayout and is redrawn in the new orientation, we switch to
that representation. This is mostly seamless rotation, with the
difference that we force it always, and it must also work for 180
degree rotation (which regular seamless rotation does not).

Do not merge, because we want to harmonize seamless rotation and the
newly added forced seamless rotation in Q.

Also move the rounded corner overlay from the display overlay layer
to the root of the hierarchy such that it can draw over the screen
off animation's ColorLayer.

Bug: 79112140
Test: Enable display cutout overlay, rotate phone to all orientations, ensure that emulated display cutout never flashes or disappears.
Test: atest CoordinateTransformsTest
Change-Id: I90451c14dc28daa3f90a74c3117548fead25af3f
2018-06-14 18:04:09 -07:00
Adrian Roos
41f7e9d103 WM: Fix seamless rotation
With the introduction of the surface hierarchy, the seamless rotation
behavior in WSA is no longer correct: it also applies the WindowState's
offset, which leads to that being applied twice.

Instead of doing that, we simply rotate the WSA surface within the place
that WindowState dictates now.

Finally, the location of the WindowState itself also needs to be
transformed into the new orientation.

Fixes: 109927566
Test: atest CoordinateTransformsTest
Test: atest 'WindowStateTests#testSeamlesslyRotateWindow'
Change-Id: I9fb27a0a8a2bddc6ec88a4fcce6d6ea00929fb91
2018-06-14 18:04:09 -07:00
Eric Laurent
3c4636c712 audioservice: fix a2dp connection race condition
In case of fast (< 1 second) A2DP disconnect/connect sequence, there
is a potential race condition where the delayed disconnection message
(due to becoming noisy intent) is received after the not delayed
connection message.

- Make sure all messages related to device connection/disconnection
(including MSG_A2DP_DEVICE_CONFIG_CHANGE and MSG_BTA2DP_DOCK_TIMEOUT)
are handled by queueMsgUnderWakeLock().
- Make sure messages are processed in the same order as API calls.
- Add check for null address in makeA2dpDeviceUnavailableNow().

Bug: 109903807
Bug: 78837311
Test: repro steps in bugs. A2DP connection and playback

Change-Id: Ib81b3805f945f7206b1a60de74e9bbeeef89bdd0
2018-06-14 16:58:42 -07:00
Tracy Zhou
b2b255a131 Merge "Revert "Change quickstep onboarding tip window type to"" into pi-dev 2018-06-14 23:28:34 +00:00
Philip P. Moltmann
004e489a25 Abbreviate permission labels less aggressively
We switched the package installer app to always abbreviate all labels
loaded from foreign packages. This is done so that a foreign app cannot
crorrupt the UI via super-long strings.

The default abbreviation is very aggressive and abbreviates to ~5 cm.

When an app with a targetSDK <= M gets installed, all permissions will
get auto-granted. Hence when a user side-loads such an app, we show the
permissions during install so that the user is aware of this.

Unfortunately most permission labels and restrictions do not fit into a
single line.

This change allows much longer strings for permissions names and
descriptions. It still abbreviates eventually and handles permission
descriptions with weird characters (such as back-space) correctly.

Fixes: 110209410
Test: Side-loaded old app and verified that permission labels and
      descriptions are not abbreviated.

Change-Id: Ie1db240883c9f5cb9c1b74ca7bdcb80625e3f7f2
2018-06-14 11:52:14 -07:00
Wale Ogunwale
cf2d6475f9 Make testSplitscreenPortraitAppOrientationRequests pass to unblock release
Work around to unblock the release for failing test
ActivityManagerAppConfigurationTests#testSplitscreenPortraitAppOrientationRequests
which shouldn't be failing since home stack shouldn't be visible. We need
to dig deeper to see why it is failing.
NOTE: Not failing on current master...

Bug: 110159357
Test: atest ActivityManagerAppConfigurationTests#testSplitscreenPortraitAppOrientationRequests
Change-Id: I69423eef3661133b2a032a166745157b3e344751
2018-06-14 16:00:46 +00:00
TreeHugger Robot
f910fdb1da Merge "Smoother wake-up animation" into pi-dev 2018-06-14 04:18:20 +00:00
Lucas Dupin
439bd449d8 Smoother wake-up animation
Removed overlapping interpolators and made the "screen off" animation
slower when more than 1 notifications are visible.

Fixes: 110081253
Bug: 109809484
Test: visual
Change-Id: I355ac94d4e6a880f37ce1d68c15c693b6f09f7f8
2018-06-14 02:28:58 +00:00
Lucas Dupin
b784e6f7bc Merge "Config to enable/disable AOD via overlay" into pi-dev 2018-06-14 01:16:44 +00:00
Lucas Dupin
1e02f340e0 Config to enable/disable AOD via overlay
Bug: 109894567
Test: mp droid; fastboot -w
Change-Id: I3fda0bf486ae0c4b795ce34ba6823d8dc36a3796
2018-06-13 15:36:04 -07:00
Lucas Dupin
a102591e13 Merge "Avoid showing bouncer when in a launch transition" into pi-dev 2018-06-13 22:15:29 +00:00
Robin Lee
82614bed0b Merge "Do not treat EXTRA_SMALL_ICON <int> as Parcelable" into pi-dev 2018-06-13 20:56:11 +00:00