summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2018-08-11 00:50:39 +0800
committerRiddle Hsu <riddlehsu@google.com>2018-08-15 20:51:57 +0800
commita4d6fa229c71df3f0449f7bc8ce3264fd7ea6aab (patch)
tree2809541832a95eea72d91cf02de9ca66ef2ccb75 /core/java/android
parentb4dac16057bb5b724392240e13a5281ed5293e04 (diff)
Get gravity of menu panel by display
Also: - Reorganize import of DisplayContent and PhoneWindow. - Fix DisplayContent leakage in wm test. (SurfaceFlinger abort in createLayer -> addClientLayer with "Suspected IGBP leak: 4097 IGBPs (4096 max)") Bug: b/111362047 Test: atest FrameworksServicesTests:DisplayContentTests# \ testGetPreferredOptionsPanelGravityFromDifferentDisplays Change-Id: I9c5a0f59a86fda08bd532cb2b66bab76b2dfa6c8
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/IWindowManager.aidl6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/view/IWindowManager.aidl b/core/java/android/view/IWindowManager.aidl
index 092702ca30cf..0398b8f07f4b 100644
--- a/core/java/android/view/IWindowManager.aidl
+++ b/core/java/android/view/IWindowManager.aidl
@@ -223,10 +223,12 @@ interface IWindowManager
/**
* Determine the preferred edge of the screen to pin the compact options menu against.
- * @return a Gravity value for the options menu panel
+ *
+ * @param displayId Id of the display where the menu window currently resides.
+ * @return a Gravity value for the options menu panel.
* @hide
*/
- int getPreferredOptionsPanelGravity();
+ int getPreferredOptionsPanelGravity(int displayId);
/**
* Lock the device orientation to the specified rotation, or to the