18239 Commits

Author SHA1 Message Date
Wonsik Kim
1e47ff9f8f Merge "Implement support for buffer producer profile" 2014-07-02 20:35:42 +00:00
Wonsik Kim
0b2691b687 Implement support for buffer producer profile
Bug: 15177117
Change-Id: I7776a8b2959281f10cba742ab75f15f80f6feecf
2014-07-08 15:52:00 +09:00
Jeff Sharkey
98d2948908 Merge "Change new file installs to be cluster-based!" 2014-07-07 17:47:39 +00:00
Dongwon Kang
b93ccca613 Add onChannelRetuned callback in TV Input Framework.
Use cases:
  - Channel change from STB which is bound to a TV input.

Bug: 14126559
Change-Id: Icddab61be6cb11162c03960fdb41fee8504bcd61
2014-07-08 14:46:20 +09:00
Eric Laurent
013f66b92d SoundTrigger: update API
class Keyphrase: replaced number of users by list of user IDs.
class RecognitionEvent: added capture preamble duration.
class KeyphraseRecognitionEvent: add keyphrase ID and explicit list of
user ID/confidence level pairs.
startRecognition(): takes a RecognitionConfig specifying the list of
keyphrases to listen to as well as for each keyphrase the recognition mode,
users and min confidence levels for each user.

Bug: 12378680.
Change-Id: I57036cc83b5d9e90512b8bb3f951af3a4a74c0ce
2014-07-08 11:48:44 -07:00
Sandeep Siddhartha
a3bf3e5c84 Merge "Initial code for listing/storing sound models" 2014-07-02 18:55:10 +00:00
Sandeep Siddhartha
d4233c68fc Initial code for listing/storing sound models
- We use a DB to store and persist the sound models.
- This'll be used by SoundTriggerModelManager, a service that lists,
  deletes and registers new models. This'll be used by the enrollment
  client to enroll and unenroll users.

- This needs the unique identifiers for sound model & keyphrases to be
  present in the respective data structures

This is very early stage so please point out any concerns.

Change-Id: I82962895bf326167458f20e6ba995295551de025
2014-07-08 09:36:51 -07:00
Craig Mautner
b0a11172ea Merge "Add Media Playing API" 2014-07-02 18:50:12 +00:00
Craig Mautner
ee2e45acbf Add Media Playing API
These methods permit an activity to play or continue playing media
behind a translucent activity above it. Particularly the home
activity in Android TV. Methods exist to notify the upper activity
when playing starts or stops and for notifying the playing activity
when to stop playing and release its resources.

Methods are called when either activity's state changes or new
activities are launched.

Fixes bug 14469711.

Change-Id: I7ba10c5a4683504931cffa228488f5281e5bbf86
2014-07-08 06:24:53 -07:00
Jason Monk
2031928078 Merge "Fix UserManagerService.setUserIcon throwing expt." 2014-07-02 20:06:33 +00:00
Jason Monk
9a944532af Fix UserManagerService.setUserIcon throwing expt.
setUserIcon sends a broadcast that requires INTERACT_ACROSS_USERS.
Since the function directly checks MANAGE_USERS permission, added
a clear calling identity.

Alternative solution would be to make function check for one of
INTERACT_ACROSS_USERS permissions before performing any actions.

Change-Id: Ibbf27d4e188d059671024e4bb62f92a2daea3661
2014-07-08 13:57:42 +00:00
John Spurlock
b3a0444207 Merge "Zen: Use default phone app api in call filter." 2014-07-07 19:25:01 +00:00
John Spurlock
312d1d01de Zen: Use default phone app api in call filter.
Remove hardcoded list of packages (for calls).

Use the TelecommManager version until the PhoneManager version
is ready.

Change-Id: I4488f4ea3f0c03f009c84f519eb533e0ea1e07d5
2014-07-08 11:27:53 -04:00
John Spurlock
5a19b1c753 Merge "Implement new volume UI design." 2014-07-02 20:00:08 +00:00
John Spurlock
ae641c9ccd Implement new volume UI design.
- Add segmented zen-mode picker to the rocker UI.
- Add a new "no interruptions" value to the zen setting.
- Implement expandable condition subpanel on the rocker UI.
- Remove the old circle&slash icons.
- Suppress alarm sounds if in "no interruptions" mode.
- Add warning re: alarms to the condition UI.
- Allow rocker UI to display over the keyguard.
- Remove Notifications QS tile.
- Realign volume rocker to the top of the screen.
- Add support for new "days" sleepMode.
- New icon policy rules for "volume" slot.
- New important icon (star).

Associated Settings change:
  I6ed56791784968adfbd684f490dbbebed285a2dd

Bug:15831713
Change-Id: I35afe38646f04d2ba0dbac11c2c6356120a33694
2014-07-07 18:48:25 -04:00
George Mount
468f7da797 Merge "Introduce onNewActivityOptions for return activity" 2014-07-06 02:28:07 +00:00
Craig Mautner
eb8abf7207 Introduce onNewActivityOptions for return activity
When an activity that is already translucent returns to the
previous activity using a scene transition the receiving activity
did not receive its ActivityOptions for its side of the animation.
The new method onNewActivityOptions() delivers those options.

Fixes bug 14869070.

Change-Id: I09b136b3213aae5d3521894e17a7500ac793f3d2
2014-07-07 12:48:50 -07:00
Craig Mautner
d61dc20de1 Add Activity.isTopOfTask() method
Used by scene transition to determine if an activity has launched the
next activity into its own task or into another task.

Fixes bug 15771895.

Change-Id: I6d350350dcf27509296d55d7b75be90a01694ac9
2014-07-07 15:44:47 -07:00
Craig Mautner
17fcc01c33 am 53cc7d79: am 7611a5d3: am 5acdd0f6: Merge "[ActivityManager] Ensure alive process is not killedByAm."
* commit '53cc7d7998a9a656fe89ec8eba40ad479bded274':
  [ActivityManager] Ensure alive process is not killedByAm.
2014-07-07 15:12:18 +00:00
Nicolas Prevot
b5afefbd07 Fixing bug when checking that the target user can handle the intent.
BUG: 16079965
Change-Id: Iac61d1c20f5b66b3f3016b82bc4e48d7997ea1a0
2014-07-07 10:30:32 +01:00
Wonsik Kim
e8e61e0935 Merge "TIF: Let TvInputHal handle multiple streams" 2014-07-02 20:35:42 +00:00
Wonsik Kim
839ae5f460 TIF: Let TvInputHal handle multiple streams
Bug: 15579918
Change-Id: Iad972c36d675fb99b5950bcecf5925e660272cb4
2014-07-07 14:36:26 +09:00
Jinsuk Kim
fca826de37 Merge "Update HdmiControlService.deviceSelect()" 2014-07-02 20:35:42 +00:00
Jinsuk Kim
b38cd68b24 Update HdmiControlService.deviceSelect()
The device selection action should have stopped if
TV's own power goes to standby in the middle. This CL
implements the right behavior.

Some TODO's about OSD banner were removed as they
can be handled in caller (TV app) when invoking the API
or upon receiving the callback based on the result. One
more callback result constant was added accordingly.

Bug: 15843137
Bug: 15844312
Bug: 15845651

Change-Id: Ib118fd6e80e9abdfb531e3f321d8db1c9cec45bd
2014-07-07 16:03:40 +09:00
Jinsuk Kim
96aacd2a2c Merge "Remove the usage of TX_STATUS in HdmiControlService" 2014-07-02 20:35:42 +00:00
Jinsuk Kim
cae6627702 Obtain TV power status correctly in HdmiControlService
Bug: 15845654

Change-Id: I28b97e7ecb462b4fbaf6ac573e4d0fc9fcf724da
2014-07-04 05:00:48 +00:00
Jinsuk Kim
5344cd98e6 Launch routing control in HdmiControlService at boot up
Change-Id: I918c2a0da26a7cda20ee703dfeeacae276ec8373
2014-07-04 13:57:17 +09:00
Jinsuk Kim
ba147582b1 Remove the usage of TX_STATUS in HdmiControlService
Reflects the change to come in CEC HAL

Change-Id: I3a64e19bbdd8067855911ef11653fe64049b8880
2014-07-03 08:26:44 +00:00
Jungshik Jang
18563b1e97 Fix send key action bug.
Change-Id: Ia6d552cda91db02847e5c0334274258df936bf64
2014-07-07 10:39:44 +09:00
Jungshik Jang
a1a086a2fe Fix bug on SendKeyAction
Change-Id: I7815986bda39dcc828b1da5cfdb64e0669fe4a49
2014-07-07 09:30:58 +09:00
Jinsuk Kim
a0a999d8d7 Merge "Fix a bug in KeyAction in HdmiControlService" 2014-07-02 20:35:42 +00:00
Jinsuk Kim
708b974f0a Fix a bug in KeyAction in HdmiControlService
Send KeyDown command for a new non-repeatable key press event

Change-Id: Ide25709f0954ecc7e8c15ae3e0f715b05e7cbf6f
2014-07-07 09:06:41 +09:00
Jinsuk Kim
4ab7606f32 Merge "Removed class HdmiCec" 2014-07-02 19:52:36 +00:00
Jinsuk Kim
c0c20d0522 Removed class HdmiCec
Most of the constants in HdmiCec are internal use only. Moved them
to service, and dispersed the rest to other relevant classes.

Also moved HdmiCecMessage class to service as it doesn't need to be
open ouside the service.

Change-Id: I7b2ce3bf465330aa4d7fcd05f9aefa1e6c8b056a
2014-07-04 17:19:31 +09:00
Jinsuk Kim
0f94217e90 Merge "Add API setProhibitMode in HdmiControlService" 2014-07-02 19:52:36 +00:00
Jinsuk Kim
4d43d93743 Add API setProhibitMode in HdmiControlService
setProhibitMode sets a flag inside the service that indicates if
input switch request will be processed or not. Sets to true when
TV is doing something for which TV display should be fixed, like
channel scan, software update - collectively called 'prohibit mode'.

Change-Id: I8ac623023210b58b684b9af3ac475a5fe0d09435
2014-07-04 12:36:38 +09:00
Jungshik Jang
65f7c3ff20 Merge "Remove duplicated cec keycode definitions." 2014-07-02 21:09:42 +00:00
Jungshik Jang
210d73df0b Remove duplicated cec keycode definitions.
Remove keycode (ui command) defined and use HdmiCecKeycode one.

Change-Id: I9a7c4be3e5cfd561c7353b9cda715d431c00ff0c
2014-07-04 11:26:45 +09:00
Jinsuk Kim
04fd28046a Update routing control action for HdmiControlService
Added an argument queryDevicePowerStatus on which routing control action flow
should be based.

Bug: 15845652

Change-Id: Ib8a2d31792aad67289308167d07f660c3438be78
2014-07-04 02:25:41 +00:00
Jungshik Jang
517cc7f99e Merge "Remove two TODOs from HotpulgDetectionAction." 2014-07-02 21:09:42 +00:00
Jungshik Jang
26dc71e7fe Remove two TODOs from HotpulgDetectionAction.
Bug: 15844023
Bug: 15841646

Change-Id: I4022c48a9fdb1963f755895ec5ff0370157050c7
2014-07-04 11:00:18 +09:00
Jungshik Jang
40d43b27b4 Merge "Prevent press&hold for non-repeatable keycode." 2014-07-02 21:09:42 +00:00
Jungshik Jang
250cda56d2 Prevent press&hold for non-repeatable keycode.
For non-repeat keys like power or mute key Hdmi-Cec
doesn't support press&hold feature. This change sends
user control pressed immediataly if the given keycode
is non-repeatable key.

Change-Id: Id571e67d94125a8c6a3553135b8e714b721405f3
2014-07-03 10:30:13 +09:00
Jungshik Jang
7d4faa6c86 Merge "Set source address for <Polling Message>" 2014-07-02 21:09:42 +00:00
Jungshik Jang
1de514256f Set source address for <Polling Message>
CEC spec mentions that logical address allocation uses
the same address for source and destination while <Polling Message>
uses device's source address.

Bug: 16045547
Change-Id: Id18f328755501c62a98a1040b287c180cb889c9b
2014-07-03 11:14:26 +09:00
Jungshik Jang
41d974631c Add volume callback for Hdmi-Cec system audio mode.
Hdmi-Cec's system audio mode delegates audio control to
audio receiver from tv. It requires to delegate
volume change including mute to audio receiver
instead of consuming by tv.
In order to do this this change introduces three apis.
One is added to IAudioService, the others are added
to IHdmiControlService as hidden apis.

 1. IAudioService#setHdmiSystemAudioSupported;
    This is to notify system audio mode change to audio
    service so that it determines to notify volume or mute
    change to HdmiControlService.

 2. IHdmiControlService#setSystemAudioVolume;
    This is to notify volume change to HdmiControlService.
    It's called only where system audio mode is on.

 3. IHdmiControlService#setSystemAudioMute;
    This is to notify volume change to HdmiControlService .
    It's called only where system audio mode is on.

Change-Id: I3d8534b37ddf1a812e32012059a8778772044bf0
2014-07-03 10:09:32 +09:00
Jungshik Jang
3a959fca91 Log unhandled message which has specific destination.
Broadcast message is unnecessary to log as broadcast message.

Bug: 16039302
Change-Id: Ifffc09b49bceaaf220ce929206eaecb78146016f
2014-07-03 09:34:05 +09:00
Jinsuk Kim
ea1e84b8ca Merge "Implement some apis for TV Input Framework and HdmiControlService" 2014-07-02 19:52:36 +00:00
Jinsuk Kim
9c37e1f53e Implement some apis for TV Input Framework and HdmiControlService
- setInputChangeListener()
- getInputDevices()

Change-Id: I6f7d6d9c7094018e2b6b5ba37f63c8ee5df00e37
2014-07-04 11:22:51 +09:00
Yuncheol Heo
b2596e6182 Merge "Handle the power state change." 2014-07-02 20:35:42 +00:00