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 import android.telecom.CallAudioState; 21 import android.telecom.VideoProfile; 22 23 /** 24 * Provides a default implementation for listeners of CallsManager. 25 */ 26 public class CallsManagerListenerBase implements CallsManager.CallsManagerListener { 27 @Override onCallAdded(Call call)28 public void onCallAdded(Call call) { 29 } 30 31 @Override onCallRemoved(Call call)32 public void onCallRemoved(Call call) { 33 } 34 35 @Override onCallStateChanged(Call call, int oldState, int newState)36 public void onCallStateChanged(Call call, int oldState, int newState) { 37 } 38 39 @Override onConnectionServiceChanged( Call call, ConnectionServiceWrapper oldService, ConnectionServiceWrapper newService)40 public void onConnectionServiceChanged( 41 Call call, 42 ConnectionServiceWrapper oldService, 43 ConnectionServiceWrapper newService) { 44 } 45 46 @Override onIncomingCallAnswered(Call call)47 public void onIncomingCallAnswered(Call call) { 48 } 49 50 @Override onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage)51 public void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage) { 52 } 53 54 @Override onCallAudioStateChanged(CallAudioState oldAudioState, CallAudioState newAudioState)55 public void onCallAudioStateChanged(CallAudioState oldAudioState, 56 CallAudioState newAudioState) { 57 } 58 59 @Override onRingbackRequested(Call call, boolean ringback)60 public void onRingbackRequested(Call call, boolean ringback) { 61 } 62 63 @Override onIsConferencedChanged(Call call)64 public void onIsConferencedChanged(Call call) { 65 } 66 67 @Override onIsVoipAudioModeChanged(Call call)68 public void onIsVoipAudioModeChanged(Call call) { 69 } 70 71 @Override onVideoStateChanged(Call call, int previousVideoState, int newVideoState)72 public void onVideoStateChanged(Call call, int previousVideoState, int newVideoState) { 73 } 74 75 @Override onCanAddCallChanged(boolean canAddCall)76 public void onCanAddCallChanged(boolean canAddCall) { 77 } 78 79 @Override onSessionModifyRequestReceived(Call call, VideoProfile videoProfile)80 public void onSessionModifyRequestReceived(Call call, VideoProfile videoProfile) { 81 82 } 83 84 @Override onHoldToneRequested(Call call)85 public void onHoldToneRequested(Call call) { 86 } 87 88 @Override onExternalCallChanged(Call call, boolean isExternalCall)89 public void onExternalCallChanged(Call call, boolean isExternalCall) { 90 } 91 92 @Override onDisconnectedTonePlaying(boolean isTonePlaying)93 public void onDisconnectedTonePlaying(boolean isTonePlaying) { 94 } 95 96 @Override onConnectionTimeChanged(Call call)97 public void onConnectionTimeChanged(Call call) { 98 } 99 100 @Override onConferenceStateChanged(Call call, boolean isConference)101 public void onConferenceStateChanged(Call call, boolean isConference) { 102 } 103 104 @Override onCdmaConferenceSwap(Call call)105 public void onCdmaConferenceSwap(Call call) { 106 } 107 } 108