• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2025 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.media.router;
20option java_multiple_files = true;
21
22enum Result {
23  RESULT_UNSPECIFIED = 0;
24  RESULT_SUCCESS = 1;
25  RESULT_UNKNOWN_ERROR = 2;
26  RESULT_REJECTED = 3;
27  RESULT_NETWORK_ERROR = 4;
28  RESULT_ROUTE_NOT_AVAILABLE = 5;
29  RESULT_INVALID_COMMAND = 6;
30  RESULT_UNIMPLEMENTED = 7;
31  RESULT_FAILED_TO_REROUTE_SYSTEM_MEDIA = 8;
32  RESULT_PERMISSION_DENIED = 9;
33  RESULT_INVALID_ROUTE_ID = 10;
34  RESULT_INVALID_SESSION_ID = 11;
35  RESULT_DUPLICATE_SESSION_ID = 12;
36  RESULT_PROVIDER_CALLBACK_ERROR = 13;
37  RESULT_SYSTEM_SERVICE_ERROR = 14;
38  RESULT_MEDIA_STREAM_CREATION_FAILED = 15;
39  RESULT_MANAGER_RECORD_NOT_FOUND = 16;
40  RESULT_ROUTER_RECORD_NOT_FOUND = 17;
41}
42
43enum EventType {
44  EVENT_TYPE_UNSPECIFIED = 0;
45  EVENT_TYPE_CREATE_SESSION = 1;
46  EVENT_TYPE_CREATE_SYSTEM_ROUTING_SESSION = 2;
47  EVENT_TYPE_RELEASE_SESSION = 3;
48  EVENT_TYPE_SELECT_ROUTE = 4;
49  EVENT_TYPE_DESELECT_ROUTE = 5;
50  EVENT_TYPE_TRANSFER_TO_ROUTE = 6;
51  EVENT_TYPE_SCANNING_STARTED = 7;
52  EVENT_TYPE_SCANNING_STOPPED = 8;
53}
54