143471 Commits

Author SHA1 Message Date
RoboErik
a259d35073 Return appropriately scaled artwork to RemoteController
RemoteController has an api to set the artwork size. This adds compatibility
code to do the exclusion or scaling of artwork to be consistent with old APIs.

bug:15618171
Change-Id: I8cc51750c03219d42d5f543419f8b46f9eb5b833
2014-07-23 13:25:02 -07:00
Svet Ganov
5320b04fe7 Merge "Adding shell commands for grant/revoke of bind app widget permisison." into lmp-dev 2014-07-22 16:13:36 +00:00
RoboErik
9db9bf7034 Switch Session APIs over to AudioAttributes
The session apis were using audioStream in several places. This
updates them to use AudioAttributes instead.

bug:16403289
Change-Id: Ic4da9ca5fbea2536e80c71503bd9a9bf7f346997
2014-07-23 17:08:32 +00:00
Svet Ganov
be19c3a91a Adding shell commands for grant/revoke of bind app widget permisison.
Testing the app widget APIs requires binding of widgets which is guarded
by a system signature permission or white listing. Since CTS tests can
not be signed with the platform certificate, they should be able to
temporariliy white list their package. This command adds the ability to
grant and revoke the provilege to bind app widgets to a given package.

Change-Id: I6de1bbf27ac684ec47e61157f19ec6d29e2db979
2014-07-23 02:25:25 +00:00
Alan Viverette
52ff21d841 Merge "Remove dialog icons" into lmp-dev 2014-07-22 21:50:21 +00:00
Alan Viverette
ed8e09b664 Remove dialog icons
BUG: 16493564
Change-Id: Ica59abb70a924cccd705172d323a535ef9b75cf1
2014-07-22 18:41:37 -07:00
Craig Mautner
368c5adaf7 Refactor window manager screenshot
For readability, and add rotation compensation.

Fixes bug 16142514.

Change-Id: I1156ec2e0f052f6dec56457d56efe95368f60d91
2014-07-23 00:45:58 +00:00
Dianne Hackborn
4bd39ec448 Merge "Fix issue #16467284: Make noteStartVideo and noteStartAudio nesting" into lmp-dev 2014-07-22 16:29:55 +00:00
Dianne Hackborn
10eaa8574b Fix issue #16467284: Make noteStartVideo and noteStartAudio nesting
Also add new methods to clear these states, so we can avoid any
nesting issues from getting the tracking state stuck.

Change-Id: Iba0eaba2a9a186355c24d392f16118982c5331ed
2014-07-23 17:05:04 +00:00
Sander Alewijnse
0c1dcfd161 Merge "Add Device Policy API to disable screen capture." into lmp-dev 2014-07-23 05:48:23 +00:00
Sander Alewijnse
d2a1eec400 Add Device Policy API to disable screen capture.
WindowManager will set secure flag on SurfaceControl for
all windows of a flagged user to prevent screen capture.
API is consistent with the camera disable API.

Change-Id: Ib180f67f1ad827b6f4aca2af615274256cce58f4
2014-07-23 13:44:28 +00:00
Chris Wren
dedc4a379f Merge "Revert "Honor the sort and group keys for notification ranking."" into lmp-dev 2014-07-23 05:48:23 +00:00
Chris Wren
cf7ed58308 Revert "Honor the sort and group keys for notification ranking."
This reverts commit df09d4c348f9f2aea10391b27d157d8b71a9e189.

Change-Id: Idbc9ed5c5c83cd0cad5a71872bcc203321a11e9e
2014-07-23 12:41:37 +00:00
Chris Wren
4a24fd3c7b Honor the sort and group keys for notification ranking.
Sort notifications naturally, then move group childen to be next their proxy.
The group proxy is the summary, or if no summary exists, the lowest-ranked
member of the group is chosen as the proxy.

Notifications with a sortKey but no group and placed into a synthetic
group that consists of all notifications from that package and user in
the same priority bucket that also have sortKeys.

Bug: 15190903
Change-Id: I377ed65b9592079446da4a4189f5ab49d28630ec
2014-07-23 10:36:57 +00:00
Narayan Kamath
0c434aed47 Merge "Add an internal API to get all asset locales." into lmp-dev 2014-07-23 05:48:23 +00:00
Narayan Kamath
37197df479 Add an internal API to get all asset locales.
This will allow us to not copy paste this code verbatim into
bundled apps.

bug: 10090157

(cherry picked from commit 9e6d9d4c812d01ac07180c5d6ab64c36fb9b2aa7)

Change-Id: I34690a2b6dad51f1592f37d3c2a8c81345632c2f
2014-07-23 11:17:30 +01:00
Narayan Kamath
4c6ce23816 Remove copy of Locale.adjustLanguageCode.
(cherry picked from commit 1d31a5f8243fd6befb14d8a2ba25d28e006511f8)

Change-Id: I7b30a153a44dc1f99a9ddfe256b770d7305a74b7
2014-07-23 11:09:26 +01:00
Nicolas Prevot
66adae84d7 Fixing cross-user content.
Change-Id: I1f1beb514950f808ed9113357c3172bddcb06d9e
2014-07-23 08:35:21 +00:00
Jungshik Jang
bffb0635aa Add startTimerRecording api to IHdmiControlService.
In order to support timer recording we need separate API,
startTimerRecording. Also added HdmiTimerRecordingSources
which is used to help creating timer recording information
such as timing information and program information.

Besides, in order to distinguish one touch record
and timer recording, rename startRecord with startOneTouchRecording.

Bug: 16160962
Change-Id: I8c3d4034665a2f84ddf07135aee73e17ac17cd82
2014-07-23 16:12:10 +09:00
Narayan Kamath
c9e2716f7b Merge "Remove copy of Locale.adjustLanguageCode." into lmp-dev 2014-07-23 05:48:23 +00:00
Bryan Mawhinney
e191f901d9 Store actions passed to MediaStyle.setShowActionsInCompactView in extras
So that they can be bridged appropriately by Android Wear

Change-Id: I3a21a74991c8067ece1a04fbd0b92dd21438e0fd
2014-07-23 08:49:28 +00:00
Youngsang Cho
008f6d4e32 Block logging watched histories for passthrough inputs
Added a system API TvContract.isChannelUriForPassthroughTvInput

Change-Id: I933482831ae2a8b4d6000c4d16520387b5b6a13f
2014-07-22 22:16:01 -07:00
Youngsang Cho
9d744068f9 Enable customization of TvInputInfo icon/label
TODO: Apply builder pattern to create instances of TvInputInfo

Bug: 16166859
Change-Id: I37ef35e7e463a5ff6612f822fd784b7f299039c9
2014-07-22 22:16:01 -07:00
Lajos Molnar
4b902d72db MediaFormat: add KEY_TEMPORAL_LAYERING
Bug: 14562236
Change-Id: I343d2859e48552d7372fec3b77aea868ff1bfc33
2014-07-22 20:36:05 -07:00
John Spurlock
312b792421 Shade: Don't clip header icons pre-expand.
Bug:16496619
Change-Id: I1d3a391b2203b172bd525396719b671fe5cc3784
2014-07-22 22:28:13 -04:00
Santos Cordon
541a06e777 Merge "Change display Strings to CharSequence (1/3)" into lmp-dev 2014-07-22 22:02:55 +00:00
Jeff Davidson
a55ccc02f5 Merge "Expose NETWORK_SCORE_SERVICE as @SystemApi." into lmp-dev 2014-07-22 16:29:55 +00:00
Jeff Davidson
5ad20790a1 Expose NETWORK_SCORE_SERVICE as @SystemApi.
Bug: 15833200
Change-Id: Ide17bf0065ca7f5ab13e913dd6078b6c62741243
2014-07-23 09:41:40 -07:00
Jeff Davidson
3824db6141 Delete most network scorer tests from coretests.
Anything which tests public API functionality will be moved to a
compatibility test suite.

The only remaining test is NetworkScorerAppManagerTest, which contains
unit tests for an internal helper class that is not (and should not
be) exposed via @SystemApi or otherwise.

Bug: 16355542
Change-Id: I478da97d3a4d09407992af37e45466dc484fa8cf
2014-07-23 09:40:24 -07:00
Dianne Hackborn
551caf64a0 Merge "Further fix on issue #16013164" into lmp-dev 2014-07-22 16:21:19 +00:00
Dianne Hackborn
b64afe1706 Further fix on issue #16013164
Dumb dumb dumb copy/paste error when moving the
uid checking up out of the function.

Change-Id: I01513ccd80750b724dbfa8d9d7d171819c6b959b
2014-07-22 18:26:29 -07:00
Dianne Hackborn
e39e5bff29 Merge "Finish toast app op." into lmp-dev 2014-07-22 16:29:55 +00:00
Dianne Hackborn
4eee3cb1df Finish toast app op.
It was half-done, the window manager would check it
when the window was added, but was not monitoring for changes
to its state like it does for the system alert op.

Change-Id: I0279c4ac6160062cd219372af4bd9d7e4e687460
2014-07-22 18:27:26 -07:00
Carlos Valdivia
75111d83e6 Merge "Allow authenticators to rename accounts." into lmp-dev 2014-07-22 16:21:19 +00:00
Chris Craik
c403a39089 Merge "Make setter methods on Outline call setEmpty() based on params" into lmp-dev 2014-07-22 22:02:55 +00:00
Chris Craik
0645128b80 Make setter methods on Outline call setEmpty() based on params
bug:16142564

Additionally, better define behavior around null outline providers:

A view with an empty outline, and setClipToOutline=true will not be
rendered, though one with a null outline provider
(and thus no outline) will be.

Change-Id: Ic9549841b107b2eb51b417c66058a0cd69dd89eb
2014-07-22 15:15:11 -07:00
Sandeep Siddhartha
0edc8cea2b Merge "Make hotword availability a callback" into lmp-dev 2014-07-22 20:44:55 +00:00
Alan Viverette
77e5037d81 Update spinner asset, fix default popup context and elevation
BUG: 15985882
Change-Id: Ica8c2597c35bd3012da11e315a93bbd1df2f3f38
2014-07-23 00:18:07 +00:00
Sandeep Siddhartha
f63bc523ea Make hotword availability a callback
This helps us make the list sound models operation an async one, it also helps us
with the case where a detector is invalidated, so the client doesn't have to keep checking the
state.

Synchronize DatabaseHelper methods on its instance so that other VoiceInteractionManagerService
calls aren't blocked on db writes/reads.
It's still possible for the list operation to be blocked on update and vice-versa

Change-Id: Ib8ec4ac5056b62d443038560ce31d0641b4627b0
2014-07-22 17:11:52 -07:00
Jae Seo
9adf3dfe19 Merge "TIF: Use @SystemApi for APIs that we intend to open to OEMs" into lmp-dev 2014-07-22 16:21:19 +00:00
Jae Seo
15bbf3b220 TIF: Use @SystemApi for APIs that we intend to open to OEMs
Bug: 16374058
Change-Id: Ifdf8188d3791e7e8ab6cc0a30696bde24b16ac5c
2014-07-22 19:58:30 -07:00
Jungshik Jang
a87c384f2b Merge "Fix unknown tag @throw" into lmp-dev 2014-07-23 01:10:40 +00:00
Jungshik Jang
a00161675f Fix unknown tag @throw
Change-Id: I8c017a83175c447d02d8eb28f571e31921ae77c6
2014-07-23 23:30:00 +09:00
Chris Wren
1031c97485 Honor the sort and group keys for notification ranking.
Sort notifications naturally, then move group childen to be next their proxy.
The group proxy is the summary, or if no summary exists, the lowest-ranked
member of the group is chosen as the proxy.

Notifications with a sortKey but no group and placed into a synthetic
group that consists of all notifications from that package and user in
the same priority bucket that also have sortKeys.

Expose a new API for listeners to get the group key for the notificaiton.

Bug: 15190903
Change-Id: I324ba0c394affdabb3588ca2ebafa7cf0acad2af
2014-07-23 09:45:25 -04:00
Yao Chen
10e62cb2f2 Merge "Add thumbnail related api." into lmp-dev 2014-07-22 16:21:19 +00:00
Winson Chung
d6c3db5e5a Fixing animation when dismissing certain tasks. 2014-07-23 00:05:36 +00:00
Yao Chen
319f9a979c Add thumbnail related api.
Change-Id: Ifcb06bbaf8f37df367f130124cbcef065fa25766
2014-07-22 17:05:04 -07:00
Chong Zhang
f3d00e4e0a update battery stats for audio/video
Bug: 12979595

Change-Id: I581376cb88a2d14dc4bad77d454b9bba73d0eb9b
2014-07-23 00:01:46 +00:00
Sreeram Ramachandran
71f6ad31cf Merge "Cleanup: Delete dead code." into lmp-dev 2014-07-22 16:21:19 +00:00
Sreeram Ramachandran
03666c705d Cleanup: Delete dead code.
Bug: 15413389
Change-Id: I315468832ef18ffc84174e54774ab63b86d284dc
2014-07-22 15:46:34 -07:00