{"push_id":3700042451,"size":11,"distinct_size":11,"ref":"refs/heads/staging/lights","head":"8d7a0003b00059c661bc7d190156ccaf43cf22fb","before":"e2c5c2fa5522d849cf5f955be0abeaa10c57aea1","commits":[{"sha":"ee295acbe2fde64f621c60eb66e1d206287487bb","author":{"name":"Sam Mortimer","email":"f16bed56189e249fe4ca8ed10a1ecae60e8ceac0@mortimer.me.uk"},"message":"sdk: DnD light brightness control for battery and notifications\n\n*) Support separate normal and dnd led brightness levels for battery\n   and notifications.\n\n*) Move lineage-specific notification bundle extras definitions from fw/b\n   to LineageNotification here in the sdk.\n\n*) In addition to the existing bundle extra EXTRA_FORCE_SHOW_LIGHTS, add\n   a new extra EXTRA_FORCE_LIGHT_BRIGHTNESS that can be used to override\n   the brightness level set by a Lineage system setting brightness level\n   on a per notification basis.  This is used by the brightness sliders\n   in LineageParts that otherwise would have to juggle changing / restoring\n   the system led brightness setting whenever the a slider is on display.\n\n*) Disable all lights in dnd mode when lineage setting ZEN_ALLOW_LIGHTS\n   is set to 0.\n\nChange-Id: I917f402a291682b582f68c8324a33c461357dad9","distinct":true,"url":"https://api.github.com/repos/ev-staging/android_vendor_ev_sdk/commits/ee295acbe2fde64f621c60eb66e1d206287487bb"},{"sha":"207dd7499588990f46a6a0d763bc94472823833e","author":{"name":"Sam Mortimer","email":"f16bed56189e249fe4ca8ed10a1ecae60e8ceac0@mortimer.me.uk"},"message":"sdk lights: Treat requested led color of 0 as needing a default\n\n*) fw/b now sets the color to 0 to indicate that we need to set\n   a default (to cover Oreo+ sdk where DEFAULT_LIGHTS has been\n   deprecated).\n\nChange-Id: I91b7cfff2ea6f8c1b999b6246c14416a2a47cbfb","distinct":true,"url":"https://api.github.com/repos/ev-staging/android_vendor_ev_sdk/commits/207dd7499588990f46a6a0d763bc94472823833e"},{"sha":"5951e5515cae1d2e8a511628fa1d3bece57e7d1c","author":{"name":"Sam Mortimer","email":"f16bed56189e249fe4ca8ed10a1ecae60e8ceac0@mortimer.me.uk"},"message":"sdk lights: Let lights decide if notification led is on/off\n\n*) Allows us to cater for the case where the notification led is turned off\n   and yet the user wants to adjust battery light settings (which requires\n   posting led notifications to illustrate the change).\n\nChange-Id: I24d128d796a44f5b3e9051d441427cc19e2a3822","distinct":true,"url":"https://api.github.com/repos/ev-staging/android_vendor_ev_sdk/commits/5951e5515cae1d2e8a511628fa1d3bece57e7d1c"},{"sha":"0d1a480bee788ec2131b57f0f50624c7edb0e232","author":{"name":"Michael Bestas","email":"46f7c721ffdce34ce8f6f45045248d1691b5a576@lineageos.org"},"message":"sdk: Allow adjusting brightness of non-RGB LEDs\n\n* Mimic LineageNotificationLights logic\n\nChange-Id: Ifc0c899ef78dbdec22fa69ecd0bcffe1a9488afe","distinct":true,"url":"https://api.github.com/repos/ev-staging/android_vendor_ev_sdk/commits/0d1a480bee788ec2131b57f0f50624c7edb0e232"},{"sha":"85762c9960e2035413a137b50083b881475cf489","author":{"name":"Bruno Martins","email":"778fea3f0794d787dfa69253f82646e4f9dc35d6@gmail.com"},"message":"BatteryLights: Rename some class members and add more debugging\n\n * Follow NotificationLights debug logic\n\nChange-Id: I6b4a91db45a119c8c0b8b30684386765b73b93d2","distinct":true,"url":"https://api.github.com/repos/ev-staging/android_vendor_ev_sdk/commits/85762c9960e2035413a137b50083b881475cf489"},{"sha":"65a69729f05acebcc1c596bcc8b1673c46e5f6a8","author":{"name":"Bruno Martins","email":"778fea3f0794d787dfa69253f82646e4f9dc35d6@gmail.com"},"message":"BatteryLights: Take current user settings into account\n\nChange-Id: Ie99c14a73c14e1f5b6c39125625153f2628f884d","distinct":true,"url":"https://api.github.com/repos/ev-staging/android_vendor_ev_sdk/commits/65a69729f05acebcc1c596bcc8b1673c46e5f6a8"},{"sha":"5cf40d28cfe81688576f22f42ea7bb1adbac73ec","author":{"name":"Bruno Martins","email":"778fea3f0794d787dfa69253f82646e4f9dc35d6@gmail.com"},"message":"BatteryLights: Fix brightness for devices with segmented leds\n\n * In case mCanAdjustBrightness was false, the brightness level would\n   always be set to the maximum value.\n\nChange-Id: I034bc17ac1174c491830f0a6cb1969a99ee900a7","distinct":true,"url":"https://api.github.com/repos/ev-staging/android_vendor_ev_sdk/commits/5cf40d28cfe81688576f22f42ea7bb1adbac73ec"},{"sha":"7bf962d26ad0add22d8c499daf75b825551f3910","author":{"name":"Sam Mortimer","email":"f16bed56189e249fe4ca8ed10a1ecae60e8ceac0@mortimer.me.uk"},"message":"Add led capability LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS\n\n*) Many existing liblights support notification brightness\n   control via the alpha channel but do not support similar\n   for the battery led.\n\n*) https://github.com/LineageOS/android_lineage-sdk/commit/8f7a4559ab4a81855f399eae32ebe4a3f531e8b2\n   introduced a dependency on light capability\n   LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS such that, when\n   set, it was assumed that the battery led brightness is\n   also liblights adjustable.  It turned out that this\n   was not the case.\n\n*) Create a new capability to allow devices to distinguish\n   whether their liblights supports adjustable brightness\n   control for notification and battery leds independently\n   of one another.\n\n*) Document how brightness support works in LightsCapabilities.\n\n*) Copy LightsCapabilities comments to the default lights config\n   to raise visibility.\n\nChange-Id: Id95905f07128c78c6acacf3b60d71bb37f70bcfb","distinct":true,"url":"https://api.github.com/repos/ev-staging/android_vendor_ev_sdk/commits/7bf962d26ad0add22d8c499daf75b825551f3910"},{"sha":"ec5ca7d55be0cc91e79628d1835bbf01c0e248ef","author":{"name":"Paul Keith","email":"a15ba919a159c9a831d26c40bda2f108afe9f008@gmail.com"},"message":"sdk: Allow controllable brightness for non-RGB segmented battery LEDs\n\n* For non-RGB segmented battery LEDs, we currently don't allow any kind\n  of brightness control, because the alpha channel is taken up by the level\n* To remedy this, set the brightness in the color channel like we do for\n  setting panel backlight brightness by setting the brightness as R/G/B\n\nChange-Id: I4e47861643e0b2b8766af0f2ff275069fc580108","distinct":true,"url":"https://api.github.com/repos/ev-staging/android_vendor_ev_sdk/commits/ec5ca7d55be0cc91e79628d1835bbf01c0e248ef"},{"sha":"b5d0972cdf4b92019087c425625658f34b20eebf","author":{"name":"LuK1337","email":"6c9bff5473b68c1565a176ad458785864409abaa@gmail.com"},"message":"NotificationLights: Don't create KeyguardManager in constructor\n\n* Apparently creating it so early can cause serious breakages\n  that make StorageManagerService and UsbDeviceManager end up\n  getting null pointer when trying to get KeyguardManager with\n  ctx.getSystemService(KeyguardManager.class).\n* Moving ctx.getSystemService(KeyguardManager.class) out of\n  constructor to isKeyguardLocked() solves these issues.\n* Also move to getSystemService(Class<T>) while at it.\n\nChange-Id: Ib3f65ba2e726149089ab1fb12030321e0ecdeab1","distinct":true,"url":"https://api.github.com/repos/ev-staging/android_vendor_ev_sdk/commits/b5d0972cdf4b92019087c425625658f34b20eebf"},{"sha":"8d7a0003b00059c661bc7d190156ccaf43cf22fb","author":{"name":"Alexander Martinz","email":"762177bfca151905fa5b7a63a9c238d8dba9b833@shiftphones.com"},"message":"sdk: notification: allow forcing notification color for preview\n\nParts uses notifications to preview custom notification lights.\nSince Android O we got NotificationChannels and the internal API uses\nthe color values of the channel instead of the color set at the notification.\n\nTo prevent unexpected breakage in future, introduce a flag to be used for\nproviding preview colors in a bundle to force said color.\n\nAlso introduce flags to control the ON and OFF duration.\n\nChange-Id: Ifbb7995a19d95b6ddb2627c1b14dd201f9dc5430\nSigned-off-by: Alexander Martinz <amartinz@shiftphones.com>","distinct":true,"url":"https://api.github.com/repos/ev-staging/android_vendor_ev_sdk/commits/8d7a0003b00059c661bc7d190156ccaf43cf22fb"}]}
{"actor":{"display_login":"elginsk8r"}}