27027 Commits

Author SHA1 Message Date
Chris Wren
3d2b621204 Merge "high-frequency notification stats." into mnc-dev 2015-06-17 15:43:41 +00:00
Chris Wren
5eab2b72af high-frequency notification stats.
Aggregate and then periodically report stats that are high-frequency
because they are driven by app behavior, not user behavior.

Reuse the NotificationUsageStats facility.
Remove redundant stats.
Lessen memory foot print.
Enable in-memeory aggregates with small, bounded memory footprint.

Bug: 20258744
Change-Id: I87e391419c53917fa13c68a56f8cdb40a7c8e548
2015-06-17 11:42:45 -04:00
Matthew Williams
15ce33873e Merge "Make sync settings restore more robust" into mnc-dev 2015-06-16 22:36:53 +00:00
dcashman
2f90295924 Merge "Make keysetmgrservice gurantees explicit." into mnc-dev 2015-06-16 21:52:58 +00:00
Matthew Williams
53abfdb86c Make sync settings restore more robust
Bug: 18506992
Parent Bug: 17967106
Introduce a new state for ContentResolver#getIsSyncable.
This state specifies that an adapter should be disabled until
explicitly turned on by ContentResolver#setSyncAutomatically(true).
In this way we can restore disabled sync adapters and still allow
them to run their initialization logic later on when they are
re-enabled.

Change-Id: I03fd1f994c4bc982bbc723154ba20bb252efdf80
2015-06-16 14:46:59 -07:00
Jinsuk Kim
52ca020722 Merge "CEC: Handle <Set Menu Language> message on playback devices" into mnc-dev 2015-06-16 21:45:01 +00:00
Terry Heo
795415b57b CEC: Handle <Set Menu Language> message on playback devices
Bug: 16819131, Bug: 21505123
Change-Id: I3dc6439c13c2ebe5591d9e27c0c86419ed440f9b
2015-06-17 06:41:26 +09:00
Dianne Hackborn
f4c936a7e6 Merge "Fix to only do pre boot receivers on upgrade." into mnc-dev 2015-06-16 21:34:27 +00:00
Chris Wren
3397727b16 Merge "disable verbose logs from people notifications." into mnc-dev 2015-06-16 17:54:12 +00:00
Dianne Hackborn
505d62dd05 Fix to only do pre boot receivers on upgrade.
I mistakenly checked in a change that forced us to run
pre boot receivers during every boot, which was intended to
just be temporary for testing.

Change-Id: I7890432f2d42deccef934c1503c3af4b55f59494
2015-06-16 10:50:06 -07:00
Dianne Hackborn
9cc842f0ee Merge "Fix issue #21816660 (app standby), work on issue #20882522 (voice interact)" into mnc-dev 2015-06-16 16:40:59 +00:00
Chris Wren
1a5dad8674 disable verbose logs from people notifications.
Bug: 20258744
Change-Id: Ifa3fb4f6aefaab4d6c669b1e60f8536515725c0f
2015-06-16 11:23:12 -04:00
Paul Jensen
19769114b4 Merge "Remove dead hidden ConnectivityManager and NetworkInfo APIs." into mnc-dev 2015-06-16 11:30:51 +00:00
Jeff Sharkey
2cc03e5606 Yet another user restriction.
Change-Id: Ia2952da19cb974a6a9ba0271a298a10df58b8d18
2015-06-15 21:50:47 -07:00
Jim Miller
b1c6208c27 Merge "Limit number of fingerprint templates that can be enrolled per device user" into mnc-dev 2015-06-16 03:48:58 +00:00
Jim Miller
599ef0e3cd Limit number of fingerprint templates that can be enrolled per device user
This change places an upper limit on the number of fingerprint templates that
can be enrolled per account.  This is done primarily for performance reasons, but
may also be imposed by hardware and Trusted Execution Environment (TEE) reasons.

Fixes bug 20731847

Change-Id: I5bc337698bef682cdf67940906d24842e1dffc28
2015-06-15 20:42:54 -07:00
Paul Jensen
434dde84ee Remove dead hidden ConnectivityManager and NetworkInfo APIs.
- There are no callers of
  NetworkInfo.setIsConnectedToProvisioningNetwork(), so remove all the
  code that deals with mIsConnectedToProvisioningNetwork being true,
  including the two ConnectiviyManager APIs.
- There are no callers of
  ConnectivityManager.getMobileRedirectedProvisioningUrl(), so remove
  the code that reads this URL.
- There are no callers of
  ConnectivityManager.captivePortalCheckCompleted(), so remove this
  API which is currently a no-op.

Change-Id: Ifa44c7553c7c45ebe261a2a124d9bf8d6f96c690
2015-06-16 02:07:36 +00:00
Christopher Tate
60177af86a Merge "Clean up app-link verification policy" into mnc-dev 2015-06-16 01:10:48 +00:00
Makoto Onuki
e43bf4bb45 Merge "Allow killApplicationWithAppId() on secondary users" into mnc-dev 2015-06-16 00:51:36 +00:00
Adam Lesinski
d5e5151f6c Merge "Bluetooth energy: fix overflow in calculation" into mnc-dev 2015-06-16 00:46:09 +00:00
Makoto Onuki
fa24bd8ab6 Allow killApplicationWithAppId() on secondary users
Bug 20949609

Change-Id: If0e766aeb3e8b4aa6aebed3b75bcedd75251e382
2015-06-15 17:32:00 -07:00
Adam Lesinski
8a35137388 Bluetooth energy: fix overflow in calculation
Use longs instead of ints, because the energy values can get pretty
high.

Change-Id: I43e696ad9e5965c2e616b11920db5bfae5db1671
2015-06-15 17:19:07 -07:00
dcashman
87f794f0bf Make keysetmgrservice gurantees explicit.
Add exceptions/checks for keysetmgrservice interractions which *should* never
happen, but would result in NPE or invalid metadata.  Also handle mismatches
between package and keyset metadata in packages.xml.

Bug: 20128916
Change-Id: Ia0f63f78d232d9d8d9fbe4cd8e6cc3406e5192a7
2015-06-15 17:14:54 -07:00
Dianne Hackborn
b8004ff3d4 Fix issue #21816660 (app standby), work on issue #20882522 (voice interact)
Issue #21816660: More app standby abuse prevention

We now apply the same rules for deciding when an app has counted
as active when the screen is on as when the screen is off; the only
change this really means is that we don't immediately count foreground
services as making an app active both screen on as well as the
existing behavior for screen off.

Also small fix to how we switch into voice interaction mode that
guarantees we immediately switch to the screen on state.

Issue #20882522 VI: voice interactor service not restarted

This fixes some problems in the framework, allowing it to be
correctly restarted (and rolled by to the default voice interactor
if appropriate).  There are still some problems in system UI that
leave things broken in some cases.

Also small fix to how we switch into voice interaction mode that
guarantees we immediately switch to the screen on state.

Change-Id: Ie4fd098a2f5174a2c94f36d30427fb2a9db3d835
2015-06-15 17:05:04 -07:00
Christopher Tate
72c10a25f0 Clean up app-link verification policy
If an app claims to be the official auto-verified app for any domain
and thus the automatic handler for ACTION_VIEW / {http,https}://...
intents naming that domain, then we require that it verify as the
official app for *all* domains it purports to handle, even if the
other domains are not flagged for verify.

Bug 21335460

Change-Id: I3fdd8620defa31aea36ce738fa63ac94fc53c5f7
2015-06-15 15:56:59 -07:00
Dianne Hackborn
1958e5e787 Fix issue #21813831: Need API for asking to be added to power whitelist
Add the API.  Clean up a few related things.

Change-Id: I190adad1812f36f6095b98a1001fedb94874e8b5
2015-06-15 11:53:59 -07:00
Christopher Tate
f63655e49f Merge "Use HTTPS when fetching app link verification resources" into mnc-dev 2015-06-15 17:56:19 +00:00
Paul Jensen
8a6025fdaf Merge "Remove most sleep() calls from ConnectivityServiceTest" into mnc-dev 2015-06-15 13:35:48 +00:00
Chris Wren
b3c8564314 Merge "remove setLatestEventInfo from USB" into mnc-dev 2015-06-15 12:23:26 +00:00
Svet Ganov
a5c852e03a Merge "Clear runtime permissions on package data reset." into mnc-dev 2015-06-14 03:22:09 +00:00
Svet Ganov
2a30be1900 Clear runtime permissions on package data reset.
bug:21817488

Change-Id: I7c51fee5206e3bcb79951f237a71862f0752a709
2015-06-13 20:20:18 -07:00
Nick Kralevich
31b9c1721f Merge "UsbDeviceManager: Modify default function handling" into mnc-dev 2015-06-13 03:12:49 +00:00
Nick Kralevich
43965fe5ce UsbDeviceManager: Modify default function handling
When adb is enabled, there's no need to also enable MTP mode.
ADB mode enabled is sufficient to get connect messages from
the kernel driver.

This change modifies getDefaultFunctions() to return adb mode
if adb is enabled, but mtp when it's not enabled. Also stop
using "none" mode as the default. "none" should only be used
when toggling the driver.

Bug: 21429947
Change-Id: I767491417c6c69a120fcf4f3d6ec0c73311a1a60
2015-06-12 17:21:25 -07:00
Makoto Onuki
80b34d7b9d Merge "Add StorageEventListener.onDiskDestroyed()" into mnc-dev 2015-06-12 23:56:10 +00:00
Amith Yamasani
480d6eb953 Merge "Fix negative inactiveTime on creating a new user" into mnc-dev 2015-06-12 23:38:26 +00:00
Amith Yamasani
d82dbb3ffe Fix negative inactiveTime on creating a new user
Initialize the beginIdleTime to 0 rather than current time.

Bug: 21699099
Change-Id: Ib94a9198c4e80aea5d9de68c5cf5d6f8cfc79e0a
2015-06-12 16:35:17 -07:00
Adam Lesinski
cd9d7b7b07 Merge "App Standby: Convert constants to Settings.Global" into mnc-dev 2015-06-12 23:20:28 +00:00
Jeff Sharkey
1d04e6a6cd Merge "More useful extras in disk/volume broadcasts." into mnc-dev 2015-06-12 23:19:34 +00:00
Adam Lesinski
a6232df053 App Standby: Convert constants to Settings.Global
Use settings instead of hardcoded constants, and listen for their changes.

Bug:21640379
Change-Id: Id8305bb234f93f7c64c1a5e82e26b31504624324
2015-06-12 16:19:07 -07:00
Jeff Sharkey
c7acac6798 More useful extras in disk/volume broadcasts.
Change-Id: I594166cff332aaf72b2b6357ac6ed3e6e42cbc49
2015-06-12 16:16:56 -07:00
Adam Lesinski
a109cc1b6d Merge "BatteryStats: Wifi energy data is sometimes wrong" into mnc-dev 2015-06-12 23:16:10 +00:00
Makoto Onuki
9dc575d63c Add StorageEventListener.onDiskDestroyed()
Bug 21336042

Change-Id: I226cf205191dd302ff8d5156f9ae0fe8fc5b2c2b
2015-06-12 16:11:46 -07:00
dcashman
1a3048f367 Merge "Don't use upgrade-key-sets check when scanning during boot." into mnc-dev 2015-06-12 22:22:00 +00:00
Adam Lesinski
f4013aa4f7 BatteryStats: Wifi energy data is sometimes wrong
Wifi energy data sometimes reports negative values. The bug
is filed, but in the meanwhile, batterystats calculations
are way off due to strange values.

Now we ignore invalid data, and sample again later.
Bug:21613534

Change-Id: I3c5c1385e15d85346e6fd3a2737cb58ca706ab74
2015-06-12 15:18:06 -07:00
Stefan Kuhne
11e6fcb5a8 Merge "Removing screen artifacts afer orientation change in sleep mode" into mnc-dev 2015-06-12 21:54:25 +00:00
Mike Lockwood
d5ca05c3dd Merge "MidiDeviceServer: Fix race condition in setting device server's mDeviceInfo" into mnc-dev 2015-06-12 21:51:39 +00:00
Eric Laurent
7413ab6731 Merge "audioservice: remove BT SCO device when service is disconnected" into mnc-dev 2015-06-12 21:42:55 +00:00
Jeff Sharkey
8dd7ad7429 Merge "Send along the disk ID that we just scanned." into mnc-dev 2015-06-12 21:40:35 +00:00
Jeff Sharkey
e9b64f9735 Send along the disk ID that we just scanned.
Change-Id: I33f1a5363ed171f715b2f6c5690fcee586a8a58c
2015-06-12 14:38:50 -07:00
Eric Laurent
98859b256e audioservice: remove BT SCO device when service is disconnected
Bug: 21727956.
Change-Id: I9dd68ad83583cdbe7454724098c89daf70bee726
2015-06-12 14:35:59 -07:00