Added autofill options on Developer Options screen.

Test: manual verification
Test: atest AutofillResetOptionsPreferenceControllerTest\
            AutofillLoggingLevelPreferenceControllerTest
Test: runtest --path packages/apps/Settings/tests/unit/src/com/android/settings/core/PreferenceControllerContractTest.java
Fixes: 65700540

Change-Id: I6b35fbf549529f4d97df164ce3fb6d641ee37650
This commit is contained in:
Felipe Leme
2018-07-24 17:24:40 -07:00
parent f24b749ec0
commit 9bf591b832
15 changed files with 839 additions and 0 deletions

View File

@@ -1119,4 +1119,18 @@
<item>0</item>
</string-array>
<!-- Titles for autofill logging level preference. [CHAR LIMIT=50] -->
<string-array name="autofill_logging_level_entries">
<item>Off</item>
<item>Debug</item>
<item>Verbose</item>
</string-array>
<!-- Values for autofill logging level preference. -->
<string-array name="autofill_logging_level_values" translatable="false" >
<item>0</item> <!-- AutofillManager.NO_LOGGING -->
<item>2</item> <!-- AutofillManager.FLAG_ADD_CLIENT_DEBUG -->
<item>4</item> <!-- AutofillManager.FLAG_ADD_CLIENT_VERBOSE -->
</string-array>
</resources>

View File

@@ -9861,6 +9861,24 @@
]]>
</string>
<!-- Preference category for autofill debugging development settings. [CHAR LIMIT=25] -->
<string name="debug_autofill_category">Autofill</string>
<!-- UI debug setting: logging level for Android Autofill [CHAR LIMIT=25] -->
<string name="autofill_logging_level_title">Logging level</string>
<!-- Title of developer options to set the maximum number of partitions per session [CHAR LIMIT=60]-->
<string name="autofill_max_partitions">Max partitions</string>
<!-- Title of developer options to set the maximum number of visible datasets in the autofill UX [CHAR LIMIT=60]-->
<string name="autofill_max_visible_datasets">Max visible datasets</string>
<!-- Reset all autofill developer options to their default values.[CHAR_LIMIT=60] -->
<string name="autofill_reset_developer_options">Reset to default values</string>
<!-- Toast message shown when autofill_reset_developer_options has been performed. [CHAR_LIMIT=none] -->
<string name="autofill_reset_developer_options_complete">Autofill developer options have been reset</string>
<!-- Name of setting for switching device theme [CHAR LIMIT=60] -->
<string name="device_theme">Device theme</string>
<!-- Name of default device theme [CHAR LIMIT=60] -->

View File

@@ -506,4 +506,29 @@
android:title="@string/reset_shortcut_manager_throttling" />
</PreferenceCategory>
<com.android.settings.development.autofill.AutofillPreferenceCategory
android:key="debug_autofill_category"
android:title="@string/debug_autofill_category"
android:order="1100">
<ListPreference
android:key="autofill_logging_level"
android:title="@string/autofill_logging_level_title"
android:entries="@array/autofill_logging_level_entries"
android:entryValues="@array/autofill_logging_level_values" />
<com.android.settings.development.autofill.AutofillMaxPartitionsPreference
android:key="autofill_max_partitions"
android:title="@string/autofill_max_partitions" />
<com.android.settings.development.autofill.AutofillVisibleDatasetsPreference
android:key="autofill_visible_datasets"
android:title="@string/autofill_max_visible_datasets" />
<Preference
android:key="autofill_reset_developer_options"
android:title="@string/autofill_reset_developer_options" />
</com.android.settings.development.autofill.AutofillPreferenceCategory>
</PreferenceScreen>