Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29a5d262 authored by Jinsuk Kim's avatar Jinsuk Kim
Browse files

Define a constant for HDMI-CEC logical address used for internal source

Change-Id: Ic7d6a5378361d7ed8ae4b635312b956b063fc95a
parent 49b47bbe
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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;
+3 −1
Original line number Diff line number Diff line
@@ -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;