summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-05-07 17:52:07 -0700
committerDianne Hackborn <hackbod@google.com>2012-05-08 15:42:53 -0700
commit34481b9cd4a589d35f59b1e504cf02f4595f0d92 (patch)
tree428c7cb3b0dadb9f626ee5a0d85a296360fe62f4 /res
parentfbffd0c98203c63af85a3fc6d85660b21c211bfe (diff)
downloadpackages_apps_Settings-34481b9cd4a589d35f59b1e504cf02f4595f0d92.zip
packages_apps_Settings-34481b9cd4a589d35f59b1e504cf02f4595f0d92.tar.gz
packages_apps_Settings-34481b9cd4a589d35f59b1e504cf02f4595f0d92.tar.bz2
Settings to control traces.
Also some re-organization of the debug options, and check for the case where the global debug setting is turned off but there are some debug options turned on (in which case we just switch to the global option being on). Change-Id: I710e3a009e2be9c7c1a1879a853ac736abf1d8d8
Diffstat (limited to 'res')
-rw-r--r--res/values/strings.xml42
-rw-r--r--res/xml/development_prefs.xml79
2 files changed, 77 insertions, 44 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 92a3a9d..056af6b 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -3576,8 +3576,14 @@
<string name="wait_for_debugger_summary">Debugged application waits for debugger to
attach before executing</string>
- <!-- Preference category for user interface debugging development settings. [CHAR LIMIT=25] -->
- <string name="debug_ui_category">User interface</string>
+ <!-- Preference category for input debugging development settings. [CHAR LIMIT=25] -->
+ <string name="debug_input_category">Input</string>
+
+ <!-- Preference category for drawing debugging development settings. [CHAR LIMIT=25] -->
+ <string name="debug_drawing_category">Drawing</string>
+
+ <!-- Preference category for monitoring debugging development settings. [CHAR LIMIT=25] -->
+ <string name="debug_monitoring_category">Monitoring</string>
<!-- UI debug setting: always enable strict mode? [CHAR LIMIT=25] -->
<string name="strict_mode">Strict mode enabled</string>
@@ -3595,20 +3601,32 @@
<!-- UI debug setting: show touches location summary [CHAR LIMIT=50] -->
<string name="show_touches_summary">Show visual feedback for touches</string>
- <!-- UI debug setting: show where screen updates happen? [CHAR LIMIT=25] -->
- <string name="show_screen_updates">Show screen updates</string>
- <!-- UI debug setting: show screen updates summary [CHAR LIMIT=50] -->
- <string name="show_screen_updates_summary">Flash areas of screen when they update</string>
+ <!-- UI debug setting: show where surface updates happen? [CHAR LIMIT=25] -->
+ <string name="show_screen_updates">Show surface updates</string>
+ <!-- UI debug setting: show surface updates summary [CHAR LIMIT=50] -->
+ <string name="show_screen_updates_summary">Flash entire window surfaces when they update</string>
- <!-- UI debug setting: show where screen updates happen with GPU rendering? [CHAR LIMIT=25] -->
- <string name="show_hw_screen_updates">Show GPU screen updates</string>
+ <!-- UI debug setting: show where window updates happen with GPU rendering? [CHAR LIMIT=25] -->
+ <string name="show_hw_screen_updates">Show GPU view updates</string>
<!-- UI debug setting: show GPU rendering screen updates summary [CHAR LIMIT=50] -->
- <string name="show_hw_screen_updates_summary">Flash areas of screen when they update with the GPU</string>
+ <string name="show_hw_screen_updates_summary">Flash views inside windows when drawn with the GPU</string>
<!-- UI debug setting: disable use of overlays? [CHAR LIMIT=25] -->
- <string name="disable_overlays">Disable overlays</string>
+ <string name="disable_overlays">Disable HW overlays</string>
<!-- UI debug setting: disable use of overlays summary [CHAR LIMIT=50] -->
- <string name="disable_overlays_summary">Don\'t use overlays for screen compositing</string>
+ <string name="disable_overlays_summary">Always use GPU for screen compositing</string>
+
+ <!-- UI debug setting: enable low-level traces? [CHAR LIMIT=25] -->
+ <string name="enable_traces_title">Enable traces</string>
+ <!-- UI debug setting: title for dialog to enable low-level traces [CHAR LIMIT=25] -->
+ <string name="enable_traces_dialog_title">Select enabled traces</string>
+
+ <!-- UI debug setting: enable low-level traces, none enabled summary [CHAR LIMIT=NONE] -->
+ <string name="enable_traces_summary_none">No traces currently enabled</string>
+ <!-- UI debug setting: enable low-level traces, some number enabled summary [CHAR LIMIT=NONE] -->
+ <string name="enable_traces_summary_num"><xliff:g id="num">%1$d</xliff:g> traces currently enabled</string>
+ <!-- UI debug setting: enable low-level traces, all enabled summary [CHAR LIMIT=NONE] -->
+ <string name="enable_traces_summary_all">All traces currently enabled</string>
<!-- UI debug setting: show layout bounds information [CHAR LIMIT=25] -->
<string name="debug_layout">Show layout bounds</string>
@@ -3623,7 +3641,7 @@
<!-- UI debug setting: force hardware acceleration to render apps [CHAR LIMIT=25] -->
<string name="force_hw_ui">Force GPU rendering</string>
<!-- UI debug setting: force hardware acceleration summary [CHAR LIMIT=50] -->
- <string name="force_hw_ui_summary">Use 2D hardware acceleration in applications</string>
+ <string name="force_hw_ui_summary">Force use of GPU for 2d drawing</string>
<!-- UI debug setting: profile time taken by hardware acceleration to render apps [CHAR LIMIT=25] -->
<string name="track_frame_time">Profile GPU rendering</string>
diff --git a/res/xml/development_prefs.xml b/res/xml/development_prefs.xml
index ab8aad3..f33dd38 100644
--- a/res/xml/development_prefs.xml
+++ b/res/xml/development_prefs.xml
@@ -70,23 +70,23 @@
</PreferenceCategory>
- <PreferenceCategory android:key="debug_ui_category"
- android:title="@string/debug_ui_category">
+ <PreferenceCategory android:key="debug_input_category"
+ android:title="@string/debug_input_category">
<CheckBoxPreference
- android:key="strict_mode"
- android:title="@string/strict_mode"
- android:summary="@string/strict_mode_summary"/>
+ android:key="show_touches"
+ android:title="@string/show_touches"
+ android:summary="@string/show_touches_summary"/>
<CheckBoxPreference
android:key="pointer_location"
android:title="@string/pointer_location"
android:summary="@string/pointer_location_summary"/>
- <CheckBoxPreference
- android:key="show_touches"
- android:title="@string/show_touches"
- android:summary="@string/show_touches_summary"/>
+ </PreferenceCategory>
+
+ <PreferenceCategory android:key="debug_drawing_category"
+ android:title="@string/debug_drawing_category">
<CheckBoxPreference
android:key="debug_layout"
@@ -94,34 +94,14 @@
android:summary="@string/debug_layout_summary"/>
<CheckBoxPreference
- android:key="show_screen_updates"
- android:title="@string/show_screen_updates"
- android:summary="@string/show_screen_updates_summary"/>
-
- <CheckBoxPreference
- android:key="disable_overlays"
- android:title="@string/disable_overlays"
- android:summary="@string/disable_overlays_summary"/>
-
- <CheckBoxPreference
- android:key="show_cpu_usage"
- android:title="@string/show_cpu_usage"
- android:summary="@string/show_cpu_usage_summary"/>
-
- <CheckBoxPreference
- android:key="force_hw_ui"
- android:title="@string/force_hw_ui"
- android:summary="@string/force_hw_ui_summary"/>
-
- <CheckBoxPreference
android:key="show_hw_screen_udpates"
android:title="@string/show_hw_screen_updates"
android:summary="@string/show_hw_screen_updates_summary"/>
<CheckBoxPreference
- android:key="track_frame_time"
- android:title="@string/track_frame_time"
- android:summary="@string/track_frame_time_summary"/>
+ android:key="show_screen_updates"
+ android:title="@string/show_screen_updates"
+ android:summary="@string/show_screen_updates_summary"/>
<ListPreference
android:key="window_animation_scale"
@@ -144,6 +124,41 @@
android:entries="@array/animator_duration_scale_entries"
android:entryValues="@array/animator_duration_scale_values" />
+ <CheckBoxPreference
+ android:key="disable_overlays"
+ android:title="@string/disable_overlays"
+ android:summary="@string/disable_overlays_summary"/>
+
+ <CheckBoxPreference
+ android:key="force_hw_ui"
+ android:title="@string/force_hw_ui"
+ android:summary="@string/force_hw_ui_summary"/>
+
+ </PreferenceCategory>
+
+ <PreferenceCategory android:key="debug_monitoring_category"
+ android:title="@string/debug_monitoring_category">
+
+ <CheckBoxPreference
+ android:key="strict_mode"
+ android:title="@string/strict_mode"
+ android:summary="@string/strict_mode_summary"/>
+
+ <CheckBoxPreference
+ android:key="show_cpu_usage"
+ android:title="@string/show_cpu_usage"
+ android:summary="@string/show_cpu_usage_summary"/>
+
+ <CheckBoxPreference
+ android:key="track_frame_time"
+ android:title="@string/track_frame_time"
+ android:summary="@string/track_frame_time_summary"/>
+
+ <MultiCheckPreference
+ android:key="enable_traces"
+ android:title="@string/enable_traces_title"
+ android:dialogTitle="@string/enable_traces_dialog_title" />
+
</PreferenceCategory>
<PreferenceCategory android:key="debug_applications_category"