250461 Commits

Author SHA1 Message Date
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 ec8299ca4575cb5afe96bb60082d50cb8a01c74b)
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 1c93f6de2dd74dfc7ee0f52aca6e8b491ace02f9)
2016-08-11 08:00:28 -07: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
Justin Klaassen
4346f63dbf 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
2016-08-10 18:22:42 -07:00
Adrian Roos
9d6fc9246b 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
2016-08-10 18:01:32 -07:00
TreeHugger Robot
262f0186bd Merge "Base date-change alarm on 24h "hour zero," not 12h" into nyc-mr1-dev 2016-08-11 00:57:27 +00:00
Yin-Chia Yeh
58b4623d1f Merge "Camera: ensure lock ordering (device->session)" into nyc-mr1-dev 2016-08-11 00:32:15 +00:00
Hiroshi Yamauchi
938d298116 Merge "Use non-fast JNI for Canvas.native_drawBitmap." into nyc-mr1-dev 2016-08-11 00:05:19 +00:00
Jaewan Kim
25796925d9 Merge "PIP: Hide play/pause button by default" into nyc-mr1-dev 2016-08-10 23:22:21 +00:00
Chris Tate
c72da3331b Merge "Fix lock wallpaper backup & restore" into nyc-mr1-dev 2016-08-10 23:17:08 +00:00
Christopher Tate
afa8b980ac Base date-change alarm on 24h "hour zero," not 12h
Bug 30628519

Change-Id: Ie504748c7fc2d43c713ddc72c39c56a976cc0df0
2016-08-10 16:15:48 -07:00
TreeHugger Robot
75f7bfdc7a Merge "Use localized hour when announcing selection for accessibility" into nyc-mr1-dev 2016-08-10 21:55:30 +00:00
TreeHugger Robot
f6fcb7b77d Merge "Fix exception spam in ActivityManagerService." into nyc-mr1-dev 2016-08-10 21:38:17 +00:00
Tyler Gunn
c687f614b9 Merge "Add carrier config to indicate whether to notify of vt handover failure." into nyc-mr1-dev 2016-08-10 21:28:38 +00:00
TreeHugger Robot
c816320161 Merge "Use symmetric conditions for advertising and performing ACTION_SCROLL" into nyc-mr1-dev 2016-08-10 20:57:23 +00:00
Julia Reynolds
48242f0ac6 Don't run expand/collapse animations when dismissing.
Also restore some padding.

Change-Id: Iada58be574c52651931ea733aaa4022c71e136b5
Fixes: 30764259
Fixes: 30781039
2016-08-10 20:36:33 +00:00
Tim Murray
feb846c299 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
2016-08-10 13:13:40 -07:00
Yin-Chia Yeh
b0025e1f68 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
2016-08-10 12:50:19 -07:00
TreeHugger Robot
fc13448507 Merge "Fix two shortcut manager issues" into nyc-mr1-dev 2016-08-10 19:14:56 +00:00
Andreas Gampe
e7bc152c20 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
2016-08-10 11:46:14 -07:00
Ta-wei Yen
20f2ebbf4d 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
2016-08-10 11:28:32 -07:00
Chris Tate
a0a718f5db 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
2016-08-10 18:03:40 +00:00
Christopher Tate
3015d9be67 DO NOT MERGE: Backport N backup/restore stability work to M am: d6f3a11107 am: aac7d0442c am: 6ea7b630c2 -s ours
am: 5eac1c2544

Change-Id: Ibd925a475c5ae43a6ab07c0c8920167e7ce85cec
2016-08-10 18:03:38 +00:00
Makoto Onuki
1e1732399a 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
2016-08-10 10:56:08 -07:00
Chris Tate
924b57b42c 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
2016-08-10 17:55:56 +00:00
Christopher Tate
5eac1c2544 DO NOT MERGE: Backport N backup/restore stability work to M am: d6f3a11107 am: aac7d0442c
am: 6ea7b630c2  -s ours

Change-Id: Iefb7a9ad5f00b0f6e24c45fe5cf1d17cb0c97414
2016-08-10 17:55:47 +00:00
Chris Tate
1d64d33ba8 Merge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev am: 72933c623c
am: a8e21860af

Change-Id: I20921b9aa611838bc88fcabe1dc619de0bd9f6c1
2016-08-10 17:44:52 +00:00
Christopher Tate
6ea7b630c2 DO NOT MERGE: Backport N backup/restore stability work to M am: d6f3a11107
am: aac7d0442c

Change-Id: Ida93e1782221df18b2e7abcaa9da319e5ed28325
2016-08-10 17:44:50 +00:00
Dianne Hackborn
848c690f69 Merge "A little more on issue #30766518: Document what targeting N does" into nyc-mr1-dev 2016-08-10 17:38:02 +00:00
Chris Tate
a8e21860af Merge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev
am: 72933c623c

Change-Id: I2efd8b43c279c4cbd92130a08df6e3eafcb20b2c
2016-08-10 17:28:30 +00:00
Christopher Tate
aac7d0442c DO NOT MERGE: Backport N backup/restore stability work to M
am: d6f3a11107

Change-Id: Ibd6e1be57f129d9ea89c8a44332da830944cf2b1
2016-08-10 17:28:28 +00:00
John Reck
8d521bb9b3 Merge "Make updateSurface non-blocking" into nyc-mr1-dev 2016-08-10 17:22:48 +00:00
Chris Tate
72933c623c Merge "DO NOT MERGE: Backport N backup/restore stability work to M" into mnc-dr-dev 2016-08-10 17:15:28 +00:00
Doris Ling
fc5efaeabc Merge "Fix fingerprint swipe gesture settings for secondary users." into nyc-mr1-dev 2016-08-10 17:08:13 +00:00
Adrian Roos
d4a95806ab Merge "Notification: Reuse drawable in Header if Icon unchanged" into nyc-mr1-dev 2016-08-10 16:52:15 +00:00
Geoffrey Pitsch
290c4350ed 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
2016-08-10 10:52:48 -04:00
Narayan Kamath
ab6e7c3502 Merge "Zygote: Better logging for setgroups failures." into nyc-mr1-dev 2016-08-10 08:32:44 +00:00
Justin Klaassen
908b86c796 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
2016-08-09 21:19:54 -07:00
TreeHugger Robot
3cc5d047a7 Merge "Fix up some comments in IPv6 tethering code." into nyc-mr1-dev 2016-08-10 02:24:13 +00:00
TreeHugger Robot
521e27d652 Merge "Fixing admins not being removed from DpmMockContext" into nyc-mr1-dev 2016-08-10 02:23:55 +00:00
Andrii Kulian
b20addbdfb 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
2016-08-09 18:52:01 -07:00