SystemUI状态栏

SystemUI状态栏

  • 1、日志开关
  • 2、相关属性配置
  • 3、Statusbar界面启动

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

<string-array name="config_statusBarIcons">
    <item><xliff:g id="id">@string/status_bar_no_callingxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_call_strengthxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_alarm_clockxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_rotatexliff:g>item>
    <item><xliff:g id="id">@string/status_bar_headsetxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_data_saverxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_imexliff:g>item>
    <item><xliff:g id="id">@string/status_bar_sync_failingxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_sync_activexliff:g>item>
    <item><xliff:g id="id">@string/status_bar_nfcxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_ttyxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_speakerphonexliff:g>item>
    <item><xliff:g id="id">@string/status_bar_cdma_erixliff:g>item>
    <item><xliff:g id="id">@string/status_bar_data_connectionxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_phone_evdo_signalxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_phone_signalxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_securexliff:g>item>
    <item><xliff:g id="id">@string/status_bar_managed_profilexliff:g>item>
    <item><xliff:g id="id">@string/status_bar_castxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_screen_recordxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_xliff:g>item>
    <item><xliff:g id="id">@string/status_bar_bluetoothxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_cameraxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_microphonexliff:g>item>
    <item><xliff:g id="id">@string/status_bar_locationxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_mutexliff:g>item>
    <item><xliff:g id="id">@string/status_bar_volumexliff:g>item>
    <item><xliff:g id="id">@string/status_bar_zenxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_ethernetxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_wifixliff:g>item>
    <item><xliff:g id="id">@string/status_bar_hotspotxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_mobilexliff:g>item>
    <item><xliff:g id="id">@string/status_bar_airplanexliff:g>item>
    <item><xliff:g id="id">@string/status_bar_batteryxliff:g>item>
    <item><xliff:g id="id">@string/status_bar_sensors_offxliff:g>item>
string-array>

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

<string-array name="config_statusBarIconsToExclude" translatable="false">
    <item>@*android:string/status_bar_rotateitem>
    <item>@*android:string/status_bar_headsetitem>
string-array>

3、Statusbar界面启动

SystemUI状态栏_第1张图片

你可能感兴趣的:(Android,#,Android,SystemUI,SystemUI,状态栏)