Keep methods from SearchIndexProvider
Bug: 110403709 Test: rebuild Change-Id: Iae39d0a50337c60f732fa54c61f4ff5982fcbd8e
This commit is contained in:
@@ -23,6 +23,8 @@ import com.android.settingslib.core.AbstractPreferenceController;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import androidx.annotation.Keep;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for classes whose instances can provide data for indexing.
|
* 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.
|
* @return a list of {@link android.provider.SearchIndexableResource} references.
|
||||||
* Can be null.
|
* Can be null.
|
||||||
*/
|
*/
|
||||||
|
@Keep
|
||||||
List<SearchIndexableResource> getXmlResourcesToIndex(Context context, boolean enabled);
|
List<SearchIndexableResource> getXmlResourcesToIndex(Context context, boolean enabled);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -56,6 +59,7 @@ public interface Indexable {
|
|||||||
* or not.
|
* or not.
|
||||||
* @return a list of {@link SearchIndexableRaw} references. Can be null.
|
* @return a list of {@link SearchIndexableRaw} references. Can be null.
|
||||||
*/
|
*/
|
||||||
|
@Keep
|
||||||
List<SearchIndexableRaw> getRawDataToIndex(Context context, boolean enabled);
|
List<SearchIndexableRaw> getRawDataToIndex(Context context, boolean enabled);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -64,12 +68,14 @@ public interface Indexable {
|
|||||||
* @param context the context.
|
* @param context the context.
|
||||||
* @return a list of {@link SearchIndexableRaw} references. Can be null.
|
* @return a list of {@link SearchIndexableRaw} references. Can be null.
|
||||||
*/
|
*/
|
||||||
|
@Keep
|
||||||
List<String> getNonIndexableKeys(Context context);
|
List<String> getNonIndexableKeys(Context context);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return a list of {@link AbstractPreferenceController} for ResultPayload data during
|
* @return a list of {@link AbstractPreferenceController} for ResultPayload data during
|
||||||
* Indexing.
|
* Indexing.
|
||||||
*/
|
*/
|
||||||
|
@Keep
|
||||||
List<AbstractPreferenceController> getPreferenceControllers(Context context);
|
List<AbstractPreferenceController> getPreferenceControllers(Context context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user