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