summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
AgeCommit message (Collapse)Author
2022-06-03SystemUI: Add left padding for keyguard slicesLuK1337
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/4620 Change-Id: I2735028472aa46bad412c69948936fb30c5fa36c
2022-03-15Merge SP2A.220305.013Haamed Gheibi
Bug: 220074017 Change-Id: Idfdd94e902f656ac65a2a75dfdd199f6f85ba472
2021-04-08Move ActivityLaunchAnimator in its own lib. (1/n)Jordan Demeulenaere
Bug: 184121838 Test: Manual Change-Id: Ib979fed2f59d9dbf5f0696edb5fcb4956600e6e0
2021-03-23Revert^2 "Remove Dependency.get from KeyguardSliceTextView."Dave Mankoff
5f65ded5af704ad6f41716a635649e79b557bab8 Change-Id: I2e83420b119858930489f2a74756c64f953a4a8c
2021-03-03Fix doze bug in keyguard user switcherPeter Kalauskas
Previously, the view would be set to GONE at the incorrect time. KeyguardQsUserSwitchController has no need for knowing the doze amount at all since it does not need to update text color, so remove the listener entirely. Also, add javadoc and update variable names in KeyguardSliceView's setDarkAmount to better reflect their meaning. Test: Build and flash blueline-userdebug with QS user switcher enabled (config_keyguard_user_switch_opens_qs_details), switch between device owner and guest repeatedly. Turn screen off and on. Bug: 181776379 Change-Id: I772612d49f2e3bcbd6aba334afee17fcb1c84c57
2021-02-19Smartspace - Update fonts/marginsMatt Pietal
Remove manual padding in favor of lineHeight. Generally decrease spacing and font sizes to reduce amount of vertical space being consumed. Bug: 172360102 Test: manual Change-Id: I53d2205b2a31c862e1bcb5cdbf7f6c4bd266bec9
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
2021-01-05Keyguard slice views - fix alignmentMatt Pietal
Some icons use slight insets by default, which causes alignment issues with left/right aligned keyguard slice content. Access the wrapped drawable to remove the inset. Fixes: 175953174 Test: manual (go/hsv to check alignment) Change-Id: Iaf5115d771e7aa6bf4f8f6a7434d0a2a0d05da21
2020-11-25AOD/LS - RTL adjustmentsMatt Pietal
Slightly update large clock size. Fix smartspace text alignment for RTL languages and use relative alignment for images within the text. Bug: 172360102 Test: manual Change-Id: I8fdf1ac8789a8ca75ed97f369bdbd5de40a616d7
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-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-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
2020-06-09Removes UniversalSmartspace BroadcastReceiver.Andy Wickham
Fixes: 148159743 Test: Verified manually Change-Id: I1dbcdb795c6872053e3f71503c3e52eba019d7bd
2020-05-01Don't constraint view sizes as muchLucas Dupin
We're ellipsing text views unnecessarily, because of smaller fields that only contain icons. Test: visual Fixes: 148448106 Change-Id: Ifba8096b44ca8a0db466bececd41caa0d71e67dd
2020-03-03Fix KeyguardSliceView leakLucas Dupin
Tunable and slice listener was not being unregistered correctly. Fixes: 150595377 Test: atest KeyguardSliceViewTest Change-Id: I28afb56b732de2c3bffded031a6fc7731b72d36d
2020-02-07Change view type for better a11yLucas Dupin
Otherwise Talkback would announce it as a button, even though it doesn't have any action. Fixes: 148990123 Test: visual Test: talkback Test: KeyguardSliceViewTest Change-Id: Ie95d1541bc01fcc89397269effbaf07c21f65b7b
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-15Better line breaks on the keyguardLucas Dupin
BREAK_STRATEGY_BALANCED will try to keep the lines with similar lengths. Which will look much better Test: play music, look at AOD Change-Id: Ie87cb5fd47f5258fafc4b1b50d51be52ad28ccfd
2019-07-22Don't animate clock when turning screen off.Robert Snoeberger
This change stops the animation because there isn't a transition from the no-header state to the music header state when turning the screen off (to AOD). Since there isn't a transition, there isn't an animation. This assumes that there isn't a transition from unlocked to lock screen. If there is, then there would be an animation of the music going away while arriving at the lock screen. Fixes: 137383007 Test: Checked repro steps in bug, clock doesn't animate. Test: Also checked repro steps when audio is paused, clock doesn't animate. Test: atest KeyguardSliceProviderTest.java Change-Id: If39777340b72bc623d6690bc4f784c7f5c26ea8d
2019-05-09Update size and vertical spacing of clock on keyguard.Robert Snoeberger
Bug: 130223602 Test: visual Change-Id: I09f6dff826d6ef297a4babdc9aa70b7f138dbeed
2019-04-03Make KeyguardSliceView title tappableLucas Dupin
Bug: 129877485 Test: manual with caldendar event Change-Id: I413f9c92541f7b7d8ee8a766a43f3086b88aa7f8
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-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
2018-12-26Fix issue where media icon cannot be loadedLucas Dupin
Change-Id: Ie429cbb3e03674522bdc465cc630f44f12073983 Fixes: 121457418 Test: manual
2018-12-19Lockscreen changes font on Overlay changeFabian Kozynski
Change-Id: I96ed7f3a0ce8bd9fb8ce8c05280a2950d0efac5f Test: Manual (using HotDogOverlay) Bug: 121124205
2018-11-14Remove legacy methodLucas Dupin
Test: make Change-Id: I28630df52fc8f5dc939c2e232599d33ed70ec2c9
2018-11-06Support show KeyguardPresentation on all public displays.wilsonshih
Support show keyguard presentation on all public displays when Keyguard is show. Modify API ActivityTaskManager#setLockScreenShown, extends to multi-displayIds. bug: 111955725 Test: Manual test with chromecast. Test: atest SystemUITests Test: atest ActivityManagerMultiDisplayTests Test: atest ActivityManagerDisplayKeyguardTests Change-Id: I9967e1b1adcb796593332b46853a10101e206013
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-08-17Merge changes from topic "androidx_prebuilt_roll"TreeHugger Robot
* changes: Move PrintRecommendationService from using @hide Preconditions class in AndroidX. Fix KeyguardSliceView after slices api changes.
2018-08-16Fix KeyguardSliceView after slices api changes.Aurimas Liutikas
Test: make -j SystemUIGoogle atest KeyguardSliceViewTest atest KeyguardSliceProviderTest Change-Id: I04fe4bd2a285237d03b4415f7cdc8fbff7970011
2018-08-15Avoid binder call when binding SliceLucas Dupin
The ContentProvider will make unecessary binder calls when trying to bind the Slice. We can call directly into the provider and grab the slice in these cases. Bug: 112563822 Test: systrace Change-Id: Ia761afccd7d28cf5e41b7c1420715fd9446ac8e8
2018-06-06Merge "Always cancel clock animation" into pi-dev am: a1cb973366Lucas Dupin
am: 0d6753d1ed Change-Id: I855e9dcc604514322b2f817f03759ca2b6593fe8
2018-06-04Always cancel clock animationLucas Dupin
We could end up presenting the wrong state if a non-animated layout arrives while we're still animating. Bug: 109678321 Bug: 86710763 Test: manual, change active users repeatedly Change-Id: I63a73e966c5e7bcfec89e6e4d5f7fc9ce35dfa80
2018-05-31Merge "Add a primary action to slices from keyguard slice provider" into ↵Mady Mellor
pi-dev am: 1031bf5f76 am: 6f4f0da87e Change-Id: I0a9c0243b87bad281776b5560c8c57945934f855
2018-05-31Merge "Add a primary action to slices from keyguard slice provider" into pi-devMady Mellor
2018-05-24Merge "Follow supportlib changes in SliceManager" into pi-dev am: 96910a6dc2Jason Monk
am: 382b2d612c Change-Id: I0a49a82ac3757f4840ef10b448e9df8cb8548a9c
2018-05-25Merge "Follow supportlib changes in SliceManager" into pi-devJason Monk
2018-05-24Add a primary action to slices from keyguard slice providerMady Mellor
We'll be enforcing requiring a primary action on slices. There isn't a clear action that makes sense for these slices... which is unfortunate but add a dummy one for now. Test: atest KeyguardSliceProviderTest Bug: 77855834 Change-Id: Ic37f9a8eba463654b3b2b93c1df9cb97d6d688a2
2018-05-23Merge "Only animate when the slice is actually animating" into pi-dev am: ↵Lucas Dupin
3116918bf0 am: 5bf2a5de6f Change-Id: I5247d66f300187728af4b0d6dbd837a021733794
2018-05-23Merge "Only animate when the slice is actually animating" into pi-devLucas Dupin
2018-05-23Follow supportlib changes in SliceManagerJason Monk
Test: make Bug: 78898947 Change-Id: Ibb2bdc62798d7e0ee93dc0609a8871041abba108
2018-05-22Only animate when the slice is actually animatingLucas Dupin
It's not correct to always animate if there is a layout transition. The transition might not be triggered when the view is invisible for example. It's necessary to check if we have pending/running animations. Change-Id: I75dbc9f8a152a162a3c77c9b316f653e665b8842 Fixes: 79773596 Test: manual Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardSliceViewTest.java
2018-05-21Merge "Add content description to zenmode" into pi-dev am: adc1534453Lucas Dupin
am: c320298e81 Change-Id: I4822d26b1cf5667ae67131422d8f41da6b2ad28b
2018-05-22Merge "Add content description to zenmode" into pi-devTreeHugger Robot
2018-05-21Add content description to zenmodeLucas Dupin
Test: manual Change-Id: Ic478e8a6fcd2088d198b2cee2e70ab8376b4709d Fixes: 79686343
2018-05-21Merge "Measure text in 1 pass" into pi-dev am: 322d934e02Lucas Dupin
am: fe5aa5bb54 Change-Id: I94d426f443d2b5adde0b96b9c55a71025f5f4e39
2018-05-21Measure text in 1 passLucas Dupin
Before we were setting the text again using setText, and this would trigger a second measure/layout pass, which is unnecessary. Now we're using the same mesure pass to calculate the view's best line break. Fixes: 79714443 Test: manual. set various meeting names animated or static Change-Id: Ia911fae8f820b703ca385a10211073bae37f3258