SystemUI状态栏

SystemUI状态栏

android13-release


1、日志开关

Log.isLoggable通过设置属性,重启应用;Compile.IS_DEBUG日志开关是src-debug和src-release版本区别

frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar

日志属性开关 Log.isLoggable(TAG, Log.DEBUG)
NotificationGroupAlertTransferHelper.java log.tag.NotifGroupAlertTransfer
NotificationRemoteInputManager.java log.tag.NotifRemoteInputManager
AccessPointControllerImpl.java log.tag.AccessPointController
MobileSignalController.java log.tag.NetworkController.MobileSignalController(" + info.getSubscriptionId() + ")
NetworkControllerImpl.java log.tag.NetworkController、log.tag.NetworkControllerChat
NotificationEntryManager.java log.tag.NotificationEntryMgr
NotificationGroupManagerLegacy.java log.tag.LegacyNotifGroupManager
NotificationLogger.java log.tag.NotificationLogger
ExpandableNotificationRow.java log.tag.ExpandableNotifRow
FeedbackInfo.java log.tag.FeedbackInfo
NotificationBlockingHelperManager.java log.tag.BlockingHelper
NotificationContentView.java log.tag.NotificationContentView
NotificationGutsManager.java log.tag.NotificationGutsManager
NotificationStackScrollLayout.java log.tag.StackScroller
NotificationStackScrollLayoutController.java log.tag.StackScrollerController
DozeScrimController.java log.tag.DozeScrimController
NotificationPanelViewController.java log.tag.PanelView
PhoneStatusBarPolicy.java log.tag.PhoneStatusBarPolicy
ScrimController.java log.tag.ScrimController
StatusBarSignalPolicy.java log.tag.StatusBarSignalPolicy
StatusBarTouchableRegionManager.java log.tag.TouchableRegionManager
BatteryControllerImpl.java log.tag.BatteryController
BluetoothControllerImpl.java log.tag.BluetoothController
CastControllerImpl.java log.tag.CastController
FlashlightControllerImpl.java log.tag.FlashlightController
HotspotControllerImpl.java log.tag.HotspotController
SecurityControllerImpl.java log.tag.SecurityController
ZenModeControllerImpl.java log.tag.ZenModeController

2、相关属性配置

  • config_statusBarIcons 配置可以显示的状态栏图标
  • config_statusBarIconsToExclude 定义要从显示中排除的系统图标。也就是说,作为该列表一部分的状态栏中的图标永远不会显示。列表中的每个项目都必须是在core/res/res/config.xml中定义的字符串,以正确地排除图标。

frameworks/base/core/res/res/values/config.xml

xml 复制代码
<string-array name="config_statusBarIcons">
    <item><xliff:g id="id">@string/status_bar_no_calling</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_call_strength</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_alarm_clock</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_rotate</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_headset</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_data_saver</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_ime</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_sync_failing</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_sync_active</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_nfc</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_tty</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_speakerphone</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_cdma_eri</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_data_connection</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_phone_evdo_signal</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_phone_signal</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_secure</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_managed_profile</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_cast</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_screen_record</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_vpn</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_bluetooth</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_camera</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_microphone</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_location</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_mute</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_volume</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_zen</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_ethernet</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_wifi</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_hotspot</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_mobile</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_airplane</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_battery</xliff:g></item>
    <item><xliff:g id="id">@string/status_bar_sensors_off</xliff:g></item>
</string-array>

frameworks/base/packages/SystemUI/res/values/config.xml

xml 复制代码
<string-array name="config_statusBarIconsToExclude" translatable="false">
    <item>@*android:string/status_bar_rotate</item>
    <item>@*android:string/status_bar_headset</item>
</string-array>

3、Statusbar界面启动

相关推荐
图王大胜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
草上爬10 个月前
Qt6入门教程 10:菜单栏、工具栏和状态栏
qt·toolbar·状态栏·statusbar·菜单栏·工具栏·menubar