OSDN Git Service
felkachang [Mon, 18 Jun 2018 19:07:53 +0000 (12:07 -0700)]
Merge "Fix NotificaitonPanelView x-axis shift with IME" into pi-dev
am:
1b65af27d8
Change-Id: I7236f5d24afc376709b43b032af328732aab963c
TreeHugger Robot [Mon, 18 Jun 2018 18:42:47 +0000 (18:42 +0000)]
Merge "Fix NotificaitonPanelView x-axis shift with IME" into pi-dev
Lucas Dupin [Mon, 18 Jun 2018 18:17:44 +0000 (11:17 -0700)]
Merge "Fade to black without showing system wallpaper" into pi-dev
am:
0e52664b0c
Change-Id: I7aeb34e75245f5bc9974110d9847efd03445acbd
Lucas Dupin [Mon, 18 Jun 2018 18:08:41 +0000 (18:08 +0000)]
Merge "Fade to black without showing system wallpaper" into pi-dev
Selim Cinek [Mon, 18 Jun 2018 17:45:00 +0000 (10:45 -0700)]
Merge "Fixed an issue where the contentHeight was wrong" into pi-dev
am:
ed9df0d176
Change-Id: I7f9778580993a4762895839136209d307fdc765a
felkachang [Mon, 11 Jun 2018 07:56:15 +0000 (15:56 +0800)]
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
Selim Cinek [Mon, 18 Jun 2018 17:32:20 +0000 (17:32 +0000)]
Merge "Fixed an issue where the contentHeight was wrong" into pi-dev
Lucas Dupin [Mon, 18 Jun 2018 17:09:35 +0000 (10:09 -0700)]
Merge "Pulse animation synchronization" into pi-dev
am:
32066387e1
Change-Id: I8c3737cff95213b63fbee10195c6a246829b2843
TreeHugger Robot [Mon, 18 Jun 2018 16:57:24 +0000 (16:57 +0000)]
Merge "Pulse animation synchronization" into pi-dev
Lucas Dupin [Mon, 11 Jun 2018 23:18:15 +0000 (16:18 -0700)]
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
Jorim Jaggi [Mon, 18 Jun 2018 16:09:43 +0000 (09:09 -0700)]
Merge "DO NOT MERGE Fix crash in case of no overlays" into pi-dev
am:
e8a1e7a423
Change-Id: I160e9cab3b4ebd4d5a39443b8ea3990a7943d102
Jorim Jaggi [Mon, 18 Jun 2018 15:52:09 +0000 (15:52 +0000)]
Merge "DO NOT MERGE Fix crash in case of no overlays" into pi-dev
Jorim Jaggi [Mon, 18 Jun 2018 15:38:51 +0000 (08:38 -0700)]
Merge "Prevent showing windows while animating to avoid color mode switch" into pi-dev
am:
58150a7e6e
Change-Id: I02e61ad1e4759433fa39cb8d16e8926382d415f8
Jorim Jaggi [Mon, 18 Jun 2018 15:25:03 +0000 (15:25 +0000)]
Merge "Prevent showing windows while animating to avoid color mode switch" into pi-dev
Jorim Jaggi [Fri, 8 Jun 2018 13:25:35 +0000 (15:25 +0200)]
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
Jorim Jaggi [Mon, 18 Jun 2018 12:24:11 +0000 (14:24 +0200)]
DO NOT MERGE Fix crash in case of no overlays
Fixes:
110330180
Test: Rotate a device without overlays/cutout
Change-Id: Ib0701e26893489fcee0de6aaec26901aef0b8348
Ahmed ElArabawy [Mon, 18 Jun 2018 12:40:36 +0000 (05:40 -0700)]
Merge "WiFi: Add configs for SAR support of body sensors" into pi-dev
am:
ef4a56f9e4
Change-Id: I360dc4b35d2b6acf956fd442299df330d54cbb5d
Ahmed ElArabawy [Mon, 18 Jun 2018 12:26:40 +0000 (12:26 +0000)]
Merge "WiFi: Add configs for SAR support of body sensors" into pi-dev
Chalard Jean [Mon, 18 Jun 2018 11:07:09 +0000 (04:07 -0700)]
Merge changes I4b1bca8b,Idb7d2f28,I4825e632 am:
84d4e535ae
am:
ea044ca373
Change-Id: Iea011d1dc5df03b58fcbb9dcbd4833b20cb5b5a8
Chalard Jean [Mon, 18 Jun 2018 10:06:05 +0000 (03:06 -0700)]
Merge changes I4b1bca8b,Idb7d2f28,I4825e632
am:
84d4e535ae
Change-Id: I7278ffe7ca8e25b040d6bce7fb880ccf0984f6ee
Chalard Jean [Mon, 18 Jun 2018 09:00:40 +0000 (09:00 +0000)]
Merge changes I4b1bca8b,Idb7d2f28,I4825e632
* changes:
[PT09] Add javadoc comments to all ProxyTracker methods/members.
[PT08] Move setDefaultProxy to ProxyTracker
[PT07] Small cleanup of setGlobalProxy
Andreas Gampe [Mon, 18 Jun 2018 08:28:52 +0000 (01:28 -0700)]
Merge "Apf: Avoid constant overflow" am:
5b99659943
am:
4afe1f957b
Change-Id: Id2e62fe7d34d88633ae9cd4c9a01c6a5a1eed838
Andreas Gampe [Mon, 18 Jun 2018 08:20:28 +0000 (01:20 -0700)]
Merge "Apf: Avoid constant overflow"
am:
5b99659943
Change-Id: Iacf849e3739f24cd430e6210a2e6a1c67ae0614f
Bill Yi [Mon, 18 Jun 2018 07:39:33 +0000 (00:39 -0700)]
Merge changes from topic "am-
aabaca13-84ab-4de5-bfa1-
2add13867c06" into oc-dev am:
3c047ea7fa am:
3cca4e7b06 am:
d4a1791bd7
am:
42fb737d13
Change-Id: I11dcf3e181aaa1c425eb47bc66a1d754804ed1a2
Bill Yi [Mon, 18 Jun 2018 07:30:00 +0000 (00:30 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped:
422582d9c4 skipped:
b06ba83b23 am:
437da4c13d -s ours am:
f57c14b641 -s ours am:
bc1dc5c368 -s ours
am:
8d70303da7 -s ours
Change-Id: I37882b0f82989f3d257a3f206fa9d3867713e57e
Bill Yi [Mon, 18 Jun 2018 07:23:36 +0000 (00:23 -0700)]
Merge changes from topic "am-
aabaca13-84ab-4de5-bfa1-
2add13867c06" into oc-dev am:
3c047ea7fa am:
3cca4e7b06
am:
d4a1791bd7
Change-Id: I165a9d006345b6624877fc3b453ceb2b0baa83fb
Bill Yi [Mon, 18 Jun 2018 07:15:09 +0000 (00:15 -0700)]
[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
Bill Yi [Mon, 18 Jun 2018 07:09:08 +0000 (00:09 -0700)]
Merge changes from topic "am-
aabaca13-84ab-4de5-bfa1-
2add13867c06" into oc-dev am:
3c047ea7fa
am:
3cca4e7b06
Change-Id: Ifaa547b16411e79759647dd9cc53ea76526f5e5d
Bill Yi [Mon, 18 Jun 2018 07:02:54 +0000 (00:02 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped:
422582d9c4 skipped:
b06ba83b23 am:
437da4c13d -s ours
am:
f57c14b641 -s ours
Change-Id: Id5433baa969e08bd0253cb921bdaa541a1eaad3a
Bill Yi [Mon, 18 Jun 2018 06:55:44 +0000 (23:55 -0700)]
Merge changes from topic "am-
aabaca13-84ab-4de5-bfa1-
2add13867c06" into oc-dev
am:
3c047ea7fa
Change-Id: Ie97567da2988d921748f9b4ca86f658a5222f43b
Bill Yi [Mon, 18 Jun 2018 06:53:27 +0000 (23:53 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped:
422582d9c4 skipped:
b06ba83b23
am:
437da4c13d -s ours
Change-Id: I8227403ab7fa849fcc096d3a0acfa583843abf3b
Bill Yi [Mon, 18 Jun 2018 06:50:41 +0000 (23:50 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped:
cbc81e618d skipped:
693ad9800b am:
cb1a10f5b6 -s ours am:
d996012ef5 -s ours am:
97ee183747 -s ours
am:
15123e0230 -s ours
Change-Id: I1f7790c7a09b36424a524fa3010dd2b6fe43fc1e
Bill Yi [Mon, 18 Jun 2018 06:33:25 +0000 (23:33 -0700)]
[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
TreeHugger Robot [Mon, 18 Jun 2018 06:27:04 +0000 (06:27 +0000)]
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
Bill Yi [Mon, 18 Jun 2018 06:26:21 +0000 (23:26 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped:
cbc81e618d skipped:
693ad9800b am:
cb1a10f5b6 -s ours
am:
d996012ef5 -s ours
Change-Id: Idcb8df6ed5993f00170408e685080aa525f291e1
Bill Yi [Mon, 18 Jun 2018 06:18:56 +0000 (23:18 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped:
cbc81e618d skipped:
693ad9800b
am:
cb1a10f5b6 -s ours
Change-Id: Ib5adcfbe4afabfee3e391ec528272f210b408a10
Treehugger Robot [Mon, 18 Jun 2018 06:16:23 +0000 (06:16 +0000)]
Merge "Apf: Avoid constant overflow"
Android Build Merger (Role) [Sun, 17 Jun 2018 12:14:12 +0000 (12:14 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped:
422582d9c4 skipped:
b06ba83b23
Change-Id: Iae0ad51f828f91b8211e0671900f2ffa1265c655
Android Build Merger (Role) [Sun, 17 Jun 2018 12:14:05 +0000 (12:14 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped:
422582d9c4
Change-Id: I3f93da28223af89a03736689e7f35a723b864ff5
Bill Yi [Sun, 17 Jun 2018 12:13:32 +0000 (05:13 -0700)]
Import translations. DO NOT MERGE
Change-Id: I681a0e79a709f3cabf8b661ec5229480d99dd840
Auto-generated-cl: translation import
Android Build Merger (Role) [Sun, 17 Jun 2018 10:03:39 +0000 (10:03 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped:
cbc81e618d skipped:
693ad9800b
Change-Id: I387f439df9441d64a658344837e4a2bd0f88a128
Android Build Merger (Role) [Sun, 17 Jun 2018 10:03:31 +0000 (10:03 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped:
cbc81e618d
Change-Id: I6a3ddad855bdc4ae74eab3e6e2cd42290176aab4
Bill Yi [Sun, 17 Jun 2018 10:02:56 +0000 (03:02 -0700)]
Import translations. DO NOT MERGE
Change-Id: Ied5693d3e59e24f43a7a1577471819c269c7d6df
Auto-generated-cl: translation import
Android Build Merger (Role) [Sat, 16 Jun 2018 05:58:39 +0000 (05:58 +0000)]
Merge "Merge "Use the malloc debug heap dumper." am:
0ec0c17596 am:
84c9e9a787" into pi-dev-plus-aosp
Christopher Ferris [Sat, 16 Jun 2018 05:58:09 +0000 (22:58 -0700)]
Merge "Use the malloc debug heap dumper." am:
0ec0c17596
am:
84c9e9a787
Change-Id: I96c46291cc73c021945c370c7bb33164bc0a3a0b
Beverly [Sat, 16 Jun 2018 05:55:05 +0000 (22:55 -0700)]
Merge "Skip null values in Utils.safeForeach" into pi-dev
am:
c5901f5a06
Change-Id: I60c1ee2c2036b883a456d916e26576bb206a39ec
Android Build Merger (Role) [Sat, 16 Jun 2018 05:50:04 +0000 (05:50 +0000)]
Merge "Merge "Don't back up Assist Gesture setup/sensitivity" into pi-dev am:
a74fbef8ce" into pi-dev-plus-aosp
Kevin Chyn [Sat, 16 Jun 2018 05:49:30 +0000 (22:49 -0700)]
Merge "Don't back up Assist Gesture setup/sensitivity" into pi-dev
am:
a74fbef8ce
Change-Id: Ib14cc5a35991dec3623ecf2dfdb72cbbccd7e53e
Colin Cross [Sat, 16 Jun 2018 05:46:10 +0000 (22:46 -0700)]
Merge "Fix ManifestMerger issues" am:
684b5f038b
am:
c5e5b64b04
Change-Id: I4b8e51aaec1f825e4ccf7ccbc60e61b82e05c509
Christopher Ferris [Sat, 16 Jun 2018 05:41:30 +0000 (22:41 -0700)]
Merge "Use the malloc debug heap dumper."
am:
0ec0c17596
Change-Id: I0f0d6a01a4a0d55f18e3f7b7ac7c64534d4b8f54
TreeHugger Robot [Sat, 16 Jun 2018 03:16:06 +0000 (03:16 +0000)]
Merge "Skip null values in Utils.safeForeach" into pi-dev
TreeHugger Robot [Sat, 16 Jun 2018 00:28:17 +0000 (00:28 +0000)]
Merge "Don't back up Assist Gesture setup/sensitivity" into pi-dev
Colin Cross [Fri, 15 Jun 2018 23:59:21 +0000 (16:59 -0700)]
Merge "Fix ManifestMerger issues"
am:
684b5f038b
Change-Id: I4a551483dd3f0093f11b557a8ee6e6a99cace256
Selim Cinek [Fri, 15 Jun 2018 21:53:49 +0000 (14:53 -0700)]
Merge "Hiding replied notification icons from AOD" into pi-dev
am:
37e96a8fa5
Change-Id: I60a5aa171261b97b4f6de41515332fa93016eb8d
Adrian Roos [Fri, 15 Jun 2018 21:48:23 +0000 (14:48 -0700)]
Merge changes I90451c14,I9fb27a0a into pi-dev
am:
b91dd1d944
Change-Id: I58459846d6cb79d616b4bd9c83450dc911e5115c
Christopher Ferris [Fri, 15 Jun 2018 21:36:42 +0000 (21:36 +0000)]
Merge "Use the malloc debug heap dumper."
Lucas Dupin [Wed, 13 Jun 2018 00:45:21 +0000 (17:45 -0700)]
Pulse animation synchronization
Fade in pulsing notification after a delay and
fix clock scale delay.
Fixes:
109809484
Fixes:
110204622
Test: visual
Change-Id: I3b62c4c2508d7b536287020801a58cb317e88ac0
Treehugger Robot [Fri, 15 Jun 2018 20:47:30 +0000 (20:47 +0000)]
Merge "Fix ManifestMerger issues"
Selim Cinek [Fri, 15 Jun 2018 20:44:08 +0000 (20:44 +0000)]
Merge "Hiding replied notification icons from AOD" into pi-dev
Adrian Roos [Fri, 15 Jun 2018 20:28:13 +0000 (20:28 +0000)]
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
Christopher Ferris [Wed, 13 Jun 2018 20:19:57 +0000 (13:19 -0700)]
Use the malloc debug heap dumper.
Instead of having the malloc debug heap dump code live in frameworks
code, call into malloc debug to do the dump.
Test: Ran am dumpheap -n <PID> <FILE> of a process with and without
Test: malloc debug enabled.
Change-Id: I7911a3ee7dcbc79dd11003a24e27ff99c8301d43
Merged-In: I7911a3ee7dcbc79dd11003a24e27ff99c8301d43
(cherry picked from commit
38e2c3bc9c50770aa5efce47f90fbcfcdda523de)
Eric Laurent [Fri, 15 Jun 2018 17:59:08 +0000 (10:59 -0700)]
Merge "audioservice: fix a2dp connection race condition" into pi-dev
am:
706303541e
Change-Id: I7ce96cb90aad6c826bbeb7be0e80950f2a89b517
Philip P. Moltmann [Fri, 15 Jun 2018 17:48:34 +0000 (10:48 -0700)]
Merge "Abbreviate permission labels less aggressively" into pi-dev
am:
af76df93e3
Change-Id: I61a45dd4489c930f2c5b3fbcf6f7632771d6f18e
Eric Laurent [Fri, 15 Jun 2018 17:43:42 +0000 (17:43 +0000)]
Merge "audioservice: fix a2dp connection race condition" into pi-dev
Selim Cinek [Thu, 14 Jun 2018 01:23:45 +0000 (18:23 -0700)]
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
Beverly [Fri, 15 Jun 2018 15:04:02 +0000 (11:04 -0400)]
Skip null values in Utils.safeForeach
Test: ZenModeControllerImplTest.java
Bug:
110209145
Change-Id: I4234be630c84444a70d8cb380ca6a692a4ff5cbc
Philip P. Moltmann [Fri, 15 Jun 2018 17:18:52 +0000 (17:18 +0000)]
Merge "Abbreviate permission labels less aggressively" into pi-dev
Sundong Ahn [Fri, 15 Jun 2018 05:12:45 +0000 (22:12 -0700)]
Merge "Build com.android.location.provider with java_sdk_library" am:
aa5d8dfeb0
am:
abdaa314f8
Change-Id: If55a20564704769fc750fb6675533e9a0b8f3b6a
Bernie Innocenti [Fri, 15 Jun 2018 05:02:58 +0000 (22:02 -0700)]
Merge "Make dumpHexString() tolerate null arrays." am:
a917c1db32
am:
7bb253d078
Change-Id: Id58b8039510baa518d8d10b03237681a7b842d0f
Sundong Ahn [Fri, 15 Jun 2018 04:59:40 +0000 (21:59 -0700)]
Merge "Build com.android.location.provider with java_sdk_library"
am:
aa5d8dfeb0
Change-Id: I53720ed4fcbe9f00f2f1f607d07efa9adaaf7bb4
Bernie Innocenti [Fri, 15 Jun 2018 04:55:53 +0000 (21:55 -0700)]
Merge "Make dumpHexString() tolerate null arrays."
am:
a917c1db32
Change-Id: Ib0160e232cab0a713853a65eef26f7a02d65c1f1
Treehugger Robot [Fri, 15 Jun 2018 03:41:18 +0000 (03:41 +0000)]
Merge "Build com.android.location.provider with java_sdk_library"
Tony Huang [Fri, 15 Jun 2018 03:13:32 +0000 (20:13 -0700)]
Fix solid circle show on message notification
am:
1250cd1407
Change-Id: I9742ab1f93c797e23d4545d6659efcfa4808b03c
Tony Huang [Wed, 6 Jun 2018 07:40:47 +0000 (15:40 +0800)]
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
Treehugger Robot [Fri, 15 Jun 2018 02:32:54 +0000 (02:32 +0000)]
Merge "Make dumpHexString() tolerate null arrays."
Adrian Roos [Thu, 31 May 2018 16:07:28 +0000 (18:07 +0200)]
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
Adrian Roos [Thu, 7 Jun 2018 13:29:34 +0000 (15:29 +0200)]
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
Eric Laurent [Thu, 14 Jun 2018 02:36:42 +0000 (19:36 -0700)]
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
Tracy Zhou [Thu, 14 Jun 2018 23:50:53 +0000 (16:50 -0700)]
Merge "Revert "Change quickstep onboarding tip window type to"" into pi-dev
am:
b2b255a131
Change-Id: I585b9c7df35114b47ea0ab9af7ee0b881b195e4e
Tracy Zhou [Thu, 14 Jun 2018 23:28:34 +0000 (23:28 +0000)]
Merge "Revert "Change quickstep onboarding tip window type to"" into pi-dev
Colin Cross [Thu, 14 Jun 2018 22:23:21 +0000 (15:23 -0700)]
Fix ManifestMerger issues
Set LOCAL_MIN_SDK_VERSION in SettingsLib so that the build system
doesn't raise the minSdkVersion value specified in the manifest,
which causes ManifestMerger to error when trying to merge it into
a package that specifies a lower minSdkVersion.
Bug:
78447299
Test: m java
Change-Id: Ie2c2458647cd6495418999b35894dc92343992cc
Wale Ogunwale [Thu, 14 Jun 2018 22:18:36 +0000 (15:18 -0700)]
Make testSplitscreenPortraitAppOrientationRequests pass to unblock release
am:
cf2d6475f9
Change-Id: I93ac74e692e5d0f7f78d2c431b9e4fd4300aec09
Neil Fuller [Thu, 14 Jun 2018 21:31:23 +0000 (14:31 -0700)]
Merge "Clear calling identity before doing any work" am:
31686e954a
am:
3eb2ad1096
Change-Id: I3a940e1fb84bc04b7b53cbe25111768deb3e6d0c
Neil Fuller [Thu, 14 Jun 2018 21:15:04 +0000 (14:15 -0700)]
Merge "Clear calling identity before doing any work"
am:
31686e954a
Change-Id: I144fd2b5f46ce7d7a06195a2dd5207d44cd951f0
Treehugger Robot [Thu, 14 Jun 2018 19:13:29 +0000 (19:13 +0000)]
Merge "Clear calling identity before doing any work"
Philip P. Moltmann [Thu, 14 Jun 2018 18:52:14 +0000 (11:52 -0700)]
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
Neil Fuller [Wed, 13 Jun 2018 15:56:38 +0000 (16:56 +0100)]
Clear calling identity before doing any work
This makes sure that the system server is credited/blamed
for the logic being executed.
Test: (internal) atest FrameworksServicesTests:com.android.server.timedetector
Bug:
78217059
Change-Id: Ie2586cf0d983e9aef9371d6db285c8420e9c8dc0
Wale Ogunwale [Thu, 14 Jun 2018 15:55:42 +0000 (08:55 -0700)]
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
Andreas Gampe [Wed, 13 Jun 2018 18:35:16 +0000 (11:35 -0700)]
Apf: Avoid constant overflow
The used constant overflows. This is irrelevant to the test, so
decrease test constant.
Bug:
110155920
Test: m javac-check RUN_ERROR_PRONE=true
Change-Id: Idfc7e987ba9c36389a20c7fc01b1161ef89483d8
Bernie Innocenti [Thu, 14 Jun 2018 08:55:58 +0000 (17:55 +0900)]
Make dumpHexString() tolerate null arrays.
Rationale: hexdumps are mainly used when verbose logging is enabled,
which means that callers are rarely exercised (let alone tested).
Crashing on unchecked null pointers doesn't make debugging any easier,
nor production code any more robust.
Moreover, this is the behavior of system.out.println() and other
logging APIs.
Test: runtest -x core/tests/coretests/src/com/android/internal/util/HexDumpTest.java
Bug:
110177912
Change-Id: Idccd81a5654ed0f7fee6b27177941bf8c311973e
Neil Fuller [Thu, 14 Jun 2018 09:49:13 +0000 (02:49 -0700)]
Merge "Add TimestampedValue.toString()" am:
bfa58946f7
am:
494665870f
Change-Id: Iedd2ce7207cb8c74e9a109e8cdb6c687f45072ec
Neil Fuller [Thu, 14 Jun 2018 09:40:17 +0000 (02:40 -0700)]
Merge "Add TimestampedValue.toString()"
am:
bfa58946f7
Change-Id: I38760ef47ba04f20882a467857e7c57c088d4391
Neil Fuller [Thu, 14 Jun 2018 08:21:27 +0000 (08:21 +0000)]
Merge "Add TimestampedValue.toString()"
Lucas Dupin [Thu, 14 Jun 2018 04:29:09 +0000 (21:29 -0700)]
Merge "Smoother wake-up animation" into pi-dev
am:
f910fdb1da
Change-Id: I47833b22c573b67978cb327e8a5b73756618ac0c
TreeHugger Robot [Thu, 14 Jun 2018 04:18:20 +0000 (04:18 +0000)]
Merge "Smoother wake-up animation" into pi-dev
Lucas Dupin [Tue, 12 Jun 2018 22:05:28 +0000 (15:05 -0700)]
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
Lucas Dupin [Thu, 14 Jun 2018 01:30:24 +0000 (18:30 -0700)]
Merge "Config to enable/disable AOD via overlay" into pi-dev
am:
b784e6f7bc
Change-Id: I7e6d629b9ca6e87a48c332dab470771c4564985d
Lucas Dupin [Thu, 14 Jun 2018 01:16:44 +0000 (01:16 +0000)]
Merge "Config to enable/disable AOD via overlay" into pi-dev
Pengquan Meng [Wed, 13 Jun 2018 23:18:27 +0000 (16:18 -0700)]
[automerger skipped] Merge changes from topic "clean" am:
9f2362bb82
am:
fdad4c89fb -s ours
Change-Id: If0c0f3bfdc0793d07ded76a4d01fec0d439b939e
Benjamin Miller [Wed, 13 Jun 2018 23:12:39 +0000 (16:12 -0700)]
[automerger skipped] Docs: noted that setting proxy hostnames on an ApnSetting requires an internet connection for DNS. am:
ce3d429832 -s ours
am:
8efa35360f -s ours
Change-Id: Iee13564cbfd41b291ec4eb1020ba76d141ce244b