Loading core/java/android/app/admin/DevicePolicyManagerInternal.java +8 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.app.admin; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.UserIdInt; import android.content.ComponentName; Loading Loading @@ -76,6 +77,13 @@ public abstract class DevicePolicyManagerInternal { public abstract void addOnCrossProfileWidgetProvidersChangeListener( OnCrossProfileWidgetProvidersChangeListener listener); /** * @param userHandle the handle of the user whose profile owner is being fetched. * @return the configured supervision app if it exists and is the device owner or policy owner. */ public abstract @Nullable ComponentName getProfileOwnerOrDeviceOwnerSupervisionComponent( @NonNull UserHandle userHandle); /** * Checks if an app with given uid is an active device owner of its user. * Loading core/java/android/view/ViewRootImpl.java +24 −12 Original line number Diff line number Diff line Loading @@ -800,11 +800,7 @@ public final class ViewRootImpl implements ViewParent, context); mCompatibleVisibilityInfo = new SystemUiVisibilityInfo(); mAccessibilityManager = AccessibilityManager.getInstance(context); mAccessibilityManager.addAccessibilityStateChangeListener( mAccessibilityInteractionConnectionManager, mHandler); mHighContrastTextManager = new HighContrastTextManager(); mAccessibilityManager.addHighTextContrastStateChangeListener( mHighContrastTextManager, mHandler); mViewConfiguration = ViewConfiguration.get(context); mDensity = context.getResources().getDisplayMetrics().densityDpi; mNoncompatDensity = context.getResources().getDisplayMetrics().noncompatDensityDpi; Loading Loading @@ -1004,8 +1000,6 @@ public final class ViewRootImpl implements ViewParent, mView = view; mAttachInfo.mDisplayState = mDisplay.getState(); mDisplayManager.registerDisplayListener(mDisplayListener, mHandler); mViewLayoutDirectionInitial = mView.getRawLayoutDirection(); mFallbackEventHandler.setView(view); mWindowAttributes.copyFrom(attrs); Loading Loading @@ -1198,6 +1192,7 @@ public final class ViewRootImpl implements ViewParent, "Unable to add window -- unknown error code " + res); } registerListeners(); if ((res & WindowManagerGlobal.ADD_FLAG_USE_BLAST) != 0) { mUseBLASTAdapter = true; } Loading Loading @@ -1254,6 +1249,28 @@ public final class ViewRootImpl implements ViewParent, } } /** * Register any kind of listeners if setView was success. */ private void registerListeners() { mAccessibilityManager.addAccessibilityStateChangeListener( mAccessibilityInteractionConnectionManager, mHandler); mAccessibilityManager.addHighTextContrastStateChangeListener( mHighContrastTextManager, mHandler); mDisplayManager.registerDisplayListener(mDisplayListener, mHandler); } /** * Unregister all listeners while detachedFromWindow. */ private void unregisterListeners() { mAccessibilityManager.removeAccessibilityStateChangeListener( mAccessibilityInteractionConnectionManager); mAccessibilityManager.removeHighTextContrastStateChangeListener( mHighContrastTextManager); mDisplayManager.unregisterDisplayListener(mDisplayListener); } private void setTag() { final String[] split = mWindowAttributes.getTitle().toString().split("\\."); if (split.length > 0) { Loading Loading @@ -4979,10 +4996,6 @@ public final class ViewRootImpl implements ViewParent, } mAccessibilityInteractionConnectionManager.ensureNoConnection(); mAccessibilityManager.removeAccessibilityStateChangeListener( mAccessibilityInteractionConnectionManager); mAccessibilityManager.removeHighTextContrastStateChangeListener( mHighContrastTextManager); removeSendWindowContentChangedCallback(); destroyHardwareRenderer(); Loading Loading @@ -5015,8 +5028,7 @@ public final class ViewRootImpl implements ViewParent, mInputEventReceiver = null; } mDisplayManager.unregisterDisplayListener(mDisplayListener); unregisterListeners(); unscheduleTraversals(); } Loading core/res/res/values/config.xml +3 −2 Original line number Diff line number Diff line Loading @@ -1908,8 +1908,9 @@ STREAM_MUSIC as if it's on TV platform. --> <bool name="config_single_volume">false</bool> <!-- Flag indicating whether the volume panel should show remote sessions. --> <bool name="config_volumeShowRemoteSessions">true</bool> <!-- Flag indicating whether platform level volume adjustments are enabled for remote sessions on grouped devices. --> <bool name="config_volumeAdjustmentForRemoteGroupSessions">true</bool> <!-- Flag indicating that an outbound call must have a call capable phone account that has declared it can process the call's handle. --> Loading core/res/res/values/symbols.xml +1 −1 Original line number Diff line number Diff line Loading @@ -4432,7 +4432,7 @@ <java-symbol type="dimen" name="config_wallpaperDimAmount" /> <java-symbol type="bool" name="config_volumeShowRemoteSessions" /> <java-symbol type="bool" name="config_volumeAdjustmentForRemoteGroupSessions" /> <!-- List of shared library packages that should be loaded by the classloader after the code and resources provided by applications. --> Loading libs/WindowManager/Shell/src/com/android/wm/shell/common/DisplayLayout.java +13 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,19 @@ public class DisplayLayout { private boolean mHasStatusBar = false; private int mNavBarFrameHeight = 0; /** * Different from {@link #equals(Object)}, this method compares the basic geometry properties * of two {@link DisplayLayout} objects including width, height, rotation, density and cutout. * @return {@code true} if the given {@link DisplayLayout} is identical geometry wise. */ public boolean isSameGeometry(@NonNull DisplayLayout other) { return mWidth == other.mWidth && mHeight == other.mHeight && mRotation == other.mRotation && mDensityDpi == other.mDensityDpi && Objects.equals(mCutout, other.mCutout); } @Override public boolean equals(Object o) { if (this == o) return true; Loading Loading
core/java/android/app/admin/DevicePolicyManagerInternal.java +8 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.app.admin; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.UserIdInt; import android.content.ComponentName; Loading Loading @@ -76,6 +77,13 @@ public abstract class DevicePolicyManagerInternal { public abstract void addOnCrossProfileWidgetProvidersChangeListener( OnCrossProfileWidgetProvidersChangeListener listener); /** * @param userHandle the handle of the user whose profile owner is being fetched. * @return the configured supervision app if it exists and is the device owner or policy owner. */ public abstract @Nullable ComponentName getProfileOwnerOrDeviceOwnerSupervisionComponent( @NonNull UserHandle userHandle); /** * Checks if an app with given uid is an active device owner of its user. * Loading
core/java/android/view/ViewRootImpl.java +24 −12 Original line number Diff line number Diff line Loading @@ -800,11 +800,7 @@ public final class ViewRootImpl implements ViewParent, context); mCompatibleVisibilityInfo = new SystemUiVisibilityInfo(); mAccessibilityManager = AccessibilityManager.getInstance(context); mAccessibilityManager.addAccessibilityStateChangeListener( mAccessibilityInteractionConnectionManager, mHandler); mHighContrastTextManager = new HighContrastTextManager(); mAccessibilityManager.addHighTextContrastStateChangeListener( mHighContrastTextManager, mHandler); mViewConfiguration = ViewConfiguration.get(context); mDensity = context.getResources().getDisplayMetrics().densityDpi; mNoncompatDensity = context.getResources().getDisplayMetrics().noncompatDensityDpi; Loading Loading @@ -1004,8 +1000,6 @@ public final class ViewRootImpl implements ViewParent, mView = view; mAttachInfo.mDisplayState = mDisplay.getState(); mDisplayManager.registerDisplayListener(mDisplayListener, mHandler); mViewLayoutDirectionInitial = mView.getRawLayoutDirection(); mFallbackEventHandler.setView(view); mWindowAttributes.copyFrom(attrs); Loading Loading @@ -1198,6 +1192,7 @@ public final class ViewRootImpl implements ViewParent, "Unable to add window -- unknown error code " + res); } registerListeners(); if ((res & WindowManagerGlobal.ADD_FLAG_USE_BLAST) != 0) { mUseBLASTAdapter = true; } Loading Loading @@ -1254,6 +1249,28 @@ public final class ViewRootImpl implements ViewParent, } } /** * Register any kind of listeners if setView was success. */ private void registerListeners() { mAccessibilityManager.addAccessibilityStateChangeListener( mAccessibilityInteractionConnectionManager, mHandler); mAccessibilityManager.addHighTextContrastStateChangeListener( mHighContrastTextManager, mHandler); mDisplayManager.registerDisplayListener(mDisplayListener, mHandler); } /** * Unregister all listeners while detachedFromWindow. */ private void unregisterListeners() { mAccessibilityManager.removeAccessibilityStateChangeListener( mAccessibilityInteractionConnectionManager); mAccessibilityManager.removeHighTextContrastStateChangeListener( mHighContrastTextManager); mDisplayManager.unregisterDisplayListener(mDisplayListener); } private void setTag() { final String[] split = mWindowAttributes.getTitle().toString().split("\\."); if (split.length > 0) { Loading Loading @@ -4979,10 +4996,6 @@ public final class ViewRootImpl implements ViewParent, } mAccessibilityInteractionConnectionManager.ensureNoConnection(); mAccessibilityManager.removeAccessibilityStateChangeListener( mAccessibilityInteractionConnectionManager); mAccessibilityManager.removeHighTextContrastStateChangeListener( mHighContrastTextManager); removeSendWindowContentChangedCallback(); destroyHardwareRenderer(); Loading Loading @@ -5015,8 +5028,7 @@ public final class ViewRootImpl implements ViewParent, mInputEventReceiver = null; } mDisplayManager.unregisterDisplayListener(mDisplayListener); unregisterListeners(); unscheduleTraversals(); } Loading
core/res/res/values/config.xml +3 −2 Original line number Diff line number Diff line Loading @@ -1908,8 +1908,9 @@ STREAM_MUSIC as if it's on TV platform. --> <bool name="config_single_volume">false</bool> <!-- Flag indicating whether the volume panel should show remote sessions. --> <bool name="config_volumeShowRemoteSessions">true</bool> <!-- Flag indicating whether platform level volume adjustments are enabled for remote sessions on grouped devices. --> <bool name="config_volumeAdjustmentForRemoteGroupSessions">true</bool> <!-- Flag indicating that an outbound call must have a call capable phone account that has declared it can process the call's handle. --> Loading
core/res/res/values/symbols.xml +1 −1 Original line number Diff line number Diff line Loading @@ -4432,7 +4432,7 @@ <java-symbol type="dimen" name="config_wallpaperDimAmount" /> <java-symbol type="bool" name="config_volumeShowRemoteSessions" /> <java-symbol type="bool" name="config_volumeAdjustmentForRemoteGroupSessions" /> <!-- List of shared library packages that should be loaded by the classloader after the code and resources provided by applications. --> Loading
libs/WindowManager/Shell/src/com/android/wm/shell/common/DisplayLayout.java +13 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,19 @@ public class DisplayLayout { private boolean mHasStatusBar = false; private int mNavBarFrameHeight = 0; /** * Different from {@link #equals(Object)}, this method compares the basic geometry properties * of two {@link DisplayLayout} objects including width, height, rotation, density and cutout. * @return {@code true} if the given {@link DisplayLayout} is identical geometry wise. */ public boolean isSameGeometry(@NonNull DisplayLayout other) { return mWidth == other.mWidth && mHeight == other.mHeight && mRotation == other.mRotation && mDensityDpi == other.mDensityDpi && Objects.equals(mCutout, other.mCutout); } @Override public boolean equals(Object o) { if (this == o) return true; Loading