• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
onForegroundCallChanged(Call oldForegroundCall, Call newForegroundCall)55     public void onForegroundCallChanged(Call oldForegroundCall, Call newForegroundCall) {
56     }
57 
58     @Override
onCallAudioStateChanged(CallAudioState oldAudioState, CallAudioState newAudioState)59     public void onCallAudioStateChanged(CallAudioState oldAudioState,
60             CallAudioState newAudioState) {
61     }
62 
63     @Override
onRingbackRequested(Call call, boolean ringback)64     public void onRingbackRequested(Call call, boolean ringback) {
65     }
66 
67     @Override
onIsConferencedChanged(Call call)68     public void onIsConferencedChanged(Call call) {
69     }
70 
71     @Override
onIsVoipAudioModeChanged(Call call)72     public void onIsVoipAudioModeChanged(Call call) {
73     }
74 
75     @Override
onVideoStateChanged(Call call)76     public void onVideoStateChanged(Call call) {
77     }
78 
79     @Override
onCanAddCallChanged(boolean canAddCall)80     public void onCanAddCallChanged(boolean canAddCall) {
81     }
82 
83     @Override
onSessionModifyRequestReceived(Call call, VideoProfile videoProfile)84     public void onSessionModifyRequestReceived(Call call, VideoProfile videoProfile) {
85 
86     }
87 }
88