summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2022-05-04 18:36:26 +0800
committerRiddle Hsu <riddlehsu@google.com>2022-05-04 22:53:17 +0800
commit4bf606c57867a1c571e893f913708d67fbc15fcf (patch)
tree9fb6e00672934697a802cb323c908aa88dae0821 /core/java/android
parent923e43dc704a2f62c9d016ae40a61cbe2ae1dbca (diff)
Move some IWindowManager methods to internal interface
The methods are only used in system server. It is unnecessary to declare in aidl. This also eliminates the confusion of missing permission check for updateRotation(). Bug: 230863943 Test: atest WindowManagerPermissionTests Change-Id: I703830650bab3a792982cada99aa1512430658a4
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/IWindowManager.aidl17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/java/android/view/IWindowManager.aidl b/core/java/android/view/IWindowManager.aidl
index c83869c9ee68..ee49d7bf5c28 100644
--- a/core/java/android/view/IWindowManager.aidl
+++ b/core/java/android/view/IWindowManager.aidl
@@ -251,18 +251,6 @@ interface IWindowManager
*/
void refreshScreenCaptureDisabled();
- // These can only be called with the SET_ORIENTATION permission.
- /**
- * Update the current screen rotation based on the current state of
- * the world.
- * @param alwaysSendConfiguration Flag to force a new configuration to
- * be evaluated. This can be used when there are other parameters in
- * configuration that are changing.
- * @param forceRelayout If true, the window manager will always do a relayout
- * of its windows even if the rotation hasn't changed.
- */
- void updateRotation(boolean alwaysSendConfiguration, boolean forceRelayout);
-
/**
* Retrieve the current orientation of the primary screen.
* @return Constant as per {@link android.view.Surface.Rotation}.
@@ -443,11 +431,6 @@ interface IWindowManager
boolean isSafeModeEnabled();
/**
- * Enables the screen if all conditions are met.
- */
- void enableScreenIfNeeded();
-
- /**
* Clears the frame statistics for a given window.
*
* @param token The window token.