Add more slices to settings
Test: open settings Bug: 74555610 Change-Id: I061685342f61a6a43670b7f3378d2a6918bcf495
This commit is contained in:
@@ -207,6 +207,8 @@
|
|||||||
android:value="com.android.settings.category.ia.homepage"/>
|
android:value="com.android.settings.category.ia.homepage"/>
|
||||||
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
|
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
|
||||||
android:value="true" />
|
android:value="true" />
|
||||||
|
<meta-data android:name="android.metadata.SLICE_URI"
|
||||||
|
android:value="content://android.settings.slices/action/toggle_bluetooth_switch" />
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity android:name="AirplaneModeVoiceActivity"
|
<activity android:name="AirplaneModeVoiceActivity"
|
||||||
@@ -2235,6 +2237,8 @@
|
|||||||
android:value="com.android.settings.category.ia.homepage" />
|
android:value="com.android.settings.category.ia.homepage" />
|
||||||
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
|
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
|
||||||
android:value="com.android.settings.fuelgauge.PowerUsageSummary" />
|
android:value="com.android.settings.fuelgauge.PowerUsageSummary" />
|
||||||
|
<meta-data android:name="android.metadata.SLICE_URI"
|
||||||
|
android:value="content://android.settings.slices/action/auto_brightness" />
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
@@ -2251,6 +2255,8 @@
|
|||||||
android:value="com.android.settings.fuelgauge.batterysaver.BatterySaverSettings" />
|
android:value="com.android.settings.fuelgauge.batterysaver.BatterySaverSettings" />
|
||||||
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
|
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
|
||||||
android:value="true" />
|
android:value="true" />
|
||||||
|
<meta-data android:name="android.metadata.SLICE_URI"
|
||||||
|
android:value="content://android.settings.slices/action/battery_saver_summary" />
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity android:name=".fuelgauge.BatterySaverModeVoiceActivity"
|
<activity android:name=".fuelgauge.BatterySaverModeVoiceActivity"
|
||||||
@@ -2670,6 +2676,8 @@
|
|||||||
android:value="true" />
|
android:value="true" />
|
||||||
<meta-data android:name="com.android.settings.summary"
|
<meta-data android:name="com.android.settings.summary"
|
||||||
android:resource="@string/sound_dashboard_summary"/>
|
android:resource="@string/sound_dashboard_summary"/>
|
||||||
|
<meta-data android:name="android.metadata.SLICE_URI"
|
||||||
|
android:value="content://android.settings.slices/action/alarm_volume" />
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<!-- Show apps for which application-level notification settings are applicable -->
|
<!-- Show apps for which application-level notification settings are applicable -->
|
||||||
|
@@ -33,6 +33,10 @@ public interface DeviceIndexFeatureProvider {
|
|||||||
// TODO: Remove this and index all action and intent slices through search index.
|
// TODO: Remove this and index all action and intent slices through search index.
|
||||||
String[] ACTIONS_TO_INDEX = new String[]{
|
String[] ACTIONS_TO_INDEX = new String[]{
|
||||||
Settings.ACTION_WIFI_SETTINGS,
|
Settings.ACTION_WIFI_SETTINGS,
|
||||||
|
Settings.ACTION_BATTERY_SAVER_SETTINGS,
|
||||||
|
Settings.ACTION_BLUETOOTH_SETTINGS,
|
||||||
|
"android.intent.action.POWER_USAGE_SUMMARY",
|
||||||
|
Settings.ACTION_SOUND_SETTINGS,
|
||||||
};
|
};
|
||||||
|
|
||||||
String TAG = "DeviceIndex";
|
String TAG = "DeviceIndex";
|
||||||
@@ -40,7 +44,7 @@ public interface DeviceIndexFeatureProvider {
|
|||||||
String INDEX_VERSION = "settings:index_version";
|
String INDEX_VERSION = "settings:index_version";
|
||||||
|
|
||||||
// Increment when new items are added to ensure they get pushed to the device index.
|
// Increment when new items are added to ensure they get pushed to the device index.
|
||||||
int VERSION = 1;
|
int VERSION = 2;
|
||||||
|
|
||||||
boolean isIndexingEnabled();
|
boolean isIndexingEnabled();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user