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>