<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2013 The Android Open Source Project
    modified
    SPDX-License-Identifier: Apache-2.0 AND GPL-3.0-only
-->

<resources>

    <integer name="config_delay_in_milliseconds_to_update_shift_state">100</integer>
    <integer name="config_double_space_period_timeout">1100</integer>

    <integer name="config_key_repeat_start_timeout">400</integer>
    <integer name="config_key_repeat_interval">50</integer>

    <integer name="config_ignore_alt_code_key_timeout">350</integer>

    <!-- Suppress showing key preview duration after batch input in millisecond -->
    <integer name="config_suppress_key_preview_after_batch_input_duration">100</integer>

    <integer name="config_accessibility_long_press_key_timeout">3000</integer>
    <integer name="config_max_popup_keys_column">5</integer>

    <!-- Sliding key input preview parameters -->
    <dimen name="config_sliding_key_input_preview_width">8.0dp</dimen>
    <!-- Percentages of sliding key input preview body and shadow, in proportion to the width.
         A negative value of the shadow ratio disables drawing shadow. -->
    <!-- TODO: May use the shadow to alleviate rugged trail drawing. -->
    <integer name="config_sliding_key_input_preview_body_ratio">100</integer>
    <integer name="config_sliding_key_input_preview_shadow_ratio">-1</integer>
    <dimen name="config_key_hysteresis_distance_for_sliding_modifier">8.0dp</dimen>

    <dimen name="config_language_on_spacebar_horizontal_margin">3dp</dimen>

    <integer name="config_gesture_trail_fadeout_start_delay">100</integer>
    <integer name="config_gesture_trail_update_interval">20</integer>
    <!-- Static threshold for gesture after fast typing (msec) -->
    <integer name="config_gesture_static_time_threshold_after_fast_typing">500</integer>
    <integer name="config_gesture_fast_typing_cooldown_step">10</integer>
    <!-- Static threshold for starting gesture detection (keyWidth%/sec) -->
    <fraction name="config_gesture_detect_fast_move_speed_threshold">150%</fraction>
    <!-- Dynamic threshold for gesture after fast typing (msec) -->
    <integer name="config_gesture_dynamic_threshold_decay_duration">450</integer>
    <!-- Time based threshold values for gesture detection (msec) -->
    <integer name="config_gesture_dynamic_time_threshold_from">300</integer>
    <integer name="config_gesture_dynamic_time_threshold_to">20</integer>
    <!-- Distance based threshold values for gesture detection (keyWidth%/sec) -->
    <fraction name="config_gesture_dynamic_distance_threshold_from">600%</fraction>
    <fraction name="config_gesture_dynamic_distance_threshold_to">50%</fraction>
    <!-- Parameter for gesture sampling (keyWidth%/sec) -->
    <fraction name="config_gesture_sampling_minimum_distance">16.6666%</fraction>
    <!-- Parameters for gesture recognition (msec) and (keyWidth%/sec) -->
    <integer name="config_gesture_recognition_minimum_time">100</integer>
    <integer name="config_gesture_recognition_update_time">100</integer>
    <fraction name="config_gesture_recognition_speed_threshold">550%</fraction>

    <integer name="config_keyboard_grid_width">32</integer>
    <integer name="config_keyboard_grid_height">16</integer>
    <dimen name="config_touch_noise_threshold_distance">12.6dp</dimen>
    <integer name="config_touch_noise_threshold_time">40</integer>

    <!-- Common keyboard configuration. -->
    <fraction name="config_keyboard_left_padding">8%p</fraction>
    <fraction name="config_keyboard_right_padding">8%p</fraction>
    <dimen name="config_keyboard_vertical_correction">0.0dp</dimen>

    <!-- Common key top visual configuration. -->
    <dimen name="config_key_popup_hint_letter_padding">2dp</dimen>

    <!-- Common suggestion strip configuration. -->
    <integer name="config_suggestions_count_in_strip">3</integer>
    <fraction name="config_center_suggestion_percentile">36%</fraction>
    <integer name="config_delay_in_milliseconds_to_update_suggestions">100</integer>

    <!-- Common more suggestions configuration. -->
    <dimen name="config_more_suggestions_key_horizontal_padding">12dp</dimen>
    <dimen name="config_more_suggestions_bottom_gap">6dp</dimen>
    <dimen name="config_more_suggestions_modal_tolerance">32.0dp</dimen>
    <fraction name="config_more_suggestions_info_ratio">18%</fraction>

    <!-- Common gesture trail parameters -->
    <!-- Minimum distance between gesture trail sampling points. -->
    <dimen name="config_gesture_trail_min_sampling_distance">9.6dp</dimen>
    <!-- Maximum angular threshold between gesture trails interpolation segments in degree. -->
    <integer name="config_gesture_trail_max_interpolation_angular_threshold">15</integer>
    <!-- Maximum distance threshold between gesture trails interpolation segments. -->
    <dimen name="config_gesture_trail_max_interpolation_distance_threshold">16.0dp</dimen>
    <!-- Maximum number of gesture trail interpolation segments. -->
    <integer name="config_gesture_trail_max_interpolation_segments">6</integer>
    <dimen name="config_gesture_trail_start_width">10.0dp</dimen>
    <dimen name="config_gesture_trail_end_width">2.5dp</dimen>
    <!-- Percentages of gesture preview taril body and shadow, in proportion to the trail width.
         A negative value of the shadow ratio disables drawing shadow. -->
    <!-- TODO: May use the shadow to alleviate rugged trail drawing. -->
    <integer name="config_gesture_trail_body_ratio">100</integer>
    <integer name="config_gesture_trail_shadow_ratio">-1</integer>

    <!-- Common configuration of Emoji keyboard -->
    <dimen name="config_emoji_category_page_id_height">2dp</dimen>

    <!-- Common configuration of clipboard keyboard -->
    <dimen name="config_clipboard_pinned_icon_size">18dp</dimen>

    <!-- Inset used in Accessibility mode to avoid accidental key presses when a finger slides off the screen. -->
    <dimen name="config_accessibility_edge_slop">8dp</dimen>

    <integer name="config_user_dictionary_max_word_length">48</integer>
</resources>
