Loading core/java/android/view/View.java +220 −294 File changed.Preview size limit exceeded, changes collapsed. Show changes core/java/android/view/ViewConfiguration.java +17 −1 Original line number Diff line number Diff line Loading @@ -46,6 +46,12 @@ public class ViewConfiguration { */ private static final int SCROLL_BAR_DEFAULT_DELAY = 300; /** * Default delay before the scrollbars fade in milliseconds for the first * time they are shown to the user. */ private static final int SCROLL_BAR_DEFAULT_INITIAL_DELAY = 1500; /** * Defines the length of the fading edges in dips */ Loading Loading @@ -395,12 +401,22 @@ public class ViewConfiguration { } /** * @return Default delay before the scrollbars fade in milliseconds * @return Default delay in milliseconds before the scrollbars fade out * after they have been awoken. */ public static int getScrollDefaultDelay() { return SCROLL_BAR_DEFAULT_DELAY; } /** * @return Default delay in milliseconds before the scrollbars fade out * after they are initially shown to the user. * @hide Pending cleanup of ViewConfiguration values. */ public static int getScrollDefaultInitialDelay() { return SCROLL_BAR_DEFAULT_INITIAL_DELAY; } /** * @return the length of the fading edges in dips * Loading graphics/java/android/graphics/drawable/Drawable.java +16 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ import android.graphics.Xfermode; import android.os.Trace; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.IntProperty; import android.util.StateSet; import android.util.TypedValue; import android.util.Xml; Loading Loading @@ -1351,5 +1352,20 @@ public abstract class Drawable { default: return defaultMode; } } /** @hide */ public static final IntProperty<Drawable> ALPHA = new IntProperty<Drawable>("alpha") { @Override public void setValue(Drawable object, int value) { object.mutate(); object.setAlpha(value); object.invalidateSelf(); } @Override public Integer get(Drawable object) { return object.getAlpha(); } }; } Loading
core/java/android/view/View.java +220 −294 File changed.Preview size limit exceeded, changes collapsed. Show changes
core/java/android/view/ViewConfiguration.java +17 −1 Original line number Diff line number Diff line Loading @@ -46,6 +46,12 @@ public class ViewConfiguration { */ private static final int SCROLL_BAR_DEFAULT_DELAY = 300; /** * Default delay before the scrollbars fade in milliseconds for the first * time they are shown to the user. */ private static final int SCROLL_BAR_DEFAULT_INITIAL_DELAY = 1500; /** * Defines the length of the fading edges in dips */ Loading Loading @@ -395,12 +401,22 @@ public class ViewConfiguration { } /** * @return Default delay before the scrollbars fade in milliseconds * @return Default delay in milliseconds before the scrollbars fade out * after they have been awoken. */ public static int getScrollDefaultDelay() { return SCROLL_BAR_DEFAULT_DELAY; } /** * @return Default delay in milliseconds before the scrollbars fade out * after they are initially shown to the user. * @hide Pending cleanup of ViewConfiguration values. */ public static int getScrollDefaultInitialDelay() { return SCROLL_BAR_DEFAULT_INITIAL_DELAY; } /** * @return the length of the fading edges in dips * Loading
graphics/java/android/graphics/drawable/Drawable.java +16 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ import android.graphics.Xfermode; import android.os.Trace; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.IntProperty; import android.util.StateSet; import android.util.TypedValue; import android.util.Xml; Loading Loading @@ -1351,5 +1352,20 @@ public abstract class Drawable { default: return defaultMode; } } /** @hide */ public static final IntProperty<Drawable> ALPHA = new IntProperty<Drawable>("alpha") { @Override public void setValue(Drawable object, int value) { object.mutate(); object.setAlpha(value); object.invalidateSelf(); } @Override public Integer get(Drawable object) { return object.getAlpha(); } }; }