summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-13.0.0_r35' of ↵George Zacharia2023-04-031-2/+4
|\ | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 release 35 Change-Id: I709958b2f015d1774b2ece25894467c3a279f93c
| * Replace getCurrentUser() calls with UserTrackerAlex Stetson2022-11-141-2/+4
| | | | | | | | | | | | | | | | | | | | | | Replacing getCurrentUser calls in SystemUI with UserTracker to help centralize source of truth. Bug: 249831072 Test: atest SystemUITests Change-Id: I23bd747192adcd715b96442f0834254ad0bb44a3 Merged-In: I23bd747192adcd715b96442f0834254ad0bb44a3
* | core: move OmniJaws client to its new homeAli B2022-10-211-1/+1
| | | | | | | | | | | | | | | | | | Also includes Grant default location permissions to OmniJaws Author: Ali B. Change-Id: I2988eea61414dafc94e52729b997d07f4673a9ad Change-Id: I50349a910aa604959def70377da135c6d94c7774
* | SystemUI: keyguardslice code cleanupAli B2022-10-211-2/+2
| | | | | | | | Change-Id: Icdfc9a56303bdae94fc0c739b3af548306f71fb4
* | base: SystemUI: add keyguard weather style (1/2)Ali B2022-10-211-20/+28
| | | | | | | | | | | | | | | | | | | | Choose from Omni style with dedicated line of location, conditionimage, temperature or KeygardSlice style added to the dateline with conditionimage, temperature. Care is taken to properly display in ambient display, and ambient music. Change-Id: I6f09967843d360a82b6c98b8e3d1c9a269af798f
* | base: add weather to keyguardSliceAli B2022-10-211-1/+111
|/ | | | | | | | | | Thanks to Henrique Silva <jhenrique09.mcz@hotmail.com> for the keyguard slice code Revamped and adapted to Omnijaws base and adapted to 10, 11, 12 by @eyosen Change-Id: I4232d8dea7ee54dc35869abb86b6b5c3e7820166
* Remove Dependency#get from KeyguardSliceProviderDave Mankoff2022-01-261-7/+4
| | | | | | Bug: 138786270 Test: manual Change-Id: I8894662ebb361ca503701743ffc63b0cc5581866
* Remove old debug code from fixed bug.Dave Mankoff2021-05-051-24/+1
| | | | | | | | This problem was fixed in the associated bug long ago. Bug: 168778439 Test: manual Change-Id: Ic074dfab543bfc0817e289cf152ce14d20440c51
* More logging when failing to inject SliceProvider.Dave Mankoff2020-11-181-1/+1
| | | | | | | | | This continues to be an exception that shouldn't be happening. ADding more logging to try to get insight into the problem. Test: manual Bug: 168778439 Change-Id: I2fdaa366c70f1551a768f48f7ac6df966e731fe3
* Make pendingintent use immutable flagMatt Pietal2020-10-191-1/+2
| | | | | | | | | It will be required for S+ that every PendingIntent be declared mutable or immutable. Fixes: 169792037 Test: manual Change-Id: I4212c232abb061b06cbd5520ea548318f43549de
* Add debug logging to try to catch NPE in the wild.Dave Mankoff2020-09-281-1/+26
| | | | | | | | | | | | | | ~0.5% (or less) of our dogfooders are getting NPE's in the KeyguardSliceProvider. It is unclear why this is happening and we do not currently have reproduction steps for it. Add some try/catch logging to the KeyguardSliceProvider to try to catch this phenomenon so that we can narrow down why it is occuring. This change can be reverted once we know more. Bug: 168778439 Test: manual Change-Id: Id65ee5bece75ef8497f7464079e5258781079fa9
* 5/N Reduce number of accessors of root component.Dave Mankoff2020-08-111-9/+5
| | | | | | | | | | | | | | Ensure that only the code that actually needs the root component asks for it. This also fixes ContentProvider injection (a bit). They no longer have to manually run injection on themselves, as long as they implement SystemUIAppComponentFactory.ContextInitializer properly and define an inject(MyClass) method in the root component. Bug: 162923491 Test: manual && atest SystemUITests Change-Id: I507859f5f8d89bdde5b10e78b54c5cfbf28737bc
* Refactored the Media Player managementSelim Cinek2020-05-081-1/+2
| | | | | | | | | | | | Previously all media instances had their own management and it could easily happen that certain players would get out of sync as a result. We now have a unified architecture to listen to media notifications and inflating a singular UI Test: atest SystemUiTests Bug: 154137987 Change-Id: I9f807e6431dd7cb54ca9b6d983379d770a281f31
* Require a more specific intentLucas Dupin2020-03-251-1/+2
| | | | | | Fixes: 147606347 Test: run poc, device didn't reboot Change-Id: I8f721ca659d58271880a7adbf386b270b331e55b
* Expose managed profile sensitiveness preferencesLucas Dupin2020-01-281-44/+32
| | | | | | | Test: atest NotificationLockscreenUserManagerTest Test: atest KeyguardSliceProviderTest Bug: 144299702 Change-Id: Ia91cab4ebeaa36a7f26588197c4aba3291f88d28
* Merge "Use unique Handler for media, and synchronize it" into qt-qpr1-dev ↵Lucas Dupin2019-10-181-15/+12
|\ | | | | | | | | | | | | | | am: fd6f170e31 am: b019786efc Change-Id: If01a4374dffbd1e883f2801419288b1ebb678daf
| * Use unique Handler for media, and synchronize itLucas Dupin2019-10-171-15/+13
| | | | | | | | | | | | | | | | Otherwise other classes can end up cancelling messages on this Handler Test: atest KeyguardSliceProviderTest Fixes: 142179390 Change-Id: I48568cabac8f2170d83687ac532f357f7afea9f2
* | [DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791Hyunyoung Song2019-09-011-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Fix the looper that KeyguardUpdateMonitor is using.Dave Mankoff2019-08-311-6/+21
|/ | | | | | Bug: 139051615 Test: atest SystemUITests && atest SystemUIGoogleTests Change-Id: Ic4dd5978001c208504c137cee41f363d7e70b1b5
* Don't animate clock when turning screen off.Robert Snoeberger2019-07-221-3/+17
| | | | | | | | | | | | | | | | | | | 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
* Showing heads up for music when bypassingSelim Cinek2019-06-281-12/+10
| | | | | | | | | Users where missing the music controls so we are showing a headsup for them on the lockscreen. Fixes: 134543453 Change-Id: I089fa8ff35b918f485f79e09393173f05971a73e
* Unregister listeners and reset wake lockLucas Dupin2019-06-241-16/+43
| | | | | | | | | | | | The ContentProvider might be recreated by the system, so we it's not necessarily a singleton. We need to cleanup listener registration and alarms before reattributing the static variable. Fixes: 135344397 Fixes: 135582651 Test: bind and unbind slice various times Test: atest KeyguardSliceProviderTest Change-Id: I9bc993f372a8c05258f1778eb3d415af04544714
* Merge "Revert "Unregister listeners and reset wake lock"" into qt-devChiayu Pei2019-06-241-43/+16
|\ | | | | | | | | | | am: a5be28971c Change-Id: I649e2774d8f08bf5a2ea666074b04fd22c69ff0f
| * Revert "Unregister listeners and reset wake lock"Chiayu Pei2019-06-241-43/+16
| | | | | | | | | | | | | | | | This reverts commit fe107a1621b98f8e9caa47b1e4e7ecbee00a2f88. Reason for revert: <INSERT REASONING HERE> Change-Id: Id092c473a8300e014ccd4d941afa4afcdbbf48bc
| * Unregister listeners and reset wake lockLucas Dupin2019-06-221-16/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | The ContentProvider might be recreated by the system, so we it's not necessarily a singleton. We need to cleanup listener registration and alarms before reattributing the static variable. Change-Id: I227842d7272d1edeaa67d776950f369aedb01a91 Merged-In: I227842d7272d1edeaa67d776950f369aedb01a91 Fixes: 135344397 Fixes: 135582651 Test: bind and unbind slice various times Test: atest KeyguardSliceProviderTest
* | Unregister listeners and reset wake lockLucas Dupin2019-06-211-16/+43
| | | | | | | | | | | | | | | | | | | | | | | | The ContentProvider might be recreated by the system, so we it's not necessarily a singleton. We need to cleanup listener registration and alarms before reattributing the static variable. Change-Id: I227842d7272d1edeaa67d776950f369aedb01a91 Fixes: 135344397 Fixes: 135582651 Test: bind and unbind slice various times Test: atest KeyguardSliceProviderTest
* | Do not hide media metadata when bypassing LSLucas Dupin2019-06-031-2/+8
|/ | | | | | | Bug: 130327302 Test: manual Test: atest KeyguardSliceProviderTest Change-Id: I50bfd88d8d812ce7b64294a7bc68d8b28e9a6a0d
* Fix stale media metadataLucas Dupin2019-05-281-16/+47
| | | | | | | | | | | | Checking if the metadata object is the same is not enough, we must check if the fields are also the same, otherwise we can skip events. It's also necessary to wait for a while before removing the media, otherwise animation would be janky. Test: adb shell input keyevent 87 Fixes: 133378688 Change-Id: I7847c8e435f35f4ab596f2aa2cc9296f06d5df26
* Hide media on AOD when not playingLucas Dupin2019-05-161-21/+37
| | | | | | | | | | Media seems stuck on AOD if paused or stopped and still visible. Test: play pause with bluetooth headphones Test: play pause on lock screen Test: skip songs on lock screen, go to aod Fixes: 131314881 Change-Id: I3574bbf628b708d2f9d4c4363a912de5ded951ac
* Move music icon to secondary rowLucas Dupin2019-04-161-28/+14
| | | | | | Bug: 130223602 Test: visual Change-Id: I5c2f5acc267f5fa87b1f997afd3c304e5a2bf184
* Update status bar icons to GM2Amin Shaikh2019-03-281-2/+3
| | | | | | | | | - Dedupe qs/status bar icons - Remove a few unneeded icons Bug: 116357908 Test: mp sysuig Change-Id: Ia343f20f0ebfe34a75f247b9fddac36e7f654c1f
* Always update view when metadata changesLucas Dupin2019-02-201-6/+5
| | | | | | | | Otherwise skipping songs wouldn't change the contents of AOD. Test: manual Fixes: 124527003 Change-Id: Ie644aa451390712ae529c849a743ec083b8229ee
* Restore keyguard status area headerLucas Dupin2019-02-121-12/+27
| | | | | | | | | | Fixes: 123340905 Fixes: 123958307 Test: atest KeyguardSliceViewTest Test: manual, playing media This reverts commit ed00262486e5c4b6ae9ef902633eca8958ddf80f. Change-Id: I1cc60346f9176b913ee0404b2b31981f736664ce
* Make StatusBarStateController available to pluginsBeverly2019-02-071-1/+1
| | | | | | Test: atest SystemUITests Bug: 115322193 Change-Id: I46e4b23c9839720a3eb10e381d7aaf79a74c6b33
* Hide media details on lock screenLucas Dupin2019-01-071-7/+46
| | | | | | | | | | Media data will only be available when dozing to avoid duplication on the notification shade. Test: manual Test: atest KeyguardSliceProviderTest Bug: 111405682 Change-Id: I5e057496aa36c912293be54a4abfa62667b96db3
* Song name in KeyguardSliceProviderLucas Dupin2018-12-211-50/+134
| | | | | | | | | | This CL also includes synchronization bugfixes, since SliceProvider#onBindSlice can be called from any thread. Test: atest KeyguardSliceProviderTest Test: manual Bug: 111405682 Change-Id: Ief19625cba96b0c17f7444b2b2acc8f27c24597e
* Reduce number of TIME_TICK broadcastsLucas Dupin2018-12-201-12/+26
| | | | | | | | | | | SysUI was registering too many TIME_TICK events and this led to some of them being dropped. Most common symptom is clock being stuck. Bug: 116488358 Test: atest KeyguardSliceProviderTest Test: set calendar events, plug device into a charger Change-Id: I234b983039fd9917249c7419e71825096f017e3f
* Show DND icon on AOD whenever DND is onLucas Dupin2018-11-271-8/+4
| | | | | | | | | | Before, we'd only show it if visual effects were off, and users didn't quite understand the behavior. Test: manually toggle DND Test: atest KeyguardSliceProviderTest Bug: 111405682 Change-Id: I305883564c8d710497a5fc9a8ca0548c30b896f0
* Use double-digit hour on 24h alarm formatLucas Dupin2018-11-121-9/+8
| | | | | | Test: visual Change-Id: I67713b91057de7974c2429053b358a8e82510068 Fixes: 119166942
* Avoid binder call when binding SliceLucas Dupin2018-08-151-5/+15
| | | | | | | | | | 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
* Follow slice API finalizationJason Monk2018-08-091-11/+16
| | | | | Test: build Change-Id: I28d7c23fa23817d1b974f36b74be5512f12ce59c
* Add a primary action to slices from keyguard slice providerMady Mellor2018-05-241-0/+17
| | | | | | | | | | 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
* Add content description to zenmodeLucas Dupin2018-05-211-0/+2
| | | | | | Test: manual Change-Id: Ic478e8a6fcd2088d198b2cee2e70ab8376b4709d Fixes: 79686343
* Update date during time tick eventLucas Dupin2018-05-071-22/+3
| | | | | | | | | | | Remove extra broadcast action and use existing doze_time_tick alarm to update slice. Change-Id: If167c8d81e5f5a67050d7904ce2497c1bdb70e9a Fixes: 77988364 Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardSliceViewTest.java Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardStatusViewTest.java Test: atest packages/SystemUI/tests/src/com/android/systemui/keyguard/KeyguardSliceProviderTest.java
* Add DND indicator to AODLucas Dupin2018-05-021-4/+48
| | | | | | | Test: atest packages/SystemUI/tests/src/com/android/systemui/keyguard/KeyguardSliceProviderTest.java Test: manual Bug: 78445133 Change-Id: If3a9d2b36e4a06b775c77b9d02b5eaa83f7088a3
* Restore "Update packages for 1.0.0-beta1"Alan Viverette2018-03-151-4/+4
| | | | | | | | This reverts commit f980f54a758d24398bba142481b482b6f164c3b9. Bug: 74950017 Test: manual Change-Id: I793ec0f6c2ba6a141481f8d03e85b791dd8a73d1
* Revert "Update packages for 1.0.0-beta1"Alan Viverette2018-03-151-4/+4
| | | | | | | | | | This reverts commit ad4d866837be4ed07d44672d74473acfb9461ec2. Reason for revert: broke Settings Bug: 74950017 Test: revert only Change-Id: I7a535717d30ec79cd5a2f0529cb7ce511145e0ae
* Update packages for 1.0.0-beta1Alan Viverette2018-03-121-4/+4
| | | | | | | | Fixes references to changes Slices compat code. Bug: 74449147 Test: make Change-Id: I7a7f81d582d12b3813c0581446efec81ed5f6b48
* Show next alarm on ambient displayLucas Dupin2018-02-271-16/+56
| | | | | | | | | | Next alarm will be visible 12h before triggering. Test: Set alarm that will ring in 8h Test: Set alarm that will ring in 14h Test: Set alarm that will ring in 11:59, wait one minute Test: atest packages/SystemUI/tests/src/com/android/systemui/keyguard/KeyguardSliceProviderTest.java Change-Id: Icd4253771efcdf5afb4e9e52329fa410d7fd1cc1
* Shorter date format on lock screen and AODLucas Dupin2018-01-241-1/+1
| | | | | | Test: visual Bug: 72417398 Change-Id: I23568bd81068057523743343aebce1bd4666df70