am 0b6aeed0: am 68bc0359: Define a constant for HDMI-CEC logical address used for internal source

* commit '0b6aeed02e25756c85beea03ce74f52b8a89377a':
  Define a constant for HDMI-CEC logical address used for internal source
This commit is contained in:
Jinsuk Kim
2014-07-22 13:56:26 +00:00
committed by Android Git Automerger
2 changed files with 10 additions and 2 deletions

View File

@@ -57,7 +57,13 @@ public final class HdmiCecDeviceInfo implements Parcelable {
// Value indicating the device is not an active source.
public static final int DEVICE_INACTIVE = -1;
// Logical address, phsical address, device type, vendor id and display name
/**
* Logical address used to indicate the source comes from internal device.
* The logical address of TV(0) is used.
*/
public static final int ADDR_INTERNAL = 0;
// Logical address, physical address, device type, vendor id and display name
// are immutable value.
private final int mLogicalAddress;
private final int mPhysicalAddress;

View File

@@ -16,6 +16,8 @@
package com.android.server.hdmi;
import android.hardware.hdmi.HdmiCecDeviceInfo;
/**
* Defines constants related to HDMI-CEC protocol internal implementation.
* If a constant will be used in the public api, it should be located in
@@ -78,7 +80,7 @@ final class Constants {
public static final int ADDR_INVALID = -1;
/** Logical address used to indicate the source comes from internal device. */
public static final int ADDR_INTERNAL = 0xFFFF;
public static final int ADDR_INTERNAL = HdmiCecDeviceInfo.ADDR_INTERNAL;
static final int MESSAGE_FEATURE_ABORT = 0x00;
static final int MESSAGE_IMAGE_VIEW_ON = 0x04;