Adding search for dynamic print settings.

The print service list is dynamically constructed, therefore we need
a local provider that will emit print service data to be indexed.

bug:13929163

Change-Id: I51d5ae40c00edc6be7b212dc8aa08fd7ebfbf349
This commit is contained in:
Svetoslav
2014-04-11 16:07:43 -07:00
parent caa0b54cbc
commit d78d44d32a
3 changed files with 76 additions and 9 deletions

View File

@@ -28,12 +28,34 @@ import android.provider.SearchIndexableData;
*/
public class SearchIndexableRaw extends SearchIndexableData {
/**
* Title's raw data.
*/
public String title;
/**
* Summary's raw data when the data is "ON".
*/
public String summaryOn;
/**
* Summary's raw data when the data is "OFF".
*/
public String summaryOff;
/**
* Entries associated with the raw data (when the data can have several values).
*/
public String entries;
/**
* Keywords' raw data.
*/
public String keywords;
/**
* Fragment's or Activity's title associated with the raw data.
*/
public String screenTitle;
public SearchIndexableRaw(Context context) {

View File

@@ -192,7 +192,7 @@ public final class SearchIndexableResources {
sResMap.put(PrintSettingsFragment.class.getName(),
new SearchIndexableResource(RANK_PRINTING,
R.xml.print_settings,
NO_DATA_RES_ID,
PrintSettingsFragment.class.getName(),
com.android.internal.R.drawable.ic_print));