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.CallAudioState; 20 import android.telecom.CallEndpoint; 21 import android.telecom.VideoProfile; 22 23 import java.util.Set; 24 25 /** 26 * Provides a default implementation for listeners of CallsManager. 27 */ 28 public abstract class CallsManagerListenerBase implements CallsManager.CallsManagerListener { 29 @Override onCallAdded(Call call)30 public void onCallAdded(Call call) { 31 } 32 33 @Override onCallRemoved(Call call)34 public void onCallRemoved(Call call) { 35 } 36 37 @Override onCreateConnectionFailed(Call call)38 public void onCreateConnectionFailed(Call call) { 39 } 40 41 @Override onCallStateChanged(Call call, int oldState, int newState)42 public void onCallStateChanged(Call call, int oldState, int newState) { 43 } 44 45 @Override onConnectionServiceChanged( Call call, ConnectionServiceWrapper oldService, ConnectionServiceWrapper newService)46 public void onConnectionServiceChanged( 47 Call call, 48 ConnectionServiceWrapper oldService, 49 ConnectionServiceWrapper newService) { 50 } 51 52 @Override onIncomingCallAnswered(Call call)53 public void onIncomingCallAnswered(Call call) { 54 } 55 56 @Override onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage)57 public void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage) { 58 } 59 60 @Override onCallAudioStateChanged(CallAudioState oldAudioState, CallAudioState newAudioState)61 public void onCallAudioStateChanged(CallAudioState oldAudioState, 62 CallAudioState newAudioState) { 63 } 64 65 @Override onCallEndpointChanged(CallEndpoint callEndpoint)66 public void onCallEndpointChanged(CallEndpoint callEndpoint) { 67 } 68 69 @Override onAvailableCallEndpointsChanged(Set<CallEndpoint> availableCallEndpoints)70 public void onAvailableCallEndpointsChanged(Set<CallEndpoint> availableCallEndpoints) { 71 } 72 73 @Override onMuteStateChanged(boolean isMuted)74 public void onMuteStateChanged(boolean isMuted) { 75 } 76 77 @Override onRingbackRequested(Call call, boolean ringback)78 public void onRingbackRequested(Call call, boolean ringback) { 79 } 80 81 @Override onIsConferencedChanged(Call call)82 public void onIsConferencedChanged(Call call) { 83 } 84 85 @Override onIsVoipAudioModeChanged(Call call)86 public void onIsVoipAudioModeChanged(Call call) { 87 } 88 89 @Override onVideoStateChanged(Call call, int previousVideoState, int newVideoState)90 public void onVideoStateChanged(Call call, int previousVideoState, int newVideoState) { 91 } 92 93 @Override onCanAddCallChanged(boolean canAddCall)94 public void onCanAddCallChanged(boolean canAddCall) { 95 } 96 97 @Override onSessionModifyRequestReceived(Call call, VideoProfile videoProfile)98 public void onSessionModifyRequestReceived(Call call, VideoProfile videoProfile) { 99 100 } 101 102 @Override onHoldToneRequested(Call call)103 public void onHoldToneRequested(Call call) { 104 } 105 106 @Override onExternalCallChanged(Call call, boolean isExternalCall)107 public void onExternalCallChanged(Call call, boolean isExternalCall) { 108 } 109 110 @Override onCallStreamingStateChanged(Call call, boolean isStreaming)111 public void onCallStreamingStateChanged(Call call, boolean isStreaming) { 112 } 113 114 @Override onDisconnectedTonePlaying(Call call, boolean isTonePlaying)115 public void onDisconnectedTonePlaying(Call call, boolean isTonePlaying) { 116 } 117 118 @Override onConnectionTimeChanged(Call call)119 public void onConnectionTimeChanged(Call call) { 120 } 121 122 @Override onConferenceStateChanged(Call call, boolean isConference)123 public void onConferenceStateChanged(Call call, boolean isConference) { 124 } 125 126 @Override onCdmaConferenceSwap(Call call)127 public void onCdmaConferenceSwap(Call call) { 128 } 129 130 @Override onSetCamera(Call call, String cameraId)131 public void onSetCamera(Call call, String cameraId) { 132 } 133 } 134