OSDN Git Service

Revamp disabling device in local device.
authorJungshik Jang <jayjang@google.com>
Wed, 9 Jul 2014 10:24:50 +0000 (19:24 +0900)
committerJungshik Jang <jayjang@google.com>
Thu, 10 Jul 2014 23:04:44 +0000 (08:04 +0900)
commit4fc1d105fc279bf7df6c876e160672866bdad8e7
tree51af45f7aeb350b329a14d992f62ea40e0ffafdc
parentb249225456bd0015ad775bfc3d6baa5827f0edee
Revamp disabling device in local device.

When a cec deivce turns into disabled mode such as power off, standby,
and cec feature disabled, cec service should execute cleanup tasks.
Including cleaning up all feature actions, each device should run
their own cleanup.
It should stop system audio mode and arc for tv, while it should
send inactive source for for playback device.
Along with this, to prevent stale feature action, added timeout
to local device so that if there is stale action, it enforce to
finish it.

Bug: 16118520

Change-Id: I5ce30ab0f4459b6e2834f8d31b6a7ff789b35d07
services/core/java/com/android/server/hdmi/HdmiCecController.java
services/core/java/com/android/server/hdmi/HdmiCecLocalDevice.java
services/core/java/com/android/server/hdmi/HdmiCecLocalDevicePlayback.java
services/core/java/com/android/server/hdmi/HdmiCecLocalDeviceTv.java
services/core/java/com/android/server/hdmi/HdmiCecMessageBuilder.java
services/core/java/com/android/server/hdmi/HdmiControlService.java