Index Data to build Slices in Settings
The indexing is done by taking the indexable fragments from search, grabbing their XML via SearchIndexableResources, and then looking for controllers defined in preferences. For each controller found, we take the combination of the fragment providing the XML and the Preference info to create an indexable row. Buiding a Slice will be handled in a subsquent CL, but a prototype can be found here: ag/3324435 Test: robotests Bug: 67996923 Change-Id: I48668618079bcc3da55ab77b7323ee8e467073af
This commit is contained in:
17
src/com/android/settings/slices/SlicesFeatureProvider.java
Normal file
17
src/com/android/settings/slices/SlicesFeatureProvider.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package com.android.settings.slices;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
/**
|
||||
* Manages Slices in Settings.
|
||||
*/
|
||||
public interface SlicesFeatureProvider {
|
||||
|
||||
boolean DEBUG = false;
|
||||
|
||||
SlicesIndexer getSliceIndexer(Context context);
|
||||
|
||||
SliceDataConverter getSliceDataConverter(Context context);
|
||||
|
||||
void indexSliceData(Context context);
|
||||
}
|
Reference in New Issue
Block a user