summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardSliceViewController.java
AgeCommit message (Collapse)Author
2022-03-15Merge SP2A.220305.013Haamed Gheibi
Bug: 220074017 Change-Id: Idfdd94e902f656ac65a2a75dfdd199f6f85ba472
2021-03-23Revert^2 "Remove Dependency.get from KeyguardSliceTextView."Dave Mankoff
5f65ded5af704ad6f41716a635649e79b557bab8 Change-Id: I2e83420b119858930489f2a74756c64f953a4a8c
2021-02-18Revert "Remove Dependency.get from KeyguardSliceTextView."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: Ic2fb8e0b25a280ac7d1f76d537a9ecfdc0f9fbab
2021-02-16Remove Dependency.get from KeyguardSliceTextView.Dave Mankoff
Moved the related code into the containing class's controller. Bug: 179775696 Test: atest SystemUITests Change-Id: I4c76d99f988233dd4fd51b7a6ff7606c77e73087
2020-11-17Update spacing/layout of LS clockBeverly
- Only use the burn-in offsets on AOD. This means the clock will be in a different position on LS compared to AOD. - Align the top of the KeyguardSliceView (smart space) with the top of the text of the clock (as opposed dto the top of the clock's view) - Decrease bottom padding on KeyguardSliceTextView so that the DND icon doesn't get cutoff when there's a large smart space info Test: atest SystemUITests, manual Bug: 170228350 Change-Id: I332300616e4218b6fcd24f837127a7eee487d4e7
2020-11-04AOD - Burn in adjustmentsMatt Pietal
Move both the clock and keyguard slice area towards the middle for x adjustments, and retain the current Y adjustments. Bug: 172360102 Test: follow burn in instructions here: /frameworks/base/packages/SystemUI/docs/clock-plugins.md Change-Id: Id22d777724bf9be58758b1a2b260a7933af8e999
2020-10-19Add gradient clock to AOD/LS behind LS flagBeverly
Also updates "new lockscreen" smart space layout. Currently TimeBasedColorsClockController will change the TextClock's colors based on hardcoded times. To toggle on the new lockscreen: adb shell settings put global show_new_lockscreen 1 Test: atest KeyguardSliceViewTest Test: manual Bug: 170228350 Change-Id: Ib72b45aad34fe4483538a9094154d6c473910612
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-08-24Fix duplicate reg. KeyguardSliceViewController in DumpManager.Dave Mankoff
If we have multiple displays, we get multiple KeyguardSliceViewControllers. The DumpManager doesn't like that, so give them each unique tags. Fixes: 166181642 Test: manual Change-Id: I827970ee9aa0d1867c26e65ea8661fd5cae95fb1
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-08-24Add KeyguardSliceViewController.Dave Mankoff
This removes view injection from KeyguardSliceView. It also creates a KeyguardStatusView Dagger Subcomponent should be initilialized whenever a KeyguardStatusView is inflated. From that subcomponent, KeyguardClockSwitchController and KeyguardSliceViewController can both be created and initialized, passing their related views into their constructor. This fixes a bug introduced earlier where a KeyguardClockSwitchController was not being created in one place where it was needed. Bug: 162525274 Test: atest SystemUITests Change-Id: Ie571cb0ca2b793c363e3c8ab397828f0ee939763