1 /*
2  * Copyright (C) 2017 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.dialer.lightbringer.stub;
18 
19 import android.content.ComponentName;
20 import android.content.Context;
21 import android.content.Intent;
22 import android.support.annotation.NonNull;
23 import com.android.dialer.common.Assert;
24 import com.android.dialer.lightbringer.Lightbringer;
25 import com.android.dialer.lightbringer.LightbringerListener;
26 import javax.inject.Inject;
27 
28 public class LightbringerStub implements Lightbringer {
29 
30   @Inject
LightbringerStub()31   public LightbringerStub() {}
32 
33   @Override
isReachable(Context context, String number)34   public boolean isReachable(Context context, String number) {
35     return false;
36   }
37 
38   @Override
getIntent(Context context, String number)39   public Intent getIntent(Context context, String number) {
40     return null;
41   }
42 
43   @Override
registerListener(LightbringerListener listener)44   public void registerListener(LightbringerListener listener) {}
45 
46   @Override
unregisterListener(LightbringerListener listener)47   public void unregisterListener(LightbringerListener listener) {}
48 
49   @Override
getPhoneAccountComponentName(Context context)50   public ComponentName getPhoneAccountComponentName(Context context) {
51     return null;
52   }
53 
54   @NonNull
55   @Override
getPackageName(@onNull Context context)56   public String getPackageName(@NonNull Context context) {
57     throw Assert.createUnsupportedOperationFailException();
58   }
59 }
60