Files
app_Settings/res/xml/double_tap_power_settings.xml
Yutong Zhang 66916cb8dd Add search keywords for double tap power button gesture.
The original search keyword for double tap power button gesture was only "gestures", which is shared by various gesture-related settings. This change creates specific keyword settings for the double tap power button gesture and adds the keywords "shortcut", "pay", and "payments". For more details on the design of this change, please refer to go/awi_keywords_double_tap_power.

Bug: 436476724
Test: Manual – Verified on device
Flag: EXEMPT BUGFIX
Change-Id: I6944faf3b52402ec88610c7a3b944c1e495623ec
2025-09-01 09:51:01 +00:00

57 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res-auto"
android:title="@string/double_tap_power_title">
<com.android.settingslib.widget.IllustrationPreference
android:key="gesture_double_tap_power_video"
settings:searchable="false"
settings:lottie_rawRes="@drawable/quickly_open_camera"
settings:controller="com.android.settings.gestures.DoubleTapPowerIllustrationPreferenceController"/>
<com.android.settingslib.widget.MainSwitchPreference
android:key="gesture_double_tap_power_enabled_main_switch"
android:title="@string/double_tap_power_enabled"
settings:keywords="@string/keywords_double_tap_power"
settings:controller="com.android.settings.gestures.DoubleTapPowerMainSwitchPreferenceController"/>
<PreferenceCategory
android:key="gesture_double_tap_power_actions"
android:title="@string/double_tap_power_target_action_category">
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="gesture_double_power_tap_camera"
android:title="@string/double_tap_power_camera_action_title"
settings:controller="com.android.settings.gestures.DoubleTapPowerForCameraPreferenceController"/>
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="gesture_double_power_tap_wallet"
android:title="@string/double_tap_power_wallet_action_title"
settings:keywords="@string/keywords_double_tap_power_wallet_action"
settings:controller="com.android.settings.gestures.DoubleTapPowerForWalletPreferenceController"/>
</PreferenceCategory>
<com.android.settingslib.widget.CardPreference
android:key="gesture_double_tap_power_lockscreen_shortcut_tip"
android:title="@string/double_tap_power_lockscreen_shortcut_tip_title"
android:icon="@drawable/ic_double_tap_power_lockscreen_shortcut_tip_icon"
settings:controller="com.android.settings.gestures.DoubleTapPowerLockscreenTipPreferenceController" />
<com.android.settingslib.widget.FooterPreference
android:key="gesture_double_tap_power_wallet_footer"
android:title="@string/double_tap_power_wallet_footer_title"
settings:searchable="false"
settings:controller="com.android.settings.gestures.DoubleTapPowerWalletFooterPreferenceController" />
</PreferenceScreen>