1 /* 2 * Copyright (C) 2023 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 17 package android.car.media; 18 19 import android.car.CarOccupantZoneManager.OccupantZoneInfo; 20 21 /** 22 * Binder interface to listen for audio media request from passenger in primary zone 23 * 24 * @hide 25 */ 26 oneway interface IPrimaryZoneMediaAudioRequestCallback { 27 /** 28 * Called on request for media for occupant in primary zone 29 * 30 * @param info Occupant zone information that should be shared in car primary zone 31 * @param requestId Unique id of the request that can be used to enable the audio sharing 32 */ onRequestMediaOnPrimaryZone(in OccupantZoneInfo info, long requestId)33 void onRequestMediaOnPrimaryZone(in OccupantZoneInfo info, long requestId); 34 35 /** 36 * Called on media request status changes 37 * 38 * @param info Occupant zone of the original request source 39 * @param requestId Request id whose status has changed 40 * @param status New status of the request 41 */ onMediaAudioRequestStatusChanged(in OccupantZoneInfo info, long requestId, int status)42 void onMediaAudioRequestStatusChanged(in OccupantZoneInfo info, long requestId, int status); 43 } 44