Methods Summary |
---|
public com.android.systemui.statusbar.stack.AnimationFilter | animateAlpha()
animateAlpha = true;
return this;
|
public com.android.systemui.statusbar.stack.AnimationFilter | animateDark()
animateDark = true;
return this;
|
public com.android.systemui.statusbar.stack.AnimationFilter | animateDimmed()
animateDimmed = true;
return this;
|
public com.android.systemui.statusbar.stack.AnimationFilter | animateHeight()
animateHeight = true;
return this;
|
public com.android.systemui.statusbar.stack.AnimationFilter | animateHideSensitive()
animateHideSensitive = true;
return this;
|
public com.android.systemui.statusbar.stack.AnimationFilter | animateScale()
animateScale = true;
return this;
|
public com.android.systemui.statusbar.stack.AnimationFilter | animateTopInset()
animateTopInset = true;
return this;
|
public com.android.systemui.statusbar.stack.AnimationFilter | animateY()
animateY = true;
return this;
|
public com.android.systemui.statusbar.stack.AnimationFilter | animateZ()
animateZ = true;
return this;
|
public void | applyCombination(java.util.ArrayList events)Combines multiple filters into {@code this} filter, using or as the operand .
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 void | combineFilter(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.AnimationFilter | hasDelays()
hasDelays = true;
return this;
|
private void | reset()
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;
|