summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorP.Y. Laligand <pylaligand@google.com>2015-05-11 15:02:07 -0700
committerP.Y. Laligand <pylaligand@google.com>2015-05-11 15:02:07 -0700
commitb3b9eb3cfc5b3b3609a5d01258315798b38a5cf9 (patch)
tree9d1d777fceb08094b7accab63c4f1b135e687a2e /api
parented1ef7d4eb8934f6940a2e828ebd0e6878e1af89 (diff)
downloadframeworks_base-b3b9eb3cfc5b3b3609a5d01258315798b38a5cf9.zip
frameworks_base-b3b9eb3cfc5b3b3609a5d01258315798b38a5cf9.tar.gz
frameworks_base-b3b9eb3cfc5b3b3609a5d01258315798b38a5cf9.tar.bz2
DO NOT MERGE - Display mode switches.
Knowledge of the various modes of a display is now available to apps, and they can request a specific mode for their windows. b/18241736 Change-Id: I8eb16ff713e878512faca3ca6662254f08a9be7f (cherry picked from commit 5c7773d86484aac5737667c604bd8fe8150c2136)
Diffstat (limited to 'api')
-rw-r--r--api/current.txt17
-rw-r--r--api/system-current.txt17
2 files changed, 30 insertions, 4 deletions
diff --git a/api/current.txt b/api/current.txt
index f1865d5..8ed10e2 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -34621,6 +34621,7 @@ package android.view {
method public int getFlags();
method public deprecated int getHeight();
method public void getMetrics(android.util.DisplayMetrics);
+ method public android.view.Display.Mode getMode();
method public java.lang.String getName();
method public deprecated int getOrientation();
method public deprecated int getPixelFormat();
@@ -34632,7 +34633,8 @@ package android.view {
method public int getRotation();
method public void getSize(android.graphics.Point);
method public int getState();
- method public float[] getSupportedRefreshRates();
+ method public android.view.Display.Mode[] getSupportedModes();
+ method public deprecated float[] getSupportedRefreshRates();
method public deprecated int getWidth();
method public boolean isValid();
field public static final int DEFAULT_DISPLAY = 0; // 0x0
@@ -34647,6 +34649,16 @@ package android.view {
field public static final int STATE_UNKNOWN = 0; // 0x0
}
+ public static final class Display.Mode implements android.os.Parcelable {
+ method public int describeContents();
+ method public int getModeId();
+ method public int getPhysicalHeight();
+ method public int getPhysicalWidth();
+ method public float getRefreshRate();
+ method public void writeToParcel(android.os.Parcel, int);
+ field public static final android.os.Parcelable.Creator<android.view.Display.Mode> CREATOR;
+ }
+
public class DragEvent implements android.os.Parcelable {
method public int describeContents();
method public int getAction();
@@ -37437,7 +37449,8 @@ package android.view {
field public float horizontalWeight;
field public deprecated int memoryType;
field public java.lang.String packageName;
- field public float preferredRefreshRate;
+ field public int preferredDisplayModeId;
+ field public deprecated float preferredRefreshRate;
field public int rotationAnimation;
field public float screenBrightness;
field public int screenOrientation;
diff --git a/api/system-current.txt b/api/system-current.txt
index aacb9a0..0a4d5ec 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -36832,6 +36832,7 @@ package android.view {
method public int getFlags();
method public deprecated int getHeight();
method public void getMetrics(android.util.DisplayMetrics);
+ method public android.view.Display.Mode getMode();
method public java.lang.String getName();
method public deprecated int getOrientation();
method public deprecated int getPixelFormat();
@@ -36843,7 +36844,8 @@ package android.view {
method public int getRotation();
method public void getSize(android.graphics.Point);
method public int getState();
- method public float[] getSupportedRefreshRates();
+ method public android.view.Display.Mode[] getSupportedModes();
+ method public deprecated float[] getSupportedRefreshRates();
method public deprecated int getWidth();
method public boolean isValid();
field public static final int DEFAULT_DISPLAY = 0; // 0x0
@@ -36858,6 +36860,16 @@ package android.view {
field public static final int STATE_UNKNOWN = 0; // 0x0
}
+ public static final class Display.Mode implements android.os.Parcelable {
+ method public int describeContents();
+ method public int getModeId();
+ method public int getPhysicalHeight();
+ method public int getPhysicalWidth();
+ method public float getRefreshRate();
+ method public void writeToParcel(android.os.Parcel, int);
+ field public static final android.os.Parcelable.Creator<android.view.Display.Mode> CREATOR;
+ }
+
public class DragEvent implements android.os.Parcelable {
method public int describeContents();
method public int getAction();
@@ -39651,7 +39663,8 @@ package android.view {
field public float horizontalWeight;
field public deprecated int memoryType;
field public java.lang.String packageName;
- field public float preferredRefreshRate;
+ field public int preferredDisplayModeId;
+ field public deprecated float preferredRefreshRate;
field public int rotationAnimation;
field public float screenBrightness;
field public int screenOrientation;