blob: e103ff933e085f3bf84c87a0a7a5548a4c20684b [file] [log] [blame]
/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us e this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.hardware.usb;
import android.hardware.usb.DisplayPortAltModePinAssignment;
import android.hardware.usb.DisplayPortAltModeStatus;
@VintfStability
union AltModeData {
/**
* Holds data necessary to communicate the current DisplayPort
* Alt Mode status.
*/
@VintfStability
parcelable DisplayPortAltModeData {
/**
* Indicates the current DisplayPort Alt Mode Status of
* the port partner acting as a DisplayPort sink.
*/
DisplayPortAltModeStatus partnerSinkStatus = DisplayPortAltModeStatus.UNKNOWN;
/**
* Indicates the current status of the attached DisplayPort
* Alt Mode cable/adapter.
*/
DisplayPortAltModeStatus cableStatus = DisplayPortAltModeStatus.UNKNOWN;
/**
* Indicates the DisplayPort Alt Mode pin assignment
* negotiated between the device, port partner, and cable.
*/
DisplayPortAltModePinAssignment pinAssignment = DisplayPortAltModePinAssignment.NONE;
}
DisplayPortAltModeData displayPortAltModeData;
}