Loading api/current.txt +6 −0 Original line number Original line Diff line number Diff line Loading @@ -571,6 +571,8 @@ package android { field public static final int endX = 16844050; // 0x1010512 field public static final int endX = 16844050; // 0x1010512 field public static final int endY = 16844051; // 0x1010513 field public static final int endY = 16844051; // 0x1010513 field @Deprecated public static final int endYear = 16843133; // 0x101017d field @Deprecated public static final int endYear = 16843133; // 0x101017d field public static final int ensuringNavigationBarContrastWhenTransparent = 16844203; // 0x10105ab field public static final int ensuringStatusBarContrastWhenTransparent = 16844202; // 0x10105aa field public static final int enterFadeDuration = 16843532; // 0x101030c field public static final int enterFadeDuration = 16843532; // 0x101030c field public static final int entries = 16842930; // 0x10100b2 field public static final int entries = 16842930; // 0x10100b2 field public static final int entryValues = 16843256; // 0x10101f8 field public static final int entryValues = 16843256; // 0x10101f8 Loading Loading @@ -51774,6 +51776,8 @@ package android.view { method public void injectInputEvent(android.view.InputEvent); method public void injectInputEvent(android.view.InputEvent); method public abstract void invalidatePanelMenu(int); method public abstract void invalidatePanelMenu(int); method public final boolean isActive(); method public final boolean isActive(); method public boolean isEnsuringNavigationBarContrastWhenTransparent(); method public boolean isEnsuringStatusBarContrastWhenTransparent(); method public abstract boolean isFloating(); method public abstract boolean isFloating(); method public abstract boolean isShortcutKey(int, android.view.KeyEvent); method public abstract boolean isShortcutKey(int, android.view.KeyEvent); method public boolean isWideColorGamut(); method public boolean isWideColorGamut(); Loading Loading @@ -51808,6 +51812,8 @@ package android.view { method protected void setDefaultWindowFormat(int); method protected void setDefaultWindowFormat(int); method public void setDimAmount(float); method public void setDimAmount(float); method public void setElevation(float); method public void setElevation(float); method public void setEnsuringNavigationBarContrastWhenTransparent(boolean); method public void setEnsuringStatusBarContrastWhenTransparent(boolean); method public void setEnterTransition(android.transition.Transition); method public void setEnterTransition(android.transition.Transition); method public void setExitTransition(android.transition.Transition); method public void setExitTransition(android.transition.Transition); method public abstract void setFeatureDrawable(int, android.graphics.drawable.Drawable); method public abstract void setFeatureDrawable(int, android.graphics.drawable.Drawable); core/java/android/app/Activity.java +3 −2 Original line number Original line Diff line number Diff line Loading @@ -4909,10 +4909,11 @@ public class Activity extends ContextThemeWrapper final boolean targetPreQ = targetSdk < Build.VERSION_CODES.Q; final boolean targetPreQ = targetSdk < Build.VERSION_CODES.Q; if (!targetPreQ) { if (!targetPreQ) { mTaskDescription.setEnsureStatusBarContrastWhenTransparent(a.getBoolean( mTaskDescription.setEnsureStatusBarContrastWhenTransparent(a.getBoolean( R.styleable.ActivityTaskDescription_ensureStatusBarContrastWhenTransparent, R.styleable.ActivityTaskDescription_ensuringStatusBarContrastWhenTransparent, false)); false)); mTaskDescription.setEnsureNavigationBarContrastWhenTransparent(a.getBoolean( mTaskDescription.setEnsureNavigationBarContrastWhenTransparent(a.getBoolean( R.styleable.ActivityTaskDescription_ensureNavigationBarContrastWhenTransparent, R.styleable .ActivityTaskDescription_ensuringNavigationBarContrastWhenTransparent, true)); true)); } } Loading core/java/android/view/Window.java +16 −12 Original line number Original line Diff line number Diff line Loading @@ -2340,10 +2340,11 @@ public abstract class Window { * <p>When the status bar color has a non-zero alpha value, the value of this * <p>When the status bar color has a non-zero alpha value, the value of this * property has no effect. * property has no effect. * * * @see android.R.attr#ensureStatusBarContrastWhenTransparent * @see android.R.attr#ensuringStatusBarContrastWhenTransparent * @hide pending API * @see #isEnsuringStatusBarContrastWhenTransparent * @see #setStatusBarColor */ */ public void setEnsureStatusBarContrastWhenTransparent(boolean ensureContrast) { public void setEnsuringStatusBarContrastWhenTransparent(boolean ensureContrast) { } } /** /** Loading @@ -2353,11 +2354,12 @@ public abstract class Window { * <p>When the status bar color has a non-zero alpha value, the value of this * <p>When the status bar color has a non-zero alpha value, the value of this * property has no effect. * property has no effect. * * * @see android.R.attr#ensureStatusBarContrastWhenTransparent * @return true, if the system is ensuring contrast, false otherwise. * @return true, if the system is ensuring contrast, false otherwise. * @hide pending API * @see android.R.attr#ensuringStatusBarContrastWhenTransparent * @see #setEnsuringStatusBarContrastWhenTransparent * @see #setStatusBarColor */ */ public boolean isEnsureStatusBarContrastWhenTransparent() { public boolean isEnsuringStatusBarContrastWhenTransparent() { return false; return false; } } Loading @@ -2372,10 +2374,11 @@ public abstract class Window { * <p>When the navigation bar color has a non-zero alpha value, the value of this * <p>When the navigation bar color has a non-zero alpha value, the value of this * property has no effect. * property has no effect. * * * @see android.R.attr#ensureNavigationBarContrastWhenTransparent * @see android.R.attr#ensuringNavigationBarContrastWhenTransparent * @hide pending API * @see #isEnsuringNavigationBarContrastWhenTransparent * @see #setNavigationBarColor */ */ public void setEnsureNavigationBarContrastWhenTransparent(boolean ensureContrast) { public void setEnsuringNavigationBarContrastWhenTransparent(boolean ensureContrast) { } } /** /** Loading @@ -2386,10 +2389,11 @@ public abstract class Window { * property has no effect. * property has no effect. * * * @return true, if the system is ensuring contrast, false otherwise. * @return true, if the system is ensuring contrast, false otherwise. * @see android.R.attr#ensureNavigationBarContrastWhenTransparent * @see android.R.attr#ensuringNavigationBarContrastWhenTransparent * @hide pending API * @see #setEnsuringNavigationBarContrastWhenTransparent * @see #setNavigationBarColor */ */ public boolean isEnsureNavigationBarContrastWhenTransparent() { public boolean isEnsuringNavigationBarContrastWhenTransparent() { return false; return false; } } Loading core/java/com/android/internal/policy/PhoneWindow.java +6 −6 Original line number Original line Diff line number Diff line Loading @@ -2464,9 +2464,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } } if (!targetPreQ) { if (!targetPreQ) { mEnsureStatusBarContrastWhenTransparent = a.getBoolean( mEnsureStatusBarContrastWhenTransparent = a.getBoolean( R.styleable.Window_ensureStatusBarContrastWhenTransparent, false); R.styleable.Window_ensuringStatusBarContrastWhenTransparent, false); mEnsureNavigationBarContrastWhenTransparent = a.getBoolean( mEnsureNavigationBarContrastWhenTransparent = a.getBoolean( R.styleable.Window_ensureNavigationBarContrastWhenTransparent, true); R.styleable.Window_ensuringNavigationBarContrastWhenTransparent, true); } } WindowManager.LayoutParams params = getAttributes(); WindowManager.LayoutParams params = getAttributes(); Loading Loading @@ -3857,7 +3857,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } } @Override @Override public void setEnsureStatusBarContrastWhenTransparent(boolean ensureContrast) { public void setEnsuringStatusBarContrastWhenTransparent(boolean ensureContrast) { mEnsureStatusBarContrastWhenTransparent = ensureContrast; mEnsureStatusBarContrastWhenTransparent = ensureContrast; if (mDecor != null) { if (mDecor != null) { mDecor.updateColorViews(null, false /* animate */); mDecor.updateColorViews(null, false /* animate */); Loading @@ -3865,12 +3865,12 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } } @Override @Override public boolean isEnsureStatusBarContrastWhenTransparent() { public boolean isEnsuringStatusBarContrastWhenTransparent() { return mEnsureStatusBarContrastWhenTransparent; return mEnsureStatusBarContrastWhenTransparent; } } @Override @Override public void setEnsureNavigationBarContrastWhenTransparent(boolean ensureContrast) { public void setEnsuringNavigationBarContrastWhenTransparent(boolean ensureContrast) { mEnsureNavigationBarContrastWhenTransparent = ensureContrast; mEnsureNavigationBarContrastWhenTransparent = ensureContrast; if (mDecor != null) { if (mDecor != null) { mDecor.updateColorViews(null, false /* animate */); mDecor.updateColorViews(null, false /* animate */); Loading @@ -3878,7 +3878,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } } @Override @Override public boolean isEnsureNavigationBarContrastWhenTransparent() { public boolean isEnsuringNavigationBarContrastWhenTransparent() { return mEnsureNavigationBarContrastWhenTransparent; return mEnsureNavigationBarContrastWhenTransparent; } } Loading core/res/res/values/attrs.xml +8 −10 Original line number Original line Diff line number Diff line Loading @@ -2104,9 +2104,8 @@ <p>If the app does not target at least {@link android.os.Build.VERSION_CODES#Q Q}, <p>If the app does not target at least {@link android.os.Build.VERSION_CODES#Q Q}, this attribute is ignored. this attribute is ignored. @see android.view.Window#setEnsureStatusBarContrastWhenTransparent @see android.view.Window#setEnsuringStatusBarContrastWhenTransparent --> @hide pendingAPI --> <attr name="ensuringStatusBarContrastWhenTransparent" format="boolean" /> <attr name="ensureStatusBarContrastWhenTransparent" format="boolean" /> <!-- Sets whether the system should ensure that the navigation bar has enough <!-- Sets whether the system should ensure that the navigation bar has enough contrast when a fully transparent background is requested. contrast when a fully transparent background is requested. Loading @@ -2121,9 +2120,8 @@ <p>If the app does not target at least {@link android.os.Build.VERSION_CODES#Q Q}, <p>If the app does not target at least {@link android.os.Build.VERSION_CODES#Q Q}, this attribute is ignored. this attribute is ignored. @see android.view.Window#setEnsureNavigationBarContrastWhenTransparent @see android.view.Window#setEnsuringNavigationBarContrastWhenTransparent --> @hide pendingApi --> <attr name="ensuringNavigationBarContrastWhenTransparent" format="boolean" /> <attr name="ensureNavigationBarContrastWhenTransparent" format="boolean" /> <!-- The duration, in milliseconds, of the window background fade duration <!-- The duration, in milliseconds, of the window background fade duration when transitioning into or away from an Activity when called with an when transitioning into or away from an Activity when called with an Loading Loading @@ -9014,10 +9012,10 @@ <!-- @hide From Theme.navigationBarColor, used for the TaskDescription navigation bar <!-- @hide From Theme.navigationBarColor, used for the TaskDescription navigation bar color. --> color. --> <attr name="navigationBarColor"/> <attr name="navigationBarColor"/> <!-- @hide From Window.ensureStatusBarContrastWhenTransparent --> <!-- @hide From Window.ensuringStatusBarContrastWhenTransparent --> <attr name="ensureStatusBarContrastWhenTransparent"/> <attr name="ensuringStatusBarContrastWhenTransparent"/> <!-- @hide From Window.ensureNavigationBarContrastWhenTransparent --> <!-- @hide From Window.ensuringNavigationBarContrastWhenTransparent --> <attr name="ensureNavigationBarContrastWhenTransparent"/> <attr name="ensuringNavigationBarContrastWhenTransparent"/> </declare-styleable> </declare-styleable> <declare-styleable name="Shortcut"> <declare-styleable name="Shortcut"> Loading Loading
api/current.txt +6 −0 Original line number Original line Diff line number Diff line Loading @@ -571,6 +571,8 @@ package android { field public static final int endX = 16844050; // 0x1010512 field public static final int endX = 16844050; // 0x1010512 field public static final int endY = 16844051; // 0x1010513 field public static final int endY = 16844051; // 0x1010513 field @Deprecated public static final int endYear = 16843133; // 0x101017d field @Deprecated public static final int endYear = 16843133; // 0x101017d field public static final int ensuringNavigationBarContrastWhenTransparent = 16844203; // 0x10105ab field public static final int ensuringStatusBarContrastWhenTransparent = 16844202; // 0x10105aa field public static final int enterFadeDuration = 16843532; // 0x101030c field public static final int enterFadeDuration = 16843532; // 0x101030c field public static final int entries = 16842930; // 0x10100b2 field public static final int entries = 16842930; // 0x10100b2 field public static final int entryValues = 16843256; // 0x10101f8 field public static final int entryValues = 16843256; // 0x10101f8 Loading Loading @@ -51774,6 +51776,8 @@ package android.view { method public void injectInputEvent(android.view.InputEvent); method public void injectInputEvent(android.view.InputEvent); method public abstract void invalidatePanelMenu(int); method public abstract void invalidatePanelMenu(int); method public final boolean isActive(); method public final boolean isActive(); method public boolean isEnsuringNavigationBarContrastWhenTransparent(); method public boolean isEnsuringStatusBarContrastWhenTransparent(); method public abstract boolean isFloating(); method public abstract boolean isFloating(); method public abstract boolean isShortcutKey(int, android.view.KeyEvent); method public abstract boolean isShortcutKey(int, android.view.KeyEvent); method public boolean isWideColorGamut(); method public boolean isWideColorGamut(); Loading Loading @@ -51808,6 +51812,8 @@ package android.view { method protected void setDefaultWindowFormat(int); method protected void setDefaultWindowFormat(int); method public void setDimAmount(float); method public void setDimAmount(float); method public void setElevation(float); method public void setElevation(float); method public void setEnsuringNavigationBarContrastWhenTransparent(boolean); method public void setEnsuringStatusBarContrastWhenTransparent(boolean); method public void setEnterTransition(android.transition.Transition); method public void setEnterTransition(android.transition.Transition); method public void setExitTransition(android.transition.Transition); method public void setExitTransition(android.transition.Transition); method public abstract void setFeatureDrawable(int, android.graphics.drawable.Drawable); method public abstract void setFeatureDrawable(int, android.graphics.drawable.Drawable);
core/java/android/app/Activity.java +3 −2 Original line number Original line Diff line number Diff line Loading @@ -4909,10 +4909,11 @@ public class Activity extends ContextThemeWrapper final boolean targetPreQ = targetSdk < Build.VERSION_CODES.Q; final boolean targetPreQ = targetSdk < Build.VERSION_CODES.Q; if (!targetPreQ) { if (!targetPreQ) { mTaskDescription.setEnsureStatusBarContrastWhenTransparent(a.getBoolean( mTaskDescription.setEnsureStatusBarContrastWhenTransparent(a.getBoolean( R.styleable.ActivityTaskDescription_ensureStatusBarContrastWhenTransparent, R.styleable.ActivityTaskDescription_ensuringStatusBarContrastWhenTransparent, false)); false)); mTaskDescription.setEnsureNavigationBarContrastWhenTransparent(a.getBoolean( mTaskDescription.setEnsureNavigationBarContrastWhenTransparent(a.getBoolean( R.styleable.ActivityTaskDescription_ensureNavigationBarContrastWhenTransparent, R.styleable .ActivityTaskDescription_ensuringNavigationBarContrastWhenTransparent, true)); true)); } } Loading
core/java/android/view/Window.java +16 −12 Original line number Original line Diff line number Diff line Loading @@ -2340,10 +2340,11 @@ public abstract class Window { * <p>When the status bar color has a non-zero alpha value, the value of this * <p>When the status bar color has a non-zero alpha value, the value of this * property has no effect. * property has no effect. * * * @see android.R.attr#ensureStatusBarContrastWhenTransparent * @see android.R.attr#ensuringStatusBarContrastWhenTransparent * @hide pending API * @see #isEnsuringStatusBarContrastWhenTransparent * @see #setStatusBarColor */ */ public void setEnsureStatusBarContrastWhenTransparent(boolean ensureContrast) { public void setEnsuringStatusBarContrastWhenTransparent(boolean ensureContrast) { } } /** /** Loading @@ -2353,11 +2354,12 @@ public abstract class Window { * <p>When the status bar color has a non-zero alpha value, the value of this * <p>When the status bar color has a non-zero alpha value, the value of this * property has no effect. * property has no effect. * * * @see android.R.attr#ensureStatusBarContrastWhenTransparent * @return true, if the system is ensuring contrast, false otherwise. * @return true, if the system is ensuring contrast, false otherwise. * @hide pending API * @see android.R.attr#ensuringStatusBarContrastWhenTransparent * @see #setEnsuringStatusBarContrastWhenTransparent * @see #setStatusBarColor */ */ public boolean isEnsureStatusBarContrastWhenTransparent() { public boolean isEnsuringStatusBarContrastWhenTransparent() { return false; return false; } } Loading @@ -2372,10 +2374,11 @@ public abstract class Window { * <p>When the navigation bar color has a non-zero alpha value, the value of this * <p>When the navigation bar color has a non-zero alpha value, the value of this * property has no effect. * property has no effect. * * * @see android.R.attr#ensureNavigationBarContrastWhenTransparent * @see android.R.attr#ensuringNavigationBarContrastWhenTransparent * @hide pending API * @see #isEnsuringNavigationBarContrastWhenTransparent * @see #setNavigationBarColor */ */ public void setEnsureNavigationBarContrastWhenTransparent(boolean ensureContrast) { public void setEnsuringNavigationBarContrastWhenTransparent(boolean ensureContrast) { } } /** /** Loading @@ -2386,10 +2389,11 @@ public abstract class Window { * property has no effect. * property has no effect. * * * @return true, if the system is ensuring contrast, false otherwise. * @return true, if the system is ensuring contrast, false otherwise. * @see android.R.attr#ensureNavigationBarContrastWhenTransparent * @see android.R.attr#ensuringNavigationBarContrastWhenTransparent * @hide pending API * @see #setEnsuringNavigationBarContrastWhenTransparent * @see #setNavigationBarColor */ */ public boolean isEnsureNavigationBarContrastWhenTransparent() { public boolean isEnsuringNavigationBarContrastWhenTransparent() { return false; return false; } } Loading
core/java/com/android/internal/policy/PhoneWindow.java +6 −6 Original line number Original line Diff line number Diff line Loading @@ -2464,9 +2464,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } } if (!targetPreQ) { if (!targetPreQ) { mEnsureStatusBarContrastWhenTransparent = a.getBoolean( mEnsureStatusBarContrastWhenTransparent = a.getBoolean( R.styleable.Window_ensureStatusBarContrastWhenTransparent, false); R.styleable.Window_ensuringStatusBarContrastWhenTransparent, false); mEnsureNavigationBarContrastWhenTransparent = a.getBoolean( mEnsureNavigationBarContrastWhenTransparent = a.getBoolean( R.styleable.Window_ensureNavigationBarContrastWhenTransparent, true); R.styleable.Window_ensuringNavigationBarContrastWhenTransparent, true); } } WindowManager.LayoutParams params = getAttributes(); WindowManager.LayoutParams params = getAttributes(); Loading Loading @@ -3857,7 +3857,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } } @Override @Override public void setEnsureStatusBarContrastWhenTransparent(boolean ensureContrast) { public void setEnsuringStatusBarContrastWhenTransparent(boolean ensureContrast) { mEnsureStatusBarContrastWhenTransparent = ensureContrast; mEnsureStatusBarContrastWhenTransparent = ensureContrast; if (mDecor != null) { if (mDecor != null) { mDecor.updateColorViews(null, false /* animate */); mDecor.updateColorViews(null, false /* animate */); Loading @@ -3865,12 +3865,12 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } } @Override @Override public boolean isEnsureStatusBarContrastWhenTransparent() { public boolean isEnsuringStatusBarContrastWhenTransparent() { return mEnsureStatusBarContrastWhenTransparent; return mEnsureStatusBarContrastWhenTransparent; } } @Override @Override public void setEnsureNavigationBarContrastWhenTransparent(boolean ensureContrast) { public void setEnsuringNavigationBarContrastWhenTransparent(boolean ensureContrast) { mEnsureNavigationBarContrastWhenTransparent = ensureContrast; mEnsureNavigationBarContrastWhenTransparent = ensureContrast; if (mDecor != null) { if (mDecor != null) { mDecor.updateColorViews(null, false /* animate */); mDecor.updateColorViews(null, false /* animate */); Loading @@ -3878,7 +3878,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } } @Override @Override public boolean isEnsureNavigationBarContrastWhenTransparent() { public boolean isEnsuringNavigationBarContrastWhenTransparent() { return mEnsureNavigationBarContrastWhenTransparent; return mEnsureNavigationBarContrastWhenTransparent; } } Loading
core/res/res/values/attrs.xml +8 −10 Original line number Original line Diff line number Diff line Loading @@ -2104,9 +2104,8 @@ <p>If the app does not target at least {@link android.os.Build.VERSION_CODES#Q Q}, <p>If the app does not target at least {@link android.os.Build.VERSION_CODES#Q Q}, this attribute is ignored. this attribute is ignored. @see android.view.Window#setEnsureStatusBarContrastWhenTransparent @see android.view.Window#setEnsuringStatusBarContrastWhenTransparent --> @hide pendingAPI --> <attr name="ensuringStatusBarContrastWhenTransparent" format="boolean" /> <attr name="ensureStatusBarContrastWhenTransparent" format="boolean" /> <!-- Sets whether the system should ensure that the navigation bar has enough <!-- Sets whether the system should ensure that the navigation bar has enough contrast when a fully transparent background is requested. contrast when a fully transparent background is requested. Loading @@ -2121,9 +2120,8 @@ <p>If the app does not target at least {@link android.os.Build.VERSION_CODES#Q Q}, <p>If the app does not target at least {@link android.os.Build.VERSION_CODES#Q Q}, this attribute is ignored. this attribute is ignored. @see android.view.Window#setEnsureNavigationBarContrastWhenTransparent @see android.view.Window#setEnsuringNavigationBarContrastWhenTransparent --> @hide pendingApi --> <attr name="ensuringNavigationBarContrastWhenTransparent" format="boolean" /> <attr name="ensureNavigationBarContrastWhenTransparent" format="boolean" /> <!-- The duration, in milliseconds, of the window background fade duration <!-- The duration, in milliseconds, of the window background fade duration when transitioning into or away from an Activity when called with an when transitioning into or away from an Activity when called with an Loading Loading @@ -9014,10 +9012,10 @@ <!-- @hide From Theme.navigationBarColor, used for the TaskDescription navigation bar <!-- @hide From Theme.navigationBarColor, used for the TaskDescription navigation bar color. --> color. --> <attr name="navigationBarColor"/> <attr name="navigationBarColor"/> <!-- @hide From Window.ensureStatusBarContrastWhenTransparent --> <!-- @hide From Window.ensuringStatusBarContrastWhenTransparent --> <attr name="ensureStatusBarContrastWhenTransparent"/> <attr name="ensuringStatusBarContrastWhenTransparent"/> <!-- @hide From Window.ensureNavigationBarContrastWhenTransparent --> <!-- @hide From Window.ensuringNavigationBarContrastWhenTransparent --> <attr name="ensureNavigationBarContrastWhenTransparent"/> <attr name="ensuringNavigationBarContrastWhenTransparent"/> </declare-styleable> </declare-styleable> <declare-styleable name="Shortcut"> <declare-styleable name="Shortcut"> Loading