- May 24, 2022
-
-
Picked remaining support from commit bbd00b7 and lid state handling from commit 68771fe. Change-Id: I310dfd026b2dc5e7bc47dd4a2c1ae029d58a1e8e
-
* Use keypress info to exclude pressing volume keys from illuminating HW buttons in config_buttonLightOnKeypressOnly mode. Change-Id: I6bfc7ddd075e12e1ad10c3663a63e80c8d7f983d Signed-off-by:
Corinna Vinschen <xda@vinschen.de>
-
Author: Anas Karbila <anaskarbila@gmail.com> Date: Sat Jun 3 03:21:32 2017 +0200 PowerManagerService: Allow to light up buttons only when pressed * Right now capactive, lit hardware keys are being lit every time you either touch them or the screen. But some devices handle this differently on stock: Display touch => buttons not lit Buttons touch => buttons lit * Thus, add a setting in order to allow the user to choose the preferred behavior. Change-Id: I35ac71a8274568901f962c9692788d1c682a98dd Author: Corinna Vinschen <xda@vinschen.de> Date: Sun Aug 6 15:05:54 2017 +0200 PowerManagerService: fix HW button illumination timeout Change I35ac71a8274568901f962c9692788d1c682a98dd, introducing hardware button backlight on button keypress only, also introduced a bug: When touching a button and then performing display activity while the buttons are still on, the buttons would keep lightened up until the next user interaction, potentially only switched off at the next screen off timeout. Also, the buttons were not illuminated on device wakeup. This patch fixes it, together with another, long-standing problem: When touching a hardware button, nextTimeout was set to now + mButtonTimeout, even if mButtonTimeout is longer than the timeout determined by the screen off timeout. To wit, if screen timeout is set to 15 secs, but button timeout to values > 15 secs. Change-Id: I8a56f1d1e0138c38ed6fe294e4816a9f7f744f1e Signed-off-by:
Corinna Vinschen <xda@vinschen.de> Change-Id: I5b486e65a5b7d9d16590941df0af4d9c604dedc4
-
Squash of: Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org> Date: Fri Nov 23 14:23:16 2012 +0000 Reintroduce button-backlight (and respective inactivity timeout) The power manager rewrite from Change I1d7a52e98f0449f76d70bf421f6a7f245957d1d7 completely removed support for control of the button backlights, which makes all capacitive buttons out there stay dark. The commit message in that change mentions it hasn't been implemented _yet_, so this fix should be temporary until upstream does their own implementation Change-Id: I6094c446e0b8c23f57d30652a3cbd35dee5e821a Author: Danny Baumann <dannybaumann@web.de> Date: Thu Aug 22 08:53:24 2013 +0200 Add PowerManager integration for button and keyboard backlight. Allows setting button and keyboard backlight brightness as well as button timeout. Change-Id: I550cccafc0a8f90d6347de9261adb26b75955cc4 Author: Steve Kondik <steve@cyngn.com> Date: Sat Jan 3 05:13:26 2015 -0800 power: Disable keyboard/button lights while dozing/dreaming * With hardkeys and doze mode enabled, entering suspend results in an epic battle over the lights. It's a bad situation. Disable them when we're sleepy. Change-Id: I7f1fc35a1573717d1ea101a07c4171d6f66d1553 Author: nadlabak <pavel@doshaska.net> Date: Sun Jun 7 02:01:05 2015 +0200 PowerManagerService: Fix updating of mUserActivitySummary I7f1fc35a1573717d1ea101a07c4171d6f66d1553 missed the fact that the primary purpose of the affected condition block was to update mUserActivitySummary and the button/keyboard light handling was just appended to it later. This fixes the waking from dream/screensaver by user activity. I30c5c8c9c09e3d57ace18cac72b783510b9b3bf3 is removed here as well as it was just a band aid. jira: NIGHTLIES-1285 Change-Id: I6b2f6c58e73110787d62e86d4d2ef538638cf491 Author: Bruno Martins <bgcngm@gmail.com> Date: Tue Dec 26 17:15:05 2017 +0000 Forward-port button brightness implementation to O * Reworked for the new handler interface, restoring also removed methods (partial revert of commit 86c39f9e). * Keyboard backlight brightness support left out for now. Change-Id: I53f031fa2da394e95a2b29a01eb3c6a8f8132507 Change-Id: I5176a2028c18408c17bac7f25e62b5612fd6c227
-
This is a refactor of the following changes, so to make use of tuner API. Author: Timo Wendt <timo@tjwendt.de> Date: Thu Aug 30 12:18:41 2012 +0300 Runtime toggle of navbar This adds the framework support for enabling the Navigation bar on devices with hardware keys. It is toggled from Settings, and depends on device-specific support for the KeyDisabler hardware control Change-Id: I88fecb2ca1e8613591c327a93f53909b00239cd8 wm: Nullify hardkey function assignments if enabling the navbar This caused erroneous (and sometimes duplicate) events being generated due to the regular key function assignments. The navbar does its own action management, so don't try to derive from the actions usually present in hard keys. Change-Id: I82866e24547f8145cac4f07820ae90aacce09281 Update DEV_FORCE_SHOW_NAVBAR constant. Change-Id: Ie5b4317162c514d22276956f81007e064a3d0f32 Settings: Move DEV_FORCE_SHOW_NAVBAR load to loadSecureSettings. Change-Id: I6ac53b8c9f7fce6f9ca6b4ad7bf31a1c1e896863 Author: Paul Keith <javelinanddart@gmail.com> Date: Tue Jan 16 15:47:07 2018 +0100 PhoneWindowManager: Make sure KeyDisabler is always called on boot * Otherwise, some KeyDisabler classes are left in a weird state * Because we don't keep track of whether an initial state was ever set, we never call KeyDisabler on boot if the setting is set to 0 * To remedy this, keep track of whether an initial state was set Change-Id: Ib432ed3278dd8f4f4cba3ba488879b3c1cd9c8f4 Author: LuK1337 <priv.luk@gmail.com> Date: Sat Sep 29 20:42:04 2018 +0200 PhoneWindowManager: Fix issues introduced with runtime navbar * With system settings we need to pass UserHandle.USER_CURRENT to make sure we are getting proper value, otherwise we always end up getting '0'. Also we need to make sure to set valid mHasNavigationBar in setInitialDisplaySize(). Change-Id: I3efd614e735f9a602f13263a742ce858a9d14769 Author: jhenrique09 <jhenrique09.mcz@hotmail.com> Date: Tue Mar 24 22:04:47 2020 -0300 DisplayPolicy: Fix watchdog when adding new display * Fixes system crashing after connected to Android Auto or started screen record That was introduced on toggle navbar commit Only register content observer if default display Change-Id: Ia43a922251803be94de8618eb442dcf132e479e9 Change-Id: I4a6d3f89bc171c3921875b24c077cb78c03517ad
-
Add support for camera button Based on commit http://review.cyanogenmod.org/#/c/51487/ This patch adds: - Use camera button as wake key - Use focus button as peek and wake key - Use camera button to launch (secure) camera Change-Id: Ia515c04cca098bf0d20b077ebffc079ee4008f21
-
[mikeioannina]: Adjust for 5.0 changes Change-Id: I1b45da63b815aa1b3ddf7cda2b7afb0872ab433f
-
Previously we were using same flags that'd be used for regular back key long press thus being unable to determine whether the event was sent from EdgeBackGestureHandle or not. Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/4194 Change-Id: I5c4fd455f581ac5c9c5e3a146095be33e82e8d6e
-
Change-Id: If3ed27e8408cdf383653c7d18988112c13f8bcea
-
Some apps may react to back key long press and it doesn't make sense to allow them to do that if 'Back long press action' is set to anything other than 'No action'. Change-Id: Iacac909d6a288cacf964c89d9586d572d14d1871
-
Change-Id: I28762c88d4777f8dbc8f213a2522875c3428fdab
-
The gesture will activate if user executes edge swipe for a long horizontal motion. The triggered action is configurable in Button Settings. Reference: https://gerrit.dirtyunicorns.com/q/topic:%22back-longswipe-actions%22 Change-Id: Ie1bbe6645b6a00d346af60d6bb5e4d584997d6e9
-
* When the torch is on, any subsequent long press power is almost certainly intended to turn the torch off (regardless of screen state). Therefore, always allow long press power to toggle torch if the torch is on. * Tested: long press power toggles torch on/off with screen off. long press power toggles torch off with screen on and torch on. long press power brings up global actions menu with screen on and torch off. Change-Id: I932caa9f3be06d14408aea2ecb3a6eca73e052e0
-
This allows long press power button for torch and long press volume buttons for track skip to work during ambient display. sam3000/razorloves: partial pick from: Author: ezio84 <brabus84@gmail.com> Date: Fri Feb 2 01:24:34 2018 -0500 base: Support binding the power button to flashlight Thanks to beanstown106 for the initial longpress action calls in PhoneWindowManager (improved by lineage guys) [cut] Allow torch action also on ambient display Change-Id: I12da044f86c7b625872607529cf8524615cf576b Author: ezio84 <brabus84@gmail.com> Date: Sun, 7 Jan 2018 21:24:53 +0100 Fix volume rocker skip track on Ambient Display and Lift to Wake we need to check if dream service is dozing before checking keyguard status Change-Id: Ic3a6c830496188bb6edf27043cd24eb2d553bb82 Change-Id: I2463579e056364652b549524bc9775da4fa35b1f
-
Change-Id: Idfb12a7bae6d921d207b5becd69b1005ce3d2b92
-
Change-Id: I7662b593f5ba52cafe3d7ba7cf2099b29b8d308b
-
Change-Id: I5ebe1ad88950ba56ce1445b77b7f8cdf030463da
-
Author: LuK1337 <priv.luk@gmail.com> Date: Mon Jun 4 10:05:37 2018 +0200 PhoneWindowManager: Improve home button wake haptic feedback handling * This fixes an issue where haptic feedback is used when screen is off and home button wake is disabled. Change-Id: I7ac4c00598cedf7f174dc99629f55dc7b74b0d2a Author: Gabriele M <moto.falcon.git@gmail.com> Date: Mon Sep 26 00:43:08 2016 +0200 Fix volume keys wakeup status handling The same status flag is used for the three different volume keys, however nothing prevents users from pressing multiple keys at the same time. This allows to set the status flag with one volume key and clear it with the other volume key. Use one flag per key so that we never end up in an inconsistent state. This fixes the seldom power button issues that happen when the "volume wake" feature is enabled. Change-Id: I08f5f9ff696bef3dd840cff97d570e44ebe03e4e Author: Martin Brabham <optedoblivion@cyngn.com> Date: Wed Dec 3 11:48:28 2014 -0800 Android Policy: handle volume key event as wake key when preference is set Change-Id: If9a61cd65553bf00f0efda1a75b1ab75b9129090 Author: willl03 <wgangers@gmail.com> Date: Mon Dec 8 11:13:28 2014 -0500 Only go HOME if screen is fully awake Avoid going home when hardware home button is used to wake the device on an insecure keyguard Change-Id: I5d5d8c4fff76967c29e70251f7b165205005ba11 Author: Matt Garnes <matt@cyngn.com> Date: Tue Mar 31 14:39:38 2015 -0700 If a wake key is disabled by the user, do not wake from doze. Currently, any wake key will wake the device from a doze, even if that key has not been enabled as a wake key in Settings. If the device is 'dreaming' in the Doze state, check if the user has explicitly disabled the wake key (or never enabled the setting in the first place) before waking the device. Change-Id: I7397087c143161e8e1ddb84d0e23f6027fea0aac Author: Michael Bestas <mikeioannina@gmail.com> Date: Thu Dec 18 04:26:38 2014 +0200 Cleanup button wake settings (2/2) Change-Id: Ie37136cbd57c4c334321abbfa4543727e940bc43 Keep quiet when volume keys are used to wake up device - Userspace will make a 'beep' with it receives a key up, so consume that event as well. - Removed wake key check in music control code as it will already be disabled here. Change-Id: I93839acd39aec8a2ee40291f833a31f6b048c9f8 Wake Keys: enforce the wake keys overlay * Keys disabled as wake keys by the overlay were still being allowed to wake the device. This change enforces the hardwareWakeKeys settings. Change-Id: Ifde0491b2de64a7f61a101cf22f5589cb5e841e2 Allow disabling Search/Recents button wake (2/2) Change-Id: I6a2ac064efc4fe85413bf0b935c28aa7bde5d672 Author: Danny Baumann <dannybaumann@web.de> Date: Sun Nov 30 23:04:37 2014 -0600 fw/base: allow home button to wake device [1/2] Change-Id: I2b79561dcfa7e569b2e24bbabfffb11517d4d313 Change-Id: Ic294515c7200c1260ac514db23ef3778d374d727
-
Fixups for ten @sam3000 This is a squash of the following commits: Author: Phil Tunstall <ptunstall@gmail.com> Date: Fri Nov 14 09:44:49 2014 -0800 Hardware key custom rebinding (1/2) Framework changes to allow rebinding of the actions performed on the following key press events: Home long-press, home double-tap, menu press, menu long-press, search press, search long-press, app-switch press and app-switch long-press. The available actions are: Nothing, open/close menu, recent apps switcher, search assistant, voice search, in-app search, device sleep, and launch camera. Change-Id: I72c0d220a09d79230bfa299e0521ed693e5c25f1 Author: Steve Kondik <steve@cyngn.com> Date: Tue Oct 18 23:38:28 2016 -0700 wm: Add support for split screen button behavior * And make it the default for long-press recents like the navbar. Change-Id: I432c80a2c9b29b9a02d64e29d484f92623b0648a Author: Bruno Martins <bgcngm@gmail.com> Date: Mon Dec 25 22:10:28 2017 +0000 Forward-port hardware keys custom rebinding to O * Adapted to Lineage SDK as well as to the moved hardware keys configs and constants. * Converted variables that track user-customisable behavior for certain key events from int to Action in order to use the newly introduced SDK function helpers. Change-Id: I2e2234e3d01d943e0cadd23898288f8a88936a47 Setting a custom menu key action will do both the custom action and the default action at the same time. Comparing code with 14.1 we're missing the return here. Change-Id: I2f188ec78fae5068ffa1a5c80a8afa5ee2f167b5
-
Change-Id: I43f3d339b73a3ff3cc19a881975f018b56b9d472
-
Fixups for twelve (@neobuddy89) Fixups for ten (@sam3000) Squash of: Author: beanstown106 <nbenis106@gmail.com> Date: Sun Jan 17 09:14:19 2016 -0500 policy: Long-press power while display is off for torch Long-press the power button while the display is off to turn the torchlight on and off. Credits: - Lion0738: The main hooks here: https://github.com/lion0738/android_frameworks_base/commit/9af2b7844a4d973c8b6c542d7937f56a24a7e5f1 - Atlantis: The logic on where to hook into this for power button only - Alex Cruz: Helping and giving me some pointers along the way Change-Id: I14365389990eb06daaa127f5db66df45abf6c064 Author: Sam Mortimer <sam@mortimer.me.uk> Date: Sat Dec 24 13:22:53 2016 -0800 [1/3] Torch long press power: add auto-off function Change-Id: Icdf50082324f8292859f0df8b271e730b02c84e7 Author: Pranav Vashi <neobuddy89@gmail.com> Date: Fri Dec 3 08:53:59 2021 +0530 Fix long-press power for torch on Android S * We must define FLAG_IMMUTABLE when creating PendingIntent on Android S Signed-off-by:
Pranav Vashi <neobuddy89@gmail.com> Change-Id: I49222892c8fbc8a63af580c763e8987b225b11d2 Signed-off-by:
Pranav Vashi <neobuddy89@gmail.com> Signed-off-by:
LibXZR <i@xzr.moe>
-
Change-Id: I56306e3a2bc9633c29a01196452c8e158d0d7fa7
-
For Spotify and other players that allow music controls for remote devices (PC, PS4) through the media notification Change-Id: I38887f8b1cff1a0c1e3adadbfe37d5af59b5cdcc
-
We can't use a generic DeviceKeyHandler here, because we don't want to override some of the AOSP logic (silencing incoming calls, screenshots) and we need to know if the device is interactive or not (for screen-off music controls) Change-Id: I485c2f6006c5bbd358ba0cbd32917689826c5c6d
-
Change-Id: Icf333f13bccfed9ba4ec030716d2bcf83841ef55
-
* Local HBM does not shows pressed icon * Global hbm shows pressed icon Change-Id: Ic9f51a33c1781527f0c7fc41e8bfe320bf2653d2
-
* TYPE_KEYGUARD_DIALOG was below volume and navbar and would have caused cause issues when HBM was enabled * BiometricPrompt uses different layer which again is below navbar and causes bright volume and navbar Change-Id: Ia37930ffd7a28fc8785f26ada3b69a02df0d4891
-
This should let us choose between multiple UdfpsHbmProvider implementations. Change-Id: I9b93e32644feaf1398cdac69e9696d8ec195f246
-
* set a solid color by configuring config_udfpsColor * set a custom image by setting udfps_icon_pressed and making config_udfpsColor #00ffffff (transparent) Change-Id: I2460f6196d32fe46eb97f9a5c767bde5c9976681
-
Update the screenshot share intent to align it with the data that is present in the screenshot edit intent. Bug: 220161786 Test: Take screenshot. Tap share. Tap Edit, which opens screenshot in Photos. See buganizer for more info. Change-Id: I7a1254e579cea38fd70fc13da81e1dae98f5f968
-
* Many devices identifying as "Analog Docks" have not built in volume controls and rely on software volume (See: All Motorola Mods, older 3.5mm docks, etc.) Change-Id: Ie9b97c7b17b882a5d804db398d149bd777ccf5a4 (cherry picked from commit 24ce6c3ea58f339cc8a537205e30d2516d2b073b) (cherry picked from commit a6eff9c92353cd74ebae12cc82840d1356844980)
-
Only Primary storage and adoptable storage can get visible flag. so, Unless Device support adoptable stoarge, it cannot have visible path for sdcard. In refrernce, Adoptable storage cannot support FBE. If device cannot get visible path for sdcard, 3rd app and MTP cannot read sdcard even though they have READ_EXTERNAL_STORAGE permission. this fixing is releasing visible condition for all sdcard. Test: Check MountFlags is VISIBLE on Log. Change-Id: I7afe5078650fe646e79fced7456f90d4af8a449a Signed-off-by:
Sangho Yoon <sangho.yoon@lge.com>
-
* Fixes a2dp offload on devices not using QTI BT stack. Change-Id: I5044d02f8be74bbf050b16083e753bd392dac0a6
-
* NetworkManager setFirewallUidRule checks that the caller is system uid * Public service entry points are already protected with MANAGE_NETWORK_POLICY permission so simply clear calling identity around NetworkPolicyManagerService setUidFirewallRule() call to resolve crash for secondary users during settings change. Change-Id: I2fb22e77c0afa67acfbb5b9d57173df5aefb0d57
-
We shouldn't be playing volume dialog specific haptic feedback when the dialog is not visible. Test: Call am.setRingerModeInternal(AudioManager.RINGER_MODE_VIBRATE) from external application, observe that there's no vibration. Change-Id: I10ad1e0259092c2297d96f083161395275467781
-
When an app target pre-O releases, the default max aspect ratio is 1.86:1 which leads to ugly black areas on devices that have screens with higher aspect ratio (for example Galaxy S8/S9). This change adds an option to allow users to change aspect ratio for pre-O apps to full screen aspect ratio. Change-Id: I41d5408841593a12443be885e11959bffaebb67b
-
Change-Id: I18578723966b1029d597a6c197e06156af8b545e
-
Author: AdrianDC <radian.dc@gmail.com> Date: Tue, 18 Aug 2015 19:33:18 +0200 Implement the support of an overall brightness control for the LEDs. The setting is deactivated by default and will be ignored by the unimplemented phones. Current LibLights will simply not use the new variable. Changes includes : frameworks/base packages/Apps/Settings Change-Id: I1c0de01b1c6a2a2cf1432028a2e69f90b2373b2c Signed-off-by:
AdrianDC <radian.dc@gmail.com> Author: Adnan Begovic <adnan@cyngn.com> Date: Mon, 9 Nov 2015 16:26:00 -0800 fw: Move battery light settings to CMSettings. Change-Id: I28e60473356b2a9af152df82d34ad7abc9918682 Author: Adrian DC <radian.dc@gmail.com> Date: Sat Oct 14 23:08:47 2017 +0200 fw: Rebrand to LineageOS and cleanup for Android Oreo Change-Id: I845f866891386aee808a4e7e80f4ab7c3ad48830 Author: Gabriele M <moto.falcon.git@gmail.com> Date: Mon, 31 Aug 2015 19:38:16 +0100 Let liblights adjust the brightness of LEDs while previewing it Each device might use the information about the brightness of LEDs in a unique way. Currently the slider to adjust the brightness of LEDs is using an already scaled RGB color to preview the intensity of the light. Instead of doing this, use a white colored light and add to it the information about the brightness. Change-Id: I4dd35944debc744ea6c7f1fcc5dd7a909e8863fa Author: AdrianDC <radian.dc@gmail.com> Date: Wed, 11 Nov 2015 21:06:22 +0100 LEDs Brightness: Update the slider for M * Add notification details needed for M * Sync with some changes made in the Display Brightness dialog * Clean ic_settings indents with Settings ic_settings_24dp.xml Change-Id: I8b6ac1920704f43f4776cbd3bdfb3d0ed8d223dc Signed-off-by:
AdrianDC <radian.dc@gmail.com> Change-Id: I1c0de01b1c6a2a2cf1432028a2e69f90b2373b2c
-
A reworked implementation based on code in the commits listed further below. Key changes from the original implementation: *) Settings observation and most lineage lights feature specific code has been moved to the lineage-sdk. *) Battery and notification frameworks services call out to the sdk to allow our features to make changes to lights values. Original commits: Author: DvTonder <david.vantonder@gmail.com> Date: Sun Jul 15 10:28:15 2012 -0400 Framework: Port CM9 features to CM10 This commit includes: - Power menu Reboot - Power menu screenshot - Profiles - Lock screen Calendar - Lock screen Weather - Notification light customization - Battery light customization - IME Selector notification toggle - and a few more things to support Settings Change-Id: Ibd63116df90b06f6ce6adb8a0343059bbb999bfb Author: Pawit Pornkitprasan <p.pawit@gmail.com> Date: Sun Dec 8 15:24:41 2013 +0700 BatteryService: fix FC on boot until battery stat is present updateLightsLocked() can be called from CM's added SettingsObserver when battery stat is not present, causing an FC and a loop until battery stat is present. I/SystemServer( 502): Battery Service E/System ( 502): ****************************************** E/System ( 502): ************ Failure starting core service E/System ( 502): java.lang.NullPointerException E/System ( 502): at com.android.server.BatteryService$Led.updateLightsLocked(BatteryService.java:735) E/System ( 502): at com.android.server.BatteryService.updateLedPulse(BatteryService.java:709) E/System ( 502): at com.android.server.BatteryService.access$1600(BatteryService.java:86) E/System ( 502): at com.android.server.BatteryService$SettingsObserver.update(BatteryService.java:860) E/System ( 502): at com.android.server.BatteryService$SettingsObserver.observe(BatteryService.java:822) E/System ( 502): at com.android.server.BatteryService.<init>(BatteryService.java:187) E/System ( 502): at com.android.server.ServerThread.initAndLoop(SystemServer.java:328) E/System ( 502): at com.android.server.SystemServer.main(SystemServer.java:1309) E/System ( 502): at java.lang.reflect.Method.invokeNative(Native Method) E/System ( 502): at java.lang.reflect.Method.invoke(Method.java:515) E/System ( 502): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781) E/System ( 502): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) E/System ( 502): at dalvik.system.NativeStart.main(Native Method) Change-Id: Ic4438fe50e98f1aa05ae1d0d26240bf9410fd92f Author: Sam Mortimer <sam@mortimer.me.uk> Date: Tue Dec 31 16:22:05 2013 -0800 [2/2] Framework: instant led test Adds support a new notification extra boolean EXTRA_FORCE_SHOW_LIGHTS. Used by settings notification light picker to force lights on when the screen is on. Change-Id: If0a42d32b28fe8c02ef5f7dd148db7eb478fac17 Author: Michael Bestas <mikeioannina@gmail.com> Date: Mon Aug 18 04:56:28 2014 +0300 Add support for single color notification LED (1/2) Change-Id: I367af77036da9e87c6dd0df552ce4c56d945a44d Author: Danesh M <daneshm90@gmail.com> Date: Thu Nov 12 10:52:11 2015 -0800 Framework : Move System settings to CMSettings Change-Id: I4e9fb06db7b9ba05e4a7bbe11916bb2271af4727 Author: Adnan Begovic <adnan@cyngn.com> Date: Mon Nov 9 16:26:00 2015 -0800 fw: Move battery light settings to CMSettings. Change-Id: I28e60473356b2a9af152df82d34ad7abc9918682 Author: Steve Kondik <steve@cyngn.com> Date: Thu Sep 24 11:27:59 2015 -0700 lights: Automatically generate an LED color for notifications * When an app doesn't specify a color for the LED, as is the usual case, we currently just show the default color. This is boring. It's also a pain in the ass to manually map all your apps to colors. * Use our new helpers to generate this color based on the application's icon color. Keep a cache to avoid wasting cycles. Change-Id: I7288e52499819a6a6c75ed9d9ba7cfa1b13c5669 Author: Steve Kondik <steve@cyngn.com> Date: Mon May 2 13:08:35 2016 -0700 nms: Only generate LED colors if the device has a multicolored LED * Check the overlay value before doing any of this stuff. Change-Id: Iedfceba6bfc86b2761d8af57ecab51026bfa4c19 Author: Adrian DC <radian.dc@gmail.com> Date: Sat Oct 14 23:08:47 2017 +0200 fw: Rebrand to LineageOS and cleanup for Android Oreo Change-Id: I21d424433bb52a17eea7974c4ea29a3a16fe1be5 Author: AdrianDC <radian.dc@gmail.com> Date: Sat Jul 18 12:20:51 2015 +0200 Lights with Screen On [1/2]: Optional allowment of lights Implement a setting allowing lights to be activated for new notifications even if the screen is on. Lights with screen on and Custom values are separated in an advanced section for a cleaner overview. This setting gives the user an oportunity to activate lights with the screen on and also during DayDream screensaver. The option is not activated by default. Changes include : frameworks/base packages/Apps/Settings Screenshot of the Settings : http://i1285.photobucket.com/albums/a583/adriandc/Screenshot_2015-07-20-23-47-13_zpstpmemwwn.png~original Change-Id: I2071147d8ddab80ba0e1e7310e785ac3e03b3c7c Signed-off-by:
AdrianDC <radian.dc@gmail.com> Author: Altaf-Mahdi <altaf.mahdi@gmail.com> Date: Mon Aug 31 22:51:09 2015 +0100 Lights with screen on: Don't disable leds after the lockscreen - If lights with screen on is enabled, do not disable leds when user passes through the lockscreen. Change-Id: If8f5b867a34be09fb061bb7ad040b16730f4e263 Signed-off-by:
AdrianDC <radian.dc@gmail.com> Author: Michael W <baddaemon87@gmail.com> Date: Mon Oct 9 22:04:00 2017 +0200 Core: Battery warning levels are inclusive, not exclusive Change-Id: Ib35b154b6117f7e26b4a3a5aee9254dda3adda12 Author: Adrian DC <radian.dc@gmail.com> Date: Sat Oct 14 23:08:47 2017 +0200 fw: Rebrand to LineageOS and cleanup for Android Oreo Change-Id: I845f866891386aee808a4e7e80f4ab7c3ad48830 Author: Sam Mortimer <sam@mortimer.me.uk> Date: Tue Nov 21 23:18:16 2017 -0800 frameworks/base: Improve interface to LineageNotificationLights Change-Id: I43af52dd236e802d232a4cf96ccd6f69af6b26b7 Author: Sam Mortimer <sam@mortimer.me.uk> Date: Wed Dec 13 11:54:23 2017 -0800 frameworks/base: prevent lights service calls when battery led does not exist Change-Id: I9eefff1f587c978c0aa2b31d03e664dc7ccf42de Author: Sam Mortimer <sam@mortimer.me.uk> Date: Fri Feb 9 14:04:35 2018 -0800 frameworks/base: disable warning about mLineageBatteryLights not being ready Change-Id: I96852f83a739924ac47260de511ddbea81465c52 Author: Luca Stefani <luca.stefani.ge1@gmail.com> Date: Sat Jul 14 10:34:53 2018 -0700 fw/b lights: Allow black notification color * Color 0 is used to mean "lineage-sdk should pick a default" * Explictly requesting black made the led blue (eg lineageparts light picker), fix that Change-Id: Ia03f898c1b6cd0f77af8bb155139b587664f47af Author: Sam Mortimer <sam@mortimer.me.uk> Date: Fri Feb 16 00:51:38 2018 -0800 frameworks/base lights: Let Lineage lights decide if notification led is on/off *) Allows us to cater for the case where the notification led is turned off and yet the user wants to adjust battery light settings (which requires posting led notifications to illustrate the change). Change-Id: Iea52feb907f99ecf7925aff1fc1baf008642f7d7 Author: Sam Mortimer <sam@mortimer.me.uk> Date: Sat Feb 10 22:33:51 2018 -0800 frameworks/base lights: Always allow LineageNotificationLights set the default color *) Oreo sdk onwards deprecates notification DEFAULT_LIGHTS. However, LineageNotificationLights currently uses this flag to determine if we should generate an app specific color. *) Use a light color of 0 to indicate that the app (or channel) has not set an explicit preference and that lineage lights should set a default. Change-Id: I1f655aa17cb97c5a042a424ad1e8bd9d5ddec9a2 Author: Alexander Martinz <amartinz@shiftphones.com> Date: Tue Mar 19 19:06:11 2019 +0100 NotificationManagerService: do not use flashing API for staying always on We allow to let the user set, that the notification light should stay always on instead of flashing. For that we are setting on duration to 1 and off duration to 0. This can confuse some light HALs and/or kernel drivers. Instead of using setFlashing, use setColor if duration is 1:0, like we are already using for battery lights. Change-Id: I4953592c72e0d095178757211dce2e206d8adb3c Signed-off-by:
Alexander Martinz <amartinz@shiftphones.com> Author: Adrian DC <radian.dc@gmail.com> Date: Fri Aug 14 12:07:13 2020 +0200 fw/b: Resolve black forced lights with notifications channels * The initial fix for blue lights upon 0x00000000 color selection in the settings by change Ia03f898c1b6cd0f77af8bb155139b587664f47af (fw/b lights: Allow black notification color) no longer works because the notification now uses channels, hence bypassing the "mPreChannelsNotification" checks used in this condition * Instead, validate the lights is forced on and black before calling the Lineage lights colors calculation Change-Id: Iafac2c51878d84afd980b378b1c53f6c31073d2c Change-Id: I564fdb6ca6c5bbcf890afa4b9a2f9fa7bf8b9604
-
Change-Id: Ie938bfcdb735be699006b238c3a0589b6cbd9944
-