Commit Graph

252839 Commits

Author SHA1 Message Date
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
Erik Kline
6a76c5f191 Merge "Fix up some comments in IPv6 tethering code." into nyc-mr1-dev
am: 3cc5d047a7

Change-Id: Ida9d04e4d7185ad5cbe95898f3af80194002f9d2
2016-08-10 02:39:08 +00:00
Erik Kline
dba85b451f Fix up some comments in IPv6 tethering code.
am: d1dcbefe06

Change-Id: Icb77a16f14591aa54cc0302b8a7bd9b377ec5eea
2016-08-10 02:39:05 +00:00
Suprabh Shukla
78223aa37c Merge "Fixing admins not being removed from DpmMockContext" into nyc-mr1-dev
am: 521e27d652

Change-Id: Id595e024e1c899c2014feb0c39bb1ca15a1fe70c
2016-08-10 02:39:02 +00:00
Suprabh Shukla
b133a72f8b Fixing admins not being removed from DpmMockContext
am: 3cb2b49f44

Change-Id: I9baefc5e069a2b8d37fa2b6c1e55d9eaebd02f26
2016-08-10 02:39:00 +00: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
Ruben Brunk
0837aa4070 Merge "Fix setVrThread's exception handling." into nyc-mr1-dev
am: 8d84bc861f

Change-Id: Ie52a81999359574e2c0cff826ae62bc3b7dc247f
2016-08-10 01:16:00 +00:00
Ruben Brunk
b25be4bd37 Fix setVrThread's exception handling.
am: 83ea55a9c6

Change-Id: Ib2c9df68c2352efe21ebb9d8f2d6997afadd492f
2016-08-10 01:15:58 +00: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
Erik Kline
876a98e5ff Merge "Handle setting and deprecating local DNS IPv6 addresses" into nyc-mr1-dev
am: c14748b366

Change-Id: I43a8576a8aabc30f447caa062c3730b2160aec6b
2016-08-10 00:58:03 +00:00
Erik Kline
5fe2c0379f Handle setting and deprecating local DNS IPv6 addresses
am: fa37b2f613

Change-Id: I36b01b7b0fbed07b4279c7f35af20592248cf11d
2016-08-10 00:58:01 +00:00
Dianne Hackborn
9248b200f7 Merge "Fix issue #30766518: Document what targeting N does" into nyc-mr1-dev
am: 75cdd5f68f

Change-Id: I721ca6ee9471b53c6857609241f2f55d7c11e8ee
2016-08-10 00:57:58 +00:00
Dianne Hackborn
3a585b86be Fix issue #30766518: Document what targeting N does
am: b34cbedb4e

Change-Id: I2d2c45ef1dc9528b2b84778532edebac8a9e7712
2016-08-10 00:57:54 +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
Jim Miller
a39117959d Merge "Bind fingerprint when we start authentication" into nyc-mr1-dev
am: e11059694a

Change-Id: I2aaaecd00927ea1dd00ad9a493f5c58a3bc4ddf6
2016-08-09 23:58:13 +00:00
Jim Miller
3871272fc6 Bind fingerprint when we start authentication
am: 837fa7e56d

Change-Id: Id2e84b60102653598e6d459e83835739b57ef404
2016-08-09 23:58:11 +00:00
Selim Cinek
cb140ad8dd Merge "Put the affordance launch animation back on the renderthread" into nyc-mr1-dev
am: 00a6c2979b

Change-Id: I2430bd0bee50ed7087c59b1ebce873e3094d5451
2016-08-09 23:52:29 +00:00
Selim Cinek
4677240e4f Put the affordance launch animation back on the renderthread
am: 4ae263c87c

Change-Id: I675c8a8a4403de9f735e39b03bf185678a601c3c
2016-08-09 23:52:27 +00: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
Makoto Onuki
dabb164cc2 Merge "Rescan apps after restore and re-publish manifest shortcuts" into nyc-mr1-dev
am: a63469076e

Change-Id: Icd75a843474dd613412cbc3cc083908f96fb54d0
2016-08-09 23:34:02 +00:00
Makoto Onuki
51aec5dce5 Rescan apps after restore and re-publish manifest shortcuts
am: 377b7970ad

Change-Id: I2da62270e106408a7fec91d7442c239457be3d04
2016-08-09 23:33:59 +00:00
Phil Weaver
f40ee509c6 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
2016-08-09 16:33:30 -07:00
Selim Cinek
2dabc8286b Fixed that HUNs wouldn't show when the keyguard is occluded
Change-Id: Ia6fcb57eceb8e3b3e0d193d9f274cc64343fe5af
Fixes: 30770767
2016-08-09 16:28:17 -07:00
TreeHugger Robot
a63469076e Merge "Rescan apps after restore and re-publish manifest shortcuts" into nyc-mr1-dev 2016-08-09 23:22:42 +00:00
Todd Kennedy
21bd9b824f Allow permission group updates
When a package in updated, it may redefine a permisson group [specify a
new icon, text, etc...]. Udate our internal structures to the new package.

Bug: 30347537
Change-Id: I9fbaf7c68a4de658489cfd1c728473032dded98b
2016-08-09 16:06:16 -07:00
Tyler Gunn
0f20d9343c Add carrier config to indicate whether to notify of vt handover failure.
Controls whether to notify Connections of the fact that a handover of a VT
call from LTE to WIFI failed.

Bug: 30697460
Change-Id: I0cbff2dfb67c7c1f995f1ddf38e9525796501c09
2016-08-09 16:06:09 -07:00
Erik Wolsheimer
c327afa0df Merge "Add missing null check to AppErrors#handleAppCrashLocked" into nyc-mr1-dev
am: 002dd29764

Change-Id: I9ae51ec34a606904c027cc8f987db29160cb3b78
2016-08-09 21:55:27 +00:00
Erik Wolsheimer
d491a974c1 Add missing null check to AppErrors#handleAppCrashLocked
am: b2b3b64417

Change-Id: I52ae2660aa36dccd8bb28d189999d4d842834497
2016-08-09 21:55:25 +00:00
TreeHugger Robot
002dd29764 Merge "Add missing null check to AppErrors#handleAppCrashLocked" into nyc-mr1-dev 2016-08-09 21:48:10 +00:00
Makoto Onuki
377b7970ad Rescan apps after restore and re-publish manifest shortcuts
Originally when I wrote backup & restore for ShortcutManager,
there was no manifest shortcuts, so there was no need to
handle preintalled apps specially.

However, now we have manifest shortcuts, which are published
when the user is unlocked, by the time restore happens preinstalled
apps may already have manifest shortcuts, which will be overwritten
by the restored shortcuts.

So we need to re-publish manifest shortcuts after restore.

Bug 30746028

Change-Id: I6afbae7790c9ed38483637f33c381ecb6f854677
2016-08-09 14:43:55 -07:00
Jorim Jaggi
2dbb93e41d Merge "Fix navigation bar in seascape in BackdropFrameRenderer" into nyc-mr1-dev
am: 529319d81d

Change-Id: I5f6e8d98188b829592357570cef8d4cebd045ca3
2016-08-09 21:37:29 +00:00
Jorim Jaggi
cbd845adff Fix navigation bar in seascape in BackdropFrameRenderer
am: 9a7d0a5f84

Change-Id: If63b339fd838172fb084ccf664b7d90dce5d2254
2016-08-09 21:37:24 +00:00
TreeHugger Robot
529319d81d Merge "Fix navigation bar in seascape in BackdropFrameRenderer" into nyc-mr1-dev 2016-08-09 21:29:06 +00:00
Hemal Patel
a32049ce57 Merge "Docs: Fixed the link that loads Fragments guide" into nyc-docs am: 5ca44906c6 am: b6962dee09
am: 4e79fcdc0a

Change-Id: Ifc74e8b7c208ef070ce2aaf3d5113245cf1d1273
2016-08-09 21:18:58 +00:00
Hemal Patel
5f573a891e Docs: Fixed the link that loads Fragments guide am: a8e1c75bf6 am: dabee01e9b
am: f8c0a138fb

Change-Id: Ica3e6f96b4e55991dd946fd3d73ac725c477d03e
2016-08-09 21:18:56 +00:00
Hemal Patel
ae5f7e27a0 Merge "Docs: Changed custom_toast to toast_layout" into nyc-docs am: a70c722c77 am: 3c49a4b761
am: ee3c5b3cd5

Change-Id: I9005ea88dbf6a3c257b9c50bebae5b6f2b0ca77a
2016-08-09 21:18:54 +00:00
Hemal Patel
3026c87001 Docs: Changed custom_toast to toast_layout am: 3b7309d753 am: ca17f5b8e3
am: ed51cf2c85

Change-Id: Iaf5a7aef73e22b9a536a62966567f93c86c6f2a9
2016-08-09 21:18:37 +00:00
Hemal Patel
4e79fcdc0a Merge "Docs: Fixed the link that loads Fragments guide" into nyc-docs am: 5ca44906c6
am: b6962dee09

Change-Id: I5145db9e35199969ada9c38a6c5c972725af178b
2016-08-09 21:10:42 +00:00
Hemal Patel
f8c0a138fb Docs: Fixed the link that loads Fragments guide am: a8e1c75bf6
am: dabee01e9b

Change-Id: I6a17d73c3dab8980c57e9f6c9617bb465c48f1a5
2016-08-09 21:10:40 +00:00
Hemal Patel
ee3c5b3cd5 Merge "Docs: Changed custom_toast to toast_layout" into nyc-docs am: a70c722c77
am: 3c49a4b761

Change-Id: Ib00803734137a0a4c3a704e45c45c66e246e586b
2016-08-09 21:10:37 +00:00