Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5f68f9c authored by Fan Zhang's avatar Fan Zhang
Browse files

Keep methods from SearchIndexProvider

Bug: 110403709
Test: rebuild
Change-Id: Iae39d0a50337c60f732fa54c61f4ff5982fcbd8e
parent e29dd30c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);
    }
}