Loading core/api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -303,6 +303,7 @@ package android { field public static final String SET_POINTER_SPEED = "android.permission.SET_POINTER_SPEED"; field public static final String SET_SCREEN_COMPATIBILITY = "android.permission.SET_SCREEN_COMPATIBILITY"; field public static final String SET_SYSTEM_AUDIO_CAPTION = "android.permission.SET_SYSTEM_AUDIO_CAPTION"; field public static final String SET_UNRESTRICTED_KEEP_CLEAR_AREAS = "android.permission.SET_UNRESTRICTED_KEEP_CLEAR_AREAS"; field public static final String SET_VOLUME_KEY_LONG_PRESS_LISTENER = "android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER"; field public static final String SET_WALLPAPER_COMPONENT = "android.permission.SET_WALLPAPER_COMPONENT"; field public static final String SET_WALLPAPER_DIM_AMOUNT = "android.permission.SET_WALLPAPER_DIM_AMOUNT"; core/java/android/view/IDisplayWindowListener.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -63,5 +63,5 @@ oneway interface IDisplayWindowListener { /** * Called when the keep clear ares on a display have changed. */ void onKeepClearAreasChanged(int displayId, in List<Rect> keepClearAreas); void onKeepClearAreasChanged(int displayId, in List<Rect> restricted, in List<Rect> unrestricted); } core/res/AndroidManifest.xml +9 −0 Original line number Diff line number Diff line Loading @@ -6300,6 +6300,15 @@ <permission android:name="android.permission.BIND_AMBIENT_CONTEXT_DETECTION_SERVICE" android:protectionLevel="signature" /> <!-- @SystemApi Allows an app to set keep-clear areas without restrictions on the size or number of keep-clear areas (see {@link android.view.View#setPreferKeepClearRects}). When the system arranges floating windows onscreen, it might decide to ignore keep-clear areas from windows, whose owner does not have this permission. @hide --> <permission android:name="android.permission.SET_UNRESTRICTED_KEEP_CLEAR_AREAS" android:protectionLevel="signature|privileged" /> <!-- Attribution for Geofencing service. --> <attribution android:tag="GeofencingService" android:label="@string/geofencing_service"/> <!-- Attribution for Country Detector. --> Loading libs/WindowManager/Shell/src/com/android/wm/shell/common/DisplayController.java +9 −5 Original line number Diff line number Diff line Loading @@ -245,7 +245,8 @@ public class DisplayController { } } private void onKeepClearAreasChanged(int displayId, List<Rect> keepClearAreas) { private void onKeepClearAreasChanged(int displayId, List<Rect> restricted, List<Rect> unrestricted) { synchronized (mDisplays) { if (mDisplays.get(displayId) == null || getDisplay(displayId) == null) { Slog.w(TAG, "Skipping onKeepClearAreasChanged on unknown" Loading @@ -253,7 +254,8 @@ public class DisplayController { return; } for (int i = mDisplayChangedListeners.size() - 1; i >= 0; --i) { mDisplayChangedListeners.get(i).onKeepClearAreasChanged(displayId, keepClearAreas); mDisplayChangedListeners.get(i) .onKeepClearAreasChanged(displayId, restricted, unrestricted); } } } Loading Loading @@ -318,9 +320,10 @@ public class DisplayController { } @Override public void onKeepClearAreasChanged(int displayId, List<Rect> keepClearAreas) { public void onKeepClearAreasChanged(int displayId, List<Rect> restricted, List<Rect> unrestricted) { mMainExecutor.execute(() -> { DisplayController.this.onKeepClearAreasChanged(displayId, keepClearAreas); DisplayController.this.onKeepClearAreasChanged(displayId, restricted, unrestricted); }); } } Loading Loading @@ -361,6 +364,7 @@ public class DisplayController { /** * Called when keep-clear areas on a display have changed. */ default void onKeepClearAreasChanged(int displayId, List<Rect> keepClearAreas) {} default void onKeepClearAreasChanged(int displayId, List<Rect> restricted, List<Rect> unrestricted) {} } } services/core/java/com/android/server/camera/CameraServiceProxy.java +2 −1 Original line number Diff line number Diff line Loading @@ -308,7 +308,8 @@ public class CameraServiceProxy extends SystemService public void onFixedRotationFinished(int displayId) { } @Override public void onKeepClearAreasChanged(int displayId, List<Rect> keepClearArea) { } public void onKeepClearAreasChanged(int displayId, List<Rect> restricted, List<Rect> unrestricted) { } } Loading Loading
core/api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -303,6 +303,7 @@ package android { field public static final String SET_POINTER_SPEED = "android.permission.SET_POINTER_SPEED"; field public static final String SET_SCREEN_COMPATIBILITY = "android.permission.SET_SCREEN_COMPATIBILITY"; field public static final String SET_SYSTEM_AUDIO_CAPTION = "android.permission.SET_SYSTEM_AUDIO_CAPTION"; field public static final String SET_UNRESTRICTED_KEEP_CLEAR_AREAS = "android.permission.SET_UNRESTRICTED_KEEP_CLEAR_AREAS"; field public static final String SET_VOLUME_KEY_LONG_PRESS_LISTENER = "android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER"; field public static final String SET_WALLPAPER_COMPONENT = "android.permission.SET_WALLPAPER_COMPONENT"; field public static final String SET_WALLPAPER_DIM_AMOUNT = "android.permission.SET_WALLPAPER_DIM_AMOUNT";
core/java/android/view/IDisplayWindowListener.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -63,5 +63,5 @@ oneway interface IDisplayWindowListener { /** * Called when the keep clear ares on a display have changed. */ void onKeepClearAreasChanged(int displayId, in List<Rect> keepClearAreas); void onKeepClearAreasChanged(int displayId, in List<Rect> restricted, in List<Rect> unrestricted); }
core/res/AndroidManifest.xml +9 −0 Original line number Diff line number Diff line Loading @@ -6300,6 +6300,15 @@ <permission android:name="android.permission.BIND_AMBIENT_CONTEXT_DETECTION_SERVICE" android:protectionLevel="signature" /> <!-- @SystemApi Allows an app to set keep-clear areas without restrictions on the size or number of keep-clear areas (see {@link android.view.View#setPreferKeepClearRects}). When the system arranges floating windows onscreen, it might decide to ignore keep-clear areas from windows, whose owner does not have this permission. @hide --> <permission android:name="android.permission.SET_UNRESTRICTED_KEEP_CLEAR_AREAS" android:protectionLevel="signature|privileged" /> <!-- Attribution for Geofencing service. --> <attribution android:tag="GeofencingService" android:label="@string/geofencing_service"/> <!-- Attribution for Country Detector. --> Loading
libs/WindowManager/Shell/src/com/android/wm/shell/common/DisplayController.java +9 −5 Original line number Diff line number Diff line Loading @@ -245,7 +245,8 @@ public class DisplayController { } } private void onKeepClearAreasChanged(int displayId, List<Rect> keepClearAreas) { private void onKeepClearAreasChanged(int displayId, List<Rect> restricted, List<Rect> unrestricted) { synchronized (mDisplays) { if (mDisplays.get(displayId) == null || getDisplay(displayId) == null) { Slog.w(TAG, "Skipping onKeepClearAreasChanged on unknown" Loading @@ -253,7 +254,8 @@ public class DisplayController { return; } for (int i = mDisplayChangedListeners.size() - 1; i >= 0; --i) { mDisplayChangedListeners.get(i).onKeepClearAreasChanged(displayId, keepClearAreas); mDisplayChangedListeners.get(i) .onKeepClearAreasChanged(displayId, restricted, unrestricted); } } } Loading Loading @@ -318,9 +320,10 @@ public class DisplayController { } @Override public void onKeepClearAreasChanged(int displayId, List<Rect> keepClearAreas) { public void onKeepClearAreasChanged(int displayId, List<Rect> restricted, List<Rect> unrestricted) { mMainExecutor.execute(() -> { DisplayController.this.onKeepClearAreasChanged(displayId, keepClearAreas); DisplayController.this.onKeepClearAreasChanged(displayId, restricted, unrestricted); }); } } Loading Loading @@ -361,6 +364,7 @@ public class DisplayController { /** * Called when keep-clear areas on a display have changed. */ default void onKeepClearAreasChanged(int displayId, List<Rect> keepClearAreas) {} default void onKeepClearAreasChanged(int displayId, List<Rect> restricted, List<Rect> unrestricted) {} } }
services/core/java/com/android/server/camera/CameraServiceProxy.java +2 −1 Original line number Diff line number Diff line Loading @@ -308,7 +308,8 @@ public class CameraServiceProxy extends SystemService public void onFixedRotationFinished(int displayId) { } @Override public void onKeepClearAreasChanged(int displayId, List<Rect> keepClearArea) { } public void onKeepClearAreasChanged(int displayId, List<Rect> restricted, List<Rect> unrestricted) { } } Loading