Commit Graph

253881 Commits

Author SHA1 Message Date
Yohei Yukawa
41941689b7 Merge "Fix a race to detemine IME switcher visibilityde" into nyc-mr1-dev 2016-08-12 17:43:43 +00:00
Alison Cichowlas
f8eca405c1 Add restart to GlobalActions.
Update power icon in GlobalActions for consistency
with new restart icon.

Bug: 30395806
Change-Id: I5ab20c15c889384fb685fc678fbf9ed912fcde5d
2016-08-12 13:41:00 -04:00
Jason Monk
de214f40cf Merge "Start listening on notifications/QS panels on expansion started" into nyc-mr1-dev 2016-08-12 17:04:47 +00:00
Tyler Gunn
34910458c4 Merge "Add ImsReason codes and DisconnectCauses for data disconnects." into nyc-mr1-dev 2016-08-12 14:54:27 +00:00
John Reck
4804404e11 Merge "Fix NPE in TextureView" into nyc-mr1-dev 2016-08-12 14:25:15 +00:00
TreeHugger Robot
ccd9ff6157 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-08-12 10:44:41 +00:00
TreeHugger Robot
d97f049315 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-08-12 09:24:39 +00:00
TreeHugger Robot
438c3cbffe Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-08-12 09:24:20 +00:00
Bill Yi
7e33c8c4d2 Import translations. DO NOT MERGE
Change-Id: Ib152ecb48817f123084dd0c776f3aa6393fc3f83
Auto-generated-cl: translation import
2016-08-12 00:26:31 -07:00
Bill Yi
cf9a807e7e Import translations. DO NOT MERGE
Change-Id: I27949ecc8590b8c00ddac9c45000e34c11205a29
Auto-generated-cl: translation import
2016-08-12 00:13:54 -07:00
Bill Yi
ab3feb2c95 Import translations. DO NOT MERGE
Change-Id: I617474f76296482b1eade0ad6ed909b4c4fd25c7
Auto-generated-cl: translation import
2016-08-12 00:06:34 -07:00
Yohei Yukawa
982a94c5e3 Fix a race to detemine IME switcher visibilityde
When the current user is switching to a user who requires password to
unlock, there is a chance that InputMethodManagerService has not
completed InputMethodManagerService#onSwitchUser() when the keyguard is
calling InputMethodManager#getEnabledInputMethodList() to detemine
whether the IME switcher icon should be shown or not.  If this occurs,
and if the previous user enables only one IME but the new user enables
multiple IMEs, it's possible that the IME switcher icon is not shown
when it should be.  Although the user is still able to work around this
by switch back to the previous user then the current user again until
the icon shows up, or can rely on a way to switch to next
IME (e.g. globe key) if it's available, the lack of the IME switcher
is still concerning since it can prevent the user from unlocking the
device.

As a quick workaround for this situation, this CL introduces a delayed
task to re-evaluate if we need to show the IME switcher icon on the
keyguard or not (currently the delay is set to 500msec) until this race
condition is fundamentally fixed.

Bug: 30640917
Change-Id: I93ea71d73540c31fbbe1cc4bd6747871f957dcc6
2016-08-11 19:16:02 -07:00
Sanket Padawe
36879a9d82 Merge "Make data warning notification heads up." into nyc-mr1-dev 2016-08-12 01:38:45 +00:00
Chong Zhang
305d610fd8 Merge "Allow to keep screen on only if window can be seen" into nyc-mr1-dev 2016-08-12 00:42:57 +00:00
Hui Shu
bd042e666a Fix documentation.
Remove spurious duplicate line in JavaDoc.

Change-Id: I7ee7339d2ef21241ff21e66683e37e8ea0bbfaa4
2016-08-12 00:27:39 +00:00
Ruben Brunk
f36d81038a Merge "Include tids in android.util.Process exceptions." into nyc-mr1-dev 2016-08-12 00:00:37 +00:00
Sanket Padawe
c015e1c63c Make data warning notification heads up.
Bug: 30760683
Change-Id: Id3fed0a62936dddabcb169536a4a917d750259d7
2016-08-11 16:34:10 -07:00
Amith Yamasani
792aaab77a Merge "Clean up when recycling a pid with a pending launch" into nyc-mr1-dev 2016-08-11 20:48:27 +00:00
Wale Ogunwale
efa21a9924 Merge changes Ide94af72,Ie2c94439 into nyc-mr1-dev
* changes:
  Clear WS.mDestroying on AWT.clearAnimatingFlags
  Some fixes for transition animation selection
2016-08-11 20:43:28 +00:00
Phil Weaver
157f416a35 Limit capabilities of a11y gesture dispatch.
Changing the service side to accept descriptions of
motion events, not motion events themselves, so we can
control their creation.

Bug: 30647115
Change-Id: Ia6772a1fc05df91818e3f88959d1e2b4a35fe0cc
(cherry picked from commit a8918f23c7)
2016-08-11 20:41:46 +00:00
Phil Weaver
364580d20a Merge "Limit capabilities of a11y gesture dispatch." into nyc-mr1-dev 2016-08-11 20:35:12 +00:00
Phil Weaver
aefa892035 Merge "Don't preserve a11y focus in hierarchy state." into nyc-mr1-dev 2016-08-11 20:34:42 +00:00
TreeHugger Robot
b1dfc3e7e1 Merge "Dump out last real used app transit type" into nyc-mr1-dev 2016-08-11 20:29:43 +00:00
Chris Tate
dd59a27f2e Merge "Check system & lock wallpaper backup eligibility independently" into nyc-mr1-dev 2016-08-11 20:20:09 +00:00
Tyler Gunn
ed21e8fc0c Add ImsReason codes and DisconnectCauses for data disconnects.
Adding reason code and disconnect causes for:
1. disconnects due to user disabling data.
2. disconnects due to data limit being reached.

Bug: 30702393
Change-Id: Id6ea5ee4f5aac1a8602094315f893e2f7b3cc8d6
2016-08-11 13:13:51 -07:00
David Christie
288166cbb2 resolve merge conflicts of b4a5615 to lmp-dev
Change-Id: I1b9ebc398226ead9d7f494c4ac56a7b1d9d6586f
2016-08-11 13:06:08 -07:00
Robert Carr
c24078f1a2 Fix NPE in deferToPendingTransaction.
Just because a child window has a surface doesn't necessarily
mean the parent window will have a surface. destroySurfaceLocked()
only takes care of setting mAttachedHidden so the child surface
will be invisible, but it may not be destroyed until a later point.

Bug: 30813094
Change-Id: Idb1b03fd61a7537ebfe33bafc93f278c0e6751f4
2016-08-11 13:03:02 -07:00
TreeHugger Robot
fd97e7bc8c Merge "Do not toggle OEM unlock if bootloader unlocked" into nyc-mr1-dev 2016-08-11 18:45:26 +00:00
David Christie
5a6b11114a Merge "Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864" into klp-dev am: df7bd91dfa
am: b9fe170c6a

Change-Id: I3e320844622617d9ae63fea4cc3a34f9f0e1e93a
2016-08-11 18:33:18 +00:00
David Christie
b4a5615416 Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864 am: dde12c6923
am: 3462e52676

Change-Id: I45779f683b417fe2d3cd4f7702d07a9cd13bd6f0
2016-08-11 18:33:15 +00:00
David Christie
b9fe170c6a Merge "Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864" into klp-dev
am: df7bd91dfa

Change-Id: Idec27e5beca07ace75b08de5ce0b6ee8bf1ab7f7
2016-08-11 18:27:26 +00:00
David Christie
3462e52676 Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864
am: dde12c6923

Change-Id: I772d5b997df579d3611eafc7542aeee2d690f946
2016-08-11 18:27:22 +00:00
Christopher Tate
6172266154 Check system & lock wallpaper backup eligibility independently
Bug 30751829

Change-Id: Ic94689dd63238449222d1aea07231d9fd29fc76d
2016-08-11 11:22:14 -07:00
David Christie
df7bd91dfa Merge "Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864" into klp-dev 2016-08-11 18:15:30 +00:00
Yohei Yukawa
ed841cbdd7 Make View#isTemporarilyDetached() less confusing
In Android N, View#isTemporarilyDetached() returns true if it is called
when the same View instance is handling View#onFinishTemporaryDetach().

Returning true there is, however, sometimes confusing, especially
scenarios like the following case:

    @Override
    public void onFinishTemporaryDetach() {
        doSomeRestoringWorks();
    }

    private void doSomeRestoringWorks() {
        doSomething();
    }

    private doSomething() {
        if (isTemporarilyDetached()) {
            // As of N, we hit here if this is called as a result of
            // View#onFinishTemporaryDetach().
        } else {
            // but is the logic here is more likely to be appropriate
            // when handling View#onFinishTemporaryDetach()?
        }
    }

What this CL aims to do is to let View#isTemporarilyDetached() return
false when it is called while handling View#onFinishTemporaryDetach(),
because it should make View#onFinishTemporaryDetach() more useful.

Regarding the app compatibility, View#isTemporarilyDetached() was added
in API 24 hence the impact on this change is still limited.

Bug: 30791718
Change-Id: If384da9f9e6ff849598896901626fd021bae5cda
2016-08-11 11:00:23 -07:00
John Reck
7e237189c2 Fix NPE in TextureView
Bug: 30779663
Change-Id: Ib3d40b60674ab3de8bfcfdd8489b89cf07b8d8b3
2016-08-11 10:43:14 -07:00
Andrew Sapperstein
f679329412 Merge "Use colorAccent for profile_button." into nyc-mr1-dev 2016-08-11 17:27:56 +00:00
Ta-wei Yen
fb6e1bf239 Merge "Add API to enable/disable the visual voicemail client" into nyc-mr1-dev 2016-08-11 17:15:14 +00:00
Esteban Talavera
c48b20f8f1 Do not toggle OEM unlock if bootloader unlocked
Bug: 30681215
Change-Id: Ia0fd55dd7b6b731d6f5733fc733621e99bd7b153
2016-08-11 18:14:03 +01:00
smain@google.com
7a66b70d96 add info about how to return default values from android.jar bug: 30757670
am: abfa7e2c65

Change-Id: I60f631fa7d33bc8cd39082a8caf8dbb9f94bb47c
2016-08-11 16:42:03 +00:00
Wale Ogunwale
3c0d44e633 Clear WS.mDestroying on AWT.clearAnimatingFlags
We call AppWindowToken.clearAnimatingFlags() when an app token is
no longer considered exiting since it is now part of the opening
app transition. To the same effect we should no longer consider
its windows destroying so they can be factored in when decided
what to do during the transition like picking the right wallpaper
target.

Bug: 30790402
Change-Id: Ide94af72a38bd4a955abb122b47f921fd3f70652
2016-08-11 09:34:45 -07:00
smain@google.com
abfa7e2c65 add info about how to return default values from android.jar
bug: 30757670

Change-Id: I84e1624cbe7ae8d5e4e2886d4e8f61d621729464
2016-08-11 16:28:01 +00:00
Chong Zhang
808621ca54 Some fixes for transition animation selection
- Request wallpaper adjust after we clear mDestroying or
  mAnimatingExit flags, as these could affect wallpaper
  target selection result.

- Adjust wallpaper before we check lower/upper target. As
  there could be pending operations that requested a wall-
  paper update. Lower/upper target is needed to correctly
  decide if the opening or closing apps had wallpaper.

- Make sure lower/upper targets are set even when current
  target is clientHidden, in which case we should set
  wallpaper target to old target but the lower/upper
  still needs to be set up.

Bug: 30790402
Bug: 30255354
Change-Id: Ie2c94439142cbb91660c5aa4164cc660831486d5
(cherry picked from commit ec8299ca45)
2016-08-11 08:00:51 -07:00
Chong Zhang
60091a978f Dump out last real used app transit type
Easier for debugging or testing bad exit animations.

Bug: 30790402
Bug: 30255354
Change-Id: I8097195bfc918baf66ecc99b55f4845aba2eaff4
(cherry picked from commit 1c93f6de2d)
2016-08-11 08:00:28 -07:00
Michael Wright
2763c2ba6c Disable battery saver when booting with sufficient battery
Bug: 29994369
Change-Id: I01d437c884e62e73dba3c1881544cfc36f953137
2016-08-11 15:45:49 +01:00
Julia Reynolds
2af6932ae8 Merge "Don't run expand/collapse animations when dismissing." into nyc-mr1-dev 2016-08-11 14:28:48 +00:00
Geoffrey Pitsch
eed326b072 Merge "Suppress Boot sound for non-standard scenarios." into nyc-mr1-dev 2016-08-11 12:56:43 +00:00
TreeHugger Robot
609770d34b Merge "Make NightDisplayService robust to early alarms" into nyc-mr1-dev 2016-08-11 02:46:50 +00:00
TreeHugger Robot
f6487b63a1 Merge "Only disable trust agents after lockout" into nyc-mr1-dev 2016-08-11 02:30:32 +00:00
TreeHugger Robot
927db408a2 Merge "Zygote: allow system server compilation to fail" into nyc-mr1-dev 2016-08-11 02:02:09 +00:00