1/*
2 * Copyright (C) 2020 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";
18
19package android.app.settings.mediaoutput;
20option java_multiple_files = true;
21
22/**
23 * The medium type specified in an output switching operation.
24 */
25enum MediumType {
26    UNKNOWN_TYPE = 0;
27    BUILTIN_SPEAKER = 1;
28    WIRED_3POINT5_MM_AUDIO = 100;
29    WIRED_3POINT5_MM_HEADSET = 101;
30    WIRED_3POINT5_MM_HEADPHONES = 102;
31    USB_C_AUDIO = 200;
32    USB_C_DEVICE = 201;
33    USB_C_HEADSET = 202;
34    USB_C_ACCESSORY = 203;
35    USB_C_DOCK = 204;
36    USB_C_HDMI = 205;
37    BLUETOOTH = 300;
38    BLUETOOTH_HEARING_AID = 301;
39    BLUETOOTH_A2DP = 302;
40    REMOTE_SINGLE = 400;
41    REMOTE_TV = 401;
42    REMOTE_SPEAKER = 402;
43    REMOTE_GROUP = 500;
44    REMOTE_DYNAMIC_GROUP = 501;
45};
46
47/**
48 * The result of an output switching operation.
49 */
50enum SwitchResult {
51    ERROR = 0;
52    OK = 1;
53};
54
55/**
56 * The sub result of an output switching operation.
57 */
58enum SubResult {
59    UNKNOWN_ERROR = 0;
60    NO_ERROR = 1;
61    REJECTED = 2;
62    NETWORK_ERROR = 3;
63    ROUTE_NOT_AVAILABLE = 4;
64    INVALID_COMMAND = 5;
65}
66