Commit Graph

35598 Commits

Author SHA1 Message Date
Erik Kline
fc2e5b6703 IpManager: add distinct DhcpActionTimeoutAlarm
Track provisioning timeouts separately from "DHCP action" timeouts.

Bug: 17733693
Bug: 24837343
Change-Id: I6071699692e7d375155a4c4fe61c7ec0d89396c0
2016-04-28 16:52:10 +09:00
Lorenzo Colitti
d8a028af82 Merge "Notify success before configuring the IP address." into nyc-dev 2016-04-28 07:02:09 +00:00
Jorim Jaggi
4b74f4de64 Fix IME adjustment for voice interaction windows
Bug: 28344950
Change-Id: I42fa7abe28a693bc22c878c75839af4ef03e5e8a
2016-04-28 06:11:33 +00:00
Jorim Jaggi
363ab98fce Fix regression with docking from recents transition
Because we move the task to the front in startRecentsActivity, we
always overrode the app transition type. Instead, we should remove
this logic and keep a flag whether the animation was prolonging was
finished already. If it was finished already, don't start the
prolonging when starting the transition.

Bug: 27154882
Change-Id: I1cd9e323867726ebd4b131ed5c13c3834d0f1107
2016-04-28 06:11:01 +00:00
Jorim Jaggi
a57286307b Merge "Clean up updating bounds after config/display info change" into nyc-dev 2016-04-28 06:03:51 +00:00
Lorenzo Colitti
adacedb1a8 Notify success before configuring the IP address.
This ensures that IpManager has a complete copy of DHCP state
before configuring the IPv4 address. That way, when the netlink
notification of the IPv4 address arrives, we are guaranteed to
have all DHCP information (including DNS servers and routes)
available and we will never send the IPv4 address before the DNS
servers.

Bug: 27605330
Change-Id: I732424dfe2408be9e40028563e99d610b541e12d
2016-04-28 13:56:50 +09:00
TreeHugger Robot
1d3c59457c Merge "Make isCaptivePortal perform both HTTP and HTTPS probes." into nyc-dev 2016-04-28 04:01:11 +00:00
TreeHugger Robot
831ecc81f9 Merge changes Idb555b01,If8acf31b into nyc-dev
* changes:
  Show forced resizable based on top activity
  Don't move forced resizable info activity to the front
2016-04-28 03:58:46 +00:00
Jorim Jaggi
eb1cb927ad Clean up updating bounds after config/display info change
We always update the display info before handling the configuration
change. Thus, we remove this weird interleaving asynchronous beast
of code and handle rotation and density in updateBoundsAfterConfigChange
and everything else in updateDisplayInfo.

Sending an asynchronous message to resize the stack only causes race
condition and issues.

Change-Id: Ifa86f62e816917822a8c1d42d13d4bf1ad9bc5bf
Fixes: 28316517
Bug: 28184044
2016-04-27 20:47:47 -07:00
Chong Zhang
103fdec415 Merge "Don't wait for visible if there is no running activity left." into nyc-dev 2016-04-28 03:41:01 +00:00
Chong Zhang
697a333485 Merge "Do not add duplicates to mWaitingVisibleActivities" into nyc-dev 2016-04-28 03:25:51 +00:00
Jorim Jaggi
cd13d33ee5 Show forced resizable based on top activity
Also don't show it for noDisplay activities.

Bug: 28223489
Change-Id: Idb555b019b5cebdcf16a0cfaa19d64263874735f
2016-04-27 19:26:04 -07:00
Lorenzo Colitti
c5be12e7ac Make isCaptivePortal perform both HTTP and HTTPS probes.
Also a couple of minor cleanups and logging tweaks.

Bug: 26075613
Change-Id: I67b09e96d72764179339b616072bb2ce06aabf33
2016-04-28 11:23:10 +09:00
Jorim Jaggi
c875ae74ba Don't move forced resizable info activity to the front
If we start the forced resizable activity with an existing task,
avoid moving that task to the front. This can cause that a previous
task that was moved to the back gets moved to the front again just
because we started that activity. That's not good.

Bug: 28223489
Change-Id: If8acf31b8be98b82665de1015d5621331c37fb64
2016-04-27 19:19:04 -07:00
Jeff Hao
9f013fe71e Merge "Some cleanup for <uses-library> change." into nyc-dev 2016-04-28 01:31:17 +00:00
Chong Zhang
824b6dcb55 Don't wait for visible if there is no running activity left.
We could run into this situation on some devices (eg. clockworks),
the next activity doesn't get launched until we destroy this one.

allResumedActivitiesVisible() will return false if there is no other
activity running at all. Check top running activity and it's visibility
instead.

bug: 28400334
Change-Id: Ib8957e499580a10206fdd4e27da19fbc2bdb5843
2016-04-28 01:28:29 +00:00
Dianne Hackborn
1a2f993ba5 Merge "Fix issue #28431297: Crash in system process" into nyc-dev 2016-04-28 01:07:26 +00:00
Chris Tate
07318065b2 Merge "Make sure FIRST_LAUNCH is after PACKAGE_ADDED" into nyc-dev 2016-04-28 00:41:02 +00:00
Chong Zhang
b8bd069eac Do not add duplicates to mWaitingVisibleActivities
processStoppingActivitiesLocked() only removes one record each time, so
instead of stopping on the next window visible (or next idle), it now
requires two such calls to move the app to destroyed, if there's only
one report, the app never gets removed.

bug: 28417200

Change-Id: I7c5eac240074ed0434a72643a8d52f1726ab906c
2016-04-27 17:35:13 -07:00
Jaewan Kim
cc3cb5a009 Merge "Fix NPE when WindowManagerDebugConfig.DEBUG_SCREENSHOT is true" into nyc-dev 2016-04-28 00:11:04 +00:00
Dianne Hackborn
e761777323 Fix issue #28431297: Crash in system process
Don't allow null URIs to get put into the notification path.

Change-Id: I4f68f438960c8a90c7b417feaa2e19968a3a200a
2016-04-27 17:03:52 -07:00
Hugo Benichi
9710859b51 Merge "Fixes 2 race conditions in MetricsLoggerService" into nyc-dev 2016-04-27 23:50:47 +00:00
Badhri Jagan Sridharan
5149abe73e Merge "Add low power stats to batteryhistory" into nyc-dev 2016-04-27 23:32:19 +00:00
Keun-young Park
3279050c25 Merge "fix recursion for config change" into nyc-dev 2016-04-27 23:04:51 +00:00
Fyodor Kupolov
ccb83c0aa5 Merge "Broadcast USER_INITIALIZE after user is unlocked" into nyc-dev 2016-04-27 23:02:10 +00:00
Phil Weaver
1f70f0b7d6 Merge "Fix several accessibility magnification issues." into nyc-dev 2016-04-27 22:50:37 +00:00
Jeff Hao
bd784e961c Some cleanup for <uses-library> change.
Addresses comments made in:
https://googleplex-android-review.git.corp.google.com/#/c/976512

Bug: 26880306
Change-Id: I382fb39f3bb5de5a03506f5526d909cf55530542
2016-04-27 15:50:16 -07:00
Keun-young Park
e3dd9f8c71 fix recursion for config change
- update mTempConfig from mCurConfig first to decide if
  config is changed or not. This fixes recursion of putting
  new config again from reconfigureDisplay
- ignore setNewConfiguration if there is no change in configuration
  This fixes another recursion due to config change -> app restart
  loop

bug: 28381048

Change-Id: I4c2e6072b269baf9fa11d4b8073f0800c0e0d28d
2016-04-27 15:42:17 -07:00
TreeHugger Robot
0db93cea0f Merge "Tethering and Data Saver: There Can Be Only One!" into nyc-dev 2016-04-27 22:41:13 +00:00
Christopher Tate
5cf5578a45 Make sure FIRST_LAUNCH is after PACKAGE_ADDED
If an app undergoes restore during install, it is considered 'started'
and the FIRST_LAUNCH broadcast needs to go out.  However, this must not
take place until after the restore operation has fully completed, in
order to avoid publishing the app's existence while it may still be in
an incoherent state.  We now make this broadcast part of POST_INSTALL
in the restore case.

Bundled apps are in the 'started' state regardless, so no FIRST_LAUNCH
broadcast is ever sent for them -- this CL does not change that
existing behavior even in the case of setup-time data restore of
factory-installed packages.

Bug 28173625

Change-Id: Ibcc3758576662dc447b75476173a0d008a9fe4da
2016-04-27 15:07:26 -07:00
Phil Weaver
70439244ba Fix several accessibility magnification issues.
Clarifying region used for magnification as "magnificationRegion",
both in the public API and in the code. There's been significant
confusion about what "magnfifiedRegion" means. Removing
"availableRegion" from everywhere except where it's required, as
that region was identical to magnified/magnification region.

Trying to shut down magnification was a complex situation where
animations in progress and new magnification requests were tricky to
handle correctly. It was not possible to guarantee that the
magnification callbacks were unregistered consistently. There were
at least two situations that led to phone restarts:
1. If a triple tap was detected between unregistering the callbacks
and shutting down the input filter. In this case the magnification
request would go through.
2. If an animation had just started when magnification was turned
off, so the current magnification was 1.0 but the animator was
about to change it. In this case the callbacks would be unregistered,
and then the animator would start changing the magnification.

This change makes registering and unregistering magnification atomic.
It also makes MagnificationController stick around indefinitely once it
is created, registering and unregistering as needed to support
magnification gestures and services that control magnification. Services
that merely query the status of magnification no longer register for
callbacks.

One part of shutting down is turning off the animation and guaranteeing
that it won't try to make further changes. Adding a flag to
SpecAnimationBridge and a lock in that class so we can guarantee that
nothing happens when we aren't registered for magnification callbacks.

Also reconfiguring all accessibility options when a service stops to
make sure that only the features required by the current configuration
are enabled.

Bug: 27497138
Bug: 27821103
Change-Id: If697cbd34b117d82c8eee1ba7d0254089ee4241d
2016-04-27 13:57:43 -07:00
Dianne Hackborn
62e7d26a0c Merge "Fix issue #28403313: Improve package manager query commands" into nyc-dev 2016-04-27 20:20:43 +00:00
Badhri Jagan Sridharan
68cdf1997f Add low power stats to batteryhistory
Exports SOC specific low power state info to batterystats service.
BatteryStats service queries the powerHAL module whenever and
updates the HistoryStepDetails whenever setBatteryState is called by the
BatteryService. The stats get appended to the battery history whenever
there is a change in the battery level.

Bug: 26564574
Change-Id: I02b4db00aec0c69d1558492224f3a4dc1c386fa6
2016-04-27 13:08:40 -07:00
Jeff Hao
864bc48e01 Merge "Support to pass <uses-library> option through to dex2oat." into nyc-dev 2016-04-27 19:54:04 +00:00
TreeHugger Robot
25459e135d Merge "Dismiss docked stack on user switch" into nyc-dev 2016-04-27 18:28:40 +00:00
Rob Carr
fa255f6ead Merge "Revert "Prevent recents from closing while moving PiP to fullscreen."" into nyc-dev 2016-04-27 18:13:27 +00:00
Jeff Hao
c7b9482b0c Support to pass <uses-library> option through to dex2oat.
This change takes an app's shared libraries specified by <uses-library>
and passes it through to dex2oat to be used during compilation.

Part of a multi-project change.

Bug: 26880306

(cherry-picked from 7b331b6a8a)

Change-Id: I523b1b74775e7ed27072498509e743f1f10b1164
2016-04-27 11:11:17 -07:00
Wale Ogunwale
9a98c526dd Dismiss docked stack on user switch
Having the docked stack across user switches currently leads
to issues like wrong configuration state for apps. Dismissing
docked stack for now until we find a better way to handle this.

Bug: 28195260
bug: 28221061
Change-Id: I568a2c69783b1f0d7016fe1a21df959f7c2c9145
2016-04-27 16:43:25 +00:00
Hangyu Kuang
39bb2c29b4 Merge changes from topic 'atv-hdr' into nyc-dev
* changes:
  Unhide getHdrCapabilities and HdrCapabilities.
  Plumb HDR capabilities to Display
  Revert "Revert "Hook up HDR capabilities from native SurfaceControl""
2016-04-27 16:38:21 +00:00
Fyodor Kupolov
c94c249371 Broadcast USER_INITIALIZE after user is unlocked
Previously USER_INITIALIZE was sent before USER_UNLOCKED. This was leaving
BOOT_COMPLETED as the only option for non-directBootAware apps to do one time
initialization.

Now USER_INITIALIZE is sent immediately after the user is unlocked.

Bug: 28278011
Change-Id: Id82eae91af80a66454d4027050120ae841decfeb
2016-04-27 09:31:09 -07:00
Julia Reynolds
9fa8b54589 Merge "More bugreport logging for scheduleconditionprovider." into nyc-dev 2016-04-27 12:59:05 +00:00
TreeHugger Robot
074e23c37b Merge "Fix infinite loop during package-usage.list file upgrade" into nyc-dev 2016-04-27 11:02:51 +00:00
Erik Kline
9c51583daf Merge "IpManager: add a provisioning timeout option" into nyc-dev 2016-04-27 09:40:08 +00:00
David Brazdil
14e7acd58c Fix infinite loop during package-usage.list file upgrade
When upgrading from version 0 to version 1 of the file
'/data/system/package-usage.list', the PackageManagerService can get
stuck in an infinite loop if one of the listed packages does not
exist, e.g. because it had been uninstalled. Fix the issue by
refactoring the loop.

Bug: 28409278
Change-Id: Ia312bd0d04f696240445b710dd6a68b93c5d5946
2016-04-27 10:35:56 +01:00
Hugo Benichi
9b907e440c Fixes 2 race conditions in MetricsLoggerService
- in dump, the array of pending intent was iterated without locking
  against logEvent. This can throw a ConcurrentModificationException
  if at the same time logEvent sends intents and remove them from the
  array.
- in getEvents, the returned reference was reading the reference of the
  last event after releasing the lock on mEvents, which can cause
  callers to miss events if at the same time logEvent is called and
  mLastEventReference is incremented.

Bug: 28204408
Change-Id: I7ff21d4d2c0b02d8e0b47310430dff7d8a87f0bf
2016-04-27 16:47:55 +09:00
Erik Kline
741b15dc75 IpManager: add a provisioning timeout option
Relatedly: remove the provisioning timeout from DhcpClient.

Bug: 17733693
Bug: 24837343
Change-Id: I6d5b835b4ca70ba6fd06df359fc2128a0df46252
2016-04-27 16:27:44 +09:00
Jaewan Kim
c6c5d8dc5b Fix NPE when WindowManagerDebugConfig.DEBUG_SCREENSHOT is true
Bug: 28410270
Change-Id: I547556bec20a756735edad1692c64d6bd5a13773
2016-04-27 14:25:37 +09:00
Rob Carr
a249166839 Merge "Clear opaque flag when surface insets change." into nyc-dev 2016-04-27 02:53:25 +00:00
TreeHugger Robot
24b6e2bcc8 Merge changes I8de95add,Ia6f4ccfd into nyc-dev
* changes:
  Remove unused event tags of IpConnectivityEvent
  Better ConnectivityMetricsEvent printing
2016-04-27 01:49:53 +00:00
TreeHugger Robot
1415d26786 Merge "Don't hold lock when calling externally" into nyc-dev 2016-04-27 01:45:13 +00:00