<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<resources>
    <!-- For screens without rounded corners -->
    <dimen name="task_corner_radius_small">2dp</dimen>
    <!-- For Launchers that want to override the default dialog corner radius -->
    <dimen name="task_corner_radius_override">-1dp</dimen>

    <!--  Task Menu View  -->
    <dimen name="task_menu_corner_radius">22dp</dimen>
    <dimen name="task_menu_item_corner_radius">4dp</dimen>
    <dimen name="task_menu_spacing">2dp</dimen>
    <dimen name="task_menu_width_grid">216dp</dimen>
    <dimen name="task_menu_horizontal_padding">8dp</dimen>
    <dimen name="overview_proactive_row_height">48dp</dimen>
    <dimen name="overview_proactive_row_bottom_margin">16dp</dimen>

    <dimen name="overview_minimum_next_prev_size">50dp</dimen>

    <!--  Overview Task Views  -->
    <!--  The primary task thumbnail uses up to this much of the total screen height/width  -->
    <item name="overview_max_scale" format="float" type="dimen">0.7</item>
    <!--  A touch target for icons, sometimes slightly larger than the icons themselves  -->
    <dimen name="task_thumbnail_icon_size">48dp</dimen>
    <!--  The icon size for the focused task, placed in center of touch target  -->
    <dimen name="task_thumbnail_icon_drawable_size">44dp</dimen>
    <!--  The space under the focused task icon  -->
    <dimen name="overview_task_margin">16dp</dimen>
    <!--  The horizontal space between tasks  -->
    <dimen name="overview_page_spacing">16dp</dimen>

    <dimen name="task_icon_cache_default_icon_size">72dp</dimen>
    <item name="overview_modal_max_scale" format="float" type="dimen">1.1</item>

    <!-- Overrideable in overlay that provides the Overview Actions. -->
    <dimen name="overview_actions_top_margin">24dp</dimen>
    <dimen name="overview_actions_height">48dp</dimen>
    <dimen name="overview_actions_button_spacing">36dp</dimen>

    <!-- These speeds are in dp/s -->
    <dimen name="max_task_dismiss_drag_velocity">2.25dp</dimen>
    <dimen name="default_task_dismiss_drag_velocity">1.5dp</dimen>
    <dimen name="default_task_dismiss_drag_velocity_grid">1dp</dimen>
    <dimen name="default_task_dismiss_drag_velocity_grid_focus_task">5dp</dimen>

    <dimen name="recents_clear_all_deadzone_vertical_margin">70dp</dimen>

    <!-- The speed in dp/s at which the user needs to be scrolling in recents such that we start
             loading full resolution screenshots. -->
    <dimen name="recents_fast_fling_velocity">600dp</dimen>

    <!-- These speeds are in dp / ms -->
    <dimen name="motion_pause_detector_speed_very_slow">0.0285dp</dimen>
    <dimen name="motion_pause_detector_speed_slow">0.15dp</dimen>
    <dimen name="motion_pause_detector_speed_somewhat_fast">0.285dp</dimen>
    <dimen name="motion_pause_detector_speed_fast">1.4dp</dimen>
    <dimen name="motion_pause_detector_min_displacement_from_app">36dp</dimen>
    <dimen name="quickstep_fling_threshold_speed">0.5dp</dimen>

    <!-- Launcher app transition -->
    <dimen name="closing_window_trans_y">115dp</dimen>

    <dimen name="quick_switch_scaling_scroll_threshold">100dp</dimen>

    <dimen name="recents_empty_message_text_size">16sp</dimen>
    <dimen name="recents_empty_message_text_padding">16dp</dimen>

    <dimen name="max_shadow_radius">0dp</dimen>

    <!-- Total space (start + end) between the task card and the edge of the screen
         in various configurations -->
    <dimen name="task_card_menu_option_vertical_padding">16dp</dimen>
    <dimen name="task_menu_vertical_padding">8dp</dimen>
    <dimen name="task_card_margin">8dp</dimen>
    <dimen name="task_card_menu_shadow_height">3dp</dimen>
    <dimen name="task_menu_option_start_margin">16dp</dimen>
    <!-- Copied from framework resource:
       docked_stack_divider_thickness - 2 * docked_stack_divider_insets -->
    <dimen name="multi_window_task_divider_size">10dp</dimen>

    <!-- Assistant Gestures -->
    <!-- Distance from the vertical edges of the screen in which assist gestures are recognized -->
    <dimen name="gestures_assistant_width">48dp</dimen>
    <dimen name="gestures_assistant_drag_threshold">55dp</dimen>
    <dimen name="gestures_assistant_fling_threshold">55dp</dimen>

    <!-- One-Handed Mode -->
    <!-- Threshold for draging distance to enable one-handed mode -->
    <dimen name="gestures_onehanded_drag_threshold">20dp</dimen>

    <!-- Distance to move elements when swiping up to go home from launcher -->
    <dimen name="home_pullback_distance">28dp</dimen>

    <!-- Distance to move the tasks when swiping up while the device is locked -->
    <dimen name="device_locked_y_offset">-80dp</dimen>

    <!-- Overscroll Gesture -->
    <dimen name="gestures_overscroll_fling_threshold">40dp</dimen>
    <dimen name="gestures_overscroll_active_threshold">80dp</dimen>
    <dimen name="gestures_overscroll_finish_threshold">136dp</dimen>

    <!-- Tips Gesture Tutorial -->
    <dimen name="gesture_tutorial_feedback_margin_start_end">8dp</dimen>
    <dimen name="gesture_tutorial_tablet_feedback_margin_start_end">140dp</dimen>
    <dimen name="gesture_tutorial_feedback_margin_top">16dp</dimen>
    <dimen name="gesture_tutorial_tablet_feedback_margin_top">24dp</dimen>
    <dimen name="gesture_tutorial_multi_row_task_view_spacing">72dp</dimen>
    <dimen name="gesture_tutorial_small_task_view_corner_radius">18dp</dimen>
    <dimen name="gesture_tutorial_mock_taskbar_height">80dp</dimen>

    <!-- Gesture Tutorial mock conversations -->
    <dimen name="gesture_tutorial_message_icon_size">44dp</dimen>
    <dimen name="gesture_tutorial_message_icon_corner_radius">100dp</dimen>
    <dimen name="gesture_tutorial_message_input_margin_top">36dp</dimen>
    <dimen name="gesture_tutorial_message_large_margin_bottom">32dp</dimen>
    <dimen name="gesture_tutorial_message_small_margin_bottom">4dp</dimen>
    <dimen name="gesture_tutorial_message_padding_start">26dp</dimen>
    <dimen name="gesture_tutorial_message_padding_end">18dp</dimen>
    <dimen name="gesture_tutorial_top_bar_margin_start">34dp</dimen>
    <dimen name="gesture_tutorial_top_bar_margin_end">211dp</dimen>
    <dimen name="gesture_tutorial_top_bar_button_margin_end">24dp</dimen>
    <dimen name="gesture_tutorial_conversation_bottom_padding">66dp</dimen>
    <integer name="gesture_tutorial_extra_messages_visibility">0</integer> <!-- VISIBLE -->
    <dimen name="gesture_tutorial_message_margin_start">124dp</dimen>
    <dimen name="gesture_tutorial_reply_margin_end">144dp</dimen>
    <dimen name="gesture_tutorial_input_margin_start">34dp</dimen>
    <dimen name="gesture_tutorial_input_margin_end">24dp</dimen>
    <dimen name="gesture_tutorial_tablet_message_padding_start_end">126dp</dimen>
    <dimen name="gesture_tutorial_tablet_message_1_margin">245dp</dimen>
    <dimen name="gesture_tutorial_tablet_reply_1_margin">241dp</dimen>
    <dimen name="gesture_tutorial_tablet_message_2_margin">401dp</dimen>
    <dimen name="gesture_tutorial_tablet_message_3_margin">245dp</dimen>
    <dimen name="gesture_tutorial_tablet_reply_2_margin">273dp</dimen>

    <!-- Gesture Tutorial mock conversation lists -->
    <dimen name="gesture_tutorial_conversation_icon_size">56dp</dimen>
    <dimen name="gesture_tutorial_conversation_icon_corner_radius">100dp</dimen>
    <dimen name="gesture_tutorial_conversation_list_padding_top">28dp</dimen>
    <dimen name="gesture_tutorial_conversation_line_padding_start">20dp</dimen>
    <dimen name="gesture_tutorial_conversation_line_1_margin_end">217dp</dimen>
    <dimen name="gesture_tutorial_conversation_line_2_margin_end">142dp</dimen>
    <dimen name="gesture_tutorial_conversation_line_3_margin_end">190dp</dimen>
    <dimen name="gesture_tutorial_conversation_line_4_margin_end">171dp</dimen>
    <dimen name="gesture_tutorial_conversation_line_5_margin_end">198dp</dimen>
    <dimen name="gesture_tutorial_conversation_line_6_margin_end">79dp</dimen>
    <dimen name="gesture_tutorial_conversation_line_7_margin_end">174dp</dimen>
    <dimen name="gesture_tutorial_conversation_line_8_margin_end">117dp</dimen>
    <dimen name="gesture_tutorial_tablet_conversation_line_6_margin_end">65dp</dimen>
    <dimen name="gesture_tutorial_tablet_conversation_line_8_margin_end">132dp</dimen>
    <dimen name="gesture_tutorial_tablet_conversation_line_10_margin_end">161dp</dimen>
    <integer name="gesture_tutorial_extra_conversations_visibility">0</integer> <!-- VISIBLE -->
    <dimen name="gesture_tutorial_mock_button_margin_end">24dp</dimen>
    <dimen name="gesture_tutorial_mock_button_margin_bottom">66dp</dimen>

    <!-- Gesture Tutorial mock hotseats -->
    <dimen name="gesture_tutorial_hotseat_width">-1px</dimen> <!-- match_parent -->
    <dimen name="gesture_tutorial_hotseat_height">-2px</dimen> <!-- wrap_content -->
    <dimen name="gesture_tutorial_hotseat_padding_start_end">26dp</dimen>
    <dimen name="gesture_tutorial_hotseat_icon_size">60dp</dimen>
    <dimen name="gesture_tutorial_hotseat_icon_corner_radius">100dp</dimen>
    <dimen name="gesture_tutorial_hotseat_search_height">50dp</dimen>
    <dimen name="gesture_tutorial_hotseat_search_corner_radius">100dp</dimen>
    <dimen name="gesture_tutorial_hotseat_icon_search_margin">36dp</dimen>

    <!-- Gesture Tutorial mock webpages -->
    <dimen name="gesture_tutorial_webpage_padding_top">32dp</dimen>
    <dimen name="gesture_tutorial_webpage_large_margin_top">24dp</dimen>
    <dimen name="gesture_tutorial_webpage_small_margin_top">8dp</dimen>
    <dimen name="gesture_tutorial_webpage_large_corner_radius">22dp</dimen>
    <dimen name="gesture_tutorial_webpage_medium_corner_radius">8dp</dimen>
    <dimen name="gesture_tutorial_webpage_small_corner_radius">4dp</dimen>
    <dimen name="gesture_tutorial_webpage_large_line_height">36dp</dimen>
    <dimen name="gesture_tutorial_webpage_small_line_height">22dp</dimen>
    <dimen name="gesture_tutorial_webpage_url_margin_start_end">16dp</dimen>
    <dimen name="gesture_tutorial_webpage_top_bar_button_margin_start">24dp</dimen>
    <dimen name="gesture_tutorial_webpage_top_bar_margin_start">97dp</dimen>
    <dimen name="gesture_tutorial_webpage_top_bar_margin_end">97dp</dimen>
    <dimen name="gesture_tutorial_webpage_line_1_margin_end">126dp</dimen>
    <dimen name="gesture_tutorial_webpage_line_2_margin_end">64dp</dimen>
    <dimen name="gesture_tutorial_webpage_line_3_margin_end">151dp</dimen>
    <dimen name="gesture_tutorial_webpage_block_margin_end">24dp</dimen>
    <integer name="gesture_tutorial_webpage_extra_lines_visibility">0</integer> <!-- VISIBLE -->

    <!-- Gesture Tutorial mock taskbar -->
    <dimen name="gesture_tutorial_taskbar_icon_size">52dp</dimen>
    <dimen name="gesture_tutorial_taskbar_all_apps_mini_size">7dp</dimen>
    <dimen name="gesture_tutorial_taskbar_icon_corner_radius">100dp</dimen>
    <dimen name="gesture_tutorial_taskbar_corner_radius">100dp</dimen>
    <dimen name="gesture_tutorial_taskbar_padding">12dp</dimen>
    <dimen name="gesture_tutorial_taskbar_icon_spacing">24dp</dimen>
    <dimen name="gesture_tutorial_taskbar_margin_bottom">24dp</dimen>

    <!-- All Set page -->
    <dimen name="allset_page_margin_horizontal">40dp</dimen>
    <dimen name="allset_page_allset_text_size">36sp</dimen>
    <dimen name="allset_page_swipe_up_text_size">14sp</dimen>

    <dimen name="allset_title_margin_top">24dp</dimen>
    <dimen name="allset_title_icon_margin_top">32dp</dimen>
    <dimen name="allset_subtitle_margin_top">24dp</dimen>
    <dimen name="allset_subtitle_width_max">348dp</dimen>
    <dimen name="allset_swipe_up_shift">10dp</dimen>

    <!-- All Apps Education tutorial -->
    <dimen name="swipe_edu_padding">8dp</dimen>
    <dimen name="swipe_edu_circle_size">64dp</dimen>
    <dimen name="swipe_edu_width">80dp</dimen>
    <dimen name="swipe_edu_max_height">184dp</dimen>

    <dimen name="chip_hint_border_width">1dp</dimen>
    <dimen name="chip_hint_corner_radius">20dp</dimen>
    <dimen name="chip_hint_outer_padding">20dp</dimen>
    <dimen name="chip_hint_start_padding">10dp</dimen>
    <dimen name="chip_hint_end_padding">12dp</dimen>
    <dimen name="chip_hint_horizontal_margin">20dp</dimen>
    <dimen name="chip_hint_vertical_offset">16dp</dimen>
    <dimen name="chip_hint_elevation">2dp</dimen>
    <dimen name="chip_icon_size">16dp</dimen>
    <dimen name="chip_text_height">26dp</dimen>
    <dimen name="chip_text_top_padding">4dp</dimen>
    <dimen name="chip_text_start_padding">10dp</dimen>
    <dimen name="chip_text_size">14sp</dimen>

    <dimen name="all_apps_prediction_row_divider_height">17dp</dimen>
    <dimen name="all_apps_label_top_padding">16dp</dimen>
    <dimen name="all_apps_label_bottom_padding">8dp</dimen>
    <dimen name="all_apps_label_text_size">14sp</dimen>

    <!-- Minimum distance to swipe to trigger accessibility gesture -->
    <dimen name="accessibility_gesture_min_swipe_distance">80dp</dimen>

    <!-- The maximum width of the navigation bar ripples. -->
    <dimen name="key_button_ripple_max_width">95dp</dimen>

    <dimen name="rounded_corner_content_padding">0dp</dimen>

    <dimen name="navigation_key_padding">0dp</dimen>

    <!-- Floating rotation button -->
    <dimen name="floating_rotation_button_diameter">52dp</dimen>
    <dimen name="floating_rotation_button_min_margin">20dp</dimen>
    <dimen name="floating_rotation_button_taskbar_left_margin">20dp</dimen>
    <dimen name="floating_rotation_button_taskbar_bottom_margin">10dp</dimen>

    <!-- Taskbar -->
    <dimen name="taskbar_size">@*android:dimen/taskbar_frame_height</dimen>
    <dimen name="taskbar_ime_size">48dp</dimen>
    <dimen name="taskbar_icon_size">44dp</dimen>
    <dimen name="taskbar_icon_min_touch_size">48dp</dimen>
    <!-- Note that this applies to both sides of all icons, so visible space is double this. -->
    <dimen name="taskbar_icon_spacing">12dp</dimen>
    <dimen name="taskbar_icon_drag_icon_size">54dp</dimen>
    <dimen name="taskbar_folder_margin">16dp</dimen>
    <dimen name="taskbar_contextual_button_padding">16dp</dimen>
    <dimen name="taskbar_contextual_padding_top">8dp</dimen>
    <dimen name="taskbar_nav_buttons_size">44dp</dimen>
    <dimen name="taskbar_split_instructions_margin">48dp</dimen>
    <dimen name="taskbar_contextual_button_margin">120dp</dimen>
    <dimen name="taskbar_suw_insets">48dp</dimen>
    <dimen name="taskbar_suw_frame">48dp</dimen>
    <dimen name="taskbar_hotseat_nav_spacing">24dp</dimen>
    <dimen name="taskbar_contextual_buttons_size">35dp</dimen>
    <dimen name="taskbar_stashed_size">24dp</dimen>
    <dimen name="taskbar_stashed_handle_width">220dp</dimen>
    <dimen name="taskbar_stashed_small_screen">108dp</dimen>
    <dimen name="taskbar_unstash_input_area">316dp</dimen>
    <dimen name="taskbar_stashed_handle_height">4dp</dimen>
    <dimen name="taskbar_edu_horizontal_margin">112dp</dimen>
    <dimen name="taskbar_nav_buttons_width_kids">88dp</dimen>
    <dimen name="taskbar_nav_buttons_height_kids">40dp</dimen>
    <dimen name="taskbar_nav_buttons_corner_radius_kids">40dp</dimen>
    <dimen name="taskbar_back_button_left_margin_kids">48dp</dimen>
    <dimen name="taskbar_home_button_left_margin_kids">48dp</dimen>
    <dimen name="taskbar_icon_size_kids">32dp</dimen>

    <!-- Transient taskbar -->
    <dimen name="transient_taskbar_size">72dp</dimen>
    <dimen name="transient_taskbar_icon_size">48dp</dimen>
    <dimen name="transient_taskbar_margin">24dp</dimen>
    <dimen name="transient_taskbar_shadow_blur">40dp</dimen>
    <dimen name="transient_taskbar_key_shadow_distance">10dp</dimen>
    <dimen name="transient_taskbar_stashed_size">32dp</dimen>
    <!-- An additional touch slop to prevent x-axis movement during the swipe up to show taskbar -->
    <dimen name="transient_taskbar_clamped_offset_bound">16dp</dimen>
    <!-- Taskbar swipe up thresholds -->
    <dimen name="taskbar_nav_threshold">30dp</dimen>
    <dimen name="taskbar_app_window_threshold">100dp</dimen>
    <dimen name="taskbar_home_overview_threshold">180dp</dimen>
    <dimen name="taskbar_catch_up_threshold">300dp</dimen>

    <!--  Taskbar 3 button spacing  -->
    <dimen name="taskbar_button_space_inbetween">24dp</dimen>
    <dimen name="taskbar_button_space_inbetween_phone">40dp</dimen>
    <dimen name="taskbar_button_margin_split">48dp</dimen>
    <dimen name="taskbar_button_margin_6_5">75dp</dimen>
    <dimen name="taskbar_button_margin_default">48dp</dimen>

    <!-- Taskbar education tooltip -->
    <dimen name="taskbar_edu_tooltip_elevation">14dp</dimen>
    <dimen name="taskbar_edu_tooltip_horizontal_margin">32dp</dimen>
    <dimen name="taskbar_edu_tooltip_vertical_margin">24dp</dimen>
    <dimen name="taskbar_edu_tooltip_enter_y_delta">20dp</dimen>
    <dimen name="taskbar_edu_tooltip_exit_y_delta">-10dp</dimen>
    <dimen name="taskbar_edu_swipe_lottie_width">348dp</dimen>
    <dimen name="taskbar_edu_swipe_lottie_height">217dp</dimen>
    <dimen name="taskbar_edu_features_lottie_width">170dp</dimen>
    <dimen name="taskbar_edu_features_lottie_height">106dp</dimen>
    <dimen name="taskbar_edu_features_horizontal_spacing">24dp</dimen>

    <!-- Recents overview -->
    <dimen name="recents_filter_icon_size">30dp</dimen>

    <!-- Launcher splash screen -->
    <!-- Note: keep this value in sync with the WindowManager/Shell dimens.xml -->
    <!--     starting_surface_exit_animation_window_shift_length -->
    <dimen name="starting_surface_exit_animation_window_shift_length">20dp</dimen>
</resources>
