Home | History | Annotate | Download | only in telecom
      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
     28     public void onCallAdded(Call call) {
     29     }
     30 
     31     @Override
     32     public void onCallRemoved(Call call) {
     33     }
     34 
     35     @Override
     36     public void onCallStateChanged(Call call, int oldState, int newState) {
     37     }
     38 
     39     @Override
     40     public void onConnectionServiceChanged(
     41             Call call,
     42             ConnectionServiceWrapper oldService,
     43             ConnectionServiceWrapper newService) {
     44     }
     45 
     46     @Override
     47     public void onIncomingCallAnswered(Call call) {
     48     }
     49 
     50     @Override
     51     public void onIncomingCallRejected(Call call, boolean rejectWithMessage, String textMessage) {
     52     }
     53 
     54     @Override
     55     public void onCallAudioStateChanged(CallAudioState oldAudioState,
     56             CallAudioState newAudioState) {
     57     }
     58 
     59     @Override
     60     public void onRingbackRequested(Call call, boolean ringback) {
     61     }
     62 
     63     @Override
     64     public void onIsConferencedChanged(Call call) {
     65     }
     66 
     67     @Override
     68     public void onIsVoipAudioModeChanged(Call call) {
     69     }
     70 
     71     @Override
     72     public void onVideoStateChanged(Call call, int previousVideoState, int newVideoState) {
     73     }
     74 
     75     @Override
     76     public void onCanAddCallChanged(boolean canAddCall) {
     77     }
     78 
     79     @Override
     80     public void onSessionModifyRequestReceived(Call call, VideoProfile videoProfile) {
     81 
     82     }
     83 
     84     @Override
     85     public void onHoldToneRequested(Call call) {
     86     }
     87 
     88     @Override
     89     public void onExternalCallChanged(Call call, boolean isExternalCall) {
     90     }
     91 
     92     @Override
     93     public void onDisconnectedTonePlaying(boolean isTonePlaying) {
     94     }
     95 }
     96