blob: 4c18a310a4bc73259d395bb47bc9e39c913b0364 [file] [log] [blame]
RD Babiera3a8b5ee2022-09-16 20:53:14 +00001/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.usb;
18
19@VintfStability
20@Backing(type="int")
21/**
22 * Indicates the potential non-compliance reasons for the
23 * connected USB Type-C port partner which could be a power
24 * source, accessory or cable. Applicable for USB-C receptacles
25 * in Android devices.
26 */
27enum ComplianceWarning {
28 /**
29 * Used to indicate Type-C sources/cables/accessories/ports
30 * whose issue is not listed below but do not meet
31 * specification requirements from including but not limited to
32 * USB Type-C Cable and Connector Specification, Universal Serial Bus
33 * Power Delivery Specification, and Universal Serial Bus
34 * 1.x/2.0/3.x/4.0.
35 */
36 OTHER = 1,
37 /**
38 * Used to indicate Type-C port partner
39 * (cable/accessory/source) that identifies itself as debug
40 * accessory source as defined in USB Type-C Cable and
41 * Connector Specification. However, the specification
42 * states that this is meant for debug only and shall not
43 * be used for with commercial products.
44 */
45 DEBUG_ACCESSORY = 2,
46 /**
47 * Used to indicate Type-C port partner that does not
48 * identify itself as one of the charging port types
49 * (SDP/CDP/DCP etc) as defined by Battery Charging v1.2
50 * Specification.
51 */
52 BC_1_2 = 3,
53 /**
54 * Used to indicate Type-C sources/cables that are missing
55 * pull up resistors on the CC pins as required by USB
56 * Type-C Cable and Connector Specification.
57 */
58 MISSING_RP = 4,
59}