/* * Copyright (C) 2025 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; package android.media.router; option java_multiple_files = true; enum Result { RESULT_UNSPECIFIED = 0; RESULT_SUCCESS = 1; RESULT_UNKNOWN_ERROR = 2; RESULT_REJECTED = 3; RESULT_NETWORK_ERROR = 4; RESULT_ROUTE_NOT_AVAILABLE = 5; RESULT_INVALID_COMMAND = 6; RESULT_UNIMPLEMENTED = 7; RESULT_FAILED_TO_REROUTE_SYSTEM_MEDIA = 8; RESULT_PERMISSION_DENIED = 9; RESULT_INVALID_ROUTE_ID = 10; RESULT_INVALID_SESSION_ID = 11; RESULT_DUPLICATE_SESSION_ID = 12; RESULT_PROVIDER_CALLBACK_ERROR = 13; RESULT_SYSTEM_SERVICE_ERROR = 14; RESULT_MEDIA_STREAM_CREATION_FAILED = 15; RESULT_MANAGER_RECORD_NOT_FOUND = 16; RESULT_ROUTER_RECORD_NOT_FOUND = 17; } enum EventType { EVENT_TYPE_UNSPECIFIED = 0; EVENT_TYPE_CREATE_SESSION = 1; EVENT_TYPE_CREATE_SYSTEM_ROUTING_SESSION = 2; EVENT_TYPE_RELEASE_SESSION = 3; EVENT_TYPE_SELECT_ROUTE = 4; EVENT_TYPE_DESELECT_ROUTE = 5; EVENT_TYPE_TRANSFER_TO_ROUTE = 6; EVENT_TYPE_SCANNING_STARTED = 7; EVENT_TYPE_SCANNING_STOPPED = 8; }