231170 Commits

Author SHA1 Message Date
Sailesh Nepal
4665f49b9c Merge "Add new public API to allow call screening" 2016-01-27 22:16:59 +00:00
Jorim Jaggi
936233c78e Make sure SysUI is not constantly redrawing status bar
When status bar was collapsed, bounds were negative thus triggering
a infinite draw loop.

Change-Id: I80100f394fa5e0dd5858569f9535563eac3aeeb4
2016-01-27 14:16:21 -08:00
Sailesh Nepal
ee4c5c9ee8 Merge "Expose a meta-data value to allow dialer ringing" 2016-01-27 22:15:48 +00:00
Phil Burk
4ddbc0e377 AudioFormat: add ENCODING_IEC61937
Allows applications to wrap compressed audio in a PCM
stream and pass through directly to HDMI output.

Bug: 24541671
Bug: 20891646
Bug: 26373761
Change-Id: I67a25672a3b5066b5747380d013c26e60c14c272
Signed-off-by: Phil Burk <philburk@google.com>
2016-01-27 22:08:42 +00:00
Makoto Onuki
5bf68027cf Make DPM.clearProfileOwner() public.
Bug 26827204

Change-Id: Ib32e5370b493aa3e36b869d9ed3d78782df4c895
2016-01-27 14:07:41 -08:00
Miao Wang
a1c7bc7550 Merge "[RenderScript] Implement APIs for better multi-frame process support." am: 6ebdbfa549
am: d90b4a3266

* commit 'd90b4a3266ab2af3cbc6f131a0ed320f7a795a09':
  [RenderScript] Implement APIs for better multi-frame process support.
2016-01-27 22:02:17 +00:00
Ta-wei Yen
6c8cc662a6 Merge "Add KEY_VVM_PREFETCH_BOOLEAN to CarrierConfigManager" 2016-01-27 22:00:27 +00:00
Jorim Jaggi
a4a58efe82 Fix app staying in drag resizing when undocking
When dismissing the docked stack, the fullscreen stack stayed in drag
resize mode because it got a relayout, but because the bounds didn't
change (it switches to the fullscreen layout a bit earlier) it never
called WM.relayoutWindow, so it stayed in drag resize mode indefinitely.

To fix this, introduce forceRelayout in Window.resized(), which makes
sure the client always calls relayoutWindow. Set this to true whenever
drag resizing is changing.

For some very weird reason this also broke that home button was not
responding anymore.

Bug: 26806532
Change-Id: I4b39c1c419a166aa7093c31226f2a4915f642328
2016-01-27 14:00:02 -08:00
Jorim Jaggi
08b372f71a Fix flicker when dismissing non-docked stack
Because the right/bottom side of divider moves offscreen when dismissing non
docked stack, it results in empty bounds which then results in window manager
thinking the just dismissed activity is fullscreen, which leads to a black
flicker. Make sure not to calculate garbage when calculating the bounds for the
non-docked stack.

Bug: 26070457
Change-Id: I65ce9a23dc216971a3ae4df8058d5b86b1b792a5
2016-01-27 13:57:59 -08:00
Sailesh Nepal
1bef339b88 Add new public API to allow call screening
This CL adds a new service that the default dialer can implement to
screen incoming calls.

If the service is implemented then Telecom uses it to decide if a call
should be shown to the user or rejected.

Note, I initially tried to simply extend InCallService instead of
creating a whole new service. The problem with this approach is that:
  - this breaks some in call services which show UI as soon as they are
    bound to
  - the in call service lifecycle is tightly coupled to adding and
    removing calls. Call screening happens before a call is added which
    makes it a bad fit to in call service
  - call screening is a function of only the default dialer's in call
    service but the existing code also binds to "controller" call
    services

For these reasons it seemed simpler to just create a new optional
service.

BUG: 22857261
Change-Id: I53f2ef93360e0af19b6ce45af21026be6cf3a7f3
2016-01-27 13:54:12 -08:00
Arunesh Mishra
518803fa5f Merge "Fix SoundTriggerModel uses to GenericSoundModel." 2016-01-27 21:49:58 +00:00
Jorim Jaggi
3127c2a471 Start drawing immediately
We used to have a condition to start drawing only in the second traversal,
which added a delay of about 10-15ms. We believe that we don't need this
anymore, because we have other means of synchronizing the app transition
animation with the app drawing - we wait for all surfaces to be drawn
in window manager.

Bug: 21035872
Change-Id: I5094a1377817dc7e0a2392cc8f522e99cd7b4d6e
2016-01-27 13:47:09 -08:00
Jorim Jaggi
9b0a2c921a Improve dismiss/scrolling handling in recents
Make sure to only enter dismiss mode if xDiff is bigger than yDiff,
and only start scrolling if yDiff is bigger than xDiff.

Change-Id: Id898752ff7a08df549e234678aed0dad074b202d
2016-01-27 13:46:39 -08:00
Jorim Jaggi
8f8155ba8a Dim harder when dismissing
Also fix a bug when selecting the dim target stack.

Change-Id: Id9d5e28caf5e810c7eef1e3b0fd7a9f945f8d146
2016-01-27 13:46:14 -08:00
Miao Wang
d90b4a3266 Merge "[RenderScript] Implement APIs for better multi-frame process support."
am: 6ebdbfa549

* commit '6ebdbfa5498c486a96f2b8b07858eb1a25a6d08a':
  [RenderScript] Implement APIs for better multi-frame process support.
2016-01-27 21:43:27 +00:00
Ronghua Wu
7d8501d06c Merge "media: define vp9 profile and level" 2016-01-27 21:37:59 +00:00
Arunesh Mishra
c722ec4105 Fix SoundTriggerModel uses to GenericSoundModel.
Change-Id: I30308b39536864d7b9640367861730e3b1b12129
2016-01-27 13:37:27 -08:00
Miao Wang
6ebdbfa549 Merge "[RenderScript] Implement APIs for better multi-frame process support." 2016-01-27 21:30:00 +00:00
Ruchi Kandoi
a0d65dc0db Merge "PowerManager: Adds the Sustained performance API." 2016-01-27 21:21:06 +00:00
Ruchi Kandoi
0abc001275 PowerManager: Adds the Sustained performance API.
Adds a new type of wakelock - SUSTAINED_PERFORMANCE_WAKELOCK. This
wakelock can only be acquired when the application is in the foreground.
And it is not effective when the application is no longer in the
foreground.

Acquiring this wakelock enables the Sustained performance mode which
guarantees a certain level of performance.

Bug: 22864186

Change-Id: Id0ececc756fe014779db6efde7aede23ea181dc5
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-01-27 13:15:30 -08:00
Marie Janssen
21e74cb751 Merge "IBluetooth: remove dump(), support arguments" am: d63847a866
am: f3c5230bf3  -s ours

* commit 'f3c5230bf36401e9c8be718a9f2e620ba77e55bd':
  IBluetooth: remove dump(), support arguments
2016-01-27 21:04:14 +00:00
Lenka Trochtova
2b04a58dca Merge "Add policy for enforcing that all users are ephemeral." 2016-01-27 20:58:55 +00:00
Arunesh Mishra
21d2113139 Merge "SoundTrigger API improvements." 2016-01-27 20:57:18 +00:00
Jeremy Klein
3e32150aa7 Merge "Remove the unused Looper param from Tethering constructor." 2016-01-27 20:54:01 +00:00
Marie Janssen
f3c5230bf3 Merge "IBluetooth: remove dump(), support arguments"
am: d63847a866

* commit 'd63847a86680df271cc518a6baaac30a7e07c9f5':
  IBluetooth: remove dump(), support arguments
2016-01-27 20:49:55 +00:00
Arunesh Mishra
a772e5fc06 SoundTrigger API improvements.
This CL implements the SoundTrigger API improvements as given in b/22860713. Only the java-level
parts are implemented in this CL.

Key changes include:

* Addition of a SoundTriggerManager/SoundTriggerDetector system API to manage
  the sound-trigger based sound models.
* Addition of a SoundTriggerService service that manages all sound models
  including voice (keyphrase) and sound-trigger based models.
* Includes logic to write sound-trigger based models to the database.
* VoiceInteractionManager service now uses SoundTriggerService instead of
  SoundTriggerHelper.

Bug: 22860713
Change-Id: I7b5c0ed80702527c4460372efeb5e542d3693a69
2016-01-27 12:49:20 -08:00
Marie Janssen
d63847a866 Merge "IBluetooth: remove dump(), support arguments" 2016-01-27 20:42:07 +00:00
Adam Lesinski
b95d4ae257 Merge "Add WorkSource to BLE scanning API" 2016-01-27 20:41:45 +00:00
Jason Monk
13548550a3 Merge "Add data disabled icon" 2016-01-27 20:34:28 +00:00
Jason Monk
1a95c86281 Add data disabled icon
Change-Id: Ic6d7c367e99a9460a42d9eaab062c73a75c292fd
2016-01-27 15:32:22 -05:00
Ronghua Wu
f37f9ba8c8 media: define vp9 profile and level
Bug: 25684127
Change-Id: I806f87847e0c75c3a39cea0c5ffcc3df28d60a75
2016-01-27 12:21:00 -08:00
Carlos Valdivia
8a38a136e1 Need to call getApplicationInfo from System id
Otherwise it trys to enforce INTERACT_ACROSS_USERs when a package is in
a different INTERACT_ACROSS_USERs. Still figuring out why this is
triggering for the regular getApplicationInfo call.

Change-Id: I9b07646aeaf35e2db4a6849e217129077b50b624
2016-01-27 12:16:25 -08:00
Lenka Trochtova
f348e8e22b Add policy for enforcing that all users are ephemeral.
BUG: 24883058

Change-Id: I8e53ca677c935a6c828dd6ece00b345d0eff182a
2016-01-27 21:06:09 +01:00
Steve McKay
0bbf302573 Merge "Remove variants of "show/hide" internal storage string." 2016-01-27 19:47:50 +00:00
Steve McKay
de3f4c89ca Merge "Revert "Eliminate the "productivity_device" setting."" 2016-01-27 19:25:07 +00:00
Steve McKay
8fa9ffcdc0 Revert "Eliminate the "productivity_device" setting."
This reverts commit d0a0fc2cd1fbb629f329cf10e0413a674a8e54b6.

Missed a use. Prema-revert.

Change-Id: I6bce595646e2e2bf1e506388a2da9e1cd8f61a09
2016-01-27 19:24:25 +00:00
Xiaohui Chen
5c461fc36d Merge "sysui: refactor NavigationBarInflaterView" 2016-01-27 19:19:15 +00:00
Anthony Chen
63a398fea4 Merge "Allow volume dialog dimensions to be customized." 2016-01-27 19:15:54 +00:00
Anthony Chen
2f60d111eb Allow volume dialog dimensions to be customized.
The volume dialog originally had the same dimensions as the regular
notification panel. However, Android Auto wants a larger dialog. As a
result, separate out the icon size and dialog size so that they can be
customized.

Change-Id: Idcaf94d64bcd5ce7d8f6f0ad5da916cf7226a527
2016-01-27 11:11:53 -08:00
Chris Wren
37745c3839 Merge "move framework metrics over to new proto" 2016-01-27 19:02:14 +00:00
Xiaohui Chen
548160030a sysui: refactor NavigationBarInflaterView
Bug: 26742568
Change-Id: Id0cb541c39457b3d15b09c98552a22e2d533102d
2016-01-27 18:58:19 +00:00
Ben Kwa
3ca3a3db5e Merge "Eliminate the "productivity_device" setting." 2016-01-27 18:48:01 +00:00
Chris Wren
f6e9228b8a move framework metrics over to new proto
Change-Id: Ie46e946dc787350c15c10aa4385a6b7df7e181a8
2016-01-27 13:47:40 -05:00
Adrian Roos
1e7b0cdec7 Add foreground status to crash report
Bug: 22692162
Change-Id: I9109968d69460359c0ab55eb55b271c1ac09cce6
2016-01-27 10:33:40 -08:00
Shweta Chahar
369a94a413 Merge "Add setting to enable higher text-to-speech rate." 2016-01-27 18:22:50 +00:00
shwetachahar
41604bcba5 Add setting to enable higher text-to-speech rate.
Change-Id: I1e3c78870a5c083bed9dfc6d13601b7874b86583
2016-01-27 18:16:41 +00:00
Sanket Padawe
9f2b02c27b [DO NOT MERGE] Cellinfo: Update to version 12
am: 0491c46227  -s ours

* commit '0491c46227d94ad51a70c549d1529616cea9170b':
  [DO NOT MERGE] Cellinfo: Update to version 12
2016-01-27 18:09:41 +00:00
Hangyu Kuang
8e498db77a Merge "media: Add interface to query and set intra refresh for encoder." 2016-01-27 18:06:25 +00:00
Wonsik Kim
6e0d12ccb8 Merge "media: unhide MediaRecorder.pause()/resume()" 2016-01-27 18:01:28 +00:00
Sanket Padawe
0491c46227 [DO NOT MERGE] Cellinfo: Update to version 12
Add support for:
GSM: arfcn, bsic, ta
WCDMA: uarfcn
LTE: earfcn
Updated public APIs for getting above fields.

Bug: 23528586
Change-Id: I1e741ec73f2f683a796d430898b62921fe6e75e9
2016-01-27 09:59:59 -08:00