Keep methods from SearchIndexProvider

Bug: 110403709
Test: rebuild
Change-Id: Iae39d0a50337c60f732fa54c61f4ff5982fcbd8e
This commit is contained in:
Fan Zhang
2018-06-20 15:00:27 -07:00
parent e29dd30c74
commit a5f68f9c3c

View File

@@ -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<SearchIndexableResource> 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<SearchIndexableRaw> 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<String> getNonIndexableKeys(Context context);
/**
* @return a list of {@link AbstractPreferenceController} for ResultPayload data during
* Indexing.
*/
@Keep
List<AbstractPreferenceController> getPreferenceControllers(Context context);
}
}