197723 Commits

Author SHA1 Message Date
Jeff Sharkey
b86048dab3 Merge "Always return content Uri for downloads." into mnc-dev 2015-07-29 19:59:36 +00:00
Raph Levien
c3cc344d12 Merge "Release text when finishing StaticLayout.Builder" into mnc-dev 2015-07-29 19:44:21 +00:00
Raph Levien
22ba7869f6 Release text when finishing StaticLayout.Builder
DynamicLayout reuses a StaticLayout.Builder object to avoid having to
allocate. There is a "finish" method that releases any expensive
internal state of the builder object, but it didn't release a
reference to the text object (which in turn may contain references to
lots of other things, especially if it's a Spannable).

This patch releases the text, as well as a few other arrays, at time
of finish.

Bug: 22822416
Change-Id: Icc8b6cd41a9a2d11689df7bd1b9f524c6524f706
2015-07-29 12:34:13 -07:00
Wale Ogunwale
25782ef834 Merge "Added stack id to TaskRecord dump." into mnc-dev 2015-07-29 19:11:44 +00:00
Roshan Pius
944b63624b Merge "Add a command to register SIM Phone account." into mnc-dev 2015-07-29 18:54:04 +00:00
Wale Ogunwale
069fbe4b58 Added stack id to TaskRecord dump.
Bug: 22812470
Change-Id: Ic8f3550e61ad1cf175423abe900c5f60686338a2
2015-07-29 11:38:01 -07:00
Maurice Lam
75d958c40e Merge "Disable launching assist during setup" into mnc-dev 2015-07-29 18:25:16 +00:00
Christine Hallstrom
a42e681651 Merge "Change NTP polling interval from 10 days to 24 hours." into mnc-dev 2015-07-29 17:59:23 +00:00
Geoff Mendal
3986360a75 Import translations. DO NOT MERGE
Change-Id: Ic4e540e08175014515a7556425c751de60955005
Auto-generated-cl: translation import
2015-07-29 10:57:52 -07:00
Svetoslav Ganov
9352af2a9e Merge "Remove dependencies on the package installer's package name" into mnc-dev 2015-07-29 17:54:23 +00:00
Christine Hallstrom
defef96da0 Change NTP polling interval from 10 days to 24 hours.
Bug: 22820525
Change-Id: Ifb5da0a19854d751d00889e4c9d075e909414d62
2015-07-29 17:49:52 +00:00
Sailesh Nepal
6b96de8dae Merge "Default permissions for sim call manager" into mnc-dev 2015-07-29 17:39:37 +00:00
Svetoslav Ganov
a7a65ee4c5 Merge "Allow non system to set perm policy flags - needed by the installer" into mnc-dev 2015-07-29 17:38:29 +00:00
Svetoslav Ganov
120a86ac6f Merge "Do not reset runtime permissions on upgrade" into mnc-dev 2015-07-29 17:37:50 +00:00
Jeff Sharkey
b11683ba62 Always return content Uri for downloads.
Now that we're relying more heavily on Uri permission grants between
apps, we should always return content:// Uris.

Bug: 22820206
Change-Id: Ie9603da09944dc594ea5dde2db04455f57d6f103
2015-07-29 10:22:30 -07:00
Dianne Hackborn
eda1cc50ce Merge "Work on issue #22765972: Binder transactions running out of address..." into mnc-dev 2015-07-29 17:05:58 +00:00
Nicolas Prévot
64ac302f0c Merge "Send a public broadcast when the device owner is set." into mnc-dev 2015-07-29 16:59:46 +00:00
Svet Ganov
525bc7a5a6 Allow non system to set perm policy flags - needed by the installer
My previous change overtightened which permission flags can be changed
by a non-system caller. This took away the capability of the package
installer to set policy flags which it needs to implement the auto
grant/deny behavior.

bug:22776149

Change-Id: Ic2a82bedc413fc91360c3bcec355fac456f0fccf
2015-07-29 09:09:26 -07:00
Svet Ganov
f480f2899c Do not reset runtime permissions on upgrade
bug:22772831

Change-Id: Ic7113f48bf4fe2fe2f50bf94c4b6dbb2130b6621
2015-07-29 08:40:18 -07:00
Svet Ganov
f1b7f20bb8 Remove dependencies on the package installer's package name
bug:22700053

Change-Id: I8540eb8577fbec84e1a67e31e1c31ba654c828a4
2015-07-29 08:33:46 -07:00
Chris Wren
1bd310e18c Merge "import more metrics enums" into mnc-dev 2015-07-29 14:57:15 +00:00
Paul Jensen
308139425e Merge "Disable WiFi autojoin when user decides via "Stay connected?" dialog" into mnc-dev 2015-07-29 13:52:02 +00:00
Narayan Kamath
7157c2ca81 Merge "Revert "Call getInstanceForPackage instead of creating a new SensorManager instance."" into mnc-dev 2015-07-29 09:41:22 +00:00
Narayan Kamath
8d1e344f40 Revert "Call getInstanceForPackage instead of creating a new SensorManager instance."
This reverts commit 5967ddbf05f146bdb6744207e3daed1aa76fc637.

Change-Id: I6d58129585a30d7c2ef39c8cbe796fd696c93f56
2015-07-29 09:35:46 +00:00
Martijn Coenen
50184147fc Merge "Resource for setting default NFC payment component." into mnc-dev 2015-07-29 07:54:29 +00:00
Sailesh Nepal
cf85562bc9 Default permissions for sim call manager
This CL adds the following permissions by default to the
SIM call manager:
 - microphone
 - phone

BUG: 22790160
Change-Id: Icaf1db6c6943b3ddbd16a946a81d1bfb734d761f
2015-07-28 22:16:25 -07:00
Shawn Willden
a7b4d6dc10 Merge "Keymaster digest/padding NONE no longer means ANY." into mnc-dev 2015-07-29 03:58:39 +00:00
Jeff Sharkey
b8040265dd Merge "Give secondary users read-only physical cards." into mnc-dev 2015-07-29 01:19:43 +00:00
Dianne Hackborn
86cbc2bf30 Work on issue #22765972: Binder transactions running out of address...
...space causing package manager to fail

Lower the maximum IPC size we use in various places, to keep it
under the threshold of becoming dangerous.  Now everything tries
to keep not much more than 64k.

Change-Id: I814013097966a7843179e5d581bfdb254c5ae318
2015-07-28 18:13:21 -07:00
Ronghua Wu
02022b70be Merge "media: fix estimateFrameRatesFor to use correct ratio" into mnc-dev 2015-07-29 00:53:12 +00:00
Dianne Hackborn
b310c89453 Merge "Fix issue #22802691: APR: NPE in ActivityRecord" into mnc-dev 2015-07-29 00:47:33 +00:00
Dianne Hackborn
5b009d523c Merge "Fix issue #22802617: APR: spurious wtf when restarting a persistent process" into mnc-dev 2015-07-29 00:46:20 +00:00
Dianne Hackborn
b492ced89e Merge "Fix issue #22802782: APR: NPE in package manager with bad intent data" into mnc-dev 2015-07-29 00:45:18 +00:00
Dianne Hackborn
b795d7c4a3 Fix issue #22802691: APR: NPE in ActivityRecord
Change-Id: I8d6265589c97edc7a1d6c63f98c7252a439e62da
2015-07-28 17:40:06 -07:00
Adam Lesinski
c96e6f1993 Merge "BatteryStats: Use proper power calculator when energy data is received" into mnc-dev 2015-07-29 00:34:38 +00:00
Jason Monk
fbcbad138d Merge "Add sizes to SysUI tests" into mnc-dev 2015-07-29 00:31:16 +00:00
Dianne Hackborn
9dc6c61a80 Fix issue #22802782: APR: NPE in package manager with bad intent data
If they pass in a null data for the intent matching, don't throw up
on it, just consider it to not match.

Change-Id: I30b6af49989eb8b5c2e585ce5d96416f0daff3a8
2015-07-28 17:30:59 -07:00
Dianne Hackborn
a73b68fb85 Fix issue #22802617: APR: spurious wtf when restarting a persistent process
Just don't do a wtf here, it isn't really wrong (though it isn't really
right, but at this point in a release it is right enough!).

Change-Id: Ic38a2e27556224cf8868f1fa18b4810929d67fcc
2015-07-28 17:22:46 -07:00
Aravind Akella
15938235d2 Merge "Call getInstanceForPackage instead of creating a new SensorManager instance." into mnc-dev 2015-07-29 00:21:18 +00:00
Adam Lesinski
c691d3ccf4 BatteryStats: Use proper power calculator when energy data is received
We check for the presence of energy data when determining whether to use
the WiFiPowerCalculator or WiFiPowerEstimator. Since we can receive this data
later, we need to switch to the WiFiPowerCalculator if we weren't using it before.

We can't ask the hardware if it supports energy data because that would involve a call into
WiFiManagerService, which can cause a deadlock if we are holding the BatteryStatsService lock
while using this class.

Bug:22776010
Change-Id: Id685d487c56595eab1d382f49da9417a423bb517
2015-07-28 17:11:29 -07:00
Jorim Jaggi
0d210f6395 Animation for touch, wake and unlock
- Add callback to inform SysUI when the screen has been unblocked
and turned on.
- Cleanup inconsistent messaging about device interactive/screen on
and off.
- Add callbacks to inform SysUI about screen states
- Implement a quick fade for the scrim after touch, wake, and unlock.
  First, start with a black scrim on top of everything, and then fade
  it out.
- Make sure we play the normal unlock animation when device is pulsing
- Override navigation bar animations for touch, wake and unlock: Fade
  in the same manner as the scrim.

Bug: 22571198
Bug: 21855614
Change-Id: I8ff08d72cced1e0f03c78d71ff710d8a4f6b848c
2015-07-28 23:02:54 +00:00
Chris Tate
751a96a040 Merge "Don't redundantly call transport.finishRestore()" into mnc-dev 2015-07-28 22:56:41 +00:00
Roshan Pius
d3586e174f Add a command to register SIM Phone account.
Phone accounts with SIM_SUBSCRIPTION capabiltiy needs system permission.
Hence adding a command to add sunc phone accounts for CTS testing of
remote connections.

BUG: 20303674
Change-Id: Ieb7349f906ec8209776ffbe39ed3633f01ba1e7c
2015-07-28 15:49:42 -07:00
Zach Johnson
5faa033615 Merge "Add filter for personal apps that are not disabled until first use" into mnc-dev 2015-07-28 22:36:30 +00:00
Todd Kennedy
f2c616ed02 Merge "Partially revert package freezing" into mnc-dev 2015-07-28 22:15:43 +00:00
Ronghua Wu
4ef977c08f media: fix estimateFrameRatesFor to use correct ratio
Bug: 22504214
Change-Id: I5a325ae495b76aadd3fcbb8932d865c2f6322b2a
2015-07-28 15:08:08 -07:00
Jeff Sharkey
4634987668 Give secondary users read-only physical cards.
Long ago, we mounted secondary physical cards as readable by all
users on the device, which enabled the use-case of loading media on
a card and viewing it from all users.

More recently, we started giving write access to these secondary
physical cards, but this created a one-directional channel for
communication across user boundaries; something that CDD disallows.

This change is designed to give us the best of both worlds: the
package-specific directories are writable for the user that mounted
the card, but access to those "Android" directories are blocked for
all other users.  Other users remain able to read content elsewhere
on the card.

Bug: 22787184
Change-Id: Ied8c98995fec1b7b50ff7d930550feabb4398582
2015-07-28 14:42:34 -07:00
Christopher Tate
6ab2fb61f0 Don't redundantly call transport.finishRestore()
The RestoreSession is no longer responsible for calling finishRestore();
that happens as part of tidying up after running the restore itself,
even in failure cases.

Bug 22640096

Change-Id: I0be52af2ae8c2c1ac685e9904ccb8120f7fcf522
2015-07-28 14:04:04 -07:00
Todd Kennedy
6b0c8315e4 Partially revert package freezing
On the Nexus Player, upgrading the launcher would cause multiple, simultaneous
processes to be running. In order to prevent this regression, revert the portion
of ag/682591 dealing with package upgrades.

Bug: 21123444
Change-Id: I7a4cf98c7e28fc9893b1c0358d3a98702d94c039
2015-07-28 13:52:49 -07:00
Nicolas Prevot
0079900883 Send a public broadcast when the device owner is set.
Make it a protected broadcast.

BUG: 22623518
Change-Id: Ia36e8f0b80a6301d7d8e0461476842c78762b5e8
2015-07-28 21:11:27 +01:00