Commit Graph

253881 Commits

Author SHA1 Message Date
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
Selim Cinek
bb42b7dd48 Avoid weird expand animation when a notification is updated
Whenever a notification was updated and it was expanded, the
animation would look incredibly weird. This is now fixed.

Change-Id: Iaeac6f71c3771c4782e751be50b54b62d08b643e
Fixes: 30693397
2016-08-10 13:02:38 -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
Erik Kline
d1dcbefe06 Fix up some comments in IPv6 tethering code.
Bug: 30298058
Change-Id: Icc99e772898b8303d8f2f8521784e2cb5c2afacc
2016-08-10 10:00:32 +09:00
Dianne Hackborn
5f1649e852 A little more on issue #30766518: Document what targeting N does
Change-Id: I67f2bfd01261a4304b532495a0d3cc791726ed5e
2016-08-09 18:00:31 -07:00
Ruben Brunk
8d84bc861f Merge "Fix setVrThread's exception handling." into nyc-mr1-dev 2016-08-10 00:59:27 +00:00
Suprabh Shukla
3cb2b49f44 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
2016-08-09 17:52:54 -07:00
Erik Kline
c14748b366 Merge "Handle setting and deprecating local DNS IPv6 addresses" into nyc-mr1-dev 2016-08-10 00:47:57 +00:00
Dianne Hackborn
75cdd5f68f Merge "Fix issue #30766518: Document what targeting N does" into nyc-mr1-dev 2016-08-10 00:45:55 +00:00
Ruben Brunk
83ea55a9c6 Fix setVrThread's exception handling.
Bug: 30746129
Change-Id: I49ee29f12b52c9f9f5f061508c5cc8c89fd1cd11
2016-08-09 17:30:13 -07:00
TreeHugger Robot
e11059694a Merge "Bind fingerprint when we start authentication" into nyc-mr1-dev 2016-08-09 23:50:41 +00:00
Robert Carr
298f9278fd 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
2016-08-09 16:49:23 -07:00
Christopher Tate
f47eff7343 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
2016-08-09 16:45:21 -07:00
Selim Cinek
00a6c2979b Merge "Put the affordance launch animation back on the renderthread" into nyc-mr1-dev 2016-08-09 23:41:36 +00:00