Commit Graph

368557 Commits

Author SHA1 Message Date
Julia Reynolds
b2ad5f251c Merge "Catch unbinding errors" into oc-mr1-dev
am: ebd047e92f

Change-Id: Ifd29c608bb23afb5ed630d9fc57d40f41b7d0921
2018-06-21 14:15:26 -07:00
TreeHugger Robot
ebd047e92f Merge "Catch unbinding errors" into oc-mr1-dev 2018-06-21 21:00:27 +00:00
Selim Cinek
43999195e9 Merge "Only enable setAntiBurnInOffsetX() in AOD(Ambient) condition" into pi-dev 2018-06-21 20:40:56 +00:00
TreeHugger Robot
1fa5751789 Merge "Always ignore summaries" into pi-dev 2018-06-21 18:55:33 +00:00
TreeHugger Robot
cba5f92768 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-06-21 18:35:27 +00:00
TreeHugger Robot
063ead3e1f Merge "Import translations. DO NOT MERGE" into pi-dev 2018-06-21 18:33:40 +00:00
TreeHugger Robot
ebfd27503a Merge "Import translations. DO NOT MERGE" into pi-dev 2018-06-21 18:11:30 +00:00
Tyler Gunn
766259698a Merge "Update docs and ensure PHONE_STATE is more predictable for unknown numbers." into pi-dev 2018-06-21 18:10:16 +00:00
Bill Yi
43b3e9731d Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia75664c86821774661b830e2fc6ed8ef0392f58c
2018-06-21 09:42:26 -07:00
TreeHugger Robot
0fb45603fe Merge "Fix issue with manual touch dispatch" into pi-dev 2018-06-21 16:10:35 +00:00
Julia Reynolds
6b302d0afb Always ignore summaries
Test: runtest systemui-notification
Bug: 78643290
Change-Id: Ia036e528666af336897431dd11efeffc92accdc7
(cherry picked from commit 760fa7613e)
2018-06-21 16:09:55 +00:00
Bill Yi
b881e8aedf Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If0cc65463dca8363427a9021601aee4401caccaa
2018-06-21 05:09:41 -07:00
Bill Yi
17106bd99c Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5e7887dbf5d42f3ff85a303356dc74c78c55b863
2018-06-21 00:55:32 -07:00
TreeHugger Robot
80167ec0c7 Merge "Stabilize hidden API lists" into pi-dev 2018-06-21 06:07:22 +00:00
TreeHugger Robot
eec75058ba Merge "More light grey APIs." into pi-dev 2018-06-21 05:21:01 +00:00
Marco Nelissen
d7c87b74d9 Merge "Fix race condition in MediaHTTPConnection" into pi-dev 2018-06-20 22:14:33 +00:00
Nicolas Geoffray
43536175f2 More light grey APIs.
bug: 110157261
bug: 110065832
bug: 110179435
bug: 110174713
bug: 110191494
bug: 110282922
bug: 110289776
bug: 110314356
bug: 110340642
bug: 110382035
Bug: 110444248
Bug: 110447432
bug: 110378707

Test: m
Change-Id: I5d7c0f9d471eab22e23cc335f03cebecb642f871
2018-06-20 22:39:15 +01:00
Julia Reynolds
89945c5a22 Don't throw uri exceptions for user chosen sounds
Bug: 109889733
Test: runtest systemui-notification
Change-Id: I5ed599deca83f97899affce44e3ed8fbcacae366
(cherry picked from commit 218871ee3f)
2018-06-20 17:00:04 +00:00
Tyler Gunn
1c27bb7a54 Update docs and ensure PHONE_STATE is more predictable for unknown numbers.
In P the PHONE_STATE broadcast behavior changed due to new permission
requirements.  Updating the API docs for this broadcast to make it more
clear to developers how the broadcast will work given different permission
scenarios.

Also, made a minor change to how the "EXTRA_INCOMING_NUMBER" is populated
on the phone state broadcast.  Originally we opted to remove
EXTRA_INCOMING_NUMBER when the number is empty.  Developer feedback reveals
it is difficult to know for an unknown caller (where numer is empty)
whether the broadcast they're receiving is the one associated with the
broadcast for receivers with READ_CALL_LOG, or the one for receivers
without it.  This minor change eliminates the need to count broadcasts and
instead allows the developer to just focus on whether the extra is present
or not.

Test: make docs and verify the javadoc appears as expected.
Test: Used test app to confirm functionality.
Bug: 110190165
Change-Id: I35967d53274b99d66b63f4ff5acb60a689745f9d
2018-06-20 08:50:58 -07:00
Marco Nelissen
d4f64f27b0 Fix race condition in MediaHTTPConnection
getSize() and getMIMEType() rely on seekTo() having completed.
If seekTo() was called on a different thread, for example because
NuCachedSource2 was doing reads on a background thread, getSize()
could return -1 if it was called after connection was established,
but before the response had been parsed.

Bug: 110230427
Test: manual
Change-Id: I469b47e025f1c7a7ef3123d3347668f0541e6f2d
2018-06-20 07:42:05 -07:00
Jorim Jaggi
45611dd8d4 Fix issue with manual touch dispatch
Need to dispatch it to the view that guards against the disabled
flags.

Change-Id: I0082ef24ed6aa06631f475cc33a0cf3f5f138911
Merged-In: I0082ef24ed6aa06631f475cc33a0cf3f5f138911
Fixes: 110228458
Test: Expand above notch from SUW
2018-06-20 13:19:17 +00:00
TreeHugger Robot
bbe6ee065d Merge "Clean up RemoteCallbackList when we're done with it." into pi-dev 2018-06-20 07:47:35 +00:00
TreeHugger Robot
1e1635a45e Merge "Prefer default Internet network for upstream tethering." into pi-dev 2018-06-20 04:28:50 +00:00
Bill Lin
278e7d6db3 Only enable setAntiBurnInOffsetX() in AOD(Ambient) condition
NotificationPanelView detect the ACTION_DOWN X-position for expanding Panel
and dispatch x-offset to QSFrame and StackScroller
However, StackScroller reset the translateX via updateAntiBurnInTranslation()
Base on previous patches to enhance setAntiBurnInOffsetX policy
     1. ag/3536525 (Fixes: 72527703)
     2. ag/3846247 (Fixes: 77541088)

Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayoutTest.java
Change-Id: I52c86e865d97282e40b6f2847a2ff0190e4d80e9
Fix: 110102296
2018-06-19 23:33:52 +00:00
Brad Ebinger
4cc443ae2e Merge "Revert isResolvingImsBinding ITelephony interface" into pi-dev 2018-06-19 22:36:52 +00:00
Yu-Han Yang
6eb9ce63b8 Merge "Enable REQUEST_LOCATION from GNSS HAL" into pi-dev 2018-06-19 21:08:48 +00:00
Shuzhen Wang
941189bf28 Merge "Camera: codegen doc update" into pi-dev 2018-06-19 20:19:38 +00:00
Brad Ebinger
5f05f1e405 Revert isResolvingImsBinding ITelephony interface
Reverting the only user of this interface.

Bug: 109762920
Test: GTS/Unit tests for ImsService
Change-Id: Id2e1ac2e4fbbcb7f019e79568f21ee56c94b6c1f
Merged-In: Id2e1ac2e4fbbcb7f019e79568f21ee56c94b6c1f
2018-06-19 19:54:43 +00:00
Erik Kline
4080a1bd15 Prefer default Internet network for upstream tethering.
Rather than use the crufty config.xml list of upstream transport types,
use ConnectivityService's notion of the default network for the upstream.
In cases where a DUN network is required and the default network is
currently a mobile network, look for a DUN network (code in Tethering
is currently responsible for requesting one).

Test: as follows
    - built, flashed, booted
    - runtest frameworks-net
    - tethered via mobile, joined captive portal network, maintained
      laptop access via mobile until captive passed (then used wifi)
    - disabled client mode wifi, disabled mobile data, plugged in
      ethernet adapter, observed connectivity via ethernet
Bug: 32163131
Bug: 62648872
Bug: 63282480
Bug: 109786760
Bug: 110118584
Bug: 110260419
Change-Id: I925b75994e31df8046f3ef9916a2457b4210485e
2018-06-19 20:57:21 +09:00
Yin-Chia Yeh
6c73e409fc Camera: codegen doc update
Test: N/A. Doc update
Bug: 109666939
Change-Id: I2bd176a7f5ada755c8a79201d142a98131e2e82c
2018-06-18 16:18:34 -07: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
David Brazdil
5999830557 Stabilize hidden API lists
Hidden API lists are auto-generated using a combination of Doclava
/Makefile rules and manually curated lists. As OEMs make their own
changes to the framework, they might arrive at slightly different
lists. This is not desirable as the entire ecosystem should enforce
the same rules. This patch adds the files generated by Doclava to
the code base, which will stabilize the lists for everyone.

The problem is exacerbated by the fact that the Doclava-generated
private-dex.txt contains only classes explored by Doclava. This can
change rather unexpectedly as OEMs make changes and start/stop using
internal classes otherwise only used in unexplored code. If the file
is extended, they might start blacklisting new APIs. If the file
shrinks, they might start whitelisting APIs they should restrict
access to and have trouble passing CTS.

(Avoid merging out of pi trees)

Test: m ; check that produced lists have not changed
Bug: 109824927
Merged-In: I0e9653d9cd7e4b748870bacb6fbcecae535ebb2a
Change-Id: I1463a06d6510e7051a64d5d516f4c589638ca11c
2018-06-18 15:17:55 +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