Commit Graph

328125 Commits

Author SHA1 Message Date
Wei Wang
4d282544c3 Shutdown: Continue shutdown with BLE only mode
Bug: 64213593
Test: shutdown no timeout
Change-Id: I5007e7cfc00ab22fce3b6ef13bacbcc951197b9e
2017-08-08 06:53:32 +00:00
TreeHugger Robot
673e3c41ec Merge "Reset wait for transition state to false when recents goes invisible" into oc-dr1-dev 2017-08-08 00:32:09 +00:00
TreeHugger Robot
c7d24aed82 Merge "Revert "Revert "Fixing occasional jump when launching certain apps from Recents.""" into oc-dr1-dev 2017-08-08 00:32:09 +00:00
Andrii Kulian
cbdaf04101 Merge "Add black frame behind app window" into oc-dr1-dev 2017-08-07 22:07:22 +00:00
TreeHugger Robot
2b7fbd010e Merge "AOD: Fix shelf animating when it should not" into oc-dr1-dev 2017-08-07 18:27:57 +00:00
Matthew Ng
c422f80cc9 Reset wait for transition state to false when recents goes invisible
From ag/2572257, this change will ensure the transition wait flag to be
false when recents runs "onStop" or when it becomes invisible. This
should fix edge cases when a user goes from Recents to somewhere that
is not a fullscreen app (like home). Resetting the state should allow
users to use the recents button without getting blocked.

There is only two locations where the flag is set to true, when user
starts recents and when an app is started from recents. When a user goes
from recents to home with the recents button (when the phone gets into a
wierd state), then the flag is true but home does not reset the flag
because the old change expects a non-home app to start. Now whenever
recents is dismissed, the flag will be reset.

Fixes: 37277853
Bug: 64098508
Test: start recents with apps in it, go to guest account, start apps in
recents, go back to main account, unlock keyguard, press recents button
to dismiss recents (do not press home or back), it will go to home,
press recents again
Change-Id: I07c292d701a621685c836a4f6040864377f0a3dd
2017-08-07 11:25:57 -07:00
TreeHugger Robot
242c22c900 Merge "AAPT2: Disable locale domination for deduping" into oc-dr1-dev 2017-08-07 17:34:44 +00:00
Ecco Park
8eec744ccb Location: adding NULL check for the LPP_PROFILE property
Bug: 35485906

Change-Id: I5e40be8ce0d3832f0e913bfe8fd9a38d87d0d28c
Signed-off-by: Ecco Park <eccopark@google.com>
2017-08-07 16:51:12 +00:00
Jonathan Basseri
35a563ef62 Merge "Move getNetworkCountryIso impl from TM to PIM." into oc-dr1-dev 2017-08-07 16:18:52 +00:00
Adrian Roos
260c1f7c63 AOD: Fix shelf animating when it should not
Fixes an issue where the shelf would animate downwards when going to AOD.

The issue is that setDark gets called in updateIsKeyguard even though nothing changed,
yet it still re-requests the dark transition. Consequently, when the keyguard goes dark
later, the requested transition executes and moves the shelf downwards.

Change-Id: I8c590aeb4f330d8c3c1b51285d899d5f6db36323
Fixes: 64412244
Test: Double tap on notification on AOD2; press power; verify shelf does not move downwards
2017-08-07 15:52:26 +02:00
TreeHugger Robot
9f3bac52ee Merge "AOD: Fix launching notifications from occluded AOD" into oc-dr1-dev 2017-08-07 13:41:22 +00:00
TreeHugger Robot
81e3b48f9c Merge "AOD: Never show bouncer when dozing" into oc-dr1-dev 2017-08-07 12:53:50 +00:00
Jorim Jaggi
9aa43e6320 Merge "Defer updating dim layers if layout is deferred" into oc-dr1-dev 2017-08-07 12:23:55 +00:00
Jorim Jaggi
997f2f71fa Merge "Fix light bar flickers" into oc-dr1-dev 2017-08-07 12:17:35 +00:00
TreeHugger Robot
4499576db0 Merge "screencap: always exit with _exit()." into oc-dr1-dev 2017-08-07 10:54:02 +00:00
TreeHugger Robot
17844f2257 Merge "Avoid entering orientation changing state when seamlessly rotating." into oc-dr1-dev 2017-08-07 10:44:18 +00:00
Hugo Benichi
1b3877a965 Merge "NetworkCapabilities: fix describeImmutableDifferences" into oc-dr1-dev 2017-08-07 05:42:48 +00:00
TreeHugger Robot
f6d5426433 Merge "Import translations. DO NOT MERGE" into oc-dr1-dev 2017-08-05 13:31:00 +00:00
TreeHugger Robot
5e4a4d76e1 Merge "Import translations. DO NOT MERGE" into oc-dr1-dev 2017-08-05 13:29:59 +00:00
TreeHugger Robot
08815ac99f Merge "Import translations. DO NOT MERGE" into oc-dr1-dev 2017-08-05 13:24:06 +00:00
TreeHugger Robot
f9e03da0b9 Merge "Import translations. DO NOT MERGE" into oc-dr1-dev 2017-08-05 13:18:41 +00:00
TreeHugger Robot
e1a6bf5b74 Merge "Import translations. DO NOT MERGE" into oc-dr1-dev 2017-08-05 13:11:13 +00:00
TreeHugger Robot
c1d8698655 Merge "Import translations. DO NOT MERGE" into oc-dr1-dev 2017-08-05 13:10:07 +00:00
TreeHugger Robot
6153572baa Merge "Import translations. DO NOT MERGE" into oc-dr1-dev 2017-08-05 13:05:45 +00:00
Bill Yi
1019127463 Import translations. DO NOT MERGE
Change-Id: I6127e525c2824a2c947728ef94251082fd5bec14
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-05 02:17:44 -07:00
Bill Yi
30ae8961ad Import translations. DO NOT MERGE
Change-Id: I4e89d6ac0b96852fae1e1c8a030ffd8c5e003171
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-05 02:13:14 -07:00
Bill Yi
c1ba008845 Import translations. DO NOT MERGE
Change-Id: Ib197bb63c3fbcef8ffc69275998deb040203f1cb
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-05 00:56:19 -07:00
Bill Yi
834d4ba9e9 Import translations. DO NOT MERGE
Change-Id: If4c521d07e05c2602b15d5d7752d84a57507ad92
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-05 00:35:11 -07:00
Bill Yi
38037535e4 Import translations. DO NOT MERGE
Change-Id: I53239157d82bf33503972713fe1657e2295aa526
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-05 00:30:33 -07:00
Bill Yi
c4a7410eb8 Import translations. DO NOT MERGE
Change-Id: If65ca28adeee2b1ae467f2e8d780e4f597a3e81e
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-05 00:20:52 -07:00
Bill Yi
de1591b8db Import translations. DO NOT MERGE
Change-Id: Id0b1ae5fd74159dd5d84b61f1c5f6470de295053
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-05 00:16:15 -07:00
Hugo Benichi
8a3a012a1c NetworkCapabilities: fix describeImmutableDifferences
This patch fixes the mask used in describeImmutableDifferences which did
not correctly turn NET_CAPABILITY_NOT_METERED into bit flag.

Bug: 63326103
Test: added unit tests, runtest frameworks-net
Merged-In: Ib6b390b1daef5912859302692af7dcd6cfd3e39a
Merged-In: If38efacdeec8476880835657938e435f9b598525
Merged-In: Ieccad46fcffcaf748f5644b04617e9a82527000e
Merged-In: I533ef8fe369cec19d283ff2950314fce6e28cffd
Merged-In: I12636c6699ff60487a28570208e819ea0b66fa2e
Merged-In: Ie5df14e0ea1c12e0cfabe87978ac6c9b744353b2

(cherry picked from commit 2ecb9408f4)

Change-Id: I74ecf34a2c079c74152d00caea2c220e9c6d1fa5
2017-08-05 11:37:10 +09:00
TreeHugger Robot
bce71a114d Merge "Import translations. DO NOT MERGE" into oc-dr1-dev 2017-08-05 02:35:46 +00:00
Adam Lesinski
907399187e AAPT2: Disable locale domination for deduping
Locale deduping isn't straightforward, as parenting rules
change between platform versions and the selection
preference of a specific locale variant over the default
configuration lead to incorrect results at runtime.

Bug: 62409213
Test: make aapt2_tests
Change-Id: Iec8f1cfba7ae43c847d163529891fdc15f3db826
2017-08-04 17:23:14 -07:00
Jonathan Basseri
6442cc90b5 Move getNetworkCountryIso impl from TM to PIM.
This moves the implementation of getNetworkCountryIso from
TelephonyManager into PhoneInterfaceManager so that we can perform an
additional IWLAN check.

Bug: 63050313
Test: no compilation errors
Merged-In: I64f31d111213281edeaeda6a09b163b860261b2d
Change-Id: I541b445b410329798acdaaaccc50955cd1574ae2
2017-08-04 16:53:03 -07:00
Selim Cinek
82e815616e Merge "Fix activity start over Keyguard" into oc-dr1-dev 2017-08-04 23:41:07 +00:00
Bill Yi
098e033d17 Import translations. DO NOT MERGE
Change-Id: I11e8908001cbf5e33e280ca2c8fb3b30c686f3f2
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-04 16:14:49 -07:00
Adrian Roos
bd27fd7368 Merge "AOD: Fix navbar flicker when launching assistant" into oc-dr1-dev 2017-08-04 22:41:23 +00:00
Andrii Kulian
283acd20ca Add black frame behind app window
Add black background behind letterboxed apps on displays with tall
aspect ratio. This is needed to make sure that other windows won't
bleed through status/navigation bar area, because letterboxed
windows are not considered fullscreen.

Bug: 63156733
Bug: 62893418
Test: go/wm-smoke
Test: Trigger animations to/from recents with different rotations.
Change-Id: If0eac9a3801518185d560a87d9f88ee0aafa3a9c
2017-08-04 14:32:26 -07:00
TreeHugger Robot
0c8e5b6dda Merge "Fix race condition / test flakiness." into oc-dr1-dev 2017-08-04 20:59:34 +00:00
Chavi Weingarten
c36b2f0490 Merge "Only allow one turnScreenOn per app resume." into oc-dr1-dev 2017-08-04 20:30:57 +00:00
TreeHugger Robot
6df24d2f42 Merge "New keyguard icons" into oc-dr1-dev 2017-08-04 20:14:52 +00:00
Selim Cinek
fb52158e85 Merge "Fixed that the screen could lock when launching camera" into oc-dr1-dev 2017-08-04 19:41:06 +00:00
chaviw
d3bf08da95 Only allow one turnScreenOn per app resume.
The current behavior will turn the screen on if a relayout is
called. This is problematic because if the screen is off but the
client is still requesting relayouts, the relayout will trigger
a request to turn the screen on. This change ensures that the screen
will only get turned on at most once per resume. If the activity
is relaunched again, the screen can be turned on again.

Fixes: 64139966
Test: go/wm-smoke
Test: Added cts test ActivityManagerActivityVisibilityTests#testTurnScreenOnActivity_WithRelayout
Test: Set the phone to have always on ambient display. Launched the
dialer app and turned the screen off. The screen no longer turns back
on automatically.

Change-Id: I5f6ac5451683d4488e72e3a6377cb3a6fd6504b2
2017-08-04 10:52:19 -07:00
TreeHugger Robot
a083c8f83a Merge "Make NearestTouchFrameTest run on more device configurations" into oc-dr1-dev 2017-08-04 17:26:55 +00:00
Adrian Roos
91ffdc4194 AOD: Fix launching notifications from occluded AOD
Fixes an issue where launching notifications from AOD when a SHOW_WHEN_LOCKED
activity was showing did not work because the bouncer got dismissed.

After that was fixed and the bouncer showed, the launch transition did not
work because the panel was not collapsible. Instead of waiting for the panel
to collapse, just start keyguardDone directly if not collapsible.

Change-Id: I8813f91c741da372c9cb559797f4dc0fe8578d8c
Fixes: 63686192
Test: Disable TrustAgent if enabled, launch maps navigation, get notification, double tap on notification and/or actions. Verify Bouncer shows and unlock works.
2017-08-04 18:25:50 +02:00
Jorim Jaggi
1f83308556 Defer updating dim layers if layout is deferred
When a translucent activity is on top of launcher and the activity
is animated away, we update the layers too early in case the
activity window is dimming. After starting the launcher, launcher
is on top of activity already in the hierarchy, but we haven't
started the transtion yet which would prevent the launcher to be
visible on top of activity by the anim layer adjustment.

To fix this, we prevent updating the layers if layout is currently
deferred.

Ideally we would do the whole activityStart in one surface
transaction but that's way too risky at this point.

Test: Open translucent dimming activity over launcher, press home,
ensure no flickering.
Test: go/wm-smoke

Change-Id: I72b8f5f555b555646121355c19cf7813e4f8d7a3
Fixes: 64206558
2017-08-04 18:25:11 +02:00
Adrian Roos
fee661cafe AOD: Never show bouncer when dozing
Fixes an issue where the bouncer was appearing on AOD under
certain circumstances. To prevent that, delay showing the
bouncer until we are no longer dozing or at least guaranteed
to wake up.

Change-Id: I0fa53616db09be98d33ea7d06b38d8ff3037707f
Fixes: 64287908
Test: Go to AOD; adb shell service call window 42; verify that bouncer only comes up after waking up from AOD.
2017-08-04 17:08:16 +02:00
Jason Monk
e57e9dcadf Make NearestTouchFrameTest run on more device configurations
Test: runtest systemui
Change-Id: Ied095c1e884d1ca95531e2f4e182f1d1bcaaeb35
Fixes: 64339927
2017-08-04 10:59:13 -04:00
Jorim Jaggi
c0c9324fcb Fix light bar flickers
There was a time in which no window was mTopFullscreenOpaqueWS
when switching between two apps because the previous one was
exiting already before the next one was shown. Fix this by only
considering a window to be exiting after the animation actually
has started. In that case the surface of the incoming window will
be visible already.

Test: go/wm-smoke
Test: Open Cast settings, go home with light wallpaper set
Change-Id: I89a85d5fbfe1618940b398cd26a8d5fe53be12fb
Fixes: 64291272
2017-08-04 16:05:02 +02:00