1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2015 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License 16 --> 17 18<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> 19 <androidx.preference.SwitchPreference 20 android:key="@string/pref_key_tracing_on" 21 android:title="@string/record_trace" 22 android:summary="@string/record_trace_summary" /> 23 <androidx.preference.SwitchPreference 24 android:key="@string/pref_key_stack_sampling_on" 25 android:title="@string/record_stack_samples" 26 android:summary="@string/record_stack_samples_summary" /> 27 <androidx.preference.SwitchPreference 28 android:key="@string/pref_key_heap_dump_on" 29 android:title="@string/record_heap_dump" 30 android:summary="@string/record_heap_dump_summary_disabled" /> 31 <androidx.preference.PreferenceCategory 32 android:title="@string/pref_category_trace_settings" > 33 <androidx.preference.SwitchPreference 34 android:key="@string/pref_key_winscope" 35 android:title="@string/winscope_tracing" 36 android:summary="@string/winscope_tracing_summary" 37 android:defaultValue="false" /> 38 <androidx.preference.SwitchPreference 39 android:key="@string/pref_key_apps" 40 android:title="@string/trace_debuggable_applications" 41 android:defaultValue="true" /> 42 <androidx.preference.MultiSelectListPreference 43 android:key="@string/pref_key_tags" 44 android:title="@string/categories" 45 style="@style/MultiSelectDialogStyle" /> 46 <Preference 47 android:key="restore_default_tags" 48 android:persistent="false" 49 android:title="@string/restore_default_categories" /> 50 <androidx.preference.ListPreference 51 android:key="@string/pref_key_buffer_size" 52 android:title="@string/buffer_size" 53 android:entries="@array/buffer_size_names" 54 android:entryValues="@array/buffer_size_values" 55 android:defaultValue="@string/default_buffer_size" /> 56 <androidx.preference.SwitchPreference 57 android:key="@string/pref_key_long_traces" 58 android:title="@string/long_traces" 59 android:summary="@string/long_traces_summary" 60 android:defaultValue="false" /> 61 <androidx.preference.ListPreference 62 android:key="@string/pref_key_max_long_trace_size" 63 android:title="@string/max_long_trace_size" 64 android:dependency="@string/pref_key_long_traces" 65 android:entries="@array/long_trace_size_names" 66 android:entryValues="@array/long_trace_size_values" 67 android:defaultValue="@string/default_long_trace_size" /> 68 <androidx.preference.ListPreference 69 android:key="@string/pref_key_max_long_trace_duration" 70 android:title="@string/max_long_trace_duration" 71 android:dependency="@string/pref_key_long_traces" 72 android:entries="@array/long_trace_duration_names" 73 android:entryValues="@array/long_trace_duration_values" 74 android:defaultValue="@string/default_long_trace_duration" /> 75 </androidx.preference.PreferenceCategory> 76 <androidx.preference.PreferenceCategory 77 android:title="@string/pref_category_heap_dump_settings" > 78 <androidx.preference.MultiSelectListPreference 79 android:key="@string/pref_key_heap_dump_processes" 80 android:title="@string/heap_dump_processes" 81 android:summary="@string/heap_dump_processes_summary" 82 style="@style/MultiSelectDialogStyle" /> 83 <Preference 84 android:key="clear_heap_dump_processes" 85 android:persistent="false" 86 android:title="@string/clear_heap_dump_processes" /> 87 <androidx.preference.SwitchPreference 88 android:key="@string/pref_key_continuous_heap_dump" 89 android:title="@string/continuous_heap_dump" 90 android:summary="@string/continuous_heap_dump_summary" 91 android:defaultValue="false" /> 92 <androidx.preference.ListPreference 93 android:key="@string/pref_key_continuous_heap_dump_interval" 94 android:title="@string/continuous_heap_dump_interval" 95 android:dependency="@string/pref_key_continuous_heap_dump" 96 android:entries="@array/continuous_heap_dump_interval_names" 97 android:entryValues="@array/continuous_heap_dump_interval_values" 98 android:defaultValue="@string/default_continuous_heap_dump_interval" /> 99 </androidx.preference.PreferenceCategory> 100 <androidx.preference.PreferenceCategory 101 android:title="@string/pref_category_saved_files" > 102 <Preference 103 android:key="trace_link_button" 104 android:title="@string/link_to_traces" 105 android:persistent="false" /> 106 <Preference 107 android:key="clear_saved_files" 108 android:summary="@string/clear_saved_files_summary" 109 android:persistent="false" 110 android:title="@string/clear_saved_files" /> 111 </androidx.preference.PreferenceCategory> 112 <androidx.preference.PreferenceCategory 113 android:title="@string/pref_category_misc" 114 android:orderingFromXml="true" > 115 <androidx.preference.SwitchPreference 116 android:key="@string/pref_key_stop_on_bugreport" 117 android:summary="@string/stop_on_bugreport_summary" 118 android:title="@string/stop_on_bugreport" /> 119 <androidx.preference.SwitchPreference 120 android:key="@string/pref_key_attach_to_bugreport" 121 android:summary="@string/attach_to_bug_report_summary" 122 android:title="@string/attach_to_bug_report" 123 android:defaultValue="true" /> 124 <androidx.preference.SwitchPreference 125 android:key="@string/pref_key_stack_sampling_quick_setting" 126 android:title="@string/show_stack_sampling_quick_settings_tile" 127 android:defaultValue="false" /> 128 <androidx.preference.SwitchPreference 129 android:key="@string/pref_key_tracing_quick_setting" 130 android:title="@string/show_quick_settings_tile" 131 android:defaultValue="false" /> 132 </androidx.preference.PreferenceCategory> 133</androidx.preference.PreferenceScreen> 134