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.PreferenceCategory 28 android:title="@string/pref_category_trace_settings" > 29 <androidx.preference.SwitchPreference 30 android:key="@string/pref_key_apps" 31 android:title="@string/trace_debuggable_applications" 32 android:defaultValue="true" /> 33 <androidx.preference.MultiSelectListPreference 34 android:key="@string/pref_key_tags" 35 android:title="@string/categories" 36 style="@style/MultiSelectDialogStyle" /> 37 <Preference 38 android:key="restore_default_tags" 39 android:persistent="false" 40 android:title="@string/restore_default_categories" /> 41 <androidx.preference.ListPreference 42 android:key="@string/pref_key_buffer_size" 43 android:title="@string/buffer_size" 44 android:entries="@array/buffer_size_names" 45 android:entryValues="@array/buffer_size_values" 46 android:defaultValue="@string/default_buffer_size" /> 47 <androidx.preference.SwitchPreference 48 android:key="@string/pref_key_long_traces" 49 android:title="@string/long_traces" 50 android:summary="@string/long_traces_summary" 51 android:defaultValue="false" /> 52 <androidx.preference.ListPreference 53 android:key="@string/pref_key_max_long_trace_size" 54 android:title="@string/max_long_trace_size" 55 android:dependency="@string/pref_key_long_traces" 56 android:entries="@array/long_trace_size_names" 57 android:entryValues="@array/long_trace_size_values" 58 android:defaultValue="@string/default_long_trace_size" /> 59 <androidx.preference.ListPreference 60 android:key="@string/pref_key_max_long_trace_duration" 61 android:title="@string/max_long_trace_duration" 62 android:dependency="@string/pref_key_long_traces" 63 android:entries="@array/long_trace_duration_names" 64 android:entryValues="@array/long_trace_duration_values" 65 android:defaultValue="@string/default_long_trace_duration" /> 66 </androidx.preference.PreferenceCategory> 67 <androidx.preference.PreferenceCategory 68 android:title="@string/pref_category_saved_files" > 69 <Preference 70 android:key="trace_link_button" 71 android:title="@string/link_to_traces" 72 android:persistent="false" /> 73 <Preference 74 android:key="clear_saved_files" 75 android:summary="@string/clear_saved_files_summary" 76 android:persistent="false" 77 android:title="@string/clear_saved_files" /> 78 </androidx.preference.PreferenceCategory> 79 <androidx.preference.PreferenceCategory 80 android:title="@string/pref_category_misc" 81 android:orderingFromXml="true" > 82 <androidx.preference.SwitchPreference 83 android:key="@string/pref_key_stop_on_bugreport" 84 android:summary="@string/stop_on_bugreport_summary" 85 android:title="@string/stop_on_bugreport" /> 86 <androidx.preference.SwitchPreference 87 android:key="@string/pref_key_attach_to_bugreport" 88 android:summary="@string/attach_to_bug_report_summary" 89 android:title="@string/attach_to_bug_report" 90 android:defaultValue="true" /> 91 <androidx.preference.SwitchPreference 92 android:key="@string/pref_key_quick_setting" 93 android:title="@string/show_quick_settings_tile" 94 android:defaultValue="false" /> 95 </androidx.preference.PreferenceCategory> 96</androidx.preference.PreferenceScreen> 97