• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2015 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.messaging.util;
18 
19 /**
20  * Fake implementation which just returns the default values.
21  */
22 public class FakeBugleGservices extends BugleGservices {
FakeBugleGservices()23     public FakeBugleGservices() {
24     }
25 
26     @Override
registerForChanges(final Runnable r)27     public void registerForChanges(final Runnable r) {
28     }
29 
30     @Override
getLong(final String key, final long defaultValue)31     public long getLong(final String key, final long defaultValue) {
32         return defaultValue;
33     }
34 
35     @Override
getInt(final String key, final int defaultValue)36     public int getInt(final String key, final int defaultValue) {
37         return defaultValue;
38     }
39 
40     @Override
getBoolean(final String key, final boolean defaultValue)41     public boolean getBoolean(final String key, final boolean defaultValue) {
42         return defaultValue;
43     }
44 
45     @Override
getString(final String key, final String defaultValue)46     public String getString(final String key, final String defaultValue) {
47         return defaultValue;
48     }
49 
50     @Override
getFloat(String key, float defaultValue)51     public float getFloat(String key, float defaultValue) {
52         return defaultValue;
53     }
54 
55 }
56