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 = "proto3"; 18 19package audio_focus_control_proto; 20 21import "google/protobuf/empty.proto"; 22 23message AudioFocusRequest { 24 uint64 session_id = 1; 25 int32 audio_usage = 2; 26 int32 zone_id = 3; 27 bool allow_duck = 4; 28 bool is_transient = 5; 29 bool is_exclusive = 6; 30} 31 32message AudioFocusControlMessage { 33 repeated AudioFocusRequest acquire_requests = 1; 34 repeated uint64 release_requests = 2; 35 repeated uint64 active_sessions = 3; 36} 37 38service AudioFocusControlServer { 39 rpc AudioRequests(AudioFocusControlMessage) returns (google.protobuf.Empty) {} 40} 41