History log of /frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
04f813c9b3d1d15bd9462a728ab983f21d937281 02-Apr-2015 Jinsuk Kim <jinsukkim@google.com> CEC: Back up active input correctly against repeated active source commands

The repeated <Active Source> commands were incorrectly backing up
active input to use for <Inactive Source>. The input should
not be handled if the command comes from the current active source.

Bug: 20017736
Change-Id: I30e92dab2dce7c1b6835af553efae66c0934188e
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
337ce19bef8be8edf6102aa31eb349772b622a8d 21-Jan-2015 Jinsuk Kim <jinsukkim@google.com> CEC: Switch active input after routing control

Makes sure the previous HDMI input gets switched to upon receiving
<Inactive Source> from the current active source device.

Bug: 18986597
Change-Id: I7120e81d75b5fd4cafd4b483e9b232b96e50f597
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
b509c2ecd99619248b7a07fb0fa978bb27f25cc3 07-Aug-2014 Jungshik Jang <jayjang@google.com> Rename FeatureAction into HdmiCecFeatureAction

Change-Id: I92ca11e513f8cf520e84399fe688397f2d9f714a
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
61f4fbd2e8436a1ecd478c2a1f516d064a24d43b 06-Aug-2014 Jungshik Jang <jayjang@google.com> Rename HdmiCecDeviceInfo into HdmiDeviceInfo.

In order to include mhl device info to device info,
rename HdmiCecDeviceInfo into HdmiDeviceInfo.

BUG: 16215362

Change-Id: I30fb0216061fbbdd6fdc1b82c63af83f1b678597
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
7c3a95633d307c4be30c9dbbf1071063aa7a3c64 01-Aug-2014 Jinsuk Kim <jinsukkim@google.com> Fix bugs in active source command handling in HdmiControl

- Make sure input change listener is invoked
- The command from new device at the active path should
start routing control

Change-Id: Ic0ca52d42cc1738f9effced322b00f3bd1957f60
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
72b7d738d5b9254594726304cdb1777b54d95631 24-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Give clear distinction between active source/active routing path

Previously in HdmiControlSerivce, active routing path was mixed with
the physical address of the active source, but these two concepts needs
clearer distinction.

Defined a new variable for active source that contains both logical/physical
address to keep active routing path separate. This change makes it possible
to write the flow more closely to the guideline.

Also added to this CL is flag notifyInputChange, which allows the device/
routing change triggered by external event to trigger InputChangeListener
to get TIF notified. For routing control, the device info passed to TIF
has the path information in the field mPhysicalAddress (other fields are
invalid).

Bug: 16519939
Change-Id: I8b400bc48e874b0866500655773aea38ab945fe4
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
dd233f3d25386ecd2ddb1b48c58f2a84e11f4286 14-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Make sure to finish routing control action

After HdmiControlService performs routing control action,
make sure it is finished all the time.

Change-Id: I38e130ee5d8712a18aac7a46cad0950a23713469
(cherry picked from commit 7d05469196721aaa888447149d3b93c8689ff72e)
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
c0c20d0522d7756d80f011e7a54bf3b51c78df41 04-Jul-2014 Jinsuk Kim <jinsukkim@google.com> 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
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
cae6627702a3bae3121f0ebbb9c8069e77f81cc7 04-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Obtain TV power status correctly in HdmiControlService

Bug: 15845654

Change-Id: I28b97e7ecb462b4fbaf6ac573e4d0fc9fcf724da
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
04fd28046acc2ac74339ed94cec76a0bfda846f7 03-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Update routing control action for HdmiControlService

Added an argument queryDevicePowerStatus on which routing control action flow
should be based.

Bug: 15845652

Change-Id: Ib8a2d31792aad67289308167d07f660c3438be78
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
92b77cf9cbf512e7141cad6fef5a38d0682dde43 27-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Refactor handling sequences in HdmiControlService

- Rewrote some methods to match more closely to the handling
sequences in guideline
- Added setControlEnabled() API in the aidl
- Handled <Routing Control> command
- Handled some scenarios invoking RoutingControlAction

Change-Id: I5db0c6fc775cef709c2e0f338b85937deebf2a54
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
a062a9339add79a84862a34e363e3e454a6ec435 18-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Implement portSelect/sendKeyEvent for HdmiControlService

TIF (TV Input Framework) uses these API to switch inputs, send
keys for selected device on CEC bus. Also renamed getActiveInput
to getActivePortId to use a unified term for port/input.

Change-Id: I8196825c0d960988cc1c0bb58a628ccd8ab1957e
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
79c58a4b97f27ede6a1b680d2fece9c2a0edf7b7 16-Jun-2014 Jungshik Jang <jayjang@google.com> Rearrange ownership between Hdmi control modules.

Here is a list of changes on this. (R: rationale)
1. HdmiCecLocalDeviceTv takes over responsibilty of device info
management.
R: All devices infos are added or removed by only Tv's
device discovery and hot plug detection mecanism

2. Each HdmiCecLocalDevice manages FeatureAction and Cec
message cache.
R: There is no direct connection between actions that
are created in different device action. If there is
an same actions created from different local device,
they should be managed independently.

3. Active path and logical address is managed by
HdmiCecLocalDevice.
R: All device should know active path of current source.

4. All system audio & ARC features are handled by
HdmiCecLocalDeviceTv
R: In terms of ARC, theoretically, any device can be transmiter of
ARC but TV is the de facto device
On other hands, for system audio Tv is the recipeint
of request.

Change-Id: Iac9ff43fb41798ed4f94c61d23345fe5fe777fbb
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
60cffce420db4c3395f86d3b9bb36003adf26f5d 12-Jun-2014 Jungshik Jang <jayjang@google.com> Refine new device action.

There are many ways to initiate new device action
1. When receives <Report Physcial Address>
2. When receives <Active Source> from unregistered device.

If new device is audio system, it should start
ARC and system audio initiation action.

Along with this consolidate device remove actions.

Change-Id: I189afd8bec7270d6a1734a28632593b71932d9e8
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
401e3de791c0e2a4348361fbd560da9530156e22 14-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Add methods in HdmiControlService fort port_id/path conversion

Use HdmiPortInfo list to get the port ID from a given routing path,
and vice versa. This is useful when you need to get the HDMI port
to which a certain device is attached in its hierarchy by its routing
path.

Change-Id: If1e7e8fdd005671d4e1fbb04dc26b24885320a92
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java
0340bbc89f8162f9c2a298c98b03bfcdd1bc6e87 05-Jun-2014 Jinsuk Kim <jinsukkim@google.com> RoutingControlAction for HdmiControlService

Routing control action is initiated in various cases, such as manual
TV input port switching, routing change of a different CEC switch,
and so on. The action determines the device to be a new active source.

Change-Id: I1efcd6ff1919dd94d6fa0e0ffa6e430c48d4e9c6
/frameworks/base/services/core/java/com/android/server/hdmi/RoutingControlAction.java