• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2018 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
17syntax = "proto2";
18package android.service;
19
20option java_outer_classname = "ServiceProtoEnums";
21option java_multiple_files = true;
22
23enum UsbEndPointType {
24    USB_ENDPOINT_TYPE_XFER_CONTROL = 0;
25    USB_ENDPOINT_TYPE_XFER_ISOC = 1;
26    USB_ENDPOINT_TYPE_XFER_BULK = 2;
27    USB_ENDPOINT_TYPE_XFER_INT = 3;
28}
29
30enum UsbEndPointDirection {
31    USB_ENDPOINT_DIR_OUT = 0;
32    USB_ENDPOINT_DIR_IN = 0x80;
33}
34
35enum UsbConnectionRecordMode {
36    USB_CONNECTION_RECORD_MODE_CONNECT = 0;
37    USB_CONNECTION_RECORD_MODE_CONNECT_BADPARSE = 1;
38    USB_CONNECTION_RECORD_MODE_CONNECT_BADDEVICE = 2;
39    USB_CONNECTION_RECORD_MODE_DISCONNECT = -1;
40}