FileDocCategorySizeDatePackage
AnimationFilter.javaAPI DocAndroid 5.1 API4177Thu Mar 12 22:22:42 GMT 2015com.android.systemui.statusbar.stack

AnimationFilter

public class AnimationFilter extends Object
Filters the animations for only a certain type of properties.

Fields Summary
boolean
animateAlpha
boolean
animateY
boolean
animateZ
boolean
animateScale
boolean
animateHeight
boolean
animateTopInset
boolean
animateDimmed
boolean
animateDark
boolean
animateHideSensitive
boolean
hasDelays
boolean
hasGoToFullShadeEvent
boolean
hasDarkEvent
int
darkAnimationOriginIndex
Constructors Summary
Methods Summary
public com.android.systemui.statusbar.stack.AnimationFilteranimateAlpha()

        animateAlpha = true;
        return this;
    
public com.android.systemui.statusbar.stack.AnimationFilteranimateDark()

        animateDark = true;
        return this;
    
public com.android.systemui.statusbar.stack.AnimationFilteranimateDimmed()

        animateDimmed = true;
        return this;
    
public com.android.systemui.statusbar.stack.AnimationFilteranimateHeight()

        animateHeight = true;
        return this;
    
public com.android.systemui.statusbar.stack.AnimationFilteranimateHideSensitive()

        animateHideSensitive = true;
        return this;
    
public com.android.systemui.statusbar.stack.AnimationFilteranimateScale()

        animateScale = true;
        return this;
    
public com.android.systemui.statusbar.stack.AnimationFilteranimateTopInset()

        animateTopInset = true;
        return this;
    
public com.android.systemui.statusbar.stack.AnimationFilteranimateY()

        animateY = true;
        return this;
    
public com.android.systemui.statusbar.stack.AnimationFilteranimateZ()

        animateZ = true;
        return this;
    
public voidapplyCombination(java.util.ArrayList events)
Combines multiple filters into {@code this} filter, using or as the operand .

param
events The animation events from the filters to combine.

        reset();
        int size = events.size();
        for (int i = 0; i < size; i++) {
            NotificationStackScrollLayout.AnimationEvent ev = events.get(i);
            combineFilter(events.get(i).filter);
            if (ev.animationType ==
                    NotificationStackScrollLayout.AnimationEvent.ANIMATION_TYPE_GO_TO_FULL_SHADE) {
                hasGoToFullShadeEvent = true;
            }
            if (ev.animationType ==
                    NotificationStackScrollLayout.AnimationEvent.ANIMATION_TYPE_DARK) {
                hasDarkEvent = true;
                darkAnimationOriginIndex = ev.darkAnimationOriginIndex;
            }
        }
    
private voidcombineFilter(com.android.systemui.statusbar.stack.AnimationFilter filter)

        animateAlpha |= filter.animateAlpha;
        animateY |= filter.animateY;
        animateZ |= filter.animateZ;
        animateScale |= filter.animateScale;
        animateHeight |= filter.animateHeight;
        animateTopInset |= filter.animateTopInset;
        animateDimmed |= filter.animateDimmed;
        animateDark |= filter.animateDark;
        animateHideSensitive |= filter.animateHideSensitive;
        hasDelays |= filter.hasDelays;
    
public com.android.systemui.statusbar.stack.AnimationFilterhasDelays()

        hasDelays = true;
        return this;
    
private voidreset()

        animateAlpha = false;
        animateY = false;
        animateZ = false;
        animateScale = false;
        animateHeight = false;
        animateTopInset = false;
        animateDimmed = false;
        animateDark = false;
        animateHideSensitive = false;
        hasDelays = false;
        hasGoToFullShadeEvent = false;
        hasDarkEvent = false;
        darkAnimationOriginIndex =
                NotificationStackScrollLayout.AnimationEvent.DARK_ANIMATION_ORIGIN_INDEX_ABOVE;