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