200766 Commits

Author SHA1 Message Date
Todd Kennedy
d73c865385 DO NOT MERGE Fix intent filter priorities am: d6174e7 -s ours am: ebb136c am: 6e0aff3
am: a73fa08  -s ours

* commit 'a73fa08457827b17a3db15ccaf52cb65a693d5db':
  DO NOT MERGE Fix intent filter priorities

Change-Id: Ie5c2a26cf1c6cc8f363845fb1be187fffc1a88fe
2016-04-11 22:17:19 +00:00
Todd Kennedy
c2cc804407 DO NOT MERGE Fix intent filter priorities am: 60351d3 am: 3dfc6d9
am: ca13384  -s ours

* commit 'ca133845ef815d7cc1f036b1355130a8a867a98c':
  DO NOT MERGE Fix intent filter priorities

Change-Id: I88811d2bce66e53998360909612003873e9407af
2016-04-11 22:12:19 +00:00
Todd Kennedy
a73fa08457 DO NOT MERGE Fix intent filter priorities am: d6174e7 -s ours am: ebb136c
am: 6e0aff3

* commit '6e0aff30cfe571c117a8f20b15c3b27f3aecc7fa':
  DO NOT MERGE Fix intent filter priorities

Change-Id: Icc23a9c2a4dafad3ecbf91e27647318c33b39d6a
2016-04-11 22:12:09 +00:00
Todd Kennedy
ca133845ef DO NOT MERGE Fix intent filter priorities am: 60351d3
am: 3dfc6d9

* commit '3dfc6d986f6142b1e0020c9970f626c7c435711e':
  DO NOT MERGE Fix intent filter priorities

Change-Id: Id396cca79db8f830a513746f387fb866c773c778
2016-04-11 22:06:38 +00:00
Todd Kennedy
6e0aff30cf DO NOT MERGE Fix intent filter priorities am: d6174e7 -s ours
am: ebb136c

* commit 'ebb136cbda0ba1caff3c482e00aff416edc5117f':
  DO NOT MERGE Fix intent filter priorities

Change-Id: I20536d7bca605aadb8cec8bee5383e1aef9742c9
2016-04-11 22:06:35 +00:00
Todd Kennedy
ebb136cbda DO NOT MERGE Fix intent filter priorities
am: d6174e7  -s ours

* commit 'd6174e74020aaec97db5780837a3edcd787018bf':
  DO NOT MERGE Fix intent filter priorities

Change-Id: I9d089bfaf20baee25c1999d24020956dcbc2509e
2016-04-11 22:00:31 +00:00
Todd Kennedy
3dfc6d986f DO NOT MERGE Fix intent filter priorities
am: 60351d3

* commit '60351d3be29977dfe0b422de797a0429edf500b7':
  DO NOT MERGE Fix intent filter priorities

Change-Id: Ieca2ee83f22e5d4083f895f52d42a2f697920be7
2016-04-11 22:00:27 +00:00
Todd Kennedy
cd24c4ebc0 DO NOT MERGE Fix intent filter priorities
am: eeb970a

* commit 'eeb970ada10d37495ad7a8a4b14ad0506b640eea':
  DO NOT MERGE Fix intent filter priorities

Change-Id: I22cfcc61e9ec37242e0e47ef732c9364bdb8a886
2016-04-11 22:00:26 +00:00
Todd Kennedy
60351d3be2 DO NOT MERGE Fix intent filter priorities
Since this is a backport, there is only one rule that guards intent
filter priorities:
1) Updates will NOT be granted a priority greater than the priority
   defined on the system image.

NOTE: I had to bring in pieces of ag/526831 so intent filters could
be collected and matched

Bug: 27450489
Change-Id: Ifcec4d7a59e684331399abc41eea1bd6876155a4
2016-04-07 16:40:18 -07:00
Todd Kennedy
eeb970ada1 DO NOT MERGE Fix intent filter priorities
Since this is a backport, there is only one rule that guards intent
filter priorities:
1) Updates will NOT be granted a priority greater than the priority
   defined on the system image.

Bug: 27450489
Change-Id: Ifcec4d7a59e684331399abc41eea1bd6876155a4
2016-04-05 13:56:59 -07:00
Todd Kennedy
d6174e7402 DO NOT MERGE Fix intent filter priorities
Since this is a backport, there is only one rule that guards intent
filter priorities:
1) Updates will NOT be granted a priority greater than the priority
   defined on the system image.

Bug: 27450489
Change-Id: Ifcec4d7a59e684331399abc41eea1bd6876155a4
2016-04-05 10:20:41 -07:00
Michael Wright
0625e11b37 Add new, hidden MotionEvent flag for partially obscured windows.
Bug: 26677796
Change-Id: Ic4219b883bb760495e6172ef61e84e9725876ef6
2016-03-31 15:53:44 -07:00
Samuel Tan
1d508decac [DO NOT MERGE] Disallow guest user from changing Wifi settings am: d385a6d -s ours am: c2712ab am: 3253022 am: f4fd201 -s ours
am: 1450b69

* commit '1450b69182fd9b360d9dd4ec54d431560eb775e6':
  [DO NOT MERGE] Disallow guest user from changing Wifi settings
2016-03-23 21:53:57 +00:00
Samuel Tan
1450b69182 [DO NOT MERGE] Disallow guest user from changing Wifi settings am: d385a6d -s ours am: c2712ab am: 3253022
am: f4fd201  -s ours

* commit 'f4fd20168fdf1ee19da63cc82c0893a288d8b759':
  [DO NOT MERGE] Disallow guest user from changing Wifi settings
2016-03-23 21:49:16 +00:00
Samuel Tan
f4fd20168f [DO NOT MERGE] Disallow guest user from changing Wifi settings am: d385a6d -s ours am: c2712ab
am: 3253022

* commit '325302206a0129bdf16a486232d5864d71e62a44':
  [DO NOT MERGE] Disallow guest user from changing Wifi settings
2016-03-23 21:45:25 +00:00
Samuel Tan
325302206a [DO NOT MERGE] Disallow guest user from changing Wifi settings am: d385a6d -s ours
am: c2712ab

* commit 'c2712ab7bd3bdeaf8945bc80154f402e1cf727bc':
  [DO NOT MERGE] Disallow guest user from changing Wifi settings
2016-03-23 21:40:45 +00:00
Samuel Tan
c2712ab7bd [DO NOT MERGE] Disallow guest user from changing Wifi settings
am: d385a6d  -s ours

* commit 'd385a6d95fc830ecc8d55937e9f46b14165d4b34':
  [DO NOT MERGE] Disallow guest user from changing Wifi settings
2016-03-23 21:35:32 +00:00
Samuel Tan
542bb7307b [DO NOT MERGE] Disallow guest user from changing Wifi settings
am: d8c3ca4

* commit 'd8c3ca43163427a75c8b70114096238177f97af0':
  [DO NOT MERGE] Disallow guest user from changing Wifi settings
2016-03-23 21:35:30 +00:00
Samuel Tan
d385a6d95f [DO NOT MERGE] Disallow guest user from changing Wifi settings
Disallow existing and newly created guest users from
changing Wifi settings.

BUG: 27411179
TEST: Flashed device, switched to existing guest user, and verified
      that Wifi settings are disabled.
TEST: Flashed device, created new guest user, and verified that Wifi
      settings are disabled.

Change-Id: Ia1bf4cce0369017b62f69d317c7ab2e30e3949b3
2016-03-18 14:25:41 -07:00
Samuel Tan
d8c3ca4316 [DO NOT MERGE] Disallow guest user from changing Wifi settings
Disallow existing and newly created guest users from
changing Wifi settings.

BUG: 27411179
TEST: Flashed device, switched to existing guest user, and verified
      that Wifi settings are disabled.
TEST: Flashed device, created new guest user, and verified that Wifi
      settings are disabled.

Change-Id: Ia1bf4cce0369017b62f69d317c7ab2e30e3949b3
2016-03-18 21:22:46 +00:00
Andre Eisenbach
e6c7c8e8f2 Merge "DO NOT MERGE Read Bluetooth interop database entries from settings (1/2)" into mnc-dr-dev 2016-02-24 18:35:39 +00:00
Andre Eisenbach
a39373cabd DO NOT MERGE Read Bluetooth interop database entries from settings (1/2)
Interop database entries are stored in the system settings entry
"BluetoothInteropDatabase". The format is a list of entries separated by
";". An entry consists of a BDA fragment, followed by a comma and an
integer representing a feature from interop.h.

Example:
To disable LE secure connections for devices starting with BDA 11:22:33,
use "11:22:33,0".

Bug: 26548845
Change-Id: I6a9fd34f6af4d3bdfcaa0e051eafebdfbf2a4949
(cherry picked from commit 3bc623be8dd8b83d0a22c5cc5b5a8955001f6fc7)
2016-02-23 01:10:11 -08:00
Liejun Tao
9ef7634fa9 DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case
For the lowest music volume steps 1 and 2, restrict the gain to 50% and
75%. This will avoid the lowest volume steps being too loud for some
accessories. For music volume 0, set phone gain to 0 as some
accessories won't mute on their end.

Change-Id: I24e0fa7be8c8635b428a11c91ea153aad7cec55f
Signed-off-by: Liejun Tao <baibai@motorola.com>
2016-02-23 01:07:29 -08:00
Akshay Thakker
e210c99809 Merge "DO NOT MERGE Fix for syncs being dropped when appIdle is on" into mnc-dr-dev 2016-02-22 22:27:25 +00:00
Adam Lesinski
d201f48687 Merge "DO NOT MERGE ANYWHERE: Hack to get devices booting again." into mnc-dr-dev 2016-02-22 18:47:13 +00:00
Adam Lesinski
3e439db8c8 Merge "DO NOT MERGE ANYWHERE: Don't change screen on time on time changes" into mnc-dr-dev 2016-02-22 18:47:03 +00:00
Shreyas Basarge
20c518816a NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d am: 5e4e02b009 am: 242bdb6d5b am: 4aa78554df
am: 20339172bd

* commit '20339172bddac09730bf46f5eb289db4c299d64d':
  NPE fix for SyncStorageEngine read authority
2016-02-20 02:05:16 +00:00
Shreyas Basarge
20339172bd NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d am: 5e4e02b009 am: 242bdb6d5b
am: 4aa78554df

* commit '4aa78554dfa1ff4cdb91ba560e3097d8febbe5c9':
  NPE fix for SyncStorageEngine read authority
2016-02-20 02:01:11 +00:00
Shreyas Basarge
4aa78554df NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d am: 5e4e02b009
am: 242bdb6d5b

* commit '242bdb6d5bec6e42b7caf42fd08ded0accc70fb8':
  NPE fix for SyncStorageEngine read authority
2016-02-20 01:53:57 +00:00
Shreyas Basarge
242bdb6d5b NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d
am: 5e4e02b009

* commit '5e4e02b00999db4513f43d5ddfdd2c71212cc503':
  NPE fix for SyncStorageEngine read authority
2016-02-20 01:45:01 +00:00
Shreyas Basarge
5e4e02b009 NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1
am: 6fc321a66d

* commit '6fc321a66d74401e00b2203817f75e29a0426ab7':
  NPE fix for SyncStorageEngine read authority
2016-02-20 01:37:34 +00:00
Shreyas Basarge
6fc321a66d NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17
am: eec587edf1

* commit 'eec587edf1fb4e7bc5f38695f478f191dee1e2d4':
  NPE fix for SyncStorageEngine read authority
2016-02-20 01:27:25 +00:00
Shreyas Basarge
eec587edf1 NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05
am: 58048c1f17

* commit '58048c1f17d54166c6a048af2365d17dd32f4d57':
  NPE fix for SyncStorageEngine read authority
2016-02-20 01:01:10 +00:00
Shreyas Basarge
58048c1f17 NPE fix for SyncStorageEngine read authority am: a962d9eba7
am: 339c4f2b05

* commit '339c4f2b055d40acea280a2d4b6c83c17f86a8b5':
  NPE fix for SyncStorageEngine read authority
2016-02-20 00:47:41 +00:00
Shreyas Basarge
339c4f2b05 NPE fix for SyncStorageEngine read authority
am: a962d9eba7

* commit 'a962d9eba7a8f741ed149964126fb08fe4fd7128':
  NPE fix for SyncStorageEngine read authority
2016-02-20 00:41:03 +00:00
Shreyas Basarge
a962d9eba7 NPE fix for SyncStorageEngine read authority
Add a null check after an authority is read
from disk.

Bug: 26513719
Change-Id: I18f01828141110e776cc96f3b3be3d80125e70c1
2016-02-19 23:38:33 +00:00
Jeff Sharkey
558f09fcf6 DO NOT MERGE ANYWHERE: Hack to get devices booting again.
If we try scheduling a pass before the system is ready, record a
pending event and dispatch once we're actually ready.

Bug: 26863668
Change-Id: I028285383c8bbe8b653aeaa7544eefe3d41277bc
(cherry picked from commit 538c11cf2175d4e30337e8776401bfede85866be)
2016-02-19 21:06:14 +00:00
Adam Lesinski
9d89bd5cb8 DO NOT MERGE ANYWHERE: Don't change screen on time on time changes
Screen on time should be measured in elapsed realtime, not wallclock.

Cause a checkIdleStates to occur when reloading stats
(on rollover and on time change).

When time changes occur in the negative direction, the new stats file
we create can overlap the previous one with regards to its end timestamp.
Use the begin timestamp to determine which of the latest stats to merge.
(b/22716352)

Bug: 26488100
Change-Id: If31b29bbbee9e98401205b5e26bce86e181286e7
2016-02-19 21:05:07 +00:00
Shreyas Basarge
a42a892630 DO NOT MERGE Fix for syncs being dropped when appIdle is on
Syncs were being dropped when appIdleMode was on for
an app. This CL backs off the sync instead of dropping
it. When the app becomes non-idle, backoff is cleared
and the sync is performed.

Bug: 26355386
Change-Id: I2040dfd847011d3ca902e66a8cd52b2a429177c1
(cherry picked from commit 2c051498b2b0e2608740d906e70867b74083107d)
2016-02-19 00:49:23 +00:00
Amith Yamasani
7a313a63ca Merge "DO NOT MERGE Check apps idle states on time changes" into mnc-dr-dev 2016-02-18 20:09:24 +00:00
Amith Yamasani
35664f25ae DO NOT MERGE Check apps idle states on time changes
And ensure that the listeners are informed of app standby transitions
that might occur during time changes.

Fix for apps that sometimes don't have network access until reboot.

Bug: 26488100
Change-Id: Ic342c188a6cd19faee88f50b2c6a342a6968cb23
(cherry picked from commit c465e71cdc401e1565c29a895a5c6d366ba5344c)
2016-02-18 17:15:44 +00:00
Adam Lesinski
1559fed4c4 DO NOT MERGE ANYWHERE: UsageStats: Use new settings key idle_duration2 for app idle
Ignores the old, re-appropriated key "idle_duration" which is now
set to a high value in order to force disable app idle on devices
with bug b/26355386

Bug:26355386
Change-Id: Iff9de843ad6e547d29c1583687fc7f7ce7e15090
2016-02-17 16:02:01 -08:00
Adam Lesinski
2bd90c6abc DO NOT MERGE ANYWHERE: UsageStats: Fix issue where initializing data for first time would cause crash
With the updated rolling window of stats for app idleness, we need to make sure
it is populated before we initialize some defaults.

Now that we look at older entries to figure out idleness, if those
entries are in the future (due to time change), set them to the current
screen on time.
Bug:26504153

Change-Id: Ia22add0e8eaf0f137002bbe3e91d747fef5b7d69
2016-02-17 16:01:48 -08:00
Adam Lesinski
9c7b543325 DO NOT MERGE ANYWHERE: UsageStatsService: Fix app idle issue at rollover time
App Idle queries are very frequent and so they only check in memory stats.
However, in memory stats can be missing some entries, especially after a rollover, but also
due to a larger bug fixed in master (too risky to take now).

The fix is to do a deep query (reading older files from disk) and maintain a parallel cache
of stats for app idle. That way the rolling window of data required to serve app idle queries
stays in memory.

Bug:26355386
Change-Id: I6a29bbc25214f6a3c2f24c8c079936e66f99e42e
2016-02-17 16:01:35 -08:00
Akshay Thakker
d1811e07d5 Merge "Fix missing observer reply callbacks" into mnc-dr-dev 2016-02-14 22:23:54 +00:00
Akshay Thakker
ae31e13ae8 Merge "Exit getAllValidScorers early if not the primary." into mnc-dr-dev 2016-02-14 22:17:32 +00:00
Amith Yamasani
dbb75248b1 Fix missing observer reply callbacks
This was causing upto 2 seconds in user switching delay.

Bug: 25813588
Change-Id: Icf23b021f134a8ccfa2dae470af02b2da7454acc
2016-02-12 18:13:00 -08:00
Jeremy Joslin
44d550c2d1 Exit getAllValidScorers early if not the primary.
This fixes the crash that occurs when getAllValidScorers() is invoked by
a non-primary user when a scorer is active.

BUG: 23040221
Change-Id: I42c9e18d74389be3191258ca5626f2c433ca7cc7
(cherry picked from commit 5b294b45d0d7afbed71fd2e59342c5ad7b8b7d76)
2016-02-12 23:50:22 +00:00
Dan Sandler
e79c73d626 DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm.
Never attribute to malice that which is adequately explained
by a bug, particularly one involving date math.

Bug: 26326394
Change-Id: I3483ac102c678a8852565c8ea94c06e19b3f26d8
(cherry picked from commit 8d9aea8a1870ad83d9eccba1068a1685da5e96d0)
2016-02-12 20:21:23 +00:00
Geoff Mendal
73ecaf0881 Import translations. DO NOT MERGE
Change-Id: I25920d1a09b527c9e2868537f68d994a40a85e6a
Auto-generated-cl: translation import
2016-02-01 13:24:23 -08:00