Xml文件  |  74行  |  3.42 KB

<?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" />
    <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" />
    <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"/>
    <Preference
        android:key="clear_saved_traces"
        android:persistent="false"
        android:title="@string/clear_saved_traces" />
    <androidx.preference.PreferenceCategory
        android:key="long_trace_category"
        android:orderingFromXml="true" >
        <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:orderingFromXml="true" >
        <androidx.preference.SwitchPreference
            android:key="@string/pref_key_quick_setting"
            android:title="@string/show_quick_settings_tile"
            android:defaultValue="false" />
    </androidx.preference.PreferenceCategory>
</androidx.preference.PreferenceScreen>