public class AmbientState extends Object
Constructor and Description |
---|
AmbientState() |
Modifier and Type | Method and Description |
---|---|
com.android.systemui.statusbar.ActivatableNotificationView |
getActivatedChild() |
ArrayList<View> |
getDraggedViews() |
int |
getInnerHeight() |
float |
getMaxHeadsUpTranslation() |
float |
getOverScrollAmount(boolean top) |
int |
getScrollY() |
int |
getSpeedBumpIndex() |
float |
getStackTranslation() |
float |
getTopPadding() |
boolean |
isDark() |
boolean |
isDimmed() |
boolean |
isDismissAllInProgress() |
boolean |
isHideSensitive() |
boolean |
isShadeExpanded() |
void |
onBeginDrag(View view) |
void |
onDragFinished(View view) |
void |
setActivatedChild(com.android.systemui.statusbar.ActivatableNotificationView activatedChild)
In dimmed mode, a child can be activated, which happens on the first tap of the double-tap
interaction.
|
void |
setDark(boolean dark)
In dark mode, we draw as little as possible, assuming a black background
|
void |
setDimmed(boolean dimmed) |
void |
setDismissAllInProgress(boolean dismissAllInProgress) |
void |
setHeadsUpManager(HeadsUpManager headsUpManager) |
void |
setHideSensitive(boolean hideSensitive) |
void |
setLayoutHeight(int layoutHeight) |
void |
setLayoutMinHeight(int layoutMinHeight) |
void |
setMaxHeadsUpTranslation(float maxHeadsUpTranslation) |
void |
setOverScrollAmount(float amount,
boolean onTop) |
void |
setScrollY(int scrollY) |
void |
setShadeExpanded(boolean shadeExpanded) |
void |
setSpeedBumpIndex(int speedBumpIndex) |
void |
setStackTranslation(float stackTranslation) |
void |
setTopPadding(int topPadding) |
public int getScrollY()
public void setScrollY(int scrollY)
public void onBeginDrag(View view)
public void onDragFinished(View view)
public void setDimmed(boolean dimmed)
dimmed
- Whether we are in a dimmed state (on the lockscreen), where the backgrounds are
translucent and everything is scaled back a bit.public void setDark(boolean dark)
public void setHideSensitive(boolean hideSensitive)
public void setActivatedChild(com.android.systemui.statusbar.ActivatableNotificationView activatedChild)
public boolean isDimmed()
public boolean isDark()
public boolean isHideSensitive()
public com.android.systemui.statusbar.ActivatableNotificationView getActivatedChild()
public void setOverScrollAmount(float amount, boolean onTop)
public float getOverScrollAmount(boolean top)
public int getSpeedBumpIndex()
public void setSpeedBumpIndex(int speedBumpIndex)
public void setHeadsUpManager(HeadsUpManager headsUpManager)
public float getStackTranslation()
public void setStackTranslation(float stackTranslation)
public void setLayoutHeight(int layoutHeight)
public float getTopPadding()
public void setTopPadding(int topPadding)
public int getInnerHeight()
public boolean isShadeExpanded()
public void setShadeExpanded(boolean shadeExpanded)
public void setMaxHeadsUpTranslation(float maxHeadsUpTranslation)
public float getMaxHeadsUpTranslation()
public void setDismissAllInProgress(boolean dismissAllInProgress)
public boolean isDismissAllInProgress()
public void setLayoutMinHeight(int layoutMinHeight)