summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove notification content from icon a11yJulia Reynolds2025-07-081-11/+1
| | | | | | | | | | | | The content can be read when the full cards are visible Test: StatusBarIconViewTest Test: enable talkback, highlight icons Flag: EXEMPT bug fix Bug: 338024220 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:db50605af64b59794c107dee08b126a360506106) Merged-In: Ic607ab91e77bc660e3fccbc2390dd60151798ad7 Change-Id: Ic607ab91e77bc660e3fccbc2390dd60151798ad7
* Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-021-1/+12
|\ | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * [SB Refactor] Minor logging changes to StatusBarIconController etc.Caitlin Shkuratov2023-03-021-1/+12
| | | | | | | | | | | | | | | | | | Bug: 267236367 Test: `adb shell dumpsys activity service com.android.systemui/.SystemUIService StatusBarIconControllerImpl` -> shows new logging changes Change-Id: Ifd28e9202cd0469d76502ecdc004e1fc6e99551e
* | Merge tag 'android-13.0.0_r16' into t13.0George Zacharia2022-12-151-5/+17
|\| | | | | | | | | | | | | | | | | | | | | Android 13.0.0 Release 16 (TQ1A.221205.011) Also included the following reverts: 1. Revert "fw/b: Import Wi-Fi standard icon [1/2]" 2. Revert "Add preference for toggling the wallpaper zooming animation" Co-authored-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: I9a6b51e452c28d10411712c59778bb54da5783e9
| * Merge changes I723cfc04,I1eba794e,I9d421a4a,Icd9c2b14,Idee192ff, ... into ↵Caitlin Shkuratov2022-09-291-2/+12
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tm-qpr-dev * changes: [SB Refactor] Only show wifi icon if (1) the network is active and validated; or (2) we're configured to always show it when enabled. [SB Refactor] Listen to the WIFI_STATE_CHANGED_ACTION broadcasts and re-fetch `isWifiEnabled` whenever it happens. [SB Refactor] Connect the old pipeline and new pipeline visibility calculations together for wifi. [SB Refactor] Add an annotation for the visibility states. [SB Refactor] Add tracking for wifi enabled state and pipe it through to the UI. [SB Refactor] Turn the wifi ViewModel into an @SysUISingleton and instead create separate view models per location. [SB Refactor] Display the activity in and out icons using the new pipeline. [SB Refactor] Expose the wifi repository flows as StateFlows.
| | * [SB Refactor] Add an annotation for the visibility states.Caitlin Shkuratov2022-09-261-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also updates the starting visibility state values to HIDDEN for mobile and wifi. Bug: 238425913 Test: manual: Verified icons still work Test: StatusBarIconViewTest Change-Id: Icd9c2b14f46a148acc2113ac1e20f85924f19e75
| * | Improve dumps for NotificationShelf viewsAndrás Kurucz2022-09-231-3/+5
| |/ | | | | | | | | | | | | Bug: 244695510 Test: check the dumps from a bugreport manually Change-Id: If0f71a778358a207cb2ed87eb23cb8b05b2bebdf
* | SystemUI: Refactor colored statusbar iconsPranav Vashi2022-10-261-113/+71
| | | | | | | | | | | | | | | | * Remove painful systemui checks everywhere in StatusBariconView * Apply NO_COLOR when colored icons are enabled. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: Iff53377b1fa51f4dba048d6fcbf9a837732bd227
* | Make colored Statusbar Icons optional [1/2]spkal012022-10-261-12/+41
| | | | | | | | | | Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: Ida5131483b49ed5fc468101746b0d5f0ed539430
* | StatusBarIconView: use app icons instead of provided notif oneDil3mm42022-10-261-66/+93
|/ | | | | Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: I9e133281cd1e535eecbc581b1d8792c1973b062c
* Make notification getParcelable usages saferJulia Reynolds2022-04-151-5/+4
| | | | | | Test: SystemUITests, CtsAppTestCases Fixes: 198825327 Change-Id: I7a4868a56bc2c9a69d2fb1eae5d53faa3c9dede0
* Fix NPE in StatusBarIconView#getIconSteve Elliott2022-02-141-9/+11
| | | | | | | | | The code to downscale the Icon drawables does not account for potentially `null` Icons returned from `Icon#loadDrawableAsUser`. Fixes: 218331554 Test: manual + atest Change-Id: Iad1ef2975a0526a1fe129aa9693b6e9fe3d046b5
* Merge "Add traces to latency sensitive points"Nicolò Mazzucato2022-02-111-0/+4
|\
| * Add traces to latency sensitive pointsNicolo' Mazzucato2022-02-101-0/+4
| | | | | | | | | | | | | | | | Those places have been identified as the main culprit of unfold latency in sysui doing some method tracing. By adding traces, we can monitor them better in perfetto recordings. Bug: 197515205 Test: recorded a trace and checked if they were there. Change-Id: I6f1d111b7fb33fabeba604e62d4208f5ca1f03d1
* | Support multiple dark tint areas in status barWinson Chung2022-02-101-2/+3
|/ | | | | | | | | | | | - With ag/16678942 the system will now compute multiple appearance regions for all windows under the status bar, so we need to handle scenarios where multiple apps can create multiple dark tint areas Bug: 208717544 Test: atest SystemUITests:LightBarControllerTest Test: Install MultiAppeareanceRegionTest apk from b/208717544 and verify that that the multiple dark areas work in multiwindow Change-Id: I0d8696f6b2fb7793ccbdcbfe7e2520fceb24e5ec
* Restrict and validatee small icon sizes of notificationsJernej Virag2022-02-031-27/+13
| | | | | | | | | | | This makes StatusBarIconView downscale notification icons if they exceed notification_small_icon_size. This avoids possibility of large memory usage if the app passes a huge drawable asset as the small notification icon. This restriction currenctly doesn't apply for animated or stateful drawables. Bug: 209044537 Bug: 193720474 Test: Manually Change-Id: I1bf19e9d2b1d9fef67e1653e601b11fd74f72e73
* Guard against NPEJulia Reynolds2021-07-091-4/+6
| | | | | | | | Test: atest; manually ensure that icons still work when using SystemUI's context Fixes: 192575971 Change-Id: I3c93d4898a6995148606b15fc8bd98d465741c0a
* Move ActivityLaunchAnimator in its own lib. (1/n)Jordan Demeulenaere2021-04-081-1/+1
| | | | | | Bug: 184121838 Test: Manual Change-Id: Ib979fed2f59d9dbf5f0696edb5fcb4956600e6e0
* Increase maximum allowed size for status bar iconsBeth Thibodeau2021-03-251-4/+21
| | | | | | | | | | | | The previous size was causing some apps to crash which otherwise worked fine. This more closely matches the hard limit in RecordingCanvas (which we need to stay below to prevent SystemUI from crashing). Fixes: 182891864 Fixes: 182232777 Test: atest StatusBarIconViewTest Test: manual - posting notifications with different drawable sizes Change-Id: I8deacc651e05a202ec980eeb8bcdf4f92daea8eb
* Merge "Limit maximum allowed size for a status bar icon" into rvc-dev am: ↵Beth Thibodeau2021-03-031-0/+10
|\ | | | | | | | | | | | | | | | | | | 542be62b05 am: 35e7a1408e Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13430466 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Icf74ac1746e7af32692792ff0ec6d29ba87463e9
| * Limit maximum allowed size for a status bar iconBeth Thibodeau2021-01-281-0/+10
| | | | | | | | | | | | | | | | Bug: 169255797 Test: atest StatusBarIconViewTest Test: verified that app crashes instead of SysUI following repro steps Change-Id: I66e3bb873841b5babfd522c82cea7bed361fc14c (cherry picked from commit 4394595debfd3f625b45a8b2280cdbec61f8dc71)
* | Merge "Apply theme by using notification context" am: abca0166d7Ned Burns2020-09-031-4/+9
|\ \ | |/ |/| | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1372978 Change-Id: Ia447331ad63737e19d4a9cec3d22deb36fbd72c5
| * Apply theme by using notification contextZhao Dong2020-09-011-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply theme by using notification context instead of SystemUI context when loading notification icon drawable. When loading notification icon for StatusBarIconView, use notification's context as parameter, then applyTheme will find theme resource in notification package and avoid finding wrong theme resource in SystemUI for other apply's drawable resources. Bug: 158126029 Change-Id: Iaf8d8c6ff4af988233a1a331b255f6a4b44ca6cb
* | Important conversations now also transform into the shelfSelim Cinek2020-03-301-7/+15
| | | | | | | | | | | | | | | | | | Instead of always using the small icon, important conversations now transform from the conversationIcon Bug: 150905003 Test: add a few notification, observe nice transitions Change-Id: Ia8c5121a6bd415ccca9d959d291665b8ac43b000
* | Adapted Shelf algorithm to also use conversation iconsSelim Cinek2020-03-301-1/+5
| | | | | | | | | | | | | | | | | | | | Previously the algorithm would only work with a header and the icon wouldn't transform into the shelf. This is now fixed. Bug: 150905003 Test: add conversation notification, observe normal transition Change-Id: I533b8f06bee29ee93888d748808b4313fef338e8
* | Adding important people avatars to AoDAlex Mang2020-02-191-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Icons will show up on aod, status bar and expanded view. Icons are currently updated on notification redaction. We attempt to retreive people icons across a number of sources (in order of priority): 1. ShortcutManager 2. Notification.getLargeIcon 3. Person.getIcon() from MESSAGE_EXTRAS 4. Notification.getSmallIcon (fallback if everythign fails fails) Icons are cached when they the notification is an important conversation and is sensitive Bug: 144874876 Test: manually on device Change-Id: I3292d2fbd90e39c4d2fe9eaa5b2855b7b65d89f9
* | Updates Icon type checks in framework to include TYPE_URI_ADAPTIVE_BITMAPMehdi Alizadeh2020-01-091-0/+1
| | | | | | | | | | | | Bug: 142831407 Test: atest RemoteViewsTest StatusBarIconViewTest Change-Id: If55935a194d1e4fb22c5afe1ee102e5b167b0d1d
* | Never split multiple constructors.Robert Snoeberger2019-11-111-10/+10
|/ | | | | Test: mp sysuig Change-Id: Ia410a5959c8e38ec42e0a475d4da479de4c6b7c2
* Not rendering the dark icons with the shelf anymoreSelim Cinek2019-06-061-21/+24
| | | | | | | | | | | | | Instead it is rendered by a dedicated container. This will help with a lot of the transitions that are necessary for the bypass and also fixes the coloring of the notification icons on the lockscreen. Fixes: 133869048 Bug: 130327302 Bug: 133182504 Test: atest SystemUITests Change-Id: I422b3da488fdac6577173d41b26c67f81c7826c5
* Make dimens in StatusBarIconView resourcesFabian Kozynski2019-05-151-15/+19
| | | | | | | | | | | | Now the expected size and desired size of System Icons can be overlaid. Resources as part of core, so they can be overlaid by Car. Also, makes sure that maybeUpdateIconScaleDimens is the one called to sort out what updateIconScaleXXXX should be called. Test: visual, using icons that are not 17dp Fixes: 132354163 Change-Id: I902050d4b3c44587a023614f738ebad1d857b8bf
* Scale all StatusBarIconView status icons to 17dpFabian Kozynski2019-05-071-3/+26
| | | | | | | | | | | | | | | | | | StatusBarIconView will scale status icons to 17dp regardless of the intrinsic size of the drawable. It uses the intrinisc height of the icon as that's the most visible when the icons are not the same heihgt. Also change permission icons in PhoneStatusBarPolicy to use the same as PrivacyType and guarantee consistency. Test: observe existing icons, they are same size as before Test: open camera and maps and observe permission icons, they are same height as other icons Test: change themes and check that icons change and are the right size Fixes: 131851643 Change-Id: Ied8a2f1d96e6a0e5ee456f2babb2b68b803445c9
* Fixes an issue where certain notification icons were not tintedSelim Cinek2019-01-291-1/+1
| | | | | | | | | A few Drawables are not handling an update to a color matrix properly when its set as a color filter. As a result we now unset and reset the filter when changed. Change-Id: I905c516ba365d89bfc552f6b30cfcbc51a0965e8 Fixes: 111853077
* AOD notification icons placementLucas Dupin2019-01-121-0/+4
| | | | | | | | | | | | | | Whenever there's a custom clock, notification icons should be on the top left. The default clock will just show the dark shelf. Test: atest NotificationStackScrollLayoutTest Test: atest CollapsedStatusBarFragmentTest Test: visual - with and w/o clock plugin Test: visual - with and w/o RTL layout Bug: 122301289 Bug: 111405682 Fixes: 120563185 Change-Id: I4c513d347f656262ee6f91bd208ab9f219e4419c
* Make DarkIconDispatcher visible to pluginsBeverly2019-01-021-1/+1
| | | | | | Test: manual Bug: 115322193 Change-Id: I6204d771e476c504e9070ebc88dd8fd44b268635
* Notification icons on AOD status barLucas Dupin2018-10-301-4/+0
| | | | | | | | Bug: 111405682 Fixes: 118421265 Fixes: 113352017 Test: visual Change-Id: I439d9533b2b0e28ecb696c5a2eda92e9312b027a
* fix decor color selectionLucas Dupin2018-10-231-5/+21
| | | | | | Change-Id: I4baa9f5f0abc6fdba2cdb5fadb9d75db929ce6b8 Fixes: 118309780 Test: visual
* Dark Notification ShadeLucas Dupin2018-07-121-1/+2
| | | | | | | Test: adb shell service call uimode 4 i32 1 # day Test: adb shell service call uimode 4 i32 2 # night Bug: 110758454 Change-Id: Ib6fce91d1aeff7e1fbfe8a7a528095487fbdb3f8
* Merge "Fixed a flickering of the icon when it goes into the shelf" into ↵Selim Cinek2018-06-081-0/+7
|\ | | | | | | | | | | | | | | pi-dev am: 40e41a6299 am: 62a098c7e3 Change-Id: I4e192cd13aa43f59e75d8d29011cd1a5cb92b753
| * Fixed a flickering of the icon when it goes into the shelfSelim Cinek2018-06-081-0/+7
| | | | | | | | | | | | | | | | | | We can adjust the Pivot such that the scaling doesn't happen irregularly and that the animation is smooth. Change-Id: Ib2e42a20430e1c10950a197a4c04e7c64c7dec67 Test: add notification, no flicker Fixes: 80270979
* | Merge "More conservative dark text calculation"TreeHugger Robot2018-06-081-3/+3
|\ \
| * | More conservative dark text calculationLucas Dupin2018-06-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored WallpaperColors to use constrast ratio instead of luminance for detecting dark pixels. Also using a contrast more conservative than what GAR requires while decreasing the dark area threshold. Change-Id: I67b799be4b7ccd50bb3e63c6179d513b9b76446b Fixes: 76435920 Test: manually set various wallpapers Test: use new debug flag to verify which pixel is actually dark
* | | Merge "Status bar etc dots 4dp" into pi-dev am: d54c3a3036Evan Laird2018-06-061-4/+3
|\ \ \ | | |/ | |/| | | | | | | | | | am: 9d55905221 Change-Id: Ib805a1ebb26c495dbf4704b992bf5fe6bdf67b2a
| * | Status bar etc dots 4dpEvan Laird2018-06-011-4/+3
| |/ | | | | | | | | | | | | | | | | Increased the radius of status bar dots to 2dp (4dp diameter, math). And fix the alpha so that they aren't black when the icons are gray Change-Id: I794c1f251b832e156c5f91dfc3c076d4d772d9a9 Test: visual Fixes: 80303378
* | Merge "Status bar icons 15 dp" into pi-dev am: 97abc762ccEvan Laird2018-05-211-4/+16
|\| | | | | | | | | | | am: 4811db16a5 Change-Id: I75f145a1cd7445674964e0e7b1127290df3bad87
| * Merge "Status bar icons 15 dp" into pi-devTreeHugger Robot2018-05-211-4/+16
| |\
| | * Status bar icons 15 dpEvan Laird2018-05-181-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shrink all status bar icons by 2dp. This means setting a scale factor on anything that is a StatusBarIconView, and manually scaling down wifi and mobile data groups. Also fix the padding between the mobile data view and the battery Also snuck in a fix for the battery saver icon clipping on QS Change-Id: I5f5430d9e9c66f5c2794dcf4974cf18aa3bff061 Test: visual Fixes: 74985733 Fixes: 79967193 Bug: 77822905
* | | Merge "Fixed an issue where icons could remain white" into pi-dev am: 5f259a7d90Selim Cinek2018-05-161-1/+1
|\| | | | | | | | | | | | | | | | | am: 991c9f1af0 Change-Id: I0147e3b675408aded6b30275d873b2e6348ce2e2
| * | Fixed an issue where icons could remain whiteSelim Cinek2018-05-151-1/+1
| |/ | | | | | | | | | | Test: code inspection Change-Id: Ib2d2e5f5a638bd86fcd17e8c3dfe28501de75bad Fixes: 77024183
* / Migrated SystemUI & SettingsLib to androidxAurimas Liutikas2018-04-201-1/+1
|/ | | | | | Test: make SystemUI SettingsLib Bug:76692459 Change-Id: I248fdf4042a0a97bc6349091da21c936c2d37c95
* Limit status icons and show etc dotsEvan Laird2018-04-121-17/+19
| | | | | | | | | | | When <= 5 status icons exist, try to show them all (space permitting). If > 5 exist, show 4 and etc dots. Test: visual Change-Id: I4c09344bee75b3cab6256dd69f11337b9b667b0f Fixes: 73778753 Fixes: 77660387 Bug: 77822905