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 <Preference 30 android:key="restore_default_tags" 31 android:persistent="false" 32 android:title="@string/restore_default_categories" /> 33 <androidx.preference.ListPreference 34 android:key="@string/pref_key_buffer_size" 35 android:title="@string/buffer_size" 36 android:entries="@array/buffer_size_names" 37 android:entryValues="@array/buffer_size_values" 38 android:defaultValue="@string/default_buffer_size"/> 39 <Preference 40 android:key="clear_saved_traces" 41 android:persistent="false" 42 android:title="@string/clear_saved_traces" /> 43 <androidx.preference.PreferenceCategory 44 android:key="long_trace_category" 45 android:orderingFromXml="true" > 46 <androidx.preference.SwitchPreference 47 android:key="@string/pref_key_long_traces" 48 android:title="@string/long_traces" 49 android:summary="@string/long_traces_summary" 50 android:defaultValue="false" /> 51 <androidx.preference.ListPreference 52 android:key="@string/pref_key_max_long_trace_size" 53 android:title="@string/max_long_trace_size" 54 android:dependency="@string/pref_key_long_traces" 55 android:entries="@array/long_trace_size_names" 56 android:entryValues="@array/long_trace_size_values" 57 android:defaultValue="@string/default_long_trace_size"/> 58 <androidx.preference.ListPreference 59 android:key="@string/pref_key_max_long_trace_duration" 60 android:title="@string/max_long_trace_duration" 61 android:dependency="@string/pref_key_long_traces" 62 android:entries="@array/long_trace_duration_names" 63 android:entryValues="@array/long_trace_duration_values" 64 android:defaultValue="@string/default_long_trace_duration"/> 65 </androidx.preference.PreferenceCategory> 66 <androidx.preference.PreferenceCategory 67 android:orderingFromXml="true" > 68 <androidx.preference.SwitchPreference 69 android:key="@string/pref_key_quick_setting" 70 android:title="@string/show_quick_settings_tile" 71 android:defaultValue="false" /> 72 </androidx.preference.PreferenceCategory> 73</androidx.preference.PreferenceScreen> 74