Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package com.android.incallui; |
| 18 | |
Eric Erfanian | 4ca9e8d | 2018-07-10 18:37:03 +0000 | [diff] [blame] | 19 | import android.support.annotation.FloatRange; |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 20 | import com.android.incallui.answer.protocol.AnswerScreenDelegate; |
twyen | 8efb495 | 2017-10-06 16:35:54 -0700 | [diff] [blame] | 21 | import com.android.incallui.incalluilock.InCallUiLock; |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 22 | |
| 23 | /** |
| 24 | * Stub implementation of the answer screen delegate. Used to keep the answer fragment visible when |
| 25 | * no call exists. |
| 26 | */ |
| 27 | public class AnswerScreenPresenterStub implements AnswerScreenDelegate { |
| 28 | @Override |
| 29 | public void onAnswerScreenUnready() {} |
| 30 | |
| 31 | @Override |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 32 | public void onRejectCallWithMessage(String message) {} |
| 33 | |
| 34 | @Override |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 35 | public void onAnswer(boolean answerVideoAsAudio) {} |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 36 | |
| 37 | @Override |
| 38 | public void onReject() {} |
| 39 | |
| 40 | @Override |
erfanian | d05d899 | 2018-03-20 19:42:26 -0700 | [diff] [blame] | 41 | public void onSpeakEasyCall() {} |
| 42 | |
| 43 | @Override |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 44 | public void onAnswerAndReleaseCall() {} |
| 45 | |
| 46 | @Override |
Eric Erfanian | 2ca4318 | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 47 | public void onAnswerAndReleaseButtonEnabled() {} |
| 48 | |
| 49 | @Override |
| 50 | public void onAnswerAndReleaseButtonDisabled() {} |
| 51 | |
| 52 | @Override |
Eric Erfanian | 4ca9e8d | 2018-07-10 18:37:03 +0000 | [diff] [blame] | 53 | public void updateWindowBackgroundColor(@FloatRange(from = -1f, to = 1.0f) float progress) {} |
| 54 | |
| 55 | @Override |
Eric Erfanian | 2ca4318 | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 56 | public boolean isActionTimeout() { |
| 57 | return false; |
| 58 | } |
twyen | 8efb495 | 2017-10-06 16:35:54 -0700 | [diff] [blame] | 59 | |
| 60 | @Override |
| 61 | public InCallUiLock acquireInCallUiLock(String tag) { |
| 62 | return InCallPresenter.getInstance().acquireInCallUiLock(tag); |
| 63 | } |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 64 | } |