Skip to content

Commit c887843

Browse files
Romain GuyAndroid (Google) Code Review
authored andcommitted
Merge "New constant used by dev settings" into jb-dev
2 parents de7ff08 + 4b8c4f8 commit c887843

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

core/java/android/view/HardwareRenderer.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public abstract class HardwareRenderer {
7272
* "true", to enable partial invalidates
7373
* "false", to disable partial invalidates
7474
*/
75-
static final String RENDER_DIRTY_REGIONS_PROPERTY = "hwui.render_dirty_regions";
75+
static final String RENDER_DIRTY_REGIONS_PROPERTY = "debug.hwui.render_dirty_regions";
7676

7777
/**
7878
* System property used to enable or disable vsync.
@@ -82,7 +82,7 @@ public abstract class HardwareRenderer {
8282
* "true", to disable vsync
8383
* "false", to enable vsync
8484
*/
85-
static final String DISABLE_VSYNC_PROPERTY = "hwui.disable_vsync";
85+
static final String DISABLE_VSYNC_PROPERTY = "debug.hwui.disable_vsync";
8686

8787
/**
8888
* System property used to enable or disable hardware rendering profiling.
@@ -95,8 +95,10 @@ public abstract class HardwareRenderer {
9595
* Possible values:
9696
* "true", to enable profiling
9797
* "false", to disable profiling
98+
*
99+
* @hide
98100
*/
99-
static final String PROFILE_PROPERTY = "hwui.profile";
101+
public static final String PROFILE_PROPERTY = "debug.hwui.profile";
100102

101103
/**
102104
* System property used to specify the number of frames to be used
@@ -110,7 +112,7 @@ public abstract class HardwareRenderer {
110112
* Possible values:
111113
* "60", to set the limit of frames to 60
112114
*/
113-
static final String PROFILE_MAXFRAMES_PROPERTY = "hwui.profile.maxframes";
115+
static final String PROFILE_MAXFRAMES_PROPERTY = "debug.hwui.profile.maxframes";
114116

115117
/**
116118
* System property used to debug EGL configuration choice.
@@ -119,16 +121,18 @@ public abstract class HardwareRenderer {
119121
* "choice", print the chosen configuration only
120122
* "all", print all possible configurations
121123
*/
122-
static final String PRINT_CONFIG_PROPERTY = "hwui.print_config";
124+
static final String PRINT_CONFIG_PROPERTY = "debug.hwui.print_config";
123125

124126
/**
125127
* Turn on to draw dirty regions every other frame.
126128
*
127129
* Possible values:
128130
* "true", to enable dirty regions debugging
129131
* "false", to disable dirty regions debugging
132+
*
133+
* @hide
130134
*/
131-
static final String DEBUG_DIRTY_REGIONS_PROPERTY = "hwui.debug_dirty_regions";
135+
public static final String DEBUG_DIRTY_REGIONS_PROPERTY = "debug.hwui.show_dirty_regions";
132136

133137
/**
134138
* A process can set this flag to false to prevent the use of hardware

core/java/android/view/View.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,13 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
647647
*/
648648
protected static final String VIEW_LOG_TAG = "View";
649649

650+
/**
651+
* When set to true, apps will draw debugging information about their layouts.
652+
*
653+
* @hide
654+
*/
655+
public static final String DEBUG_LAYOUT_PROPERTY = "debug.layout";
656+
650657
/**
651658
* Used to mark a View that has no ID.
652659
*/
@@ -16903,7 +16910,7 @@ public void setPooled(boolean isPooled) {
1690316910
/**
1690416911
* Show where the margins, bounds and layout bounds are for each view.
1690516912
*/
16906-
final boolean mDebugLayout = SystemProperties.getBoolean("debug.layout", false);
16913+
final boolean mDebugLayout = SystemProperties.getBoolean(DEBUG_LAYOUT_PROPERTY, false);
1690716914

1690816915
/**
1690916916
* Creates a new set of attachment information with the specified

0 commit comments

Comments
 (0)