206600 Commits

Author SHA1 Message Date
Liejun Tao
2fb16b066b DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case am: 9ef7634fa9
am: d46bd91531

* commit 'd46bd9153144f905138e0b609c3d8252a5d5505e':
  DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case
2016-02-23 22:00:37 +00:00
Liejun Tao
d46bd91531 DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case
am: 9ef7634fa9

* commit '9ef7634fa9b4e9cf9ea9380aee8b7dfd71f24b57':
  DO NOT MERGE Bluetooth: Restrict gain for Absolute volume case
2016-02-23 21:54:00 +00: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
7e65e5c681 Merge "DO NOT MERGE Fix for syncs being dropped when appIdle is on" into mnc-dr-dev am: e210c99809
am: 768e1df375

* commit '768e1df37559c580ede46574bb1c583b0705375a':
  DO NOT MERGE Fix for syncs being dropped when appIdle is on
2016-02-22 22:46:59 +00:00
Akshay Thakker
768e1df375 Merge "DO NOT MERGE Fix for syncs being dropped when appIdle is on" into mnc-dr-dev
am: e210c99809

* commit 'e210c9980946b440bc6f7d57fef18c7fac223d3a':
  DO NOT MERGE Fix for syncs being dropped when appIdle is on
2016-02-22 22:39:53 +00: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
202fbf2c34 Merge "DO NOT MERGE ANYWHERE: Hack to get devices booting again." into mnc-dr-dev am: d201f48687 -s ours
am: ab4d629294  -s ours

* commit 'ab4d62929412556b90f8927fb05602d2e630518c':
  DO NOT MERGE ANYWHERE: Hack to get devices booting again.
2016-02-22 19:44:19 +00:00
Adam Lesinski
5c918ee029 Merge "DO NOT MERGE ANYWHERE: Don\'t change screen on time on time changes" into mnc-dr-dev am: 3e439db8c8 -s ours
am: 83fd156e21  -s ours

* commit '83fd156e2173ff65fd8afdaca1ccd20fc91a5d33':
  DO NOT MERGE ANYWHERE: Don't change screen on time on time changes
2016-02-22 19:42:04 +00:00
Adam Lesinski
ab4d629294 Merge "DO NOT MERGE ANYWHERE: Hack to get devices booting again." into mnc-dr-dev
am: d201f48687  -s ours

* commit 'd201f486871e825e713ae0df2f2f01e3dfff94d8':
  DO NOT MERGE ANYWHERE: Hack to get devices booting again.
2016-02-22 19:31:32 +00:00
Adam Lesinski
83fd156e21 Merge "DO NOT MERGE ANYWHERE: Don\'t change screen on time on time changes" into mnc-dr-dev
am: 3e439db8c8  -s ours

* commit '3e439db8c829023645a54eee4cd531928bccb03d':
  DO NOT MERGE ANYWHERE: Don't change screen on time on time changes
2016-02-22 19:27:18 +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
08f781bd82 NPE fix for SyncStorageEngine read authority am: a962d9eba7 am: 339c4f2b05 am: 58048c1f17 am: eec587edf1 am: 6fc321a66d am: 5e4e02b009 am: 242bdb6d5b am: 4aa78554df am: 20339172bd am: 20c518816a
am: 7f35fa7365

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

* commit '20c518816a0946dff67a3b99b929bc30c9b0ad6c':
  NPE fix for SyncStorageEngine read authority
2016-02-20 02:14:27 +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
ba32b162a3 Merge "DO NOT MERGE Check apps idle states on time changes" into mnc-dr-dev am: 7a313a63ca
am: 6aff10d066  -s ours

* commit '6aff10d0662bc4c7e64a2e6d22f3606ef4dd1046':
  DO NOT MERGE Check apps idle states on time changes
2016-02-18 22:21:32 +00:00
Adam Lesinski
d828c95a93 DO NOT MERGE ANYWHERE: UsageStats: Use new settings key idle_duration2 for app idle am: 1559fed4c4 -s ours
am: 5c9378f310  -s ours

* commit '5c9378f310acd4ab375ed8a5d703a86522ab814c':
  DO NOT MERGE ANYWHERE: UsageStats: Use new settings key idle_duration2 for app idle
2016-02-18 22:03:35 +00:00
Adam Lesinski
f2fd47bfa5 DO NOT MERGE ANYWHERE: UsageStats: Fix issue where initializing data for first time would cause crash am: 2bd90c6abc -s ours
am: bca4317a3b  -s ours

* commit 'bca4317a3bbbdfdda083283d73a26e9c078c84f2':
  DO NOT MERGE ANYWHERE: UsageStats: Fix issue where initializing data for first time would cause crash
2016-02-18 22:00:55 +00:00
Adam Lesinski
78a2522c7f DO NOT MERGE ANYWHERE: UsageStatsService: Fix app idle issue at rollover time am: 9c7b543325 -s ours
am: 7e03454985  -s ours

* commit '7e0345498528611f538d8a5f259acc3440c1a649':
  DO NOT MERGE ANYWHERE: UsageStatsService: Fix app idle issue at rollover time
2016-02-18 21:59:39 +00:00
Amith Yamasani
6aff10d066 Merge "DO NOT MERGE Check apps idle states on time changes" into mnc-dr-dev
am: 7a313a63ca

* commit '7a313a63cac7ae79699a6ea928af92429edd479b':
  DO NOT MERGE Check apps idle states on time changes
2016-02-18 20:16:55 +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
Adam Lesinski
5c9378f310 DO NOT MERGE ANYWHERE: UsageStats: Use new settings key idle_duration2 for app idle
am: 1559fed4c4  -s ours

* commit '1559fed4c47a4bd219e61f7d34e50d46b8929f8a':
  DO NOT MERGE ANYWHERE: UsageStats: Use new settings key idle_duration2 for app idle
2016-02-18 19:20:22 +00:00
Adam Lesinski
bca4317a3b DO NOT MERGE ANYWHERE: UsageStats: Fix issue where initializing data for first time would cause crash
am: 2bd90c6abc  -s ours

* commit '2bd90c6abce3e43af6db4eaa7a34459e8341b3a0':
  DO NOT MERGE ANYWHERE: UsageStats: Fix issue where initializing data for first time would cause crash
2016-02-18 19:17:39 +00:00
Adam Lesinski
7e03454985 DO NOT MERGE ANYWHERE: UsageStatsService: Fix app idle issue at rollover time
am: 9c7b543325  -s ours

* commit '9c7b543325db1a6f8913403ec3a5cbe041b25043':
  DO NOT MERGE ANYWHERE: UsageStatsService: Fix app idle issue at rollover time
2016-02-18 19:15:16 +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
d6de840957 Merge "Fix missing observer reply callbacks" into mnc-dr-dev am: d1811e07d5
am: a3798d7a92

* commit 'a3798d7a92ecefe1117b99a2e0f5edce1644f1d0':
  Fix missing observer reply callbacks
2016-02-14 22:37:55 +00:00
Akshay Thakker
bc45c5e1a3 Merge "Exit getAllValidScorers early if not the primary." into mnc-dr-dev am: ae31e13ae8
am: eae2b8978f

* commit 'eae2b8978f8cfdedac9404bf4c653f3f9b51f6dd':
  Exit getAllValidScorers early if not the primary.
2016-02-14 22:36:51 +00:00
Dan Sandler
c644228110 DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm. am: e79c73d626
am: 4baa901205

* commit '4baa9012058c8366d39ed9d07fee0f6da0fd6e71':
  DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm.
2016-02-14 22:35:39 +00:00
Akshay Thakker
a3798d7a92 Merge "Fix missing observer reply callbacks" into mnc-dr-dev
am: d1811e07d5

* commit 'd1811e07d5ee751cbdc37a3ff84e2e010ead7adf':
  Fix missing observer reply callbacks
2016-02-14 22:30:47 +00:00
Akshay Thakker
eae2b8978f Merge "Exit getAllValidScorers early if not the primary." into mnc-dr-dev
am: ae31e13ae8

* commit 'ae31e13ae8785c627ac781a565fa41bc982cfb99':
  Exit getAllValidScorers early if not the primary.
2016-02-14 22:27:20 +00:00
Dan Sandler
4baa901205 DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm.
am: e79c73d626

* commit 'e79c73d6267681dbbc8bd4eccf9a79e3017f6fe9':
  DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm.
2016-02-14 22:25:09 +00: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