1/*
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
17syntax = "proto2";
18
19package com.google.android.wearable.media.routing;
20option java_multiple_files = true;
21
22// Indicates the type of operation for invoking the OutputSwitcher.
23enum OpType {
24  OP_INITIATION = 0;
25  OP_TRANSFER = 1;
26}
27
28// Indicates whether the OutputSwitcher is successfully launched or not.
29enum LaunchResult {
30  LAUNCH_ERROR = 0;
31  LAUNCH_OK = 1;
32}
33
34// Indicates the current state of media output connection.
35enum ConnectionState {
36  CONNECTION_INITIATED = 0;
37  CONNECTION_COMPLETED = 1;
38  CONNECTION_FAILED = 2;
39}
40
41// Indicates the result of connection to media device.
42enum ConnectionReportReason {
43  CONNECTIONREPORT_UNKNOWN = 0;
44  CONNECTIONREPORT_CONNECTION_TO_DEVICE_INITIATED = 1;
45  CONNECTIONREPORT_CONNECTION_TO_DEVICE_SUCCESSFUL = 2;
46  CONNECTIONREPORT_CONNECTION_TO_DEVICE_FAILED = 3;
47  CONNECTIONREPORT_DEVICE_NOT_FOUND = 4;
48  CONNECTIONREPORT_UNTETHERED_HEADSET_NOT_FOUND = 5;
49}
50
51// Indicates the type of medium through which media is played.
52enum MediumType {
53  MEDIUMTYPE_BUILTIN_SPEAKER = 0;
54  MEDIUMTYPE_BLUETOOTH_A2DP = 1;
55  MEDIUMTYPE_CAST_OUTPUT = 2;
56  MEDIUMTYPE_PROPRIETARY_OUTPUT = 3;
57  MEDIUMTYPE_UNKNOWN = 4;
58  MEDIUMTYPE_BLE = 5;
59}
60
61// Indicates the scan state of list of available devices.
62enum ScanState {
63  SCAN_INITIATED = 0;
64  SCAN_SUCCESSFUL = 1;
65  SCAN_FAILED = 2;
66}
67
68// Indicates different types of media devices that Wear OutputSwitcher supports.
69enum MediaDeviceType {
70  MEDIADEVICETYPE_BLUETOOTH = 0;
71  MEDIADEVICETYPE_FASTPAIR = 1;
72  MEDIADEVICETYPE_BUILTIN_SPEAKER = 2;
73  MEDIADEVICETYPE_SASS = 3;
74}
75