diff options
author | Wale Ogunwale <ogunwale@google.com> | 2015-06-05 16:55:33 -0700 |
---|---|---|
committer | Wale Ogunwale <ogunwale@google.com> | 2015-06-06 11:26:33 -0700 |
commit | 26698514fbac587675221149aca98f3ea6414d55 (patch) | |
tree | ab85e311e5ccdd38730bf2f79d40c6d8247c4ae6 /core/java/android/hardware/display | |
parent | 18d669dc597dc4997ee8d96f38cf138ae31a0cdf (diff) | |
download | frameworks_base-26698514fbac587675221149aca98f3ea6414d55.zip frameworks_base-26698514fbac587675221149aca98f3ea6414d55.tar.gz frameworks_base-26698514fbac587675221149aca98f3ea6414d55.tar.bz2 |
Use DisplayAdjustments when creating display in ResourceManager
We were previous only taking the Configuration into account when
creating Display objects in the ResourceManager. This led to the
Display object not containing critical CompatibilityInfo. We now
take the entire DisplayAdjustment into account.
Bug: 21637615
Change-Id: Ide5ff49bfa12791ad17993764f312836216b1dd8
Diffstat (limited to 'core/java/android/hardware/display')
-rw-r--r-- | core/java/android/hardware/display/DisplayManagerGlobal.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/core/java/android/hardware/display/DisplayManagerGlobal.java b/core/java/android/hardware/display/DisplayManagerGlobal.java index d9f9c1e..21ba7bd 100644 --- a/core/java/android/hardware/display/DisplayManagerGlobal.java +++ b/core/java/android/hardware/display/DisplayManagerGlobal.java @@ -192,17 +192,6 @@ public final class DisplayManagerGlobal { return getCompatibleDisplay(displayId, DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); } - /** - * Gets information about a logical display without applying any compatibility metrics. - * - * @param displayId The logical display id. - * @param configuration the configuration. - * @return The display object, or null if there is no display with the given id. - */ - public Display getRealDisplay(int displayId, Configuration configuration) { - return getCompatibleDisplay(displayId, new DisplayAdjustments(configuration)); - } - public void registerDisplayListener(DisplayListener listener, Handler handler) { if (listener == null) { throw new IllegalArgumentException("listener must not be null"); |