diff options
author | Craig Mautner <cmautner@google.com> | 2012-07-30 12:10:24 -0700 |
---|---|---|
committer | Craig Mautner <cmautner@google.com> | 2012-08-02 08:47:44 -0700 |
commit | 59c009776dae5ccbdfb93d7151ff2065ca049dc3 (patch) | |
tree | 45ffbc8d93e8f245ed1c78ffa64b8bcc5ae59355 /cmds/am | |
parent | fa14d824d235c33b137a429c3eb6818f273407ab (diff) | |
download | frameworks_base-59c009776dae5ccbdfb93d7151ff2065ca049dc3.zip frameworks_base-59c009776dae5ccbdfb93d7151ff2065ca049dc3.tar.gz frameworks_base-59c009776dae5ccbdfb93d7151ff2065ca049dc3.tar.bz2 |
Introduce multiple displays with DisplayContent.
Fix a couple of bugs that turned up.
Remove touch/focus from display. Add iterators for access.
Respond to comments. Remove TODOs, and some deviceId parameters.
Change-Id: Idcdb4f1979aa7b14634d450fd0333d6eff26994d
Diffstat (limited to 'cmds/am')
-rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index 54b5836..f42fd2a 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -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) { } |