@Implements(value=android.app.StatusBarManager.class, isInAndroidSdk=false) public class ShadowStatusBarManager extends Object
Robolectric implementation of StatusBarManager
.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DISABLE_MASK |
static int |
DEFAULT_DISABLE2_MASK |
static int |
DISABLE_CLOCK |
static int |
DISABLE_EXPAND |
static int |
DISABLE_HOME |
static int |
DISABLE_NONE |
static int |
DISABLE_NOTIFICATION_ALERTS |
static int |
DISABLE_RECENT |
static int |
DISABLE_SEARCH |
static int |
DISABLE2_NONE |
static int |
DISABLE2_ROTATE_SUGGESTIONS |
Constructor and Description |
---|
ShadowStatusBarManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
disable(int what) |
protected void |
disable2(int what) |
int |
getDisable2Flags()
Returns the disable flags previously set in
disable2(int) . |
int |
getDisableFlags()
Returns the disable flags previously set in
disable(int) . |
protected void |
setDisabledForSetup(boolean disabled) |
public static final int DEFAULT_DISABLE_MASK
public static final int DEFAULT_DISABLE2_MASK
public static final int DISABLE_NOTIFICATION_ALERTS
public static final int DISABLE_EXPAND
public static final int DISABLE_HOME
public static final int DISABLE_CLOCK
public static final int DISABLE_RECENT
public static final int DISABLE_SEARCH
public static final int DISABLE_NONE
public static final int DISABLE2_ROTATE_SUGGESTIONS
public static final int DISABLE2_NONE
@Implementation protected void disable(int what)
@Implementation(minSdk=23) protected void disable2(int what)
@Implementation(minSdk=10000) protected void setDisabledForSetup(boolean disabled)
public int getDisableFlags()
Returns the disable flags previously set in disable(int)
.
public int getDisable2Flags()
Returns the disable flags previously set in disable2(int)
.