Loading packages/SystemUI/shared/src/com/android/systemui/shared/system/QuickStepContract.java +16 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ import android.content.Context; import android.content.res.Resources; import android.view.WindowManagerPolicyConstants; import com.android.internal.policy.ScreenDecorationsUtils; /** * Various shared constants between Launcher and SysUI as part of quickstep */ Loading Loading @@ -130,5 +132,19 @@ public class QuickStepContract { com.android.internal.R.dimen.config_backGestureInset); } /** * Corner radius that should be used on windows in order to cover the display. * These values are expressed in pixels because they should not respect display or font * scaling, this means that we don't have to reload them on config changes. */ public static float getWindowCornerRadius(Resources resources) { return ScreenDecorationsUtils.getWindowCornerRadius(resources); } /** * If live rounded corners are supported on windows. */ public static boolean supportsRoundedCornersOnWindows(Resources resources) { return ScreenDecorationsUtils.supportsRoundedCornersOnWindows(resources); } } Loading
packages/SystemUI/shared/src/com/android/systemui/shared/system/QuickStepContract.java +16 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ import android.content.Context; import android.content.res.Resources; import android.view.WindowManagerPolicyConstants; import com.android.internal.policy.ScreenDecorationsUtils; /** * Various shared constants between Launcher and SysUI as part of quickstep */ Loading Loading @@ -130,5 +132,19 @@ public class QuickStepContract { com.android.internal.R.dimen.config_backGestureInset); } /** * Corner radius that should be used on windows in order to cover the display. * These values are expressed in pixels because they should not respect display or font * scaling, this means that we don't have to reload them on config changes. */ public static float getWindowCornerRadius(Resources resources) { return ScreenDecorationsUtils.getWindowCornerRadius(resources); } /** * If live rounded corners are supported on windows. */ public static boolean supportsRoundedCornersOnWindows(Resources resources) { return ScreenDecorationsUtils.supportsRoundedCornersOnWindows(resources); } }