Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 437a0fbd authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Introduce multiple displays with DisplayContent." into jb-mr1-dev

parents a7ce1551 59c00977
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.SystemProperties;
import android.util.AndroidException;
import android.view.Display;
import android.view.IWindowManager;

import java.io.BufferedReader;
@@ -1117,9 +1118,10 @@ public class Am {

        try {
            if (m >= 0 && n >= 0) {
                wm.setForcedDisplaySize(m, n);
                // TODO(multidisplay): For now Configuration only applies to main screen.
                wm.setForcedDisplaySize(Display.DEFAULT_DISPLAY, m, n);
            } else {
                wm.clearForcedDisplaySize();
                wm.clearForcedDisplaySize(Display.DEFAULT_DISPLAY);
            }
        } catch (RemoteException e) {
        }
+3 −3
Original line number Diff line number Diff line
@@ -57,8 +57,8 @@ interface IWindowManager
            in IInputContext inputContext);
    boolean inputMethodClientHasFocus(IInputMethodClient client);

    void setForcedDisplaySize(int longDimen, int shortDimen);
    void clearForcedDisplaySize();
    void setForcedDisplaySize(int displayId, int longDimen, int shortDimen);
    void clearForcedDisplaySize(int displayId);

    // Is the device configured to have a full system bar for larger screens?
    boolean hasSystemNavBar();
@@ -184,7 +184,7 @@ interface IWindowManager
	/**
	 * Create a screenshot of the applications currently displayed.
	 */
	Bitmap screenshotApplications(IBinder appToken, int maxWidth, int maxHeight);
	Bitmap screenshotApplications(IBinder appToken, int displayId, int maxWidth, int maxHeight);

    /**
     * Called by the status bar to notify Views of changes to System UI visiblity.
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ import android.util.DisplayMetrics;
import android.util.EventLog;
import android.util.Log;
import android.util.Slog;
import android.view.Display;
import android.view.WindowManager;

import com.android.internal.os.BinderInternal;
+4 −2
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ import android.os.UserId;
import android.util.EventLog;
import android.util.Log;
import android.util.Slog;
import android.view.Display;
import android.view.WindowManagerPolicy;

import java.io.IOException;
@@ -919,7 +920,8 @@ final class ActivityStack {
        }

        if (w > 0) {
            return mService.mWindowManager.screenshotApplications(who.appToken, w, h);
            return mService.mWindowManager.screenshotApplications(who.appToken,
                    Display.DEFAULT_DISPLAY, w, h);
        }
        return null;
    }
+2 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import com.android.server.wm.WindowManagerService;

import android.graphics.Point;
import android.util.Slog;
import android.view.Display;

/**
 * Activity manager code dealing with processes.
@@ -146,7 +147,7 @@ class ProcessList {
    void applyDisplaySize(WindowManagerService wm) {
        if (!mHaveDisplaySize) {
            Point p = new Point();
            wm.getInitialDisplaySize(p);
            wm.getInitialDisplaySize(Display.DEFAULT_DISPLAY, p);
            if (p.x != 0 && p.y != 0) {
                updateOomLevels(p.x, p.y, true);
                mHaveDisplaySize = true;
Loading