summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/statusbar/StatusIconDisplayable.java
Commit message (Collapse)AuthorAgeFilesLines
* [SB Refactor] Connect the old pipeline and new pipeline visibilityCaitlin Shkuratov2022-09-271-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | calculations together for wifi. The _new_ pipeline has the source of truth for whether the wifi icon *should* be visible. But, the _old_ view system has the source of truth for whether the wifi icon *can* be visible (i.e. if there's enough space for it). This CL hooks up those two systems together by having `WifiViewBinder#bind` return a `Binding` interface implementation, similar to `KeyguardButtomAreaViewBinder#bind`. This allows them to communicate with each other and correctly change the view's visibility. Bug: 238425913 Test: manual: Go into airplane mode and verify that the wifi icon disappears completely and there's no empty gap in the status bar. Test: manual: Go into a state where there's not enough room for the wifi icon and verify that just a tinted dot shows up. See demo video in b/238425913#comment30. Test: statusbar.pipeline tests Change-Id: I9d421a4afb503c9327578f777561a4d38bf2fd48
* [SB Refactor] Add an annotation for the visibility states.Caitlin Shkuratov2022-09-261-3/+13
| | | | | | | | | | 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
* Make DarkIconDispatcher visible to pluginsBeverly2019-01-021-1/+1
| | | | | | Test: manual Bug: 115322193 Change-Id: I6204d771e476c504e9070ebc88dd8fd44b268635
* Fix status icon animationsEvan Laird2018-06-211-1/+4
| | | | | | | | | | | | | | | Hidden -> icon: animate alpha Icon -> hidden: disappear Other transitions: animate translation, size, alpha (whichever is changing) When visibility is not changing, but translation is, animate translationX so icons don't jump around. Now there shouldn't be any jumping and icons won't fly in from the left sometimes. Test: visual Change-Id: I2bc192959e950b0887dc0b38f669ca36cff3a732 Fixes: 109869537
* Show up to 8 icons before eliding; fix animationsEvan Laird2018-05-071-0/+1
| | | | | | | | | Show up to 8 (including battery) system icons, and after 8 show 7 icons and only 1 etc dot Test: visual Change-Id: I4c1eeb2bd6afd9d5a1aed3358919f0d29ef2a084 Fixes: 79165032
* Limit status icons and show etc dotsEvan Laird2018-04-121-0/+2
| | | | | | | | | | | 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
* Remove SignalClusterView in favor of IconManagerEvan Laird2018-03-301-0/+29
Refactors SignalClusterView into StatusBarSignalPolicy so that it can be used in a StatusBarIconContainer and solve all of our status bar problems. - Remove all uses of SignalClusterView and references to R.id.signal_cluster. The class still exists it's just unused now - Add StatusBarIconHolder, which can point to StatusBarIcon, WifiIconState, or PhoneIconState - StatusBarIconList.Slot. Allows for easier indexing of icons now that there can be multiple icons per slot - Add StatusBarWifiView to be inflated inside of the StatusBarIconController when needed - StatusBarMobile view. similar to above - Upgrade StatusBarIconControllerImpl and StatusBarIconList to understand the holders and added 2 new methods to specifically handle wifi / phone state changes - Create IStatusBarIconView (todo: rename). Abstracts the properties we want away from StatusBarIconView so that we can use an arbitrary view type - NeutralGoodDrawable. Draws a light and a dark icon when needed. - Fixes a few demo mode bugs: multi sim was broken and also turning off demo mode was a little broken TODO: More tests are needed for StatusBarSignalPolicy and maybe the IconManagers Test: runtest systemui; visual Bug: 63772836 Bug: 73778753 Bug: 74985733 Fixes: 74427768 Fixes: 74338687 Fixes: 74388467 Change-Id: I5621b3013cdc9638b61552bd4d7211f211eddf1b