From 89052d92b3616e28d09e5a114643bf33818115e2 Mon Sep 17 00:00:00 2001 From: Kiyoung Kim Date: Thu, 20 Dec 2018 18:26:10 +0900 Subject: Schematize Display system properties Properties accessed across partitions are now schematized and will become APIs to make explicit interfaces among partitions. Bug: 117924132 Test: m -j Change-Id: I4b49ed7e9b93c20855928ca61f9f128a0aa1d6d1 Merged-In: Id9bbb997669b05b6edb5307d561e766ead19abf1 --- core/java/android/view/View.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'core/java/android/view/View.java') diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index f228773aebf2..efff6d617376 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -74,8 +74,8 @@ import android.os.Parcel; import android.os.Parcelable; import android.os.RemoteException; import android.os.SystemClock; -import android.os.SystemProperties; import android.os.Trace; +import android.sysprop.DisplayProperties; import android.text.InputType; import android.text.TextUtils; import android.util.AttributeSet; @@ -789,14 +789,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, */ protected static final String VIEW_LOG_TAG = "View"; - /** - * When set to true, apps will draw debugging information about their layouts. - * - * @hide - */ - @UnsupportedAppUsage - public static final String DEBUG_LAYOUT_PROPERTY = "debug.layout"; - /** * When set to true, this view will save its attribute data. * @@ -26855,7 +26847,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * Show where the margins, bounds and layout bounds are for each view. */ - boolean mDebugLayout = SystemProperties.getBoolean(DEBUG_LAYOUT_PROPERTY, false); + boolean mDebugLayout = DisplayProperties.debug_layout().orElse(false); /** * Point used to compute visible regions. -- cgit v1.2.3