1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2013, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<resources>
22    <bool name="config_block_potentially_offensive">true</bool>
23    <!-- Default value for next word prediction: after entering a word and a space only, should we
24         look at input history to suggest a hopefully helpful suggestions for the next word? -->
25    <bool name="config_default_next_word_prediction">true</bool>
26
27    <integer name="config_delay_in_milliseconds_to_update_shift_state">100</integer>
28    <integer name="config_double_space_period_timeout">1100</integer>
29
30    <integer name="config_key_repeat_start_timeout">400</integer>
31    <integer name="config_key_repeat_interval">50</integer>
32
33    <integer name="config_ignore_alt_code_key_timeout">350</integer>
34
35    <integer name="config_key_preview_show_up_duration">17</integer>
36    <integer name="config_key_preview_dismiss_duration">53</integer>
37    <fraction name="config_key_preview_show_up_start_scale">98%</fraction>
38    <fraction name="config_key_preview_dismiss_end_scale">94%</fraction>
39    <!-- TODO: consolidate key preview linger timeout with the above animation parameters. -->
40    <integer name="config_key_preview_linger_timeout">70</integer>
41    <!-- Suppress showing key preview duration after batch input in millisecond -->
42    <integer name="config_suppress_key_preview_after_batch_input_duration">1000</integer>
43
44    <bool name="config_default_vibration_enabled">true</bool>
45    <integer name="config_max_vibration_duration">100</integer>
46
47    <integer name="config_default_longpress_key_timeout">300</integer>
48    <integer name="config_max_longpress_timeout">700</integer>
49    <integer name="config_min_longpress_timeout">100</integer>
50    <integer name="config_longpress_timeout_step">10</integer>
51    <integer name="config_accessibility_long_press_key_timeout">3000</integer>
52    <integer name="config_max_more_keys_column">5</integer>
53    <integer name="config_more_keys_keyboard_fadein_anim_time">0</integer>
54    <integer name="config_more_keys_keyboard_fadeout_anim_time">100</integer>
55
56    <!-- Long pressing shift will invoke caps-lock if > 0, never invoke caps-lock if == 0 -->
57    <integer name="config_longpress_shift_lock_timeout">1200</integer>
58
59    <!-- Sliding key input preview parameters -->
60    <dimen name="config_sliding_key_input_preview_width">8.0dp</dimen>
61    <!-- Percentages of sliding key input preview body and shadow, in proportion to the width.
62         A negative value of the shadow ratio disables drawing shadow. -->
63    <!-- TODO: May use the shadow to alleviate rugged trail drawing. -->
64    <integer name="config_sliding_key_input_preview_body_ratio">100</integer>
65    <integer name="config_sliding_key_input_preview_shadow_ratio">-1</integer>
66    <dimen name="config_key_hysteresis_distance_for_sliding_modifier">8.0dp</dimen>
67
68    <integer name="config_language_on_spacebar_final_alpha">128</integer>
69    <dimen name="config_language_on_spacebar_horizontal_margin">1dp</dimen>
70
71    <integer name="config_gesture_floating_preview_text_linger_timeout">200</integer>
72    <integer name="config_gesture_trail_fadeout_start_delay">100</integer>
73    <integer name="config_gesture_trail_fadeout_duration">800</integer>
74    <integer name="config_gesture_trail_update_interval">20</integer>
75    <!-- Static threshold for gesture after fast typing (msec) -->
76    <integer name="config_gesture_static_time_threshold_after_fast_typing">500</integer>
77    <!-- Static threshold for starting gesture detection (keyWidth%/sec) -->
78    <fraction name="config_gesture_detect_fast_move_speed_threshold">150%</fraction>
79    <!-- Dynamic threshold for gesture after fast typing (msec) -->
80    <integer name="config_gesture_dynamic_threshold_decay_duration">450</integer>
81    <!-- Time based threshold values for gesture detection (msec) -->
82    <integer name="config_gesture_dynamic_time_threshold_from">300</integer>
83    <integer name="config_gesture_dynamic_time_threshold_to">20</integer>
84    <!-- Distance based threshold values for gesture detection (keyWidth%/sec) -->
85    <fraction name="config_gesture_dynamic_distance_threshold_from">600%</fraction>
86    <fraction name="config_gesture_dynamic_distance_threshold_to">50%</fraction>
87    <!-- Parameter for gesture sampling (keyWidth%/sec) -->
88    <fraction name="config_gesture_sampling_minimum_distance">16.6666%</fraction>
89    <!-- Parameters for gesture recognition (msec) and (keyWidth%/sec) -->
90    <integer name="config_gesture_recognition_minimum_time">100</integer>
91    <integer name="config_gesture_recognition_update_time">100</integer>
92    <fraction name="config_gesture_recognition_speed_threshold">550%</fraction>
93
94    <integer name="config_keyboard_grid_width">32</integer>
95    <integer name="config_keyboard_grid_height">16</integer>
96    <dimen name="config_touch_noise_threshold_distance">12.6dp</dimen>
97    <integer name="config_touch_noise_threshold_time">40</integer>
98
99    <!-- Common keyboard configuration. -->
100    <fraction name="config_keyboard_left_padding">0%p</fraction>
101    <fraction name="config_keyboard_right_padding">0%p</fraction>
102    <dimen name="config_keyboard_vertical_correction">0.0dp</dimen>
103
104    <!-- Common key top visual configuration. -->
105    <dimen name="config_key_popup_hint_letter_padding">2dp</dimen>
106
107    <!-- Common suggestion strip configuration. -->
108    <integer name="config_suggestions_count_in_strip">3</integer>
109    <fraction name="config_center_suggestion_percentile">36%</fraction>
110    <integer name="config_delay_in_milliseconds_to_update_suggestions">100</integer>
111    <integer name="config_delay_in_milliseconds_to_update_old_suggestions">300</integer>
112
113    <!-- Common more suggestions configuraion. -->
114    <dimen name="config_more_suggestions_key_horizontal_padding">12dp</dimen>
115    <dimen name="config_more_suggestions_bottom_gap">6dp</dimen>
116    <dimen name="config_more_suggestions_modal_tolerance">32.0dp</dimen>
117    <fraction name="config_more_suggestions_info_ratio">18%</fraction>
118
119    <!-- Common gesture trail parameters -->
120    <!-- Minimum distance between gesture trail sampling points. -->
121    <dimen name="config_gesture_trail_min_sampling_distance">9.6dp</dimen>
122    <!-- Maximum angular threshold between gesture trails interpolation segments in degree. -->
123    <integer name="config_gesture_trail_max_interpolation_angular_threshold">15</integer>
124    <!-- Maximum distance threshold between gesture trails interpolation segments. -->
125    <dimen name="config_gesture_trail_max_interpolation_distance_threshold">16.0dp</dimen>
126    <!-- Maximum number of gesture trail interpolation segments. -->
127    <integer name="config_gesture_trail_max_interpolation_segments">6</integer>
128    <dimen name="config_gesture_trail_start_width">10.0dp</dimen>
129    <dimen name="config_gesture_trail_end_width">2.5dp</dimen>
130    <!-- Percentages of gesture preview taril body and shadow, in proportion to the trail width.
131         A negative value of the shadow ratio disables drawing shadow. -->
132    <!-- TODO: May use the shadow to alleviate rugged trail drawing. -->
133    <integer name="config_gesture_trail_body_ratio">100</integer>
134    <integer name="config_gesture_trail_shadow_ratio">-1</integer>
135
136    <!-- Common configuration of Emoji keyboard -->
137    <dimen name="config_emoji_category_page_id_height">2dp</dimen>
138
139    <!-- Inset used in Accessibility mode to avoid accidental key presses when a finger slides off the screen. -->
140    <dimen name="config_accessibility_edge_slop">8dp</dimen>
141
142    <integer name="config_user_dictionary_max_word_length">48</integer>
143
144    <!-- Personalization configuration -->
145    <!-- -1 means periocical wipe of the personalization dict is disabled. -->
146    <integer name="config_personalization_dict_wipe_interval_in_days">-1</integer>
147</resources>
148