1 /* 2 * Copyright (C) 2018 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 /** 20 * Binder interface to callback the volume key events. 21 * 22 * @hide 23 */ 24 oneway interface ICarVolumeCallback { 25 /** 26 * This is called whenever a group volume is changed. 27 * The changed-to volume index is not included, the caller is encouraged to 28 * get the current group volume index via CarAudioManager. 29 */ onGroupVolumeChanged(int zoneId, int groupId, int flags)30 void onGroupVolumeChanged(int zoneId, int groupId, int flags); 31 32 /** 33 * This is called whenever a group mute state is changed. 34 * The changed-to mute state is not included, the caller is encouraged to 35 * get the current group mute state via CarAudioManager. 36 */ onGroupMuteChanged(int zoneId, int groupId, int flags)37 void onGroupMuteChanged(int zoneId, int groupId, int flags); 38 39 /** 40 * This is called whenever the master mute state is changed. 41 * The changed-to master mute state is not included, the caller is encouraged to 42 * get the current master mute state via AudioManager. 43 */ onMasterMuteChanged(int zoneId, int flags)44 void onMasterMuteChanged(int zoneId, int flags); 45 } 46