Commit Graph

16632 Commits

Author SHA1 Message Date
Makoto Onuki
5b9d876ef5 Merge "ShortcutManaegr: bug fixes" into nyc-mr1-dev 2016-05-04 21:28:17 +00:00
Makoto Onuki
8569452603 ShortcutManaegr: bug fixes
Fixes 28590035
Fixes 28586105

Change-Id: Ia11d29e4996ad5b47b279a3c04d9586695cdc0a5
2016-05-04 13:00:41 -07:00
Robin Lee
7ec93a1ee2 Merge "Add lockdownEnabled parameter to always-on VPN API" into nyc-dev 2016-05-04 18:38:30 +00:00
Robin Lee
a5e6553917 Merge changes I31d5260d,Ied92f558 into nyc-dev
* changes:
  Start VPN as early as possible during startup
  Split network agent created state from connected state
2016-05-04 18:35:19 +00:00
Dongwon Kang
b69b5b4a6d Merge "Revert "TIF: add signal detection feature for HW inputs"" into nyc-dev 2016-05-04 17:33:54 +00:00
Pavel Zhamaitsiak
be3e539ff7 Merge "Fix race condition in MetricsLoggerService" into nyc-dev 2016-05-04 17:02:18 +00:00
Robin Lee
323f29df58 Start VPN as early as possible during startup
- Switch from USER_STARTING to USER_STARTED which is the foreground
  version of the broadcast

- Set the new VPN network as CONNECTING initially to avoid spamming
  apps with useless notifications ahead of the network being fully
  available

Bug: 26694104
Fix: 28335277
Change-Id: I31d5260dda62ff440c31c44eb0aa5c891e2717e5
2016-05-04 17:46:10 +01:00
Robin Lee
585e248894 Split network agent created state from connected state
Network creation setup sometimes involves extra steps after actually
calling into netd to create the underlying network, rules & routes &
to begin allowing sockets bound to it.

For example, VPN networks can set a UID whitelist or blacklist. This
should happen:

  - AFTER there is a netID & network created in netd as
    network-specific rules will need to be tied to / point at it. Those
    rules are tied to the lifecycle of netd's network which is tracked
    by `NetworkAgentInfo.created` on the frameworks side.

  - BEFORE the CONNECTED broadcast and network callbacks have been sent
    out so that we don't create a race condition between clients that
    want to use the network and the server actually having the network
    ready

The race condition existed prior to this change and required any client
making use of network callbacks to sleep for a short amount of time after
receiving to actually be able to use the network.

Among other things, that race condition is now fixed.

Bug: 26694104
Change-Id: Ied92f5588a98c3e97f456bc98b676bf201ab5472
2016-05-04 16:24:46 +00:00
Ricky Wai
3423a513e7 Merge "Do not show exception stack trace when no child profile key" into nyc-dev 2016-05-04 10:47:55 +00:00
Ricky Wai
de3a068af6 Do not show exception stack trace when no child profile key
Bug: 28396912
Change-Id: I48e3f3223d04a0ba3dd2d975901b0504ce0dd25f
2016-05-04 10:09:50 +00:00
TreeHugger Robot
564915c58e Merge "Check permission for FLAG_WILL_BE_FOREGROUND." into nyc-dev 2016-05-04 03:39:29 +00:00
TreeHugger Robot
c8cc38c8c5 Merge "Avoid restart when inserting/ejecting adopted." into nyc-dev 2016-05-04 02:02:39 +00:00
Daniel Estrada Alva
976b9b04e4 Merge "Update verbosity of hardware providers." into nyc-dev 2016-05-04 00:38:06 +00:00
TreeHugger Robot
4fec5fe6ef Merge "Fix wrong import" into nyc-dev 2016-05-03 23:59:57 +00:00
Dongwon Kang
4a3a601082 Revert "TIF: add signal detection feature for HW inputs"
This reverts commit 102d0b7b69.

Change-Id: I50a66d7bd1baaea134ddd6638c3cfe65860e681d
2016-05-03 16:52:55 -07:00
Jeff Sharkey
4f10040f6b Check permission for FLAG_WILL_BE_FOREGROUND.
This flag is only designed to be used by platform internals, such as
DownloadManager, so require that callers hold a nice strong
permission.

Bug: 26571724
Change-Id: Ie5ec55399e2e3a64b2837ef2c0a7a8a79bd1e49f
2016-05-03 17:44:26 -06:00
Dianne Hackborn
e76ffd19a4 Merge "Work on issue #28200735: AcitvityManagerService lock held for..." into nyc-dev 2016-05-03 23:41:47 +00:00
Jeff Sharkey
379d52be47 Avoid restart when inserting/ejecting adopted.
When rapidly inserting/ejecting an adopted storage device, we might
still be trying to prepare the storage device.  Catch the exception
to avoid a runtime restart, and keep rolling forward, since we'll
probably be handling the ejected event in a few moments to clean up
any packages.

Bug: 28467146
Change-Id: Ib923663ae6d63259c1b5792b68dfe760612ab838
2016-05-03 17:40:22 -06:00
Chong Zhang
66a440a320 Merge "Fix a transparent flicker due to wrong crop" into nyc-dev 2016-05-03 23:37:33 +00:00
Dianne Hackborn
27c279d5c8 Merge "Fix issue #28477006: Add small event log to job scheduler" into nyc-dev 2016-05-03 22:33:54 +00:00
destradaa
6b4893a2d1 Update verbosity of hardware providers.
Uses a debug log for logging of messages related to hardware providers
that are not mandatory in the device.

Bug: 28530304
Change-Id: Ief1f193f934e7ebe7077366aafaa913b216e3481
2016-05-03 15:33:43 -07:00
Chong Zhang
7095d92afc Merge "Apply IME adjust to newly added window" into nyc-dev 2016-05-03 22:28:41 +00:00
Chong Zhang
8e0626572d Fix a transparent flicker due to wrong crop
When transfering an animation, copy over app animator transformation
in addition to the animation object itself.

bug: 28399102

Change-Id: I8694a76993476b19ec61d74680d6fc51326a18bf
2016-05-03 22:28:01 +00:00
Jorim Jaggi
d75962eb83 Fix wrong import
Bug: 28557404
Change-Id: I785bf29d094b26037e5ca0798af5df8a663b85cf
2016-05-03 22:20:27 +00:00
Chong Zhang
5117e273ec Apply IME adjust to newly added window
bug: 28390108
Change-Id: I72132d68cb41056fb69f2fe38fa13f2b3c9ce3d6
2016-05-03 14:39:56 -07:00
Ruben Brunk
aa262c866f Merge "Update dumpsys logging for VrManagerService." into nyc-dev 2016-05-03 20:42:38 +00:00
TreeHugger Robot
facdf19313 Merge "copy auto-group decisions to updates" into nyc-dev 2016-05-03 20:08:03 +00:00
Adam Lesinski
00194e0f24 Merge "BatteryStats: Fix units on battery charge counter" into nyc-dev 2016-05-03 19:47:35 +00:00
Badhri Jagan Sridharan
49bdf11cd5 Merge "Change low power stats format to make it easier for parsing" into nyc-dev 2016-05-03 18:48:56 +00:00
Dianne Hackborn
ef3aa6ee53 Fix issue #28477006: Add small event log to job scheduler
Added.  Also fixed dumpsys output when filtering, to apply the
filter to (almost) all of the output.

Change-Id: Iafb446599ad8fddbe8a766784deff618a6cfdbb7
2016-05-03 11:48:25 -07:00
Badhri Jagan Sridharan
15c4e31b0f Change low power stats format to make it easier for parsing
New format: PlatformIdleStat state_1 name=XO_shutdown time=0 count=0
voter_1 name=APSS time=48264099 count=484 voter_2 name=MPSS
time=48573849 count=39857 voter_3 name=LPASS time=49584723 count=2082 
state_2 name=VMIN time=47171000 count=38222

Old format: PlatformIdleStat XO_shutdown_time=0 XO_shutdown_count=0 
APSS_time=9467486 APSS_count=583 MPSS_time=10835070 MPSS_count=9131
LPASS_time=10624719 LPASS_count=595 VMIN_time=9231000 VMIN_count=7878

In the old format it was hard to differentiate between the various
low power states and the voters for each state.

Bug:26564574

Change-Id: I3930aaf1c8c6e17066ef043552096ba61373f9f4
2016-05-03 18:42:09 +00:00
TreeHugger Robot
65e22a20ac Merge "ActivityManager: Make bootcomplete marker failure a warning" into nyc-dev 2016-05-03 18:26:50 +00:00
TreeHugger Robot
28309fec2f Merge "Added option to reset network policies for a given user." into nyc-dev 2016-05-03 18:08:35 +00:00
Adam Lesinski
a8018ac47a BatteryStats: Fix units on battery charge counter
The unit for the battery charge counter is in micro-Ampere-hours, not coulombs.
We store the value as uAh but display it in dumpsys as mAh.

Bug:27174034
Change-Id: Ib5cc1ee1c5c191336a3e1f18dbb12c38e833f8d0
2016-05-03 10:41:47 -07:00
Chong Zhang
c70e264de1 Merge "Fix bad animation when pressing Home with translucent activity" into nyc-dev 2016-05-03 17:28:38 +00:00
Andreas Gampe
0e11a4cd9d ActivityManager: Make bootcomplete marker failure a warning
This isn't terminal, and currently even expected in some cases.
Make it a warning instead of an error.

Bug: 26978865
Change-Id: Ieb7f29e340f5b08f69887b9f094554858fb72786
2016-05-03 09:38:31 -07:00
Makoto Onuki
7d164d35a4 Merge "ShortcutManager: finishing touches" into nyc-dev 2016-05-03 16:27:46 +00:00
Pavel Zhamaitsiak
e8fc84b449 Fix race condition in MetricsLoggerService
Bug: 28204408
Change-Id: I7e0577d2161f6083ae84ab29db24f23415d145be
2016-05-03 09:18:00 -07:00
Felipe Leme
d17fda40cd Added option to reset network policies for a given user.
BUG: 28429571
Change-Id: I675e4ee5484a865f6819d7a0eef34133be11306f
2016-05-03 09:01:56 -07:00
Robin Lee
dc67971a99 Add lockdownEnabled parameter to always-on VPN API
Allows callers to opt-out of blockading network traffic during boot and
on VPN app failure.

Bug: 26694104
Change-Id: Ibfbd43ad09a25f2e38053fcd6306df3711f8bde2
2016-05-03 13:24:42 +01:00
TreeHugger Robot
87a18d9e2b Merge "Don't remove all app token windows when window client dies" into nyc-dev 2016-05-03 01:46:57 +00:00
Svetoslav Ganov
d4d1512b64 Merge "Disable unused features" into nyc-dev 2016-05-03 01:37:01 +00:00
Svet Ganov
a7532cfa46 Disable unused features
The multi-package APKs feature was not validated and is now disabled.
Also the ephemeral work was postponed which requires disabling of the
ephemeral cookie APIs.

bug:28514747

Change-Id: Iab7f11c503a76bcc414408dfebdf200843db814e
2016-05-02 18:36:13 -07:00
TreeHugger Robot
37634aefb6 Merge "Fixed some issues with resuming already resumed activity" into nyc-dev 2016-05-03 00:15:50 +00:00
TreeHugger Robot
e877d2d791 Merge "Multi-user Data Saver fixes:" into nyc-dev 2016-05-02 23:51:39 +00:00
Wale Ogunwale
e42d0e102d Don't remove all app token windows when window client dies
AppWindowToken can contain windows from multiple clients (Processes)
If one of the client dies we shouldn't remove all windows in the app
token. We should only remove dea windows.

Bug: 28467642
Change-Id: I8be6a98e0acc79719158567114f4902066069c1b
2016-05-02 16:50:46 -07:00
Chong Zhang
d127c6d461 Fix bad animation when pressing Home with translucent activity
Force a setAppVisibility if the previous app was translucent, so that
the resumed app is added to the opening app list. Otherwise opening
app list is empty and the transition can't be set up correctly.

bug: 28463843
Change-Id: I7f8e28d0f804c799a429743df6fc501c06d62f21
2016-05-02 16:38:33 -07:00
Jeff Sharkey
599de361cb Merge "Apply non-FBE migration early during boot." into nyc-dev 2016-05-02 22:23:27 +00:00
Jeff Sharkey
f10640adef Merge "When fork() fails, clean up data structures." into nyc-dev 2016-05-02 22:12:34 +00:00
TreeHugger Robot
dba83f1289 Merge "Yell when no home app was found." into nyc-dev 2016-05-02 22:11:33 +00:00