summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java
AgeCommit message (Collapse)Author
2022-03-15Merge SP2A.220305.013Haamed Gheibi
Bug: 220074017 Change-Id: Idfdd94e902f656ac65a2a75dfdd199f6f85ba472
2021-06-08Remove owner and logout views from KeyguardStatusViewBeverly
information is moved to the keyguard indication area Test: manual Fixes: 183708476 Change-Id: I95b229c71006c43aabf5147d1cc6f6c838b8cc85
2021-05-27Merge "Adds the initial SmartSpace shared element transition!" into sc-devJosh Tsuji
2021-05-21Make sure to always fade the split shade media containerSelim Cinek
When only fading while gone, it could lead to issues when fading out during non-split shade, especially during initial initialization. As there's an inherent race, we instead fade the host always, regardless if it's GONE, as this doesn't have any negative side effects. Fixes: 188884830 Test: follow steps on bug, observe no issue Change-Id: I54813a8f153713ff558409b67cd515c605afe9e3
2021-05-17Adds the initial SmartSpace shared element transition!Josh Tsuji
To see this in action, enable the remote animation (adb shell setprop persist.wm.enable_remote_keyguard_animation 1) and enhanced SmartSpace (adb shell device_config put launcher ENABLE_SMARTSPACE_ENHANCED true). Also, set your lock mode to swipe or some sort of non-bypass biometrics, so you can swipe to unlock. KIs: - It looks pretty janky on a fast swipe - this is the same root cause as b/186847064 so will have the same fix - Launcher animates in with window-level animations (Launcher team is looking into helping) - Screen off animation is not yet implemented (this is for unlock only) Bug: 187025480 Test: unlock with every possible permutation of lock settings Change-Id: I8c186fe57132ebc9a0bc5e3d8785e753e72c3bf2
2021-04-27Moving media player in split shade mode on the lockscreen to the left sideMichal Brzezinski
Bug: 181882240 Test: manual Change-Id: Ib75869971168b3a514b961262ee8a02659f8ae74
2021-04-12Update to latest UX margins for clock... and much moreMatt Pietal
Remove old style clocks and all related code. Begin unraveling code supporting multiple layouts. Migrate plugin small/big clock support to the new clock areas. Fixes: 184073275 Test: atest KeyguardClockSwitchTest KeyguardClockSwitchControllerTest Change-Id: I38dc2a6df6a710c6da23cbb17fac8d28f3b84764
2021-03-23Revert^2 "Remove Dependency.get from KeyguardStatusView."Dave Mankoff
3f652cb990b991552dfc7057e3b3552655f236c7 Change-Id: Idcd16ba8f1260dead0c0c2a1e60f13eceb57c1aa
2021-02-18Revert "Remove Dependency.get from KeyguardStatusView."Alec Mouri
Revert submission 13536242-b179775696-depenency-get-keyguard Reason for revert: Candidate reversion for broken tests: b/180440298 Reverted Changes: I6d0271692:Add ViewController to CarrierText. I4d9a4a21f:Add Controller for Emergency Button. I4c76d99f9:Remove Dependency.get from KeyguardSliceTextView. I730593fcf:Add injection to ClockProvider. Ifbb93e624:Remove Dependency.get from KeyguardStatusView. I237215456:Remove final calls to Dependency.get from keyguard... Change-Id: Ic6d3e290592a146af71e728cef469faed5177b9a
2021-02-16Remove Dependency.get from KeyguardStatusView.Dave Mankoff
Bug: 179775696 Test: atest SystemUITests && manual Change-Id: Ifbb93e624d839d7506b45da2cabb4fcf8b0b75ff
2021-02-09Rotate keyguard indication messagesBeverly
In the new LS layout, we show the following messages in the keyguard bottom area instead of in the KeyguardStatusView: - Logout button - Owner information We also now show now playing as part of the rotating text on the lock screen. Bug: 178794517 Test: atest SystemUITest, manual Change-Id: I1a0a47e300d1f9e5fe11c17d143e5a8f0ad8af60
2020-11-20Use logout button + owner for max # notifs calcBeverly
In the calculation for the max # notifications to show on the lock screen, take into consideration the height of the logout button and owner information. Test: atest SystemUITests, manual Bug: 170228350 Change-Id: Ia12c85df27b16d432608fef8a52eb0d4c9ff79ff
2020-10-16Add KeyguardStatusViewControllerBeverly
Refactor KeyguardStatusView so that it has a controller that NotificationPanelViewController can use to manipulate the view. This CL untangles some of the logic in KeyguardStatusView that should be in KeyguardClockSwitchController. No functionality changes. Test: atest KeyguardClockSwitchControllerTest Test: atest NotificationPanelViewTest Test: atest KeyguardStatusViewControllerTest Test: atest SystemUITests Change-Id: I52d0d887cb4ce734ec265b6357644ba1d1368460 Bug: 170228350
2020-10-13Lock Screen - Update layoutsMatt Pietal
Put clock views on the end, smart space at the start. On lock screen, align both to the top Bug: 170729566 Test: adb shell settings put global show_new_lockscreen 1 Change-Id: I3b8dc36d8177d936e4c91d330606eba2c6dff1e2
2020-08-24Remove ref to Controller from KeyguardSliceViewDave Mankoff
This removes the reference that the view has to its controller, moving click handling up to the controller. Fixes: 162525274 Test: atest SystemUITEsts Change-Id: Ia99ff4e643fa84fa138720cc5c01c51597f1169d
2020-06-09Merge "Merge "Removes UniversalSmartspace BroadcastReceiver." into rvc-dev ↵Automerger Merge Worker
am: 8e11fb506e am: f9c91cf79f am: 1f57cd8e06" into rvc-qpr-dev-plus-aosp am: f5cb8f893d Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11795363 Change-Id: I26a90a1418575af5fdb155edb3c1bf706a418fa9
2020-06-09Removes UniversalSmartspace BroadcastReceiver.Andy Wickham
Fixes: 148159743 Test: Verified manually Change-Id: I1dbcdb795c6872053e3f71503c3e52eba019d7bd
2020-04-15Hide big clock when smart space appearsWesley.CW Wang
- Add new method to KeyguardClockSwitch and check it when slice changed - Check hasHeader value when updating big clock visibility Bug: 153692869 Test: atest KeyguardClockSwitchTest and manually Change-Id: Id761558224e56ea2b1ea38578be59f17a6b06247
2020-03-04Make SurfaceView rendering generic in SysUITracy Zhou
WindowlessWindowManager is not visible as external APIs, so for launcher / wallpaper to use the API the rendering code has to be in the SysUI. Bug: 150224413 Test: Manual. Make sure universal smartspace still works as intended. Change-Id: If006d622f181f6c8cc7c1cebda3f63b0b2ad85d5
2020-02-20Exempt-From-Owner-Approval: Report non-visual Context misuseAndrii Kulian
Make obtaining a visual service from non-visual Context instance report a strict mode violation and print the stacktrace. Make calling getDisplay() throw an exception if called on an instance that is not associated with a display. For existing usages introduce a new internal method that does not perform the verification until the usages are properly fixed. Bug: 128338354 Test: StrictModeTest#testIncorrectContextUse_GetSystemService Test: StrictModeTest#testIncorrectContextUse_GetDisplay Change-Id: Id25d590eca6e10066e55d7ed6436d3bc9e433beb
2020-01-22Populates Launcher's SurfaceView with SysUI's Smartspace.Andy Wickham
For now just inflates a second copy with no fancy handoff (technically or visually). Eventually this logic will be part of the shared SmartspaceView and accompanying API. Test: Manually with the necessary Launcher flag enabled/disabled. Bug: 141701658 Change-Id: I94bb7f9ba1f9e72e48e9681437a76b5d59bb0795
2019-10-07Create controller for StatusBarWindowView.Dave Mankoff
This moves most of the logic out of the view and into StatusBarWindowViewController. It is not beautiful, but it is cleaner than before. This removes the final call to Dependency.get(FalsingManager.class). This also fixes a small, old bug in StatusBarWindowView.onInterceptTouchEvent where the results of calling hte super method were being unintentionally ingored. (This bug would have been introduced nearly seven years ago.) Bug: 141751146,136279712 Test: atest SystemUITests Change-Id: I5e09c1c0f2a3098db1a47837ddce3d382099f483
2019-09-01[DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791Hyunyoung Song
Test: presubmit setup on source branch Bug: 130289146 Create a Gradle build for SystemUI Bug: 136279712 Daggerize FalsingManager Bug: 137324767 "Unable to instantiate service com.android.systemui.doze.DozeService" exception breaks launcher tests Bug: 137563419 Remove Bouncer reveal delay from bypass flow Bug: 138787339 Allow Services and Activities to be injected into directly. Bug: 139128921 [AS 3.5 RC2, SDK API 29 rev 2] Overload resolution ambiguity: while removing element from HashMap Bug: 64712476 Import translations for dev branches Change-Id: Ib7fd4706c070907fd556c3532957f3b1b046de6d
2019-08-31Fix the looper that KeyguardUpdateMonitor is using.Dave Mankoff
Bug: 139051615 Test: atest SystemUITests && atest SystemUIGoogleTests Change-Id: Ic4dd5978001c208504c137cee41f363d7e70b1b5
2019-06-20Remove the custom clock from LS during transition from AODRobert Snoeberger
Fixes: 132273216 Test: visual -- transition to AOD with notifications Test: visual -- transition to AOD without notifications Test: visual -- remove last notification on LS Test: visual -- add notification on LS Change-Id: I1c003a8930cc557e388e2263e4a4fa41b912998a
2019-06-13Merge "Fixes an issue where the padding to the clock was wrong" into qt-r1-devTreeHugger Robot
2019-06-12Fixes an issue where the padding to the clock was wrongSelim Cinek
Because I moved around where the padding was set and there was also setting the same padding programmically, we ended up with double the padding after an event came in that never went away anymore. This is now fixed. I also adjusted the paddings slightly to adjust it back to the spec again, since the calculation was off by 1dp before. Fixes: 134927633 Test: atest SystemUITests Change-Id: I67395cb9b7bf54a95ceee51c3384539c4d53578e
2019-06-12Fixes a crash with KeyguardStatusView in testsSelim Cinek
Fixes: 135104079 Change-Id: Idb0b745e50d72ddf23e98582b6a93f1dd56ec9e7
2019-06-10Fixed a bug where the icons where clipped off with owner infoSelim Cinek
Because we were only fading out the owner info, but modifying its height, the icons would be clipped off. Fixes: 134814774 Test: atest SystemUITests Change-Id: If708ef17a327d220f6c21a0b9df866a215adbeb8
2019-05-22Add shadow to text on keyguardLucas Dupin
Fixes: 132274011 Test: visual Change-Id: Ic5ef60f71a8cdf9946c688d0a33aa542b6cb1b98
2019-05-09Update size and vertical spacing of clock on keyguard.Robert Snoeberger
Bug: 130223602 Test: visual Change-Id: I09f6dff826d6ef297a4babdc9aa70b7f138dbeed
2019-04-17Add smart space to custom clock faces.Robert Snoeberger
This changes adds a hook to the ClockPlugin to allow the custom clock to control the position of the smart space. Still todo: - move out of the way for the lock icon - don't slide smart space down on lock screen when no notifs are showing Bug: 129348218 Test: Manually checked custom clock faces. Change-Id: I2472f6b2bb54f94e2e673f01c78170c0e7f87627
2019-03-21Call ClockPlugin#onTimeTick on lock screenRobert Snoeberger
Fixes: 129056419 Test: atest frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ Change-Id: If4cabc696a0ac5a02514634aa7670ef1f9db4b72
2019-03-04Fix issue where clock scale would be wrongLucas Dupin
Fixes: 127345346 Test: manual Test: adb shell dumpsys activity service com.android.systemui Change-Id: Icfd7b659e8ee1b088fbca5bd9c4a7d99c1e2b6d9
2019-03-01Consistent KeyguardStatusView alphaLucas Dupin
Dimming down should be handled for the whole screen using config_doze_brightness_sensor_to_brightness and scrim opacity Fixes: 126916846 Test: visual Change-Id: I78ff6ad7e78701baab00ab6a615661a08ed561b8
2019-02-12Restore keyguard status area headerLucas Dupin
Fixes: 123340905 Fixes: 123958307 Test: atest KeyguardSliceViewTest Test: manual, playing media This reverts commit ed00262486e5c4b6ae9ef902633eca8958ddf80f. Change-Id: I1cc60346f9176b913ee0404b2b31981f736664ce
2019-01-18New pulsing notification layoutLucas Dupin
Test: wake up with power Test: look at shelf on lock screen Test: lock device w/ notifications from home screen Test: receive notification on AOD Test: atest KeyguardClockPositionAlgorithmTest Test: atest NotificationRoundnessManagerTest Test: atest ScrimControllerTest Test: atest NotificationContentViewTest Bug: 111405682 Change-Id: I9b4f2febd56a62256124567bffebc9f5f8255847
2019-01-16Simplify KeyguardClockSwitch 1/N.Robert Snoeberger
End goal is to move clock switching logic out of this view class. To do that, first need to make this class look less like a TextClock. Bug: 122301289 Test: keyguard tests pass Change-Id: Iccd7b0d02d1ec756d4e37f3d4ab47d0bcb55e566
2019-01-12AOD notification icons placementLucas Dupin
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
2018-12-18Add option for plugins to hide KeyguardSliceView.Robert Snoeberger
Option defaults to showing the slice view so that it doesn't break existing plugins. Test: SystemUIGoogleTests pass. Test: SystemUITests pass. Test: slice view is hidden when using example plugin. Bug: 118496011 Change-Id: I574009170da4703e84fd392e327e1cb84ada6cd0
2018-12-10Send time zone changed event to clock plugin.Robert Snoeberger
This prevents plugins from needing to register for time zone changed broadcasts. The event can be relayed from KeyguardUpdateMonitor. Bug: 120666411 Test: example plugin updates when time zone is changed Change-Id: I84732887527db8575504af27cc8ed537118696c6
2018-11-12Add setDarkAmount method to ClockPlugin interface.Robert Snoeberger
setDarmAmount implementations provided by clock plugins should use the dark amount to transition into and out of the doze state on AOD. For example, the size of the clock could shrink in the Y direction when leaving doze to make room for the notification stack scroller. Bug: 119035943 Test: KeyguardClockSwitchTest passes locally. Change-Id: I9968dc2cc5ab8000ff525f3d1d06ffbf73359086
2018-11-09Add dozeTimeTick method to ClockPlugin interface.Robert Snoeberger
dozeTimeTick implementations provided by clock plugins should update the time of the clock while the device is dozing and deal with burn-in related issues. Bug: 119035943 Test: KeyguardClockSwitchTest passes locally. Test: Custom clock updates with time on AOD screen. Change-Id: I5c31e6d856c5a80dc3e501831dda5a62c0be5ba0
2018-10-29Remove obsolete lock screen UILucas Dupin
Removes obsolete KeyguardSliceView title area and adds doze callbacks necessary to support new lock screen design. Bug: 111405682 Test: manual Test: atest KeyguardSliceViewTest Change-Id: I07e96dbde68d4e5e38e1371526bedf59fc925b86
2018-10-24Merge "Remove dashes between clock and notifications"TreeHugger Robot
2018-10-23Remove dashes between clock and notificationsLucas Dupin
Bug: 111405682 Test: visual - smart space, ambient notification, clock Change-Id: I68e0d9099e0d4eaa1a6c10838d584aded523c332
2018-10-23Fix re-layout race conditionLucas Dupin
On older devices, the dark amount wouldn't be updated before the layout pass, the owner info view would end up with the wrong visibility. Change-Id: I0f7660d70a090ecd1a86a1d870645982edeb1ea4 Fixes: 113247412 Test: manual
2018-08-09Add clock plugin functionKunhung Li
Use clock plugin interface to replace current TextClock in keyguard Bug: 111971817 Test: atest SystemUITests Change-Id: Ib6920844700445d9cd3ffa4159cd7f630eaa853b
2018-06-29Merge "AOD animation polish" into pi-dev am: 704a0d6174Lucas Dupin
am: e9861964bf Change-Id: I135ff3a852d2b1d2288add1c0c94bbf7313d1aec
2018-06-28AOD animation polishLucas Dupin
Change-Id: I03220e30d52aadc5aab8edddf759debd3302c95d Fixes: 110227946 Test: visual