New constant used by dev settings

Change-Id: I42f103ae8a9b9f051367c72131f0b216e200f6e0
diff --git a/core/java/android/view/HardwareRenderer.java b/core/java/android/view/HardwareRenderer.java
index b9295c3..c0771c5 100644
--- a/core/java/android/view/HardwareRenderer.java
+++ b/core/java/android/view/HardwareRenderer.java
@@ -72,7 +72,7 @@
      * "true", to enable partial invalidates
      * "false", to disable partial invalidates
      */
-    static final String RENDER_DIRTY_REGIONS_PROPERTY = "hwui.render_dirty_regions";
+    static final String RENDER_DIRTY_REGIONS_PROPERTY = "debug.hwui.render_dirty_regions";
     
     /**
      * System property used to enable or disable vsync.
@@ -82,7 +82,7 @@
      * "true", to disable vsync
      * "false", to enable vsync
      */
-    static final String DISABLE_VSYNC_PROPERTY = "hwui.disable_vsync";
+    static final String DISABLE_VSYNC_PROPERTY = "debug.hwui.disable_vsync";
 
     /**
      * System property used to enable or disable hardware rendering profiling.
@@ -95,8 +95,10 @@
      * Possible values:
      * "true", to enable profiling
      * "false", to disable profiling
+     * 
+     * @hide
      */
-    static final String PROFILE_PROPERTY = "hwui.profile";
+    public static final String PROFILE_PROPERTY = "debug.hwui.profile";
 
     /**
      * System property used to specify the number of frames to be used
@@ -110,7 +112,7 @@
      * Possible values:
      * "60", to set the limit of frames to 60
      */
-    static final String PROFILE_MAXFRAMES_PROPERTY = "hwui.profile.maxframes";
+    static final String PROFILE_MAXFRAMES_PROPERTY = "debug.hwui.profile.maxframes";
 
     /**
      * System property used to debug EGL configuration choice.
@@ -119,7 +121,7 @@
      * "choice", print the chosen configuration only
      * "all", print all possible configurations
      */
-    static final String PRINT_CONFIG_PROPERTY = "hwui.print_config";
+    static final String PRINT_CONFIG_PROPERTY = "debug.hwui.print_config";
 
     /**
      * Turn on to draw dirty regions every other frame.
@@ -127,8 +129,10 @@
      * Possible values:
      * "true", to enable dirty regions debugging
      * "false", to disable dirty regions debugging
+     * 
+     * @hide
      */
-    static final String DEBUG_DIRTY_REGIONS_PROPERTY = "hwui.debug_dirty_regions";
+    public static final String DEBUG_DIRTY_REGIONS_PROPERTY = "debug.hwui.show_dirty_regions";
     
     /**
      * A process can set this flag to false to prevent the use of hardware
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index b65bf8f..461e7f1 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -648,6 +648,13 @@
     protected static final String VIEW_LOG_TAG = "View";
 
     /**
+     * When set to true, apps will draw debugging information about their layouts. 
+     *
+     * @hide
+     */
+    public static final String DEBUG_LAYOUT_PROPERTY = "debug.layout";
+
+    /**
      * Used to mark a View that has no ID.
      */
     public static final int NO_ID = -1;
@@ -16903,7 +16910,7 @@
         /**
          * Show where the margins, bounds and layout bounds are for each view.
          */
-        final boolean mDebugLayout = SystemProperties.getBoolean("debug.layout", false);
+        final boolean mDebugLayout = SystemProperties.getBoolean(DEBUG_LAYOUT_PROPERTY, false);
 
         /**
          * Creates a new set of attachment information with the specified