StatusBarManager中的相关标志位

public static final int DISABLE_MASK = DISABLE_EXPAND | DISABLE_NOTIFICATION_ICONS
 | DISABLE_NOTIFICATION_ALERTS | DISABLE_NOTIFICATION_TICKER
 | DISABLE_SYSTEM_INFO | DISABLE_RECENT | DISABLE_HOME | DISABLE_BACK | DISABLE_CLOCK
 | DISABLE_SEARCH;

1.DISABLE_EXPAND

public static final int DISABLE_EXPAND = View.STATUS_BAR_DISABLE_EXPAND;
/**
 * @hide
*
 * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
 * out of the public fields to keep the undefined bits out of the developer's way.
 *
 * Flag to make the status bar not expandable. Unless you also
 * set {@link #STATUS_BAR_DISABLE_NOTIFICATION_ICONS}, new notifications will continue to show.
 */
Disable{@link #STATUS_BAR_DISABLE_NOTIFICATION_ICONS}
@UnsupportedAppUsage
public static final int STATUS_BAR_DISABLE_EXPAND = 0x00010000;

2.DISABLE_NOTIFICATION_ICONS

/**
 * @hide
*
 * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
 * out of the public fields to keep the undefined bits out of the developer's way.
 *
 * Flag to hide notification icons and scrolling ticker text.
 */
public static final int STATUS_BAR_DISABLE_NOTIFICATION_ICONS = 0x00020000;

3.DISABLE_NOTIFICATION_ALERTS

/**
 * @hide
*
 * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
 * out of the public fields to keep the undefined bits out of the developer's way.
 *
 * Flag to disable incoming notification alerts. This will not block
 * icons, but it will block sound, vibrating and other visual or aural notifications.
 */
public static final int STATUS_BAR_DISABLE_NOTIFICATION_ALERTS = 0x00040000;
PhoneStatusBarNotificationManagerService
DISABLE_EXPANDDISABLE_NOTIFICATION_ALERTS 

4.DISABLE_NOTIFICATION_TICKER

Flag to hide only the scrolling ticker. Note that
* {@link #STATUS_BAR_DISABLE_NOTIFICATION_ICONS} implies
* {@link #STATUS_BAR_DISABLE_NOTIFICATION_TICKER}.
public static final int STATUS_BAR_DISABLE_NOTIFICATION_TICKER = 0x00080000;
隐藏通知的滚动条。    
注意:{@link #STATUS_BAR_DISABLE_NOTIFICATION_ICONS}已经包含了{@link 
#STATUS_BAR_DISABLE_NOTIFICATION_TICKER}的功能。
立刻终止正在进行的ticking动作,并在PhoneStatusBar.tick()方法中阻止tick。这样一来通知的内容将不会出现在状态栏之上

5.DISABLE_SYSTEM_INFO

Flag to hide the center system info area.
public static final int DISABLE_SYSTEM_INFO = View.STATUS_BAR_DISABLE_SYSTEM_INFO;
public static final int STATUS_BAR_DISABLE_SYSTEM_INFO = 0x00100000;
mSystemlconArea0mSystemlconArea

6.DISABLE_RECENT

public static final int DISABLE_RECENT = View.STATUS_BAR_DISABLE_RECENT;
/**
 * Flag to hide only the recent apps button. Don't use this
 * unless you're a special part of the system UI (i.e., setup wizard, keyguard).
 */
@UnsupportedAppUsage
public static final int STATUS_BAR_DISABLE_RECENT = 0x01000000;

7.DISABLE_HOME

public static final int DISABLE_HOME = View.STATUS_BAR_DISABLE_HOME;
/**
 * @hideFULISCREENFULISCREEN
*
 * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
 * out of the public fields to keep the undefined bits out of the developer's way.
 *
 * Flag to hide only the home button. Don't use this
 * unless you're a special part of the system UI (i.e., setup wizard, keyguard).
 */
@UnsupportedAppUsage
public static final int STATUS_BAR_DISABLE_HOME = 0x00200000;

8.DISABLE_BACK

/** @hide */
public static final int DISABLE_BACK = View.STATUS_BAR_DISABLE_BACK;
/**
 * @hide
*
 * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
 * out of the public fields to keep the undefined bits out of the developer's way.
 *
 * Flag to hide only the back button. Don't use this
 * unless you're a special part of the system UI (i.e., setup wizard, keyguard).
 */
@UnsupportedAppUsage
public static final int STATUS_BAR_DISABLE_BACK = 0x00400000;

9.DISABLE_CLOCK

public static final int DISABLE_CLOCK = View.STATUS_BAR_DISABLE_CLOCK;
/**
 * @hide
*
 * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
 * out of the public fields to keep the undefined bits out of the developer's way.
 *
 * Flag to hide only the clock. You might use this if your activity has
 * its own clock making the status bar's clock redundant.
 */
public static final int STATUS_BAR_DISABLE_CLOCK = 0x00800000;

10.DISABLE_SEARCH

public static final int DISABLE_SEARCH = View.STATUS_BAR_DISABLE_SEARCH;
/**
 * @hide
*
 * NOTE: This flag may only be used in subtreeSystemUiVisibility. It is masked
 * out of the public fields to keep the undefined bits out of the developer's way.
 *
 * Flag to disable the global search gesture. Don't use this
 * unless you're a special part of the system UI (i.e., setup wizard, keyguard).
 */
public static final int STATUS_BAR_DISABLE_SEARCH = 0x02000000;

11.DISABLE_NAVIGATION

public static final int DISABLE_NAVIGATION =
 View.STATUS_BAR_DISABLE_HOME | View.STATUS_BAR_DISABLE_RECENT;
HOME
StatusBarManagerViewSTATUS_BAR_STATUS_BAR_
---SystemUIVisibilityStatusBarManager.disable(SystemUIVisibility
相关推荐
图王大胜2 个月前
Android SystemUI组件(11)SystemUIVisibility解读
android·framework·systemui·visibility
图王大胜2 个月前
Android SystemUI组件(10)禁用/重启锁屏流程分析
android·systemui·锁屏·keyguard
图王大胜2 个月前
Android SystemUI组件(09)唤醒亮屏 锁屏处理流程
android·systemui·锁屏·keyguard
图王大胜2 个月前
Android SystemUI组件(07)锁屏KeyguardViewMediator分析
android·framework·systemui·锁屏
ItJavawfc2 个月前
Android12_13左上角状态栏数字时间显示右移动
systemui·时间右移动
Swuagg3 个月前
AR 眼镜之-系统通知定制(通知弹窗)-实现方案
notification·systemui·系统通知·通知弹窗
Swuagg3 个月前
AR 眼镜之-系统通知定制(通知中心)-实现方案
systemui·系统通知·通知中心
小先生Zcutie7 个月前
【Android】SystemUI通知栏过滤指定应用的通知
android·systemui
hehui09218 个月前
android11 SystemUI入門之KeyguardPatternView解析
systemui