1、按键功能定义
<!-- Control the behavior when the user long presses the power button.0 - Nothing1 - Global actions menu2 - Power off (with confirmation)3 - Power off (without confirmation)4 - Go to voice assist5 - Go to assistant (Settings.Secure.ASSISTANT)--><integer name="config_longPressOnPowerBehavior">1</integer><!-- Control the behavior when the user long presses the power button for a long time.0 - Nothing1 - Global actions menu--><integer name="config_veryLongPressOnPowerBehavior">0</integer><!-- Control the behavior when the user long presses the back button. Non-zero values are onlyvalid for watches as part of CDD/CTS.0 - Nothing1 - Go to voice assist--><integer name="config_longPressOnBackBehavior">0</integer><!-- Allows activities to be launched on a long press on power during device setup. --><bool name="config_allowStartActivityForLongPressOnPowerInSetup">false</bool><!-- Control the behavior when the user short presses the power button.0 - Nothing1 - Go to sleep (doze)2 - Really go to sleep (don't doze)3 - Really go to sleep and go home (don't doze)4 - Go to home5 - Dismiss IME if shown. Otherwise go to home--><integer name="config_shortPressOnPowerBehavior">1</integer><!-- Control the behavior when the user double presses the power button.0 - Nothing1 - Toggle theater mode setting2 - Brightness boost--><integer name="config_doublePressOnPowerBehavior">0</integer><!-- Control the behavior when the user triple presses the power button.0 - Nothing1 - Toggle theater mode setting2 - Brightness boost--><integer name="config_triplePressOnPowerBehavior">0</integer><!-- Control the behavior when the user presses the sleep button.0 - Go to sleep (doze)1 - Go to sleep (doze) and go home--><integer name="config_shortPressOnSleepBehavior">0</integer><!-- Time to wait while a button is pressed before triggering a very long press. --><integer name="config_veryLongPressTimeout">3500</integer><!-- Control the behavior when the user long presses the home button.0 - Nothing1 - Launch all apps intent2 - Launch assist intentThis needs to match the constants inpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java--><integer name="config_longPressOnHomeBehavior">0</integer><!-- Control the behavior when the user double-taps the home button.0 - Nothing1 - Recent apps view in SystemUIThis needs to match the constants inpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java--><integer name="config_doubleTapOnHomeBehavior">0</integer>
