OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Assist: Allow disabling the disclosure animation" into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 20:28:10 +0000 (20:28 +0000)]
Merge "Assist: Allow disabling the disclosure animation" into nyc-mr1-dev

7 years agoMerge "Add restart to GlobalActions." into nyc-mr1-dev
Alison Cichowlas [Fri, 12 Aug 2016 20:12:37 +0000 (20:12 +0000)]
Merge "Add restart to GlobalActions." into nyc-mr1-dev

7 years agoMerge "Add property to force restorecon to run." into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 20:12:15 +0000 (20:12 +0000)]
Merge "Add property to force restorecon to run." into nyc-mr1-dev

7 years agoMerge "Fix NPE in deferToPendingTransaction." into nyc-mr1-dev
Rob Carr [Fri, 12 Aug 2016 20:00:05 +0000 (20:00 +0000)]
Merge "Fix NPE in deferToPendingTransaction." into nyc-mr1-dev

7 years agoMerge "DO NO MERGE -- Revert the following two commits as they're causing flickering...
Chong Zhang [Fri, 12 Aug 2016 19:44:11 +0000 (19:44 +0000)]
Merge "DO NO MERGE -- Revert the following two commits as they're causing flickering" into nyc-mr1-dev

7 years agoDO NO MERGE -- Revert the following two commits as they're causing flickering
Chong Zhang [Fri, 12 Aug 2016 18:44:52 +0000 (11:44 -0700)]
DO NO MERGE -- Revert the following two commits as they're causing flickering

When double tapping Recents, need to reinvestigate.

b/30831873
b/30790402

Revert "Clear WS.mDestroying on AWT.clearAnimatingFlags"

This reverts commit c2661e52eae3161ac8c02e831290ad50ad395be2.

Revert "Some fixes for transition animation selection"

This reverts commit 73e9bc3f1557f0320c8af843dfb051f27187361d.

7 years agoMerge "Account for scaling of surfaceInset area in magnification." into nyc-mr1-dev
Rob Carr [Fri, 12 Aug 2016 19:37:15 +0000 (19:37 +0000)]
Merge "Account for scaling of surfaceInset area in magnification." into nyc-mr1-dev

7 years agoAssist: Allow disabling the disclosure animation
Adrian Roos [Thu, 11 Aug 2016 22:42:40 +0000 (15:42 -0700)]
Assist: Allow disabling the disclosure animation

Change-Id: I6e7ed00f066fda7cc268119e7aa4133010aa69c1
Fixes: 30809067

7 years agoAdd property to force restorecon to run.
Jeff Sharkey [Fri, 12 Aug 2016 18:26:54 +0000 (12:26 -0600)]
Add property to force restorecon to run.

As an optimization, we typically only run restorecon when
seapp_contexts changes.  This CL checks a property that can be used
to always force a restorecon to help investigate boot timing.

Bug: 30213213
Change-Id: I4d65c1a4e4a0830ef4a32cd2fae1d3ab188b65cc

7 years agoMerge "Fix a race to detemine IME switcher visibilityde" into nyc-mr1-dev
Yohei Yukawa [Fri, 12 Aug 2016 17:43:42 +0000 (17:43 +0000)]
Merge "Fix a race to detemine IME switcher visibilityde" into nyc-mr1-dev

7 years agoAdd restart to GlobalActions.
Alison Cichowlas [Fri, 5 Aug 2016 18:50:27 +0000 (14:50 -0400)]
Add restart to GlobalActions.

Update power icon in GlobalActions for consistency
with new restart icon.

Bug: 30395806
Change-Id: I5ab20c15c889384fb685fc678fbf9ed912fcde5d

7 years agoMerge "Start listening on notifications/QS panels on expansion started" into nyc...
Jason Monk [Fri, 12 Aug 2016 17:04:45 +0000 (17:04 +0000)]
Merge "Start listening on notifications/QS panels on expansion started" into nyc-mr1-dev

7 years agoMerge "Add ImsReason codes and DisconnectCauses for data disconnects." into nyc-mr1-dev
Tyler Gunn [Fri, 12 Aug 2016 14:54:26 +0000 (14:54 +0000)]
Merge "Add ImsReason codes and DisconnectCauses for data disconnects." into nyc-mr1-dev

7 years agoMerge "Fix NPE in TextureView" into nyc-mr1-dev
John Reck [Fri, 12 Aug 2016 14:25:14 +0000 (14:25 +0000)]
Merge "Fix NPE in TextureView" into nyc-mr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 10:44:40 +0000 (10:44 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 09:24:37 +0000 (09:24 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 09:24:19 +0000 (09:24 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 12 Aug 2016 07:26:31 +0000 (00:26 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ib152ecb48817f123084dd0c776f3aa6393fc3f83
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 12 Aug 2016 07:13:54 +0000 (00:13 -0700)]
Import translations. DO NOT MERGE

Change-Id: I27949ecc8590b8c00ddac9c45000e34c11205a29
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 12 Aug 2016 07:06:34 +0000 (00:06 -0700)]
Import translations. DO NOT MERGE

Change-Id: I617474f76296482b1eade0ad6ed909b4c4fd25c7
Auto-generated-cl: translation import

7 years agoFix a race to detemine IME switcher visibilityde
Yohei Yukawa [Fri, 12 Aug 2016 02:16:02 +0000 (19:16 -0700)]
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

7 years agoMerge "Make data warning notification heads up." into nyc-mr1-dev
Sanket Padawe [Fri, 12 Aug 2016 01:38:44 +0000 (01:38 +0000)]
Merge "Make data warning notification heads up." into nyc-mr1-dev

7 years agoMerge "Allow to keep screen on only if window can be seen" into nyc-mr1-dev
Chong Zhang [Fri, 12 Aug 2016 00:42:56 +0000 (00:42 +0000)]
Merge "Allow to keep screen on only if window can be seen" into nyc-mr1-dev

7 years agoMerge "Include tids in android.util.Process exceptions." into nyc-mr1-dev
Ruben Brunk [Fri, 12 Aug 2016 00:00:35 +0000 (00:00 +0000)]
Merge "Include tids in android.util.Process exceptions." into nyc-mr1-dev

7 years agoMake data warning notification heads up.
Sanket Padawe [Thu, 11 Aug 2016 23:34:10 +0000 (16:34 -0700)]
Make data warning notification heads up.

Bug: 30760683
Change-Id: Id3fed0a62936dddabcb169536a4a917d750259d7

7 years agoMerge "Clean up when recycling a pid with a pending launch" into nyc-mr1-dev
Amith Yamasani [Thu, 11 Aug 2016 20:48:26 +0000 (20:48 +0000)]
Merge "Clean up when recycling a pid with a pending launch" into nyc-mr1-dev

7 years agoMerge changes Ide94af72,Ie2c94439 into nyc-mr1-dev
Wale Ogunwale [Thu, 11 Aug 2016 20:43:26 +0000 (20:43 +0000)]
Merge changes Ide94af72,Ie2c94439 into nyc-mr1-dev

* changes:
  Clear WS.mDestroying on AWT.clearAnimatingFlags
  Some fixes for transition animation selection

7 years agoMerge "Limit capabilities of a11y gesture dispatch." into nyc-mr1-dev
Phil Weaver [Thu, 11 Aug 2016 20:35:11 +0000 (20:35 +0000)]
Merge "Limit capabilities of a11y gesture dispatch." into nyc-mr1-dev

7 years agoMerge "Don't preserve a11y focus in hierarchy state." into nyc-mr1-dev
Phil Weaver [Thu, 11 Aug 2016 20:34:41 +0000 (20:34 +0000)]
Merge "Don't preserve a11y focus in hierarchy state." into nyc-mr1-dev

7 years agoMerge "Dump out last real used app transit type" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 20:29:41 +0000 (20:29 +0000)]
Merge "Dump out last real used app transit type" into nyc-mr1-dev

7 years agoMerge "Check system & lock wallpaper backup eligibility independently" into nyc-mr1-dev
Chris Tate [Thu, 11 Aug 2016 20:20:08 +0000 (20:20 +0000)]
Merge "Check system & lock wallpaper backup eligibility independently" into nyc-mr1-dev

7 years agoAdd ImsReason codes and DisconnectCauses for data disconnects.
Tyler Gunn [Thu, 11 Aug 2016 20:13:51 +0000 (13:13 -0700)]
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

7 years agoFix NPE in deferToPendingTransaction.
Robert Carr [Thu, 11 Aug 2016 20:03:02 +0000 (13:03 -0700)]
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

7 years agoMerge "Do not toggle OEM unlock if bootloader unlocked" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 18:45:25 +0000 (18:45 +0000)]
Merge "Do not toggle OEM unlock if bootloader unlocked" into nyc-mr1-dev

7 years agoCheck system & lock wallpaper backup eligibility independently
Christopher Tate [Wed, 10 Aug 2016 23:13:14 +0000 (16:13 -0700)]
Check system & lock wallpaper backup eligibility independently

Bug 30751829

Change-Id: Ic94689dd63238449222d1aea07231d9fd29fc76d

7 years agoFix NPE in TextureView
John Reck [Thu, 11 Aug 2016 17:43:14 +0000 (10:43 -0700)]
Fix NPE in TextureView

Bug: 30779663
Change-Id: Ib3d40b60674ab3de8bfcfdd8489b89cf07b8d8b3

7 years agoMerge "Use colorAccent for profile_button." into nyc-mr1-dev
Andrew Sapperstein [Thu, 11 Aug 2016 17:27:55 +0000 (17:27 +0000)]
Merge "Use colorAccent for profile_button." into nyc-mr1-dev

7 years agoMerge "Add API to enable/disable the visual voicemail client" into nyc-mr1-dev
Ta-wei Yen [Thu, 11 Aug 2016 17:15:12 +0000 (17:15 +0000)]
Merge "Add API to enable/disable the visual voicemail client" into nyc-mr1-dev

7 years agoDo not toggle OEM unlock if bootloader unlocked
Esteban Talavera [Thu, 11 Aug 2016 10:23:40 +0000 (11:23 +0100)]
Do not toggle OEM unlock if bootloader unlocked

Bug: 30681215
Change-Id: Ia0fd55dd7b6b731d6f5733fc733621e99bd7b153

7 years agoadd info about how to return default values from android.jar bug: 30757670
smain@google.com [Thu, 11 Aug 2016 16:42:03 +0000 (16:42 +0000)]
add info about how to return default values from android.jar bug: 30757670
am: abfa7e2c65

Change-Id: I60f631fa7d33bc8cd39082a8caf8dbb9f94bb47c

7 years agoClear WS.mDestroying on AWT.clearAnimatingFlags
Wale Ogunwale [Thu, 11 Aug 2016 16:34:45 +0000 (09:34 -0700)]
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

7 years agoadd info about how to return default values from android.jar
smain@google.com [Wed, 10 Aug 2016 19:59:24 +0000 (12:59 -0700)]
add info about how to return default values from android.jar
bug: 30757670

Change-Id: I84e1624cbe7ae8d5e4e2886d4e8f61d621729464

7 years agoSome fixes for transition animation selection
Chong Zhang [Fri, 29 Jul 2016 20:09:40 +0000 (13:09 -0700)]
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 ec8299ca4575cb5afe96bb60082d50cb8a01c74b)

7 years agoDump out last real used app transit type
Chong Zhang [Thu, 28 Jul 2016 00:52:45 +0000 (17:52 -0700)]
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 1c93f6de2dd74dfc7ee0f52aca6e8b491ace02f9)

7 years agoMerge "Don't run expand/collapse animations when dismissing." into nyc-mr1-dev
Julia Reynolds [Thu, 11 Aug 2016 14:28:47 +0000 (14:28 +0000)]
Merge "Don't run expand/collapse animations when dismissing." into nyc-mr1-dev

7 years agoMerge "Suppress Boot sound for non-standard scenarios." into nyc-mr1-dev
Geoffrey Pitsch [Thu, 11 Aug 2016 12:56:42 +0000 (12:56 +0000)]
Merge "Suppress Boot sound for non-standard scenarios." into nyc-mr1-dev

7 years agoMerge "Make NightDisplayService robust to early alarms" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 02:46:49 +0000 (02:46 +0000)]
Merge "Make NightDisplayService robust to early alarms" into nyc-mr1-dev

7 years agoMerge "Only disable trust agents after lockout" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 02:30:31 +0000 (02:30 +0000)]
Merge "Only disable trust agents after lockout" into nyc-mr1-dev

7 years agoMerge "Zygote: allow system server compilation to fail" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 02:02:08 +0000 (02:02 +0000)]
Merge "Zygote: allow system server compilation to fail" into nyc-mr1-dev

7 years agoMake NightDisplayService robust to early alarms
Justin Klaassen [Mon, 8 Aug 2016 22:01:47 +0000 (15:01 -0700)]
Make NightDisplayService robust to early alarms

Bug: 30743700

Use the same time for calculating the next activated state and
scheduling the next alarm. This prevents the alarm from being scheduled
incorrectly if the activated state is updated slightly before the
scheduled start or end time.

Change-Id: I690aebddd28547a25b507c227c4527ffdd7c6a02

7 years agoOnly disable trust agents after lockout
Adrian Roos [Thu, 11 Aug 2016 00:09:55 +0000 (17:09 -0700)]
Only disable trust agents after lockout

Previously trust agents would be disabled even after one
wrong attempt. Now we wait for the cooldown (usually 5 attempts),
the same as fingerprint.

Also adds a TrustArchive entry of when device policy changes are sent to
trust agents.

Bug: 30037948
Change-Id: I9e284d994ddae45ef66b5b8b601297c63d8ba667

7 years agoMerge "Base date-change alarm on 24h "hour zero," not 12h" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 00:57:25 +0000 (00:57 +0000)]
Merge "Base date-change alarm on 24h "hour zero," not 12h" into nyc-mr1-dev

7 years agoMerge "Camera: ensure lock ordering (device->session)" into nyc-mr1-dev
Yin-Chia Yeh [Thu, 11 Aug 2016 00:32:13 +0000 (00:32 +0000)]
Merge "Camera: ensure lock ordering (device->session)" into nyc-mr1-dev

7 years agoMerge "Use non-fast JNI for Canvas.native_drawBitmap." into nyc-mr1-dev
Hiroshi Yamauchi [Thu, 11 Aug 2016 00:05:17 +0000 (00:05 +0000)]
Merge "Use non-fast JNI for Canvas.native_drawBitmap." into nyc-mr1-dev

7 years agoMerge "PIP: Hide play/pause button by default" into nyc-mr1-dev
Jaewan Kim [Wed, 10 Aug 2016 23:22:19 +0000 (23:22 +0000)]
Merge "PIP: Hide play/pause button by default" into nyc-mr1-dev

7 years agoMerge "Fix lock wallpaper backup & restore" into nyc-mr1-dev
Chris Tate [Wed, 10 Aug 2016 23:17:07 +0000 (23:17 +0000)]
Merge "Fix lock wallpaper backup & restore" into nyc-mr1-dev

7 years agoBase date-change alarm on 24h "hour zero," not 12h
Christopher Tate [Wed, 10 Aug 2016 23:15:48 +0000 (16:15 -0700)]
Base date-change alarm on 24h "hour zero," not 12h

Bug 30628519

Change-Id: Ie504748c7fc2d43c713ddc72c39c56a976cc0df0

7 years agoMerge "Use localized hour when announcing selection for accessibility" into nyc-mr1-dev
TreeHugger Robot [Wed, 10 Aug 2016 21:55:28 +0000 (21:55 +0000)]
Merge "Use localized hour when announcing selection for accessibility" into nyc-mr1-dev

7 years agoMerge "Fix exception spam in ActivityManagerService." into nyc-mr1-dev
TreeHugger Robot [Wed, 10 Aug 2016 21:38:15 +0000 (21:38 +0000)]
Merge "Fix exception spam in ActivityManagerService." into nyc-mr1-dev

7 years agoMerge "Add carrier config to indicate whether to notify of vt handover failure."...
Tyler Gunn [Wed, 10 Aug 2016 21:28:37 +0000 (21:28 +0000)]
Merge "Add carrier config to indicate whether to notify of vt handover failure." into nyc-mr1-dev

7 years agoMerge "Use symmetric conditions for advertising and performing ACTION_SCROLL" into...
TreeHugger Robot [Wed, 10 Aug 2016 20:57:21 +0000 (20:57 +0000)]
Merge "Use symmetric conditions for advertising and performing ACTION_SCROLL" into nyc-mr1-dev

7 years agoDon't run expand/collapse animations when dismissing.
Julia Reynolds [Wed, 10 Aug 2016 15:42:56 +0000 (11:42 -0400)]
Don't run expand/collapse animations when dismissing.

Also restore some padding.

Change-Id: Iada58be574c52651931ea733aaa4022c71e136b5
Fixes: 30764259
Fixes: 30781039

7 years agoFix exception spam in ActivityManagerService.
Tim Murray [Mon, 8 Aug 2016 03:17:47 +0000 (20:17 -0700)]
Fix exception spam in ActivityManagerService.

If a thread that ActivityManagerService should be setting to FIFO dies,
it throws an exception. However, it is expected that threads may
die (due to LMK or app behavior), so we should suppress as much of this
as possible.

bug 30746129

Change-Id: Ief1ab8568fe8b27284ec442570b6a06677998ff1

7 years agoCamera: ensure lock ordering (device->session)
Yin-Chia Yeh [Tue, 9 Aug 2016 00:50:53 +0000 (17:50 -0700)]
Camera: ensure lock ordering (device->session)

On close/abort calls, which are more likely to run in parallel
with CameraDevice APIs.

Bug: 30742426
Change-Id: I6550283d1026373d48bb730164e65b25c7037bab

7 years agoMerge "Fix two shortcut manager issues" into nyc-mr1-dev
TreeHugger Robot [Wed, 10 Aug 2016 19:14:54 +0000 (19:14 +0000)]
Merge "Fix two shortcut manager issues" into nyc-mr1-dev

7 years agoZygote: allow system server compilation to fail
Andreas Gampe [Wed, 10 Aug 2016 03:44:04 +0000 (20:44 -0700)]
Zygote: allow system server compilation to fail

Do not terminate when the system server classpath cannot be
compiled. This can be the case in fallback mode, e.g., when
a device ran out of space.

Bug: 30765660
Change-Id: I3aca3f2f789e2201e4019e1bf04d239ab54b0d3d

7 years agoAdd API to enable/disable the visual voicemail client
Ta-wei Yen [Wed, 10 Aug 2016 18:28:32 +0000 (11:28 -0700)]
Add API to enable/disable the visual voicemail client

This CL gives the default dialer, apps with carrier privilege, and
apps with MODIFY_PHONE_STATE the ability to enable/disable the visual
voicemail client.

This is a system API for NMR1. It will be revised in O.

Bug: 30709089
Change-Id: Ic24af14a5e3433c13ba8d253ad8504c94bf71c8f

7 years agoMerge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev...
Chris Tate [Wed, 10 Aug 2016 18:03:40 +0000 (18:03 +0000)]
Merge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev am: 72933c623c am: a8e21860af am: 1d64d33ba8  -s ours
am: 924b57b42c

Change-Id: I685f3809c34585affb6a8d2a532c4cb707f820d8

7 years agoDO NOT MERGE: Backport N backup/restore stability work to M am: d6f3a11107 am: aac7d0...
Christopher Tate [Wed, 10 Aug 2016 18:03:38 +0000 (18:03 +0000)]
DO NOT MERGE: Backport N backup/restore stability work to M am: d6f3a11107 am: aac7d0442c am: 6ea7b630c2  -s ours
am: 5eac1c2544

Change-Id: Ibd925a475c5ae43a6ab07c0c8920167e7ce85cec

7 years agoFix two shortcut manager issues
Makoto Onuki [Wed, 10 Aug 2016 17:47:13 +0000 (10:47 -0700)]
Fix two shortcut manager issues

- isUserUnlocked check is still racy
We used a local copy of each user state in mUnlockedUsers, and updated
it in the service lifecycle events. However because
SystemService.onUnlockUser() is called on Handler, there was a brief
window between when the user was actually unlocked and the shortcut
manager thought the user was unlocked.
So now check with activity manager for the latest state too.  We still
check with the local copy first, because we want to consider STOPPING
as "unlocked".

- Messenger loses all bitmap icons.
Because we delay-save the shortcuts.xml file, if the device shut down
before we save the XML file but after removing the bitmap files,
we'd lose the bitmaps.

(Apparently SystemService.onCleanupUser() may not be called even when
a device is cleanly shutting down.)

So don't remove bitmap files synchronously, ever, and instead after
saving the XML just run the dangling file cleanup.

Bug 30784267
Bug 30730471

Change-Id: Ie58656efba2dca2b00582e145613bc56266a091e

7 years agoMerge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev...
Chris Tate [Wed, 10 Aug 2016 17:55:56 +0000 (17:55 +0000)]
Merge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev am: 72933c623c am: a8e21860af
am: 1d64d33ba8  -s ours

Change-Id: I68bc1793b55e6e2bf660ea6c41611e819b3f5e9a

7 years agoDO NOT MERGE: Backport N backup/restore stability work to M am: d6f3a11107 am: aac7d0442c
Christopher Tate [Wed, 10 Aug 2016 17:55:47 +0000 (17:55 +0000)]
DO NOT MERGE: Backport N backup/restore stability work to M am: d6f3a11107 am: aac7d0442c
am: 6ea7b630c2  -s ours

Change-Id: Iefb7a9ad5f00b0f6e24c45fe5cf1d17cb0c97414

7 years agoMerge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev...
Chris Tate [Wed, 10 Aug 2016 17:44:52 +0000 (17:44 +0000)]
Merge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev am: 72933c623c
am: a8e21860af

Change-Id: I20921b9aa611838bc88fcabe1dc619de0bd9f6c1

7 years agoDO NOT MERGE: Backport N backup/restore stability work to M am: d6f3a11107
Christopher Tate [Wed, 10 Aug 2016 17:44:50 +0000 (17:44 +0000)]
DO NOT MERGE: Backport N backup/restore stability work to M am: d6f3a11107
am: aac7d0442c

Change-Id: Ida93e1782221df18b2e7abcaa9da319e5ed28325

7 years agoMerge "A little more on issue #30766518: Document what targeting N does" into nyc...
Dianne Hackborn [Wed, 10 Aug 2016 17:38:00 +0000 (17:38 +0000)]
Merge "A little more on issue #30766518: Document what targeting N does" into nyc-mr1-dev

7 years agoMerge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev
Chris Tate [Wed, 10 Aug 2016 17:28:30 +0000 (17:28 +0000)]
Merge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev
am: 72933c623c

Change-Id: I2efd8b43c279c4cbd92130a08df6e3eafcb20b2c

7 years agoDO NOT MERGE: Backport N backup/restore stability work to M
Christopher Tate [Wed, 10 Aug 2016 17:28:28 +0000 (17:28 +0000)]
DO NOT MERGE: Backport N backup/restore stability work to M
am: d6f3a11107

Change-Id: Ibd6e1be57f129d9ea89c8a44332da830944cf2b1

7 years agoMerge "Make updateSurface non-blocking" into nyc-mr1-dev
John Reck [Wed, 10 Aug 2016 17:22:46 +0000 (17:22 +0000)]
Merge "Make updateSurface non-blocking" into nyc-mr1-dev

7 years agoMerge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev
Chris Tate [Wed, 10 Aug 2016 17:15:26 +0000 (17:15 +0000)]
Merge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev

7 years agoMerge "Fix fingerprint swipe gesture settings for secondary users." into nyc-mr1-dev
Doris Ling [Wed, 10 Aug 2016 17:08:12 +0000 (17:08 +0000)]
Merge "Fix fingerprint swipe gesture settings for secondary users." into nyc-mr1-dev

7 years agoMerge "Notification: Reuse drawable in Header if Icon unchanged" into nyc-mr1-dev
Adrian Roos [Wed, 10 Aug 2016 16:52:14 +0000 (16:52 +0000)]
Merge "Notification: Reuse drawable in Header if Icon unchanged" into nyc-mr1-dev

7 years agoSuppress Boot sound for non-standard scenarios.
Geoffrey Pitsch [Tue, 9 Aug 2016 18:35:10 +0000 (14:35 -0400)]
Suppress Boot sound for non-standard scenarios.

Blacklisted bootreasons will not play a sound (e.g. "kernel_panic")
If boot has already completed, assume this is a runtime restart and
skip the sound.

Bug: 30654343
Change-Id: I41b1829a93c0d9a63c69aea2d1614eaa18b72230

7 years agoMerge "Zygote: Better logging for setgroups failures." into nyc-mr1-dev
Narayan Kamath [Wed, 10 Aug 2016 08:32:42 +0000 (08:32 +0000)]
Merge "Zygote: Better logging for setgroups failures." into nyc-mr1-dev

7 years agoTwilightService v2.0
Justin Klaassen [Mon, 8 Aug 2016 16:18:42 +0000 (09:18 -0700)]
TwilightService v2.0

- Switched to using CalendarAstronomer for more accurate sunrise/sunset
  times.
- Exposed sunrise/sunset times via TwilightState so that clients can
  track the current twilight period and perform their own
  interpolations.
- Adopted LocationRequest API for fused location updates:
  (low power, min 1h, max 10m).
- TwilightService is now only activated when a listener is registered,
  minimizing impact to system health on platforms / configurations
  where twilight state is not needed.

Bug: 28588307
Bug: 30190450
Bug: 30282370
Bug: 30650316
Change-Id: Ic5c94d8608e8bb3a3d895e623676a1468d4abdcd

7 years agoMerge "Fix up some comments in IPv6 tethering code." into nyc-mr1-dev
TreeHugger Robot [Wed, 10 Aug 2016 02:24:12 +0000 (02:24 +0000)]
Merge "Fix up some comments in IPv6 tethering code." into nyc-mr1-dev

7 years agoMerge "Fixing admins not being removed from DpmMockContext" into nyc-mr1-dev
TreeHugger Robot [Wed, 10 Aug 2016 02:23:53 +0000 (02:23 +0000)]
Merge "Fixing admins not being removed from DpmMockContext" into nyc-mr1-dev

7 years agoAllow to keep screen on only if window can be seen
Andrii Kulian [Wed, 10 Aug 2016 01:52:01 +0000 (18:52 -0700)]
Allow to keep screen on only if window can be seen

If user has static wallpaper on lock screen and live wallpaper
on home screen, when screen is locked, wallpaper will not be an
obscuring window. In this case, if there is a non-obscured app
window behind the lock screen which has FLAG_KEEP_SCREEN_ON set,
it will not allow to turn screen off automatically, although it
is not really visible behind lock screen.

This CL restricts holding screen windows to only ones that can be
seen. Same applies for screen and button brightness and user
activity timeout settings.

Bug: 30359386
Change-Id: I46de831211c943d8077282e3274b2df180739239

7 years agoFix up some comments in IPv6 tethering code.
Erik Kline [Wed, 10 Aug 2016 01:00:32 +0000 (10:00 +0900)]
Fix up some comments in IPv6 tethering code.

Bug: 30298058
Change-Id: Icc99e772898b8303d8f2f8521784e2cb5c2afacc

7 years agoA little more on issue #30766518: Document what targeting N does
Dianne Hackborn [Wed, 10 Aug 2016 01:00:31 +0000 (18:00 -0700)]
A little more on issue #30766518: Document what targeting N does

Change-Id: I67f2bfd01261a4304b532495a0d3cc791726ed5e

7 years agoMerge "Fix setVrThread's exception handling." into nyc-mr1-dev
Ruben Brunk [Wed, 10 Aug 2016 00:59:26 +0000 (00:59 +0000)]
Merge "Fix setVrThread's exception handling." into nyc-mr1-dev

7 years agoFixing admins not being removed from DpmMockContext
Suprabh Shukla [Wed, 10 Aug 2016 00:20:57 +0000 (17:20 -0700)]
Fixing admins not being removed from DpmMockContext

We were not calling setActiveAdmin before calling setDeviceOwner or
setProfileOwner in these tests. They were passing because the admins
were not being properly removed in the first place. The admin is
actually removed from the admin list inside onReceive of the receiver
passed in sendOrderedBroadcastForUser, which was not overridden to call
onReceive in DpmMockContext.

Bug: 30726135
Change-Id: I08cab5821228738196b229a8f885f7488aaafa34

7 years agoMerge "Handle setting and deprecating local DNS IPv6 addresses" into nyc-mr1-dev
Erik Kline [Wed, 10 Aug 2016 00:47:56 +0000 (00:47 +0000)]
Merge "Handle setting and deprecating local DNS IPv6 addresses" into nyc-mr1-dev

7 years agoMerge "Fix issue #30766518: Document what targeting N does" into nyc-mr1-dev
Dianne Hackborn [Wed, 10 Aug 2016 00:45:54 +0000 (00:45 +0000)]
Merge "Fix issue #30766518: Document what targeting N does" into nyc-mr1-dev

7 years agoFix setVrThread's exception handling.
Ruben Brunk [Wed, 10 Aug 2016 00:30:13 +0000 (17:30 -0700)]
Fix setVrThread's exception handling.

Bug: 30746129
Change-Id: I49ee29f12b52c9f9f5f061508c5cc8c89fd1cd11

7 years agoMerge "Bind fingerprint when we start authentication" into nyc-mr1-dev
TreeHugger Robot [Tue, 9 Aug 2016 23:50:40 +0000 (23:50 +0000)]
Merge "Bind fingerprint when we start authentication" into nyc-mr1-dev

7 years agoAccount for scaling of surfaceInset area in magnification.
Robert Carr [Tue, 9 Aug 2016 20:08:01 +0000 (13:08 -0700)]
Account for scaling of surfaceInset area in magnification.

We don't want to scale the actual size of the surface as we
were doing prior to ag/1101405 but we do need to adjust the top
and left corners so that the content will be at the same position
despite the inset area being scaled up.

Bug: 30399709
Change-Id: I30df4d3ef593d4f2869fdf378ee9bc3469619d5d

7 years agoFix lock wallpaper backup & restore
Christopher Tate [Tue, 9 Aug 2016 23:23:14 +0000 (16:23 -0700)]
Fix lock wallpaper backup & restore

We now correctly:

  - avoid backing up stale lock-wallpaper imagery when it is
    present but unused,
  - restore system+lock wallpaper state when that was the
    source device's situation

Bug 30274136

Change-Id: Ib34f635f9d840c64f96cc7fdb67279ce5f6422fc

7 years agoMerge "Put the affordance launch animation back on the renderthread" into nyc-mr1-dev
Selim Cinek [Tue, 9 Aug 2016 23:41:35 +0000 (23:41 +0000)]
Merge "Put the affordance launch animation back on the renderthread" into nyc-mr1-dev

7 years agoDon't preserve a11y focus in hierarchy state.
Phil Weaver [Tue, 9 Aug 2016 23:12:47 +0000 (16:12 -0700)]
Don't preserve a11y focus in hierarchy state.

This change rolls back functionality added in ag/747748.
The idea was to restore accessibility focus on
configuration changes, but the restoration was happening
too early, which caused ViewRootImpl and the View to
disagree about accessibility focus. This confusion makes
some views unreachable by swiping after a configuration
change.

Bug: 30042251
Change-Id: Iae32b5425a1e7de9a8f5be965feb912fd2d9a0bb

7 years agoMerge "Rescan apps after restore and re-publish manifest shortcuts" into nyc-mr1-dev
TreeHugger Robot [Tue, 9 Aug 2016 23:22:40 +0000 (23:22 +0000)]
Merge "Rescan apps after restore and re-publish manifest shortcuts" into nyc-mr1-dev