1、按键功能定义

    1. <!-- Control the behavior when the user long presses the power button.
    2. 0 - Nothing
    3. 1 - Global actions menu
    4. 2 - Power off (with confirmation)
    5. 3 - Power off (without confirmation)
    6. 4 - Go to voice assist
    7. 5 - Go to assistant (Settings.Secure.ASSISTANT)
    8. -->
    9. <integer name="config_longPressOnPowerBehavior">1</integer>
    10. <!-- Control the behavior when the user long presses the power button for a long time.
    11. 0 - Nothing
    12. 1 - Global actions menu
    13. -->
    14. <integer name="config_veryLongPressOnPowerBehavior">0</integer>
    15. <!-- Control the behavior when the user long presses the back button. Non-zero values are only
    16. valid for watches as part of CDD/CTS.
    17. 0 - Nothing
    18. 1 - Go to voice assist
    19. -->
    20. <integer name="config_longPressOnBackBehavior">0</integer>
    21. <!-- Allows activities to be launched on a long press on power during device setup. -->
    22. <bool name="config_allowStartActivityForLongPressOnPowerInSetup">false</bool>
    23. <!-- Control the behavior when the user short presses the power button.
    24. 0 - Nothing
    25. 1 - Go to sleep (doze)
    26. 2 - Really go to sleep (don't doze)
    27. 3 - Really go to sleep and go home (don't doze)
    28. 4 - Go to home
    29. 5 - Dismiss IME if shown. Otherwise go to home
    30. -->
    31. <integer name="config_shortPressOnPowerBehavior">1</integer>
    32. <!-- Control the behavior when the user double presses the power button.
    33. 0 - Nothing
    34. 1 - Toggle theater mode setting
    35. 2 - Brightness boost
    36. -->
    37. <integer name="config_doublePressOnPowerBehavior">0</integer>
    38. <!-- Control the behavior when the user triple presses the power button.
    39. 0 - Nothing
    40. 1 - Toggle theater mode setting
    41. 2 - Brightness boost
    42. -->
    43. <integer name="config_triplePressOnPowerBehavior">0</integer>
    44. <!-- Control the behavior when the user presses the sleep button.
    45. 0 - Go to sleep (doze)
    46. 1 - Go to sleep (doze) and go home
    47. -->
    48. <integer name="config_shortPressOnSleepBehavior">0</integer>
    49. <!-- Time to wait while a button is pressed before triggering a very long press. -->
    50. <integer name="config_veryLongPressTimeout">3500</integer>
    51. <!-- Control the behavior when the user long presses the home button.
    52. 0 - Nothing
    53. 1 - Launch all apps intent
    54. 2 - Launch assist intent
    55. This needs to match the constants in
    56. policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
    57. -->
    58. <integer name="config_longPressOnHomeBehavior">0</integer>
    59. <!-- Control the behavior when the user double-taps the home button.
    60. 0 - Nothing
    61. 1 - Recent apps view in SystemUI
    62. This needs to match the constants in
    63. policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
    64. -->
    65. <integer name="config_doubleTapOnHomeBehavior">0</integer>