1 /* 2 * Copyright (C) 2014 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 com.android.server.telecom; 18 19 import android.telecom.AudioState; 20 21 /** 22 * Provides a default implementation for listeners of CallsManager. 23 */ 24 class CallsManagerListenerBase implements CallsManager.CallsManagerListener { 25 @Override onCallAdded(Call call)26 public void onCallAdded(Call call) { 27 } 28 29 @Override onCallRemoved(Call call)30 public void onCallRemoved(Call call) { 31 } 32 33 @Override onCallStateChanged(Call call, int oldState, int newState)34 public void onCallStateChanged(Call call, int oldState, int newState) { 35 } 36 37 @Override onConnectionServiceChanged( Call call, ConnectionServiceWrapper oldService, ConnectionServiceWrapper newService)38 public void onConnectionServiceChanged( 39 Call call, 40 ConnectionServiceWrapper oldService, 41 ConnectionServiceWrapper newService) { 42 } 43 44 @Override onIncomingCallAnswered(Call call)45 public void onIncomingCallAnswered(Call call) { 46 } 47 48 @Override onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage)49 public void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage) { 50 } 51 52 @Override onForegroundCallChanged(Call oldForegroundCall, Call newForegroundCall)53 public void onForegroundCallChanged(Call oldForegroundCall, Call newForegroundCall) { 54 } 55 56 @Override onAudioStateChanged(AudioState oldAudioState, AudioState newAudioState)57 public void onAudioStateChanged(AudioState oldAudioState, AudioState newAudioState) { 58 } 59 60 @Override onRingbackRequested(Call call, boolean ringback)61 public void onRingbackRequested(Call call, boolean ringback) { 62 } 63 64 @Override onIsConferencedChanged(Call call)65 public void onIsConferencedChanged(Call call) { 66 } 67 68 @Override onIsVoipAudioModeChanged(Call call)69 public void onIsVoipAudioModeChanged(Call call) { 70 } 71 72 @Override onVideoStateChanged(Call call)73 public void onVideoStateChanged(Call call) { 74 } 75 76 @Override onCanAddCallChanged(boolean canAddCall)77 public void onCanAddCallChanged(boolean canAddCall) { 78 } 79 } 80