From a5f68f9c3c41a6f80876fd56a140de957e56d378 Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Wed, 20 Jun 2018 15:00:27 -0700 Subject: [PATCH] Keep methods from SearchIndexProvider Bug: 110403709 Test: rebuild Change-Id: Iae39d0a50337c60f732fa54c61f4ff5982fcbd8e --- src/com/android/settings/search/Indexable.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/android/settings/search/Indexable.java b/src/com/android/settings/search/Indexable.java index e157fac74aa..80489950c3e 100644 --- a/src/com/android/settings/search/Indexable.java +++ b/src/com/android/settings/search/Indexable.java @@ -23,6 +23,8 @@ import com.android.settingslib.core.AbstractPreferenceController; import java.util.List; +import androidx.annotation.Keep; + /** * Interface for classes whose instances can provide data for indexing. * @@ -46,6 +48,7 @@ public interface Indexable { * @return a list of {@link android.provider.SearchIndexableResource} references. * Can be null. */ + @Keep List getXmlResourcesToIndex(Context context, boolean enabled); /** @@ -56,6 +59,7 @@ public interface Indexable { * or not. * @return a list of {@link SearchIndexableRaw} references. Can be null. */ + @Keep List getRawDataToIndex(Context context, boolean enabled); /** @@ -64,12 +68,14 @@ public interface Indexable { * @param context the context. * @return a list of {@link SearchIndexableRaw} references. Can be null. */ + @Keep List getNonIndexableKeys(Context context); /** * @return a list of {@link AbstractPreferenceController} for ResultPayload data during * Indexing. */ + @Keep List getPreferenceControllers(Context context); } }