From 98365d7663cbd82979a5700faf0050220b01084d Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Sun, 19 Aug 2012 20:30:52 -0700 Subject: Refactor for multi-display support. Split WindowManagerImpl into two parts, the WindowManager interface implementation remains where it is but the global communications with the window manager are now handled by the WindowManagerGlobal class. This change greatly simplifies the challenge of having separate WindowManager instances for each Context. Removed WindowManagerImpl.getDefault(). This represents the bulk of this change. Most of the usages of this method were either to perform global functions (now handled by WindowManagerGlobal) or to obtain the default display (now handled by DisplayManager). Explicitly associate each new window with a display and make the Display object available to the View hierarchy. Add stubs for some new display manager API features. Start to split apart the concepts of display id and layer stack. since they operate at different layers of abstraction. While it's true that each logical display uniquely corresponds to a surface flinger layer stack, it is not necessarily the case that they must use the same ids. Added Display.getLayerStack() and started using it in places where it was relatively easy to do. Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61 --- test-runner/src/android/test/mock/MockContext.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test-runner') diff --git a/test-runner/src/android/test/mock/MockContext.java b/test-runner/src/android/test/mock/MockContext.java index 02d0b45..12ad4fe 100644 --- a/test-runner/src/android/test/mock/MockContext.java +++ b/test-runner/src/android/test/mock/MockContext.java @@ -39,6 +39,7 @@ import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.os.UserHandle; +import android.view.CompatibilityInfoHolder; import java.io.File; import java.io.FileInputStream; @@ -487,4 +488,10 @@ public class MockContext extends Context { public boolean isRestricted() { throw new UnsupportedOperationException(); } + + /** @hide */ + @Override + public CompatibilityInfoHolder getCompatibilityInfo() { + throw new UnsupportedOperationException(); + } } -- cgit v1.1