19662 Commits

Author SHA1 Message Date
Jim Miller
76b9b8b0ca Limit grantTrust() duration to DevicePolicy-imposed limit.
Fixes bug 17046034

Change-Id: I5c512c2d05e7e0ed81eaf0dcafacc6f62a5c5937
2014-08-22 18:10:08 -07:00
Jeff Davidson
79dbce8661 Merge "Restore legacy VPN stats dialog." into lmp-dev 2014-08-23 00:55:11 +00:00
Jeff Brown
d4c3a1f77a Merge "Fix matrix multiply in accessiblity display adjustments." into lmp-dev 2014-08-23 00:24:01 +00:00
Jeff Brown
a96a3c1b65 Merge changes I9bd3a235,I9c4dbdef into lmp-dev
* changes:
  Improve adaptive brightness in very dark rooms.
  Hide PowerManager methods that third-party apps can't use.
2014-08-23 00:23:45 +00:00
Jeff Brown
d7761be23d Merge "Poke interactive hint from userActivity and add @SystemApi." into lmp-dev 2014-08-23 00:23:41 +00:00
Jeff Brown
de25dc0708 Merge "Require DEVICE_POWER permission for DOZE_WAKE_LOCK." into lmp-dev 2014-08-23 00:23:26 +00:00
Jeff Davidson
90b1b9f985 Restore legacy VPN stats dialog.
Was originally removed in ag/522961, but restoring to keep legacy VPN
behavior the same from within VpnSettings. This dialog is only
accesible from VpnSettings and so should only ever be shown for legacy
VPNs.

Bug: 17164793
Change-Id: I06c4e136e1023b8f84edfd15a15264d2e41d325b
2014-08-22 17:06:37 -07:00
Jeff Sharkey
941a8ba1a6 Installing splits into ASECs!
Sessions can now zero-copy data directly into pre-allocated ASEC
containers.  Then at commit time, we compute the total size of the
final app, including any inherited APKs and unpacked libraries, and
resize the container in one step.

This supports both brand new ASEC installs and inheriting from
existing ASEC installs.  To keep things simple, it currently requires
copying any inherited ASEC contents, but this could be optimized in
the future.

Expose new vold resize command, and allow read-write mounting of ASEC
containers.  Move native library extraction into the installer flow,
since it needs to happen before ASEC is sealed.  Move multiArch flag
into NativeLibraryHelper, instead of making everyone pass it
around.  Migrate size calculation to shared location.

Separate "other" package name in public API, provide a path to a
storage device when relevant, and add more docs.

Bug: 16514385
Change-Id: I06c6ce588d312ee7e64cce02733895d640b88456
2014-08-22 16:25:04 -07:00
Matthew Williams
d1c06753d0 Implement API review feedback for JobScheduler
BUG: 17005336

Took the opportunity to clean up some back-off logic

Change-Id: Ibc8ae34d1d44dd064ba071e4cbad17872f7e38cf
2014-08-22 16:08:45 -07:00
Jim Miller
d4efaac5d5 Update TrustAgentService API after review.
Also documents timebase on related DevicePolicyManager API.

Fixes bugs 16401527 and 17046034

Change-Id: I8ee6d0055ab6f52ec71630344d3232f7875d9c1d
2014-08-22 22:43:30 +00:00
John Spurlock
7653a30ea0 Merge "Display notification effects suppressor in the volume panel." into lmp-dev 2014-08-22 22:09:35 +00:00
John Spurlock
b4782526f5 Display notification effects suppressor in the volume panel.
Bug:16958514

Change-Id: I0eac173875e8af62e3c6b39001722c3fda4517de
2014-08-22 18:08:17 -04:00
Christopher Tate
e7bbe47833 Merge "Automatically bind to newly-installed backup transports" into lmp-dev 2014-08-22 21:11:41 +00:00
Amith Yamasani
6dd08fdd91 Merge "Show a user switching dialog before starting the user switch" into lmp-dev 2014-08-22 21:08:15 +00:00
Matthew Williams
12eec2341d Merge "JobScheduler only run jobs for started users." into lmp-dev 2014-08-22 21:08:06 +00:00
Svetoslav
d9a218d499 Merge "Fix jank in when drawing magnification bounds" into lmp-dev 2014-08-22 21:07:09 +00:00
Christopher Tate
5684dae9cc Automatically bind to newly-installed backup transports
They'll be rebound automatically at boot, but need to be brought
up immediately.  As always they can only be provided by privileged
apps.

Bug 16542048

Change-Id: I9f121a5c111a772deb3f0c44166002a2cbb16ad5
2014-08-22 13:29:46 -07:00
Dianne Hackborn
250bf41b8e Merge "Work on issue #17011123: Hit Back/Recents button when in Recents..." into lmp-dev 2014-08-22 20:05:39 +00:00
Amith Yamasani
7805a10c86 Show a user switching dialog before starting the user switch
switchUser() now first shows a dialog and the dialog calls
startUserInForeground to do the actual switch.

Bug: 16661752
Change-Id: Ie4e2e9eec8bf7c2116694072ea8555b8254a0e13
2014-08-22 13:00:22 -07:00
Christoph Studer
28d6247b3d Merge "NoMan: Turn off aggregated stats" into lmp-dev 2014-08-22 19:40:57 +00:00
Christoph Studer
9e3618c28f Merge "NoMan: Add flag to turn off aggregated in-mem stats" into lmp-dev 2014-08-22 19:40:17 +00:00
Svetoslav
7505e3315c Fix jank in when drawing magnification bounds
There was an off-by-one error in computing the invalidated
rectangle when drawing the magnified region border.

bug:17199352

Change-Id: Id0a1af092b7124bbdca316534c035ed9af829326
2014-08-22 12:14:47 -07:00
Christoph Studer
0a31453864 NoMan: Turn off aggregated stats
Aggregated stats can grow unboundedly and shouldn't be enabled
for prod builds.

Bug: 16777910
Change-Id: I1c9303fc3aab93fd75f4dfbbf2e3de467a72f99e
2014-08-22 21:03:48 +02:00
Christoph Studer
856b2b8135 NoMan: Add flag to turn off aggregated in-mem stats
Bug: 16777910
Change-Id: Ic5baa910988f027c82ba16d713a44cc5d55b8333
2014-08-22 21:03:37 +02:00
Paul Lawrence
32d06732cd Fix adb backup for encrypted case
New behavior. Backup no longer uses the encryption password. This is in
part because that is hard with patterns, in part because it is a security
issue - the off line backup is much easier to brute force than the phone.

Instead, we simply insist on an encryption password if your device is encrypted
and locked.

Bug: 17159330
Change-Id: Ia22f84722522abf0b569a3ef1e16ead5527c726d
2014-08-22 11:22:43 -07:00
Christoph Studer
c44caa9b84 NoMan: Cancel children when update removes summary
When a notification update causes a group summary to be
removed (e.g. because the group summary is updated to be
a non-grouped notification), cancel group children.

Bug: 17143007
Change-Id: Ic295a5fc6ee5fe7efb8e71fe8bd1b2c0159461aa
2014-08-22 19:18:26 +02:00
Brian Carlstrom
9a434ae00f Merge "Move SystemBackupAgent from services.jar to frameworks.jar" into lmp-dev 2014-08-22 17:03:49 +00:00
Jeff Davidson
717d95161a Merge "Allow NetworkRequest release from the system process." into lmp-dev 2014-08-22 16:52:33 +00:00
Calin Juravle
feb193085a Pass vmSafeMode (manifest attribute) to installd.
The flag is used to enforce --interpret-only flag when running dex2oat.

Bug: 12457423
Change-Id: Ifdafcc1afa32996577fa44c5682eeb58c79772ac
2014-08-22 15:33:05 +01:00
Adrian Roos
076e72554d Merge "Only run TrustAgentServices for users with secure keyguards" into lmp-dev 2014-08-22 14:17:32 +00:00
Paul Jensen
a68d213502 Remove captive portal sign-in actions.
This reverts commit e0101cd and removes the related NetworkMonitor code.
The thinking is the broadcasts are not robust enough as they rely on apps
working together and are not sufficiently tested.

bug:17115050
Change-Id: I433032867cc4fea7191a1b13842b16825dc74df4
2014-08-22 09:42:56 -04:00
Narayan Kamath
31fe102d57 Remove a line that was accidentally committed.
Prevents the APK from being installed.

bug: 17153971

Change-Id: Ic53c94dc6f0583371965d5edb0b12248c915214e
2014-08-22 11:37:20 +00:00
Jeff Brown
8864415e2a Fix matrix multiply in accessiblity display adjustments.
Fixed a bug caused by a missing temporary when swapping two
matrices.  This could produce undefined results in the case where
both display inversion and the greyscale daltonizer were enabled
simultaneously.

Tightened up the code a little to make this kind of error
less likely by removing redundant state.

Removed the native prefix on some methods since they are not
native at all.

Change-Id: I716ffc8fbe76a304c60d45870074340c0121059f
2014-08-22 03:52:01 -07:00
Jeff Brown
1bfd0f463e Improve adaptive brightness in very dark rooms.
Added config_screenBrightnessDark to configure the minimum value
that will be used for auto-brightness adjustment.  This value is
expected to be less than unadjusted minimum auto-brightness level
to provide some range for the user to make the screen dimmer
in dark rooms.

This configuration value is set to the lowest possible level
by default (1).  Individual devices may need to override this value
in their framework resource overlay depending on their backlight
characteristics.

Change-Id: I9bd3a2355c65f894dff89aeaf7661cdf38f4a6ee
2014-08-22 02:17:41 -07:00
Jungshik Jang
f67113f7ab Use common language code in hdmi service.
Bug: 15844859
Change-Id: I12945f743730ee234b25a40543ea44345abf43fa
2014-08-22 17:17:09 +09:00
Narayan Kamath
97a50adde5 Merge "Fix service tests." into lmp-dev 2014-08-22 07:47:38 +00:00
Jungshik Jang
dbe6b45545 Add spam-safe logger.
This change introduces a new helper class, HdmiLogger,
which prevents spammy log for same error message.

Bug: 17179667
Change-Id: Ia55808408e0a92b0370cd627361f80754b2f1018
2014-08-22 15:30:04 +09:00
Brian Carlstrom
8def5cbb3a Move SystemBackupAgent from services.jar to frameworks.jar
Bug: 17168017
Change-Id: I89b98ca839a78eeb7fb43930e0699ee235deafad
2014-08-21 23:15:13 -07:00
Jeff Brown
0a57112354 Poke interactive hint from userActivity and add @SystemApi.
Previously we only poked the interactive hint for input events that
were dispatched through the regular input system.  However, when
using a car dock in projection mode input events are directly
delivered to apps by other system components, bypassing user activity.
So now we poke the interactive hint on all user activity.

Added an @SystemApi version of userActivity.

Added a new signature|system permission called USER_ACTIVITY
to allow system apps to poke userActivity.  For now it seems
prudent to keep DEVICE_POWER signature only.

Bug: 17043684
Change-Id: Ia84bd03083065b8938a9853c08901fbf71b2e56b
2014-08-21 22:36:45 -07:00
Jungshik Jang
6385953604 Merge "Implement interfaces for MHL scratchpad command" into lmp-dev 2014-08-22 05:22:47 +00:00
Jeff Brown
72671fbb20 Require DEVICE_POWER permission for DOZE_WAKE_LOCK.
This wake lock is only intended to be used internally.

Change-Id: I8d109c492605673616cf7f4f31f082a42fb1d912
2014-08-21 22:20:55 -07:00
Matthew Williams
9ae3dbeefc JobScheduler only run jobs for started users.
BUG: 12876556
Minor changes to test app to make persisting an option.
Change-Id: I1b40347878ec5ca44cd717ebfeb544f6c58473b5
2014-08-21 20:28:12 -07:00
Lorenzo Colitti
e258de6f9e Merge "Rework the per-network URL API." into lmp-dev 2014-08-22 03:07:28 +00:00
Jungshik Jang
f424932cfb Implement interfaces for MHL scratchpad command
1. Add sendScratchpadCommand to IHdmiControlService interface,
which is used to send scratchpad command.

2. Add IHdmiMhlScratchpadCommandListener to handle incoming
MHL scratchpad command.

Bug: 17146522

Change-Id: I8e8e743dc08a18c80867be470997ce79d3292c15
2014-08-22 11:45:50 +09:00
Jinsuk Kim
1bfc75fc04 Merge "CEC: Skip routing control/internal source selection conditionally" into lmp-dev 2014-08-22 02:14:06 +00:00
Lorenzo Colitti
9f1274b7e4 Rework the per-network URL API.
This addresses API council comments.

Bug: 17112978
Change-Id: I698b243b2b685d1f25414cee72450be3ae0c2bf0
2014-08-21 19:09:27 -07:00
Winson Chung
096f36b8db Minor tweaks to recents thumbnails.
- Reducing the size of the recents thumbnails
- Skip persisting if we never update the last thumbnail
- Don't bother loading the last thumbnail file descriptor if we have it in memory
- Fixing warning in getting drawable from resource

Change-Id: Ieddaeac75a5e5d80876a9b6b1d50f7cc84c7d6fd
2014-08-22 01:03:21 +00:00
Dianne Hackborn
6f4d61ff2e Work on issue #17011123: Hit Back/Recents button when in Recents...
...without interacting with any of the Recents items should not bring
Home back to top

Up navigation needs to be smarter about multi-document and in the case
of being at the root of a document know to re-construct a task for
the app.

Change-Id: Ief874e46e9a9897379dda1010bcce4c5b03d82f1
2014-08-21 17:50:42 -07:00
Jinsuk Kim
d530719b16 CEC: Skip routing control/internal source selection conditionally
This is necessary for TV woken up by <Text/Image View On> to override
initial TV source selection/routing control, since the input change
will immediately come from external device.

Bug: 17189114
Change-Id: I4aa1ac31bc7f6ab554e29a9e6065e534e15abd58
2014-08-22 09:46:37 +09:00
Jeff Davidson
6f91390f1a Allow NetworkRequest release from the system process.
Otherwise attempts to release that are triggered by the binder death
receipient will be rejected.

Bug: 17187437
Change-Id: If3924d82dba69c572708e04c11d17ed25ae6870d
2014-08-21 16:21:29 -07:00