OSDN Git Service

CEC: Add logic to return to internal source
authorJinsuk Kim <jinsukkim@google.com>
Mon, 19 Jan 2015 03:39:06 +0000 (12:39 +0900)
committerJinsuk Kim <jinsukkim@google.com>
Thu, 22 Jan 2015 07:58:26 +0000 (16:58 +0900)
commitcb8661c08f4a7b00eaa2ede06a30c32dd3cbc53b
tree1a2d299342ee1e8ad3101ba9e544f447d956ff7b
parentb74155cf01f959fc9b7909de5a22806ad519f7c9
CEC: Add logic to return to internal source

This CL introduces a logic that, upon receiving <Inactive Source>
from the active source or a corresponding MHL subcommand, lets
the service return to one of internal inputs.

Introduced to handle it is a new type for HdmiDevice (INACTIVE)
that will be passed to input change listeners. The callback
is expected to transform to other mechanism such as intent,
to let TV app to decide which input to switch to, which will
be one of non-HDMI input that was viewed previously.

Bug: 19008579

Change-Id: I1922f4cd20e9220411061bb9d9fbe5fbc5676d48
core/java/android/hardware/hdmi/HdmiDeviceInfo.java
services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java
services/core/java/com/android/server/hdmi/HdmiControlService.java