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); } }