summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Keyguard: switch to cm-specific device provisioned flag"Wolfgang Wiedmeyer2016-12-131-6/+4
| | | | This reverts commit ab5c226f688080d714f3eee987bd97e13cc348d5.
* SystemUI: Don't pad when config_showScreenOnLockScreenHints is falseMatthias Yzusqui2016-08-261-1/+3
| | | | | | | | | | When the overlay is false the 'down' indicator is unused and there- fore no padding for text alignment is needed. Also use the overlay to disable the up-arrow indicator, thus return- ing to the old lockscreen layout. Change-Id: I542109686778e081c1883885287de0d5380578a2
* SysUI: Add first time use lock screen hintsd34d2016-07-211-1/+19
| | | | | | | | | This adds a set of hints that will be displayed on the keyguard when the screen is turned on. Each of the hints provides the user with a hint on how to interact with the lock screen. Once the user has performed the hinted action the hint should not be shown again. Change-Id: I438316cbf7a01c3f215330a5ca1aed5b78ab3fdc
* Revert "Revert "Only show keyguard panel if on lockscreen + no activity on top""Danesh M2016-06-291-0/+4
| | | | | | | | CYNGNOS-2980 This reverts commit 226797c8e2aba40ecbfb646f2ef5085893dff46a. Change-Id: I0440faf2dd07b427f639277eec2f3cfa89a7de6e
* SystemUI: detect rotation and resize mKeyguardBlur accordinglyDan Pasanen2016-06-171-0/+1
| | | | Change-Id: Icfd1d2de9929f9620332e3367885bec972063681
* Revert "Only show keyguard panel if on lockscreen + no activity on top"Danesh M2016-06-161-4/+0
| | | | | | | | | Breaks SHOW_WHEN_LOCKED for secure lockscreen + blur + LLS CYNGNOS-3057 This reverts commit 28e023d0c621f00e357f52264baaedf72c1eeee7. Change-Id: Iccec0129e793b910af02bf0a8f60ec9a2ca226a2
* Keyguard: Get your weather on... the lock screen [1/3]d34d2016-06-091-0/+2
| | | | Change-Id: Ieed59aa488a0a26fa9fc27bd77cbdc6156baac68
* Only show keyguard panel if on lockscreen + no activity on topDanesh M2016-06-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | There is a bug in window manager, where if the keyboard is collapsed, the reference to the window is lost when destroying its surface. This in turn prevents the ime window from being reordered later on. For normal apps this is not an issue, but since we're above normal apps (KEYGUARD_PANEL), this rises an issue for us in this scenario : 1) Set password lockscreen 2) Swipe up to unlock 3) Collapse keyboard 4) Launch emergency dialer (SHOW_WHEN_LOCKED) 5) Press home button Notice that all touch events are going to the external keyguard. If the keyboard is not collapsed in step 3, everything works and the reason is the reference to the input method window in window manager isn't lost and it gets re-ordered behind the windows. To workaround this issue, avoid removing/re-adding the window and instead rely on window manager to control its visibility. Change-Id: I59dd41547902ae5e23bbeb0a01ee27f11fc29dfc
* SystemUI : Ensure we unset focus when showKeyguard is calledDanesh M2016-06-011-0/+1
| | | | | | | | | | | | | Repro steps : 1) Swipe left to enter INTERACTIVE live lockscreen 2) Turn screen off 3) Turn screen on 4) Notice left swipe does not work CYNGNOS-2950 Change-Id: I1af24e2bc3377afc9e8236a35afc208ab676bcc0
* SystemUI: improve keyguard with SIM PIN interactionsRoman Birg2016-05-251-0/+6
| | | | | | | | | | | | - Dismiss heads up popups when PIN is required, it would block input as the new PUK screen would pop up - Also dismiss the PUK screen when the SIM is removed Ticket: CYNGNOS-2843 Change-Id: Id42626faaa563215b128d7c830793d9908e5282d Signed-off-by: Roman Birg <roman@cyngn.com>
* StatusBar: Do not just define vars...Michael W2016-05-241-3/+2
| | | | | | ... also use them! Change-Id: I4582cc949694fe7dc7ae13866357e26ed7957df2
* SystemUI: fix multi touch gestures and extra jankRoman Birg2016-05-231-1/+1
| | | | | | | | | | | | | | | | | | The dejank utils were getting a little ahead of themselves: in between the panel height being set to 0 (could happen often), and the user actively trying to expand the panel, the next layout traversal from the dejank utils would try to collapse the panel, causing bad states. Also in the qs height animator updater, be careful to only actively update the end height when the user did not just peak. Finally, and most importantly, we need to disable motion event splitting in our view that holds our notification panel logic so we can get multi touch gestures in those views properly. Ticket: CYNGNOS-2756 Change-Id: I2cda440d4e0548d3477c6fad88f7dac1cb59d9db Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI : Fix left swipe when dismissing bouncerDanesh M2016-05-181-2/+12
| | | | | | | | | | | | - Only show bouncer when requesting dismiss, which will set the states for us. - Also remove duplicate states. - Ensure we disable edge gesture when showKeyguard is called - Bail out on showKeyguard if already in keyguard. CYNGNOS-2872 Change-Id: I6be10923de1590b386c270925654669a8f832cfe
* SystemUI : Ensure bouncer is not shown for SHADEDanesh M2016-05-171-8/+4
| | | | | | | | | When dismissing the notification panel, bouncer should only be shown if you are in SHADE_LOCKED or KEYGUARD. CYNGNOS-2810 Change-Id: Ia9c6f3198fe785ba8d19e10962caa92a5cea3f23
* Lls: Use LlsController for checking LLS focusd34d2016-05-161-1/+2
| | | | | | | | | | We're trying to keep track of this state in too many places. The LiveLockScreenController keeps track of the LLS focus so this patch adds a method to get the state of the LLS focus and use that instead of cached values that may not be in sync. Change-Id: I2cbf1122b8a27cb1b0ee1ed93379a362308db5bd TICKET: CYNGNOS-2849
* LLS: Don't change bar state when changing LLS focusd34d2016-05-161-1/+0
| | | | | | | | State changes are taken care of elsewhere so don't change the state when unfocusing the LLS. Change-Id: Ie4d14a840cfc2f29815bd6d185caf920134b6d21 TICKET: FEIJ-531
* LLS: Ensure LLS loses focus when showing bouncerd34d2016-05-161-0/+2
| | | | | | | | Let showBouncer take care of removing focus from the LLS instead of relying on the callers to do so. Change-Id: Iaec9ad74b3498ea385bdecbfc5173a9d482b043e TICKET: FEIJ-531
* SystemUI : Fix multi-user for keyguardDanesh M2016-05-131-0/+1
| | | | | OPO-696 Change-Id: I4383eb49abc1f61bf41e7279ff8e0ed2c1dbb6eb
* CMSettings : Move force_show_navbar to globalDanesh M2016-05-131-4/+4
| | | | | | | | | | | Keep feature inline with 12.1, only allow owner to control the feature and mirror across users. Also add additional checks for moved settings. OPO-696 Change-Id: I81c942ab106fead12020107b99c0795a5b9aac98
* Lockscreen : Bunch-o-fixesDanesh M2016-05-051-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Prevent edge gesture from conflicting with lockscreen shortcuts - Fix lockscreen shortcuts crash where animations were being run on detached view - Fix statusbar flicker when swiping keyguard in from the left - Fade scrim away when swiping lockscreen in and out - Fix back button not working when showing bouncer in external keyguard. - Ensure we collapse bottom area after up/cancel when in external keyguard - Fix issue where clock/notifications can get off-center when swiping to left. - Fix bottom flicker when swiping lockscreen to left - Only lock directional swiping when swipe helper acknowledges it. This allows for all the standard swipe behavior to function. - Ensure lockscreen shortcuts are not actionable when in SHADE - Only dismiss bottom area after lockscreen shortcuts animations have finished animating - Prevent swipe when album art showing CYNGNOS-2585 CYNGNOS-2488 CYNGNOS-2517 CYNGNOS-2390 CYNGNOS-2632 CYNGNOS-2634 Change-Id: I2fe767ed7e07b621075c755aae98121c8517b997
* SystemUI: implement properly saving tile locationsRoman Birg2016-05-041-2/+2
| | | | | | | | | | | | Use new persisted key which does not use the tiles' ID (which changes usually across reboots with every tile). When the Custom tile service comes up, it will update the placeholder tiles created with their real values and the order is preserved properly. Ticket: CYNGNOS-2530 Change-Id: I5e75c739553969f1d92c249f521a476259fe0cd6 Signed-off-by: Roman Birg <roman@cyngn.com>
* SysUI: Animate notificaiton panel back into viewd34d2016-04-291-0/+4
| | | | | | | | Add an animation for when the user has swiped the left edge to bring the notificaiton panel back into view from the left side. Change-Id: Ie2ab3482a39d2d9c7b93a853f6ebae43a174e2c0 TICKET: CYNGNOS-2549
* SysUI: Don't call removeAllViews on AdapterViewd34d2016-04-261-1/+4
| | | | | Change-Id: I957c87e499fb719d1d45671c968c625dac75ecc7 TICKET: OPO-649
* Keyguard: switch to cm-specific device provisioned flagRoman Birg2016-04-221-4/+6
| | | | | | | Ticket: CYNGNOS-2431 Change-Id: I2f47031f9fb2cc40e61a5f57d49e985104b14024 Signed-off-by: Roman Birg <roman@cyngn.com>
* Revert "Lockscreen : Ensure window bounds change after view animations"Danesh M2016-04-201-11/+1
| | | | | | This reverts commit cc008494b68fe01fe7b1d78aea1d9e9f93172d06. Change-Id: Ib9141654196f97152837f44c62eb19a27ca693b7
* Lockscreen : Ensure window bounds change after view animationsDanesh M2016-04-181-1/+11
| | | | | | | | Changing window bounds when a view inside the window is performing animations, causes flickers. Ensure we change window bounds only after all the animations have completed. Change-Id: I2143d3d15cdfe660d864e1af902267b0903b2afa
* SystemUI: Fix nav bar transparency when enabling software keysRaj Yengisetty2016-04-181-6/+16
| | | | | | | | | | Repro: - Boot device with hardware keys - Go to Settings -> Buttons and enable on-screen nav bar - Press home - Observe launcher now does not have transparent nav bar Change-Id: I49d04384b72b02ecb432be650d46e136c982a3bd
* SysUI: Add event logs for live lock screen interactionsd34d2016-04-081-2/+2
| | | | | Change-Id: I998ae96e9ae2047e37cee74e88ee2f3185d31755 TICKET: CYNGNOS-2380
* Lockscreen target fixesDanesh M2016-04-071-0/+1
| | | | | | | | | | - Ensure icon's raw screen coordinates are used to calculate intersection. - Ensure we expand/collapse when running hint animation for unlock due to bounce. - Ensure we don't animate window bound changes. Change-Id: Id18e2237c1ce9bfb2bcaa669934a4b3af4341521
* SystemUI: show visualizer in shade-locked viewRoman Birg2016-04-051-2/+2
| | | | | | | | | | | | | This brings back the behavior we had in 12.1 - visualizer would still be visible in the shade locked state. Also with the following improvements: * use less alpha * always attach/detach in a background thread (Async task) * use the statusbar state instead keyguard view state listener Change-Id: I6b8a57f9f0bba6ba0591de0cb1f94a0eb904cc1c Signed-off-by: Roman Birg <roman@cyngn.com>
* Implement left swipe on lockscreenDanesh M2016-04-011-16/+21
| | | | | | Allows user to left swipe to live lockscreen and back. Change-Id: Ia94d735695b77a091a240e13858641cf95ac0647
* LLS: Add LiveLockScreenControllerd34d2016-03-301-14/+26
| | | | | | | LiveLockScreenController uses the new LiveLockScreenManagerService to coordinate displaying live lock screens. Change-Id: I1549b4420f5d95bfbe0cc90cb4938efa65f1dfc4
* SystemUI: attach a queue to media player notificationsRoman Birg2016-03-251-0/+12
| | | | | | | | | | | | | | Extend media player notificatoins to attach a queue below them, set via the MediaController.setQueue() API, when available. Long pressing on the notificaiton will reveal an option to disable the queue. The queue is currently hardcoded to be limited to 3 items. Ticket: CYNGNOS-217 Change-Id: I3b8503cb47af2d36f031d06aefc1bfbe7ed80010 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: Hide system/notification when config changes on kg.Adnan Begovic2016-03-221-0/+4
| | | | | | | | | | | | If a config change happens on the keyguard (specific to themes) the system decorators can end up in a state where both the system status bar container and the keyguard status bar container are drawn over the top of each other. Work around this by forcing the system status bar iconography to hide if the current state is KEYGUARD. Change-Id: Ic4ca491024264b11d7c115c5c5ffb277c6656683 TICKET: CYNGNOS-2253
* SystemUI: improve battery saver tileRoman Birg2016-03-211-1/+1
| | | | | | | | | | | | | | - Fix the tile not showing, the javadoc states that it will return 0 if profiles are not supported, but it was actually returning -1. - Now disables itself when the device is plugged in to reflect to the user that they cannot toggle it on right now. - Don't wait for power manager to update its internal state before updating the visual tile state. Change-Id: I8ab6adb2bfa728a242368294c1f066d468a86f09 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: more consistent visualizer logicRoman Birg2016-03-171-3/+1
| | | | | | | | | | - only call setVisible from screen on and screen off methods - eagerly unregister self to make sure we don't get added twice as a listener - Add some debugging under the DEBUG flag Change-Id: Iada13058f87d4c8d8c8b60f6eebf055652ff2c8d Signed-off-by: Roman Birg <roman@cyngn.com>
* base: dock batteryJorge Ruesga2016-03-101-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8cc3fc465daa49c9010bdbbf876dae18461d7024 Require: topic:dock_battery Signed-off-by: Jorge Ruesga <jorge@ruesga.com> Improve dock battery strings Change-Id: Iccfa2df4ec608ae02c0bfcef99648788dab95933 systemui: fix battery text level visibility Use present flag instead of plug-in flag to determine the battery present (only hide the text level view if the battery is not present) Change-Id: I8e20e107bbeeecdc846833dc80c1a2754d82a039 Signed-off-by: Jorge Ruesga <jorge@ruesga.com> systemui: restore space between clock & battery Initialize dock battery to GONE visibility because isn't update on device not supporting dock battery. Change-Id: I23aeafc27db0fc499050a7306e8549293accb507 Signed-off-by: Jorge Ruesga <jorge@ruesga.com> SystemUI: fix battery icon jump on qs expand The layouts are slightly different for the header and icon layouts. Change-Id: I85d3fc007eb9b2c3e2ba09bb761a91b521b89700 Signed-off-by: Roman Birg <roman@cyngn.com> systemui: move dock battery level views outside systemicons layout At not the ideal, this at least will match normal battery level view, puttings battery levels in the correct order. In addition fix two small dock battery bugs: - BatteryLevelTextView not displayed if mode is TEXT - Properly hide DockBatteryMetterView for modes NONE and TEXT - Underline the dock BatteryLevelTextView to differentiate normal from dock text view Screenshot: https://cloud.ruesga.com/f/74fe240c66/ Change-Id: Idfd3a4bb2f19bd29f9f4dd2b0ea7f645bb531986 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* SysUI: Fix hiding sensitive notification behaviord34d2016-03-091-1/+2
| | | | | | | | | | | | This should resolve the issue where sensitive notifications continue to hide sensitive information even when unlocked. Per app hiding of sensitive notificiations should continue to work as well as hiding sensitive information when locked and that setting is enabled. Change-Id: Ib19f0709941714df6c337a7b11523d71b37c5ca2 TICKET: CYNGNOS-2176
* SysUI: Clear notification data when recreating status bard34d2016-03-091-8/+2
| | | | | | | | This ensures we don't get an IndexOutOfBounds exception in StatusBarIconController when adding the notifications back in. Change-Id: I70ffd487223f95642ccdb41e9e5a3dde3ba6990d TICKET: CYNGNOS-2215
* SysUI: Fix hiding per-app sensitive notificationsd34d2016-03-081-2/+2
| | | | | | | | | | This fixes an issue introduced in Ic0f6e01cf7c09d4f8ed7e8735158a6fc093b8dcc where the user has show all notifications enabled and has turned on hiding of sensitive notifications for specific apps, but those notifications still show all content. Change-Id: Ia00a6acdacfa81e0b54224655c3d81d6a4f56518 TICKET: CYNGNOS-2176
* Themes: Refactor themes to CMSDK [1/6]d34d2016-03-041-6/+33
| | | | | Change-Id: I3688b37342eddcfceeabaae982085884e9bc63ee TICKET: CYNGNOS-2126
* SystemUI: Don't vibrate on touchscreen camera gestureMichael Bestas2016-02-271-1/+3
| | | | | | | | * This is usually handled in device-specific keyhandler, where vibration is optional and has the same duration in all gestures Change-Id: I879671c9d6f785137d63b8b70de35f5d5020748d
* SystemUI: Show lockscreen wallpaper if no album art is availablelion07382016-02-221-2/+1
| | | | | | | If album art is disabled for some reason (ex. turning off in eleven) we should display lockscreen wallpaper instead of default wallpaper. Change-Id: Ia3ccc5cbf62cbbc446fbdd0975701a1e5277824f
* SysUI: Keep sensitive notifications redacted for swiped34d2016-02-181-1/+2
| | | | | | | | | | If the user has selected to hide private data in notifications and switches to Swipe without changing the notification redaction, the notifications should remain redacted until the user changes back to show all notification content. Change-Id: Ic0f6e01cf7c09d4f8ed7e8735158a6fc093b8dcc TICKET: YAM-103
* SystemUI: handle camera launch gesture from keyhadlerRoman Birg2016-02-181-0/+12
| | | | | | | | | | | | | | | Includes partial reverts: Revert "KeyHandler: don't break old interfaces" This reverts commit 31ecbdc5fcc1263e9028107858565d951798fd93. Revert "framework: move device key handler logic, fix gesture camera launch" This reverts commit db1b4e6e4880be1828342be9bc468d36565a2ef0. Ref: OPO-427 Change-Id: Ic15543a8f63ad4521ab0ab536d00224b0bd70f8c Signed-off-by: Roman Birg <roman@cyngn.com>
* SysUI: Wait for keyguard gone before starting activityd34d2016-02-161-2/+8
| | | | | | | | | | | | | | | Some apps, I'm looking at you Chrome, don't like to do any work if they are being started while the lock screen is shown, even if it is being dismissed. This patch adds another version of startActivityDismissingKeyguard() which takes an extra boolean parameter that allows to override the afterKeyguardGone behavior. Normally that is only true if the resolver will be shown instead of launching an app. Overriding this allows us to get the exact behavior we want without altering this behavior under normal circumstances. Change-Id: Ia804c7a5a73f2a4ad45593bcfcc192fedddf8d92 TICKET: CYNGNOS-2044
* SystemUI: disable QS tile Edit mode on screen offRoman Birg2016-02-151-0/+3
| | | | | | | Ref: CYNGNOS-1936 Change-Id: I08d4cf6c3613bdc8434c3cd106e6940b0c0a8005 Signed-off-by: Roman Birg <roman@cyngn.com>
* Revert "SystemUI: survive notification update spam"Matthias Yzusqui2016-02-131-12/+2
| | | | | | | | | This reverts commit 6d24aa43398a9888bc93d3d4afe0eccd24211356. Fixes janky headsup animation when a (new) headsup is displayed. RM-208 Change-Id: Icf2e620fec696b55ac611cba47321a23acf0120c
* SysUI: Don't show LS wallpaper if LLS is availabled34d2016-02-121-6/+3
| | | | | | | | If the user has a live lock screen enabled we should not show the static lock screen wallpaper. Change-Id: I7e509924b49c8acbc31d076f251f470da1eed8a6 TICKET: CYNGNOS-1963
* Keyguard: Show backdrop when sim pin secure screen shownd34d2016-02-091-1/+3
| | | | | | | | | | | Devices that support bluring remove FLAG_SHOW_WALLPAPER from the layout params flags which causes the foreground activity to be completely visible when the sim pin security screen is shown. If this screen is visible we treat it as if the keyguard is visible and show the backdrop if available, otherwise it is blurred. Change-Id: Ifeae28816cc2f1fad30a2edf1cf51d5cabb005e9 TICKET: CYNGNOS-1266