diff options
author | Walter Jang <wjang@google.com> | 2016-08-16 13:12:27 -0700 |
---|---|---|
committer | Walter Jang <wjang@google.com> | 2016-08-17 06:44:21 -0700 |
commit | fddbb83d48d1115a34c4e7b8e62c19bae99744de (patch) | |
tree | efbe01b73cdf8987fb9c690341f13abc6d4065f3 /src-bind | |
parent | 13a70d48a909becf590a07ea29bc115c23e57be0 (diff) | |
download | Contacts-fddbb83d48d1115a34c4e7b8e62c19bae99744de.tar.gz |
First pass on yenta autocomplete powered search (1/2)
Test: Basic searches with the autocomplete experiment on/off
Bug: 30436991
Change-Id: I9b756bd65a9714542c879cbd2a056d34a51cc359
Diffstat (limited to 'src-bind')
-rw-r--r-- | src-bind/com/android/contactsbind/ObjectFactory.java | 5 | ||||
-rw-r--r-- | src-bind/com/android/contactsbind/search/AutocompleteHelper.java | 39 |
2 files changed, 44 insertions, 0 deletions
diff --git a/src-bind/com/android/contactsbind/ObjectFactory.java b/src-bind/com/android/contactsbind/ObjectFactory.java index 1a5b34625..bce50ea05 100644 --- a/src-bind/com/android/contactsbind/ObjectFactory.java +++ b/src-bind/com/android/contactsbind/ObjectFactory.java @@ -15,6 +15,7 @@ package com.android.contactsbind; import com.android.contacts.common.logging.Logger; import com.android.contacts.common.preference.PreferenceManager; +import com.android.contactsbind.search.AutocompleteHelper; import android.content.Context; @@ -28,4 +29,8 @@ public class ObjectFactory { } public static PreferenceManager getPreferenceManager(Context context) { return null; } + + public static AutocompleteHelper getAutocompleteHelper(Context context) { + return null; + } } diff --git a/src-bind/com/android/contactsbind/search/AutocompleteHelper.java b/src-bind/com/android/contactsbind/search/AutocompleteHelper.java new file mode 100644 index 000000000..c37a828a3 --- /dev/null +++ b/src-bind/com/android/contactsbind/search/AutocompleteHelper.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2016 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.android.contactsbind.search; + +import android.database.Cursor; + +public final class AutocompleteHelper { + + public static final String TAG = "Autocomplete"; + + public interface Listener { + void onAutocompletesAvailable(Cursor cursor); + } + + private AutocompleteHelper() { + } + + public void setListener(Listener listener) { + } + + public void setProjection(String[] projection) { + } + + public void setQuery(String query) { + } +}
\ No newline at end of file |