summaryrefslogtreecommitdiff
path: root/packages/SystemUI/plugin/bcsmartspace/src/com/android/systemui
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate `setIsDreaming` in favor of `setUiSurface`.Xiaowen Lei2023-02-151-6/+0
| | | | | | | | Bug: 266139726 Test: manual Test: DreamSmartspaceControllerTest Test: LockscreenSmartspaceControllerTest Change-Id: I35e2b0a1d8b3f203371dfb23b9a3c0d7590ce4d5
* Provide default implementation for some methods in BcSmartspaceDataPlugin.java.Xiaowen Lei2023-01-251-13/+37
| | | | | | | | | | | | Many methods are only useful for BcSmartspaceView (At-A-Glance). Most of the default methods now throw a "Not implemented" exception. However, kept `setKeyguardBypassEnabled` as a no-op, so that it can be called in a loop over SmartspaceView's. Bug: 261752855 Test: manual Change-Id: I8f250a6d2c5a8e84f78183b4563caa56ed79f77f
* Add date/weather decoupling config for smartspaceLiam, Lee Pong Lam2023-01-142-0/+29
| | | | | | | | | | Add BcSmartspaceConfigPlugin for smartspace config and register to bc smartspace view. Bug: 262630440 Test: Unit tests/ Manual Change-Id: Ic5c61255d619806855adfc5bc4c09ee8f062fb4c
* Add SmartspaceView.setUiSurface and set it for lockscreen Smartspace.Xiaowen Lei2023-01-051-0/+10
| | | | | | | | | | | | | | Currently, we only need to set this for lockscreen Smartspace. When the UI surface is set to "lockscreen", the date will update on Always-On Display. See ag/20750544. We can also deprecate the existing setIsDreaming method in favor of setUiSurface. That's a separate issue and will be addressed separately. Bug: 262046287 Test: manunal. Compared behavior and trace before/after the fix. Test: atest LockscreenSmartspaceControllerTest.kt Change-Id: I57126499dce033444d2c134f33a8b417e111ba65
* Update smart space views whenever the keyguard bypass state changes.Chandru2022-06-141-0/+5
| | | | | | | | | | | | This is used for showing the media info in the smart space on the lockscreen, when face unlock lockscreen bypass is enabled. Current behavior: if media is playing and user taps to wake up screen while not looking at the screen, the media controls (through notification) are not visible. There is no indication that there is media currently playing. New behavior: if media is playing and user taps to wake up screen while not looking at the screen, the smart space shows the media info. (media controls are still hidden and not affected by this change). Fixes: 230669390 Test: atest com.android.systemui.statusbar.lockscreen Change-Id: I91e705261cb6e48107103666a29a1b2ec61beeca
* Offset bounds by card top padding to align lockscreen/launcher smartspaces.Josh Tsuji2022-05-121-0/+6
| | | | | | | | | | | This fixes the issue where the smartspace jumps around when an alarm is set, and the lockscreen smartspace has three text lines while launcher's has two. Bug: 232413750 Test: unlock with/without alarm set Change-Id: Iaca7d62779f9f45b94833272d853bbfc2cbc42ae
* Add logging for Smart Space on Dream surface.Xiaowen Lei2022-04-221-0/+6
| | | | | | | | | | | Bug: 227613246 Fix: 227613246 Test: manually on device - SS events logged same as for lockscreen. Note: clicks are logged for reminder card but not for weather card, which is the same behavior as for lockscreen. Test: atest DreamSmartspaceControllerTest Change-Id: If4931fc9da0688cfe63e7519713f4107d8d001c5
* Merge "Modify the documentations for the UI template APIs"TreeHugger Robot2022-02-141-2/+2
|\
| * Modify the documentations for the UI template APIsCecilia2022-02-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | - Rename the classes to be less verbose; - Add the template layout descriptions to its corresponding data classes; - Documents for all getter/setter methods. Fixes: 217554855 Test: atest CtsSmartspaceServiceTestCases Change-Id: Id5abcea0210b19b40c96cc8183e439c8af95bf85
* | Merge "Add all the Smartspace UI templates' corresponding data classes."TreeHugger Robot2022-01-281-0/+13
|\|
| * Add all the Smartspace UI templates' corresponding data classes.Cecilia2022-01-271-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - SmartspaceDefaultUiTemplateData represents the data of a Smartspace card with the default UI template; - Other templates' data classes are all subclasses of SmartspaceDefaultUiTemplateData; - SmartspaceIcon and SmartspaceTapAction are the newly-added primitives. More details in go/ss-launcher-templated-ui. Test: tested locally Bug:213926964,212650337 CTS-Coverage-Bug:214471292 Change-Id: I056c49e3db7060697be4a3a8f51358802f2610b0
* | Adds Launcher in-window animations, and reworks how the unlock flow works.Josh Tsuji2022-01-181-0/+5
|/ | | | | | Bug: 197636887 Test: atest SystemUITests Change-Id: If6ff114f90fcfc19b9e3530bb0dea8cc0591f745
* Prevent bad intents from crashing sysuiMatt Pietal2021-12-161-4/+11
| | | | | | | | | | | | Smartspace could potentially send Intents that don't resolve, which will crash sysui. Log a warning. Also register an event notifier to let the SmartspaceSession know of a user action. Bug: 208350043 Test: atest LockscreenSmartspaceControllerTest + manual (use new smartspace flashlight off content) Change-Id: Ife517864c6933bc2d6ef01c28ec97363d9ebfbd7
* Smartspace - Allow clicks to avoid intent launchMatt Pietal2021-10-271-5/+5
| | | | | | | | | When 'show_on_lockscreen' == true in the SmartspaceAction extras, start the activity without requiring the device to be unlocked. Fixes: 203775218 Test: manual Change-Id: Iab5505fc7aec8d7e29364ff7d3d527f5d71ec5b3
* AOD MediaMatt Pietal2021-05-261-0/+5
| | | | | | | | | | | Add media back into smartspace content when the new plugin is enabled. Only show media on AOD when no other content is displayed, other than the default weather/date card. Fixes: 185373132 Test: atest KeyguardMediaViewControllerTest Change-Id: I9a1ff4eaeb4e13ed30c7796c1e9d2d5d46916737
* Update SmartspaceDataPlugin to allow sending SmartspaceTargetEvents.Schneider Victor-tulias2021-05-131-0/+13
| | | | | | Test: manual bug: 187320188 Change-Id: Idda9b4fb96d863c9c49f6233e1ab4f3d89f2682a
* Smartspace - Next alarmMatt Pietal2021-05-071-3/+8
| | | | | | | | | | | Support next alarm appearing next to DnD. If weather is showing, show inline, otherwise below the smartspace content. Next alarm will not fade out but DnD will. Fixes: 185678563 Test: atest KeyguardZenAlarmViewControllerTest Change-Id: I21e95470d0013bfb6900c1c228dda69f5707c9e6
* Smartspace - Support Do Not DisturbMatt Pietal2021-05-041-0/+13
| | | | | | | | | | Add support for systemui to inform smartspace about do not disturb settings. Address some minor spacing issues. Fix how smartspace loads through dagger. Fixes: 185970916 Test: atest KeyguardClockSwitchControllerTest Change-Id: Id19244ceb45fb70a28d780fa5edefab35a5e42c4
* Fixes Studio warning from not being able to find this reference.Andy Wickham2021-05-011-1/+1
| | | | | | Test: Manual Fixes: 186905222 Change-Id: Iab122016da87dc151d3928666bea9d235691fb67
* Smartspace - Support launching intents from lockscreenMatt Pietal2021-04-231-0/+32
| | | | | | | | | | Also integrate the FalsingManager, which is important for determining user intent while on the lockscreen. Fixes: 186219857 Test: atest KeyguardClockSwitchControllerTest Change-Id: I22108ec2335bd350fbcaf5d5b90dd3b351011767
* Smartspace - Fade out secondary cardsMatt Pietal2021-04-201-0/+8
| | | | | | | | | Pass dozeAmount values to the smartspace library to allow the lib to make decisions regarding content on both AOD and Lockscreen Fixes: 185598979 Test: manual, multiple smartspace cards Change-Id: Ic7bc2ba238b22794a33e6db18c1aae0fa7c96e0b
* Smartspace - Allow primary card colors to be updatedMatt Pietal2021-04-141-0/+2
| | | | | | | | | | | | This is largely for both AOD and lockscreen, while may have different colors than launcher. Particularly for AOD, we need to transition to a WHITE color. Set a primary text color, with expectations that a secondary color will later be set in order to support cards with various background colors. Fixes: 185211979 Test: manual, change to AOD <-> LS Change-Id: I36fb8e5cfcbac1ec999b2b9df08f42d47507990f
* Revert^4 "Enable smartspace"Matt Pietal2021-04-101-0/+18
| | | | | | 20744ed3b4623b379821af2945ef0cb77fe40648 Change-Id: I1eba412c6cb31684760af068b86a602cf6a53578
* Revert^3 "Enable smartspace"Matt Pietal2021-04-081-18/+0
| | | | | | 3b67a00d95e6d19824030cd1169e213c2231ce71 Change-Id: I4711f24b1ed3535dbf40ffd6ab893e6cd661fe49
* Revert^2 "Enable smartspace"Matt Pietal2021-04-071-0/+18
| | | | | | | | | Address issue with component init and tests Bug: 184642387 Test: com.android.devicehealthchecks.SystemAppCheck Change-Id: I51ad3fb2e9df47a8f426a356fc34c8499b94892f
* Revert "Enable smartspace"Ulyana Trafimovich2021-04-061-16/+0
| | | | | | | | | | | | | | | | Revert "Enable smartspace" Revert submission 13984710-smartspace_ls Reason for revert: Broken test: com.android.devicehealthchecks.SystemAppCheck#system_app_crash on git_master on redfin-userdebug at 7262114 Reverted Changes: I77a4ef72c:Enable smartspace I77a4ef72c:Enable smartspace Bug: 184642387 Change-Id: I299bef5e730c632803c56cf0f1cd858caac4e49f Test: forrest run for the broken test
* Enable smartspaceMatt Pietal2021-04-051-0/+16
| | | | | | | | | Allow KeyguardSliceProvider to be replaced by content coming from the BcSmartspaceDataPlugin, only when the plugin is enabled. Bug: 172360102 Test: manual Change-Id: I77a4ef72c7131f955fe37763e02542726c36927b
* Moves BcSmartspaceDataPlugin to SystemUI.Andy Wickham2021-03-121-0/+44
Test: mp droid, mp sysuig, gradle build for Launcher Bug: 182344603 Change-Id: I82df1a4e46094396b1b7cfb9f1f1d7fab351b818