blob: 99f1f2c1de00ef98f9469f10d50cf356e86c5b62 [file] [log] [blame]
Eric Erfanianccca3152017-02-22 16:32:36 -08001/*
2 * Copyright (C) 2016 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
17package com.android.incallui;
18
19import android.support.annotation.FloatRange;
20import com.android.incallui.answer.protocol.AnswerScreenDelegate;
twyen8efb4952017-10-06 16:35:54 -070021import com.android.incallui.incalluilock.InCallUiLock;
Eric Erfanianccca3152017-02-22 16:32:36 -080022
23/**
24 * Stub implementation of the answer screen delegate. Used to keep the answer fragment visible when
25 * no call exists.
26 */
27public class AnswerScreenPresenterStub implements AnswerScreenDelegate {
28 @Override
29 public void onAnswerScreenUnready() {}
30
31 @Override
Eric Erfanianccca3152017-02-22 16:32:36 -080032 public void onRejectCallWithMessage(String message) {}
33
34 @Override
Eric Erfaniand5e47f62017-03-15 14:41:07 -070035 public void onAnswer(boolean answerVideoAsAudio) {}
Eric Erfanianccca3152017-02-22 16:32:36 -080036
37 @Override
38 public void onReject() {}
39
40 @Override
Eric Erfanian90508232017-03-24 09:31:16 -070041 public void onAnswerAndReleaseCall() {}
42
43 @Override
Eric Erfanian2ca43182017-08-31 06:57:16 -070044 public void onAnswerAndReleaseButtonEnabled() {}
45
46 @Override
47 public void onAnswerAndReleaseButtonDisabled() {}
48
49 @Override
Eric Erfanianccca3152017-02-22 16:32:36 -080050 public void updateWindowBackgroundColor(@FloatRange(from = -1f, to = 1.0f) float progress) {}
Eric Erfanian2ca43182017-08-31 06:57:16 -070051
52 @Override
53 public boolean isActionTimeout() {
54 return false;
55 }
twyen8efb4952017-10-06 16:35:54 -070056
57 @Override
58 public InCallUiLock acquireInCallUiLock(String tag) {
59 return InCallPresenter.getInstance().acquireInCallUiLock(tag);
60 }
Eric Erfanianccca3152017-02-22 16:32:36 -080061}