diff options
| author | Jeff Brown <jeffbrown@google.com> | 2012-08-19 20:18:08 -0700 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2012-08-19 21:21:37 -0700 |
| commit | 848c2dc93b6795e171f3dd6f64ea0be65e2762ca (patch) | |
| tree | a775562a70274c54b893cabf4e72b6228dc302ff /services/java/com/android/server/display/DisplayDeviceInfo.java | |
| parent | 82d53ce283b7c275624d66e9bf20cfe2614af5c4 (diff) | |
| download | frameworks_base-848c2dc93b6795e171f3dd6f64ea0be65e2762ca.zip frameworks_base-848c2dc93b6795e171f3dd6f64ea0be65e2762ca.tar.gz frameworks_base-848c2dc93b6795e171f3dd6f64ea0be65e2762ca.tar.bz2 | |
Stub out display manager service implementation.
Reverting to the previous stub as the display adapter registration
and the logical to physical mapping is not at all what we are going
to need moving forward.
Fixed up the service initialization order so that the display manager
service has a context from the start.
Change-Id: I717f2f1099c7a77180ef207c371ec8329258850a
Diffstat (limited to 'services/java/com/android/server/display/DisplayDeviceInfo.java')
| -rw-r--r-- | services/java/com/android/server/display/DisplayDeviceInfo.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/services/java/com/android/server/display/DisplayDeviceInfo.java b/services/java/com/android/server/display/DisplayDeviceInfo.java index c60c2e9..9c0f964 100644 --- a/services/java/com/android/server/display/DisplayDeviceInfo.java +++ b/services/java/com/android/server/display/DisplayDeviceInfo.java @@ -21,6 +21,12 @@ package com.android.server.display; */ public final class DisplayDeviceInfo { /** + * Gets the name of the display device, which may be derived from + * EDID or other sources. The name may be displayed to the user. + */ + public String name; + + /** * The width of the display in its natural orientation, in pixels. * This value is not affected by display rotation. */ @@ -38,6 +44,7 @@ public final class DisplayDeviceInfo { public float yDpi; public void copyFrom(DisplayDeviceInfo other) { + name = other.name; width = other.width; height = other.height; refreshRate = other.refreshRate; @@ -46,9 +53,10 @@ public final class DisplayDeviceInfo { yDpi = other.yDpi; } + // For debugging purposes @Override public String toString() { - return width + " x " + height + ", " + refreshRate + " fps, " + return "\"" + name + "\": " + width + " x " + height + ", " + refreshRate + " fps, " + "density " + densityDpi + ", " + xDpi + " x " + yDpi + " dpi"; } } |
