Walter Jang | 40c7479 | 2016-02-05 17:02:53 -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"); you may not use this file except |
| 5 | * in compliance with the License. You may obtain a copy of the License at |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 10 | * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 11 | * or implied. See the License for the specific language governing permissions and limitations under |
| 12 | * the License. |
| 13 | */ |
Walter Jang | e837ae3 | 2016-08-15 12:50:37 -0700 | [diff] [blame] | 14 | package com.android.contactsbind; |
Walter Jang | 40c7479 | 2016-02-05 17:02:53 -0800 | [diff] [blame] | 15 | |
Wenyi Wang | 7967545 | 2016-08-17 10:43:28 -0700 | [diff] [blame] | 16 | import android.app.Fragment; |
Tingting Wang | 918f0b2 | 2016-02-09 15:06:24 -0800 | [diff] [blame] | 17 | import android.content.Context; |
Walter Jang | 581585d | 2016-09-21 19:21:13 -0700 | [diff] [blame] | 18 | import android.content.Intent; |
| 19 | import android.net.Uri; |
Walter Jang | 40c7479 | 2016-02-05 17:02:53 -0800 | [diff] [blame] | 20 | |
Gary Mai | 0a49afa | 2016-12-05 15:53:58 -0800 | [diff] [blame] | 21 | import com.android.contacts.logging.Logger; |
| 22 | import com.android.contacts.util.DeviceLocalAccountTypeFactory; |
Walter Jang | f61f0ee | 2016-11-29 18:40:17 +0000 | [diff] [blame] | 23 | import com.android.contactsbind.search.AutocompleteHelper; |
Gary Mai | 0a49afa | 2016-12-05 15:53:58 -0800 | [diff] [blame] | 24 | |
Walter Jang | 40c7479 | 2016-02-05 17:02:53 -0800 | [diff] [blame] | 25 | /** |
| 26 | * Creates default bindings for overlays. |
| 27 | */ |
| 28 | public class ObjectFactory { |
| 29 | |
| 30 | public static Logger getLogger() { |
| 31 | return null; |
| 32 | } |
Tingting Wang | 918f0b2 | 2016-02-09 15:06:24 -0800 | [diff] [blame] | 33 | |
Walter Jang | f61f0ee | 2016-11-29 18:40:17 +0000 | [diff] [blame] | 34 | public static AutocompleteHelper getAutocompleteHelper(Context context) { |
| 35 | return null; |
| 36 | } |
| 37 | |
Marcus Hagerott | fac695a | 2016-08-24 17:02:40 -0700 | [diff] [blame] | 38 | public static DeviceLocalAccountTypeFactory getDeviceLocalAccountTypeFactory(Context context) { |
| 39 | return new DeviceLocalAccountTypeFactory.Default(context); |
Marcus Hagerott | 6caf23f | 2016-08-18 15:02:42 -0700 | [diff] [blame] | 40 | } |
Wenyi Wang | 7967545 | 2016-08-17 10:43:28 -0700 | [diff] [blame] | 41 | |
John Shao | 5b1ffdc | 2016-11-08 13:51:00 -0800 | [diff] [blame] | 42 | public static Fragment getAssistantFragment() { |
Wenyi Wang | 7967545 | 2016-08-17 10:43:28 -0700 | [diff] [blame] | 43 | return null; |
| 44 | } |
Walter Jang | 581585d | 2016-09-21 19:21:13 -0700 | [diff] [blame] | 45 | |
| 46 | public static Intent getContactSheetIntent(Context context, Uri contactLookupUri) { |
| 47 | return null; |
| 48 | } |
Walter Jang | 40c7479 | 2016-02-05 17:02:53 -0800 | [diff] [blame] | 49 | } |