<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2015 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
  -->

<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
    <androidx.preference.SwitchPreference
        android:key="@string/pref_key_tracing_on"
        android:title="@string/record_trace"
        android:summary="@string/record_trace_summary" />
    <androidx.preference.SwitchPreference
        android:key="@string/pref_key_stack_sampling_on"
        android:title="@string/record_stack_samples"
        android:summary="@string/record_stack_samples_summary" />
    <androidx.preference.SwitchPreference
        android:key="@string/pref_key_heap_dump_on"
        android:title="@string/record_heap_dump"
        android:summary="@string/record_heap_dump_summary_disabled" />
    <androidx.preference.PreferenceCategory
        android:title="@string/pref_category_trace_settings" >
        <androidx.preference.SwitchPreference
            android:key="@string/pref_key_winscope"
            android:title="@string/winscope_tracing"
            android:summary="@string/winscope_tracing_summary"
            android:defaultValue="false" />
        <androidx.preference.SwitchPreference
            android:key="@string/pref_key_apps"
            android:title="@string/trace_debuggable_applications"
            android:defaultValue="true" />
        <androidx.preference.MultiSelectListPreference
            android:key="@string/pref_key_tags"
            android:title="@string/categories"
            style="@style/MultiSelectDialogStyle" />
        <Preference
            android:key="restore_default_tags"
            android:persistent="false"
            android:title="@string/restore_default_categories" />
        <androidx.preference.ListPreference
            android:key="@string/pref_key_buffer_size"
            android:title="@string/buffer_size"
            android:entries="@array/buffer_size_names"
            android:entryValues="@array/buffer_size_values"
            android:defaultValue="@string/default_buffer_size" />
        <androidx.preference.SwitchPreference
            android:key="@string/pref_key_long_traces"
            android:title="@string/long_traces"
            android:summary="@string/long_traces_summary"
            android:defaultValue="false" />
        <androidx.preference.ListPreference
            android:key="@string/pref_key_max_long_trace_size"
            android:title="@string/max_long_trace_size"
            android:dependency="@string/pref_key_long_traces"
            android:entries="@array/long_trace_size_names"
            android:entryValues="@array/long_trace_size_values"
            android:defaultValue="@string/default_long_trace_size" />
        <androidx.preference.ListPreference
            android:key="@string/pref_key_max_long_trace_duration"
            android:title="@string/max_long_trace_duration"
            android:dependency="@string/pref_key_long_traces"
            android:entries="@array/long_trace_duration_names"
            android:entryValues="@array/long_trace_duration_values"
            android:defaultValue="@string/default_long_trace_duration" />
    </androidx.preference.PreferenceCategory>
    <androidx.preference.PreferenceCategory
        android:title="@string/pref_category_heap_dump_settings" >
        <androidx.preference.MultiSelectListPreference
            android:key="@string/pref_key_heap_dump_processes"
            android:title="@string/heap_dump_processes"
            android:summary="@string/heap_dump_processes_summary"
            style="@style/MultiSelectDialogStyle" />
        <Preference
            android:key="clear_heap_dump_processes"
            android:persistent="false"
            android:title="@string/clear_heap_dump_processes" />
        <androidx.preference.SwitchPreference
            android:key="@string/pref_key_continuous_heap_dump"
            android:title="@string/continuous_heap_dump"
            android:summary="@string/continuous_heap_dump_summary"
            android:defaultValue="false" />
        <androidx.preference.ListPreference
            android:key="@string/pref_key_continuous_heap_dump_interval"
            android:title="@string/continuous_heap_dump_interval"
            android:dependency="@string/pref_key_continuous_heap_dump"
            android:entries="@array/continuous_heap_dump_interval_names"
            android:entryValues="@array/continuous_heap_dump_interval_values"
            android:defaultValue="@string/default_continuous_heap_dump_interval" />
    </androidx.preference.PreferenceCategory>
    <androidx.preference.PreferenceCategory
        android:title="@string/pref_category_saved_files" >
        <Preference
            android:key="trace_link_button"
            android:title="@string/link_to_traces"
            android:persistent="false" />
        <Preference
            android:key="clear_saved_files"
            android:summary="@string/clear_saved_files_summary"
            android:persistent="false"
            android:title="@string/clear_saved_files" />
    </androidx.preference.PreferenceCategory>
    <androidx.preference.PreferenceCategory
        android:title="@string/pref_category_misc"
        android:orderingFromXml="true" >
        <androidx.preference.SwitchPreference
            android:key="@string/pref_key_stop_on_bugreport"
            android:summary="@string/stop_on_bugreport_summary"
            android:title="@string/stop_on_bugreport" />
        <androidx.preference.SwitchPreference
            android:key="@string/pref_key_attach_to_bugreport"
            android:summary="@string/attach_to_bug_report_summary"
            android:title="@string/attach_to_bug_report"
            android:defaultValue="true" />
        <androidx.preference.SwitchPreference
            android:key="@string/pref_key_stack_sampling_quick_setting"
            android:title="@string/show_stack_sampling_quick_settings_tile"
            android:defaultValue="false" />
        <androidx.preference.SwitchPreference
            android:key="@string/pref_key_tracing_quick_setting"
            android:title="@string/show_quick_settings_tile"
            android:defaultValue="false" />
    </androidx.preference.PreferenceCategory>
</androidx.preference.PreferenceScreen>
