summaryrefslogtreecommitdiffstats
path: root/test-runner/src
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-08-23 19:48:44 -0700
committerJeff Brown <jeffbrown@google.com>2012-08-31 15:42:45 -0700
commita492c3a7b2c18426fd0cb4d017eacbc368195dc5 (patch)
tree67744a8d91519d997cb761a697600041d74165fa /test-runner/src
parent00453e7a0182b50cf01e65c97650b526284fe084 (diff)
downloadframeworks_base-a492c3a7b2c18426fd0cb4d017eacbc368195dc5.zip
frameworks_base-a492c3a7b2c18426fd0cb4d017eacbc368195dc5.tar.gz
frameworks_base-a492c3a7b2c18426fd0cb4d017eacbc368195dc5.tar.bz2
Initial draft of high-level multi-display APIs.
This patch introduces the ability to create a Context that is bound to a Display. The context gets its configuration and metrics from that display and is able to provide a WindowManager that is bound to the display. To make it easier to use, we also add a new kind of Dialog called a Presentation. Presentation takes care of setting up the context as needed and watches for significant changes in the display configuration. If the display is removed, then the presentation simply dismisses itself. Change-Id: Idc54b4ec84b1ff91505cfb78910cf8cd09696d7d
Diffstat (limited to 'test-runner/src')
-rw-r--r--test-runner/src/android/test/mock/MockContext.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/test-runner/src/android/test/mock/MockContext.java b/test-runner/src/android/test/mock/MockContext.java
index eb1f2d6..9004e10 100644
--- a/test-runner/src/android/test/mock/MockContext.java
+++ b/test-runner/src/android/test/mock/MockContext.java
@@ -40,6 +40,7 @@ import android.os.Handler;
import android.os.Looper;
import android.os.UserHandle;
import android.view.CompatibilityInfoHolder;
+import android.view.Display;
import java.io.File;
import java.io.FileInputStream;
@@ -521,13 +522,18 @@ public class MockContext extends Context {
}
@Override
+ public Context createDisplayContext(Display display) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
public boolean isRestricted() {
throw new UnsupportedOperationException();
}
/** @hide */
@Override
- public CompatibilityInfoHolder getCompatibilityInfo() {
+ public CompatibilityInfoHolder getCompatibilityInfo(int displayId) {
throw new UnsupportedOperationException();
}
}