Cherish:HW Keys customization support [1/2]

Based on DUI

jhenrique09 edits: make it DUI independent

Original commit message:

Same robust action library as used on software navigation. Supports
single tap, double tap, and long press. As a precautionary measure,
single tap back and single tap home are fixed and can not be changed.
Camera button actions are not supported at this time. We will bring
in wake key support at a later time.

Also includes:

DUI: Initial checkin for Oreo [4/7]
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
bigrushdog
2018-08-20 18:02:26 +08:00
committed by Hưng Phan
parent af4ed56b14
commit 2a1c9debc8
12 changed files with 1252 additions and 53 deletions

View File

@@ -162,9 +162,6 @@
<string name="allow_incall_home_title">Home button when ringing</string>
<string name="allow_incall_home_summary">Allow to use Home button when device is ringing</string>
<!-- Hardware keys -->
<string name="hardware_keys_category">Hardware keys</string>
<!-- Buttons backlight timeout -->
<string name="backlight_timeout_title">Buttons backlight timeout</string>
<string name="backlight_timeout_on">Enabled always</string>
@@ -179,4 +176,38 @@
<string name="button_brightness_title">Backlight</string>
<!-- Enable keys backlight-->
<string name="button_brightness_sw_title">Enable backlight</string>
<string name="button_backlight_on_touch_only_title">Button touch</string>
<string name="button_backlight_on_touch_only_summary">Enable backlight with timeout only on button touch</string>
<!-- HW Keys customization -->
<string name="action_value_default_action" translatable="false">default</string>
<string name="action_value_select_app" translatable="false">app</string>
<string name="action_value_custom_action" translatable="false">custom</string>
<string name="action_value_back" translatable="false">task_back</string>
<string name="action_value_home" translatable="false">task_home</string>
<string name="action_value_search_assist" translatable="false">task_assist</string>
<string name="action_value_recent_apps" translatable="false">task_recents</string>
<string name="action_value_voice_search" translatable="false">task_voice_search</string>
<string name="action_value_menu" translatable="false">task_menu</string>
<string name="picker_activities">Activities</string>
<string name="select_custom_app_title">Select custom app</string>
<string name="select_custom_activity_title">Select custom activity</string>
<string name="profile_applist_title">Applications</string>
<string name="choose_action_title">Choose action</string>
<string name="action_entry_default_action">Default settings</string>
<string name="action_entry_select_app">Select application</string>
<string name="action_entry_custom_action">Select custom action</string>
<string name="hardware_keys_home_key_title">Home button</string>
<string name="hardware_keys_menu_key_title">Menu button</string>
<string name="hardware_keys_assist_key_title">Search button</string>
<string name="hardware_keys_appswitch_key_title">Overview button</string>
<string name="hardware_keys_back_key_title">Back button</string>
<string name="hardware_keys_double_tap_summary">Set double tap action</string>
<string name="hardware_keys_single_tap_summary">Set single tap action</string>
<string name="hardware_keys_long_press_summary">Set long press action</string>
<string name="hardware_keys_single_tap_title">Single tap action</string>
<string name="hardware_keys_long_press_title">Long press action</string>
<string name="hardware_keys_double_tap_title">Double tap action</string>
<string name="hardware_keys_category">Hardware keys</string>
<string name="hardware_keys_disable_title">Disable keys</string>
</resources>