summaryrefslogtreecommitdiff
path: root/core/res
AgeCommit message (Collapse)Author
2022-05-07SystemUI: Introduce user interface for Alert SlidersChris Crump
Ported from OxygenOS and reworked for our alert slider implementation. We target AudioManager instead of Zen, icons are also the same as aosp and the dialog uses the material theme as well as support for our themes. To use, the alert slider config must be enabled. By default, the dialog shows on the left side. To move it to the right side, set the location config to 1. also squashed with the following changes: Author: Anushek Prasal <anushekprasal@gmail.com> Date: Tue Nov 12 15:41:19 2019 +0530 [aospa][quartz] SystemUI: Improve alert slider dialog - Convert px to dip - Modify the dialog to match toast - Fix positioning for OP7 Pro slider - Remove unused dimens and drawables Edit: set position values to 0 for neutrality. They should be adapted by overriding in each device tree. Change-Id: I0dfb705843f52cdea470993d05a7bdedc10750f4 Author: Pranav Vashi <neobuddy89@gmail.com> Date: Sun Feb 7 02:08:38 2021 +0530 [crdroid][11.0] AlertSlider: Prevent crash in case of incomplete broadcast * In intent extra EXTRA_SLIDER_POSITION_VALUE is not received and slider is changed, SystemUI will crash "No resource found". This patch should prevent such ice-cold havoc. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: Ifc21327f785959db2e7cb0d03e07c0b061dfd569 Author: idoybh <idoybh2@gmail.com> Date: Sun Aug 8 15:49:16 2021 +0200 [crdroid][11.0] AlertSlider: check for existing dialog before creating new Change-Id: I582586e54d25b668c5e51fcc92942b37bda4a014 Author: alk3pInjection <webmaster@raspii.tech> Date: Sun Sep 5 22:46:40 2021 +0800 AlertSlider: Fix bad layout under 180° rotation * silly but it works Change-Id: I0c32980b9380cd5fc8b8204440ea93d73c6aabc4 Author: LibXZR <i@xzr.moe> Date: Fri Apr 8 22:56:39 2022 +0800 TriStateUi: Adapt new status bar height api com.android.internal.R.dimen.status_bar_height is no longer returning correct value due to api change. Change-Id: I5973de93ab237764fe5ea4baa8a2fd3a9598d2d0 Signed-off-by: LibXZR <i@xzr.moe> Change-Id: Ie1954a44cc5242c95a731abd7404379ea638fe70
2022-05-07BatteryService: Add support for OEM fast charger detectionAlexander Martinz
Allows to indicate, whether a device is charged using a proprietary OEM fast charge solution, which write their status to sysfs. The OEM fast charge detection tries to be as generic as possible and is configured via overlays. Path to sysfs to read status - core/res/res/values/custom_config.xml - config_oemFastChargerStatusPath Value expected from read status (Defaults to "1" if not specified) - core/res/res/values/custom_config.xml - config_oemFastChargerStatusValue Change-Id: I6f3598a5a6a3efc76553261d2cf73094170d4110 Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2022-05-07base: Add rounded corners to activity open/close animationpaphonb
Change-Id: Ifcf49134d738693874cbdcc6f746898fa6d5942e
2022-05-07NightLight: Allow lower temperaturesJoe Maples
AOSP's Temperature->Color conversion is off (or at least, doesn't line up with cf.lumen), so let's lower the minimum temp to give users more choice. Change-Id: If69f93176078bcbf25c2d58cd8a21a2e0c0734de Signed-off-by: Joe Maples <joe@frap129.org>
2022-05-07base: Make the loading "spinner" animation smootherSar Castillo
The loading "spinner" animation is quite jerky by default when the progress xml's from drawable are called in applications that don't use the holo progress animation. The holo "spinner" animation is already smooth by default. This makes every other "spinner" animation smooth. We've been changing this value in all ROM's we release, both AOSP and CM based ones as well as stock ROM's, since it gives a more polished look to the entire system. In the past 3 years we've been using this small tweak we have not noticed anything that would adversely affect battery life or system operations as a whole. Change-Id: I06573dd36130d14d8c6c99cda01540f1ec78b420 Signed-off-by: Sar Castillo <sar.castillo@gmail.com>
2022-05-05display: Render screen-off fade animation in linear sRGB spaceDanny Lin
The sRGB transfer function is a piecewise function with linear and gamma 2.4 parts, not involving cosine or other magic constants. Fade colors in linear sRGB instead of non-linear sRGB + magic gamma to minimize color distortion as the animation progresses. Change-Id: I57db834f938cc63b7298af1c9dfe8c284dc6abe2
2022-05-02Support for device specific key handlersBruno Martins
This is a squash commit of the following changes, only modified for the new SDK. Carbon Edits: get away from SDK Author: Alexander Hofbauer <alex@derhofbauer.at> Date: Thu Apr 12 01:24:24 2012 +0200 Dispatch keys to a device specific key handler Injects a device key handler into the input path to handle additional keys (as found on some docks with a hardware keyboard). Configurable via overlay settings config_deviceKeyHandlerLib and config_deviceKeyHandlerClass. Change-Id: I6678c89c7530fdb1d4d516ba4f1d2c9e30ce79a4 Author: Jorge Ruesga <jorge@ruesga.com> Date: Thu Jan 24 02:34:49 2013 +0100 DeviceKeyHandle: The device should consume only known keys When the device receive the key, only should consume it if the device know about the key. Otherwise, the key must be handle by the active app. Also make mDeviceKeyHandler private (is not useful outside this class) Change-Id: I4b9ea57b802e8c8c88c8b93a63d510f5952b0700 Signed-off-by: Jorge Ruesga <jorge@ruesga.com> Author: Danesh Mondegarian <daneshm90@gmail.com> Date: Sun Oct 20 00:34:48 2013 -0700 DeviceKeyHandler : Allow handling keyevents while screen off Some devices require the keyevents to be processed while the screen is off, this patchset addresses that by moving the filter up in the call hierarchy. Change-Id: If71beecc81aa5e453dcd08aba72b7bea5c210590 Author: Steve Kondik <steve@cyngn.com> Date: Sun Sep 11 00:49:41 2016 -0700 policy: Use PathClassLoader for loading the keyhandler * Fix crash on start due to getCacheDir throwing an exception. * We can't do this anymore due to the new storage/crypto in N. Change-Id: I28426a5df824460ebc74aa19068192adb00d4f7c Author: Zhao Wei Liew <zhaoweiliew@gmail.com> Date: Sun Nov 20 08:20:15 2016 +0800 PhoneWindowManager: Support multiple key handlers Convert the string overlay to a string-array overlay to allow devices to specify an array of key handlers. Note that the keyhandlers towards the start of the array take precedence when loading. Change-Id: Iaaab737f1501a97d7016d8d519ccf127ca059218 Author: Paul Keith <javelinanddart@gmail.com> Date: Thu Nov 23 21:47:51 2017 +0100 fw/b: Return a KeyEvent instead of a boolean in KeyHandler * Allows handlers to modify the event before sending it off to another KeyHandler class, to handle things like rotation Change-Id: I481107e050f6323c5897260a5d241e64b4e031ac Change-Id: Ie65a89cd7efd645622d99d47699df847bc3ad96b
2022-05-02PackageManager: allow build-time disabling of componentsPawit Pornkitprasan
Author: Pawit Pornkitprasan <p.pawit@gmail.com> Date: Sun Sep 1 16:24:14 2013 +0700 PackageManager: allow build-time disabling of components Allow components to be specified as disabled at build time (applied on boot). This allows stock OTA components to be marked as disabled in CM builds. Change-Id: I6e4499cc40a779792a5ea97a10137399dad7d69f Author: Gianmarco Reverberi <gianmarco.reverberi@gmail.com> Date: Mon Mar 16 20:02:15 2015 +0100 SystemUpdateService: enable service but lock its receivers [1/2] Added a check for ensure that disabled components are not re-enabled at runtime Added code for forcing enable of previously disabled components Change-Id: Icfcfa26ccb85028d32edbb5cdb3dd7cdae85b720 Author: Michael W <baddaemon87@gmail.com> Date: Mon Oct 28 14:26:43 2019 +0100 PM: Allow disabling components per-device * Introduce a new overlayable string-array "config_deviceDisabledComponents" * This is equally used to disable components per-device, e.g. NearbyMessagingService * At the same time, rename config_disabledComponents to config_globallyDisabledComponents to reflect the difference Change-Id: Ieeec0788b063a33e8a2830dd95b239c99a58466f Author: Michael W <baddaemon87@gmail.com> Date: Fri Nov 1 11:11:29 2019 +0100 PackageManager: Refactor en-/disabling of components * Don't use the same code twice, make it reusable Change-Id: I9fc388f56cea413654a390cb0ccd15a706fb3ad8 Change-Id: Ic26c9d2f080ab61e09b2d64ae48cd6f29147774a
2022-05-02PackageManager: Add configuration to specify vendor platform signaturesEthan Chen
Devices with split system/vendor images may want to use the OEM's vendor image. In that case, the OEM's platform signature is not actually the same as the platform signature used to sign the Lineage system image. Allow devices to specify an OEM platform signature which will also be recognized as the system's platform signature. Change-Id: Ida9bb25a32234af9d9507a214eae6a4672320d2b
2022-03-15Merge SP2A.220305.013Haamed Gheibi
Bug: 220074017 Change-Id: Idfdd94e902f656ac65a2a75dfdd199f6f85ba472
2022-01-08Merge "Merge s-mpr-2022-01-05" into s-keystone-qcom-devEric Arseneau
2022-01-07Configure delay time for CIWLANAvinash Nalluri
Configure maximum delay time to deactiavate data call. If the timer value sent by RIL is larger, we should reset to configured MAX. This ensures that user does not have to wait for too long if a large value comes from lower layers. Change-Id: Id2a418a466343e879f1996c843f3b6f2bedaaf92 CRs-Fixed: 3084270
2022-01-06Merge s-mpr-2022-01-05Eric Arseneau
Change-Id: Ie250e3592a53519f58f691675a61adf7fddc335c
2021-12-22Merge s-mpr-2021-12-05Eric Arseneau
Change-Id: Ic2889f5eb531008340529eadc36ec8efc62b1984
2021-12-13Merge mpr-2021-11-05Eric Arseneau
Change-Id: If7c68a17857eee4194f28413b938d5647820162c
2021-11-24Tweak volume adjustment rulesOliver Woodman
Test: manual Bug: 197586676 Bug: 202500642 Merged-In: If531a23f5e7b242d3d637966b74b67acfd303199 Change-Id: If531a23f5e7b242d3d637966b74b67acfd303199 (cherry picked from commit 022081595bf4a082f8354b852eae6d5a015be3fe) Merged-In:If531a23f5e7b242d3d637966b74b67acfd303199
2021-10-09Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: Ibdf0e8b92b536f9848d3fcd7595929e652211692
2021-10-06Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: I253214683e8d2ab78c6103322959a13cd66e77a1
2021-10-05Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-devBill Yi
2021-10-05Merge "Protect LE Audio Broadcasts" into sc-qpr1-devJakub Pawlowski
2021-10-05Merge SP1A.210812.016Haamed Gheibi
Change-Id: Id27ea30be4f20be6f5d7d6336c8f53d2644c8e25
2021-10-05Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: If41a14538101c6b39535fce97e478da8f9aba9fa
2021-10-04Align the duration of task exit animation to enter animationRiddle Hsu
Now they are both 500ms. Otherwise if the duration of exit animation is longer, it may cover the entering task. Bug: 201998178 Test: Back from a task in a different orientation, the exiting task should not flash on screen. Merged-In: Iefa134e4217ba35d33801225368b7a5df60d932c Change-Id: Iefa134e4217ba35d33801225368b7a5df60d932c
2021-10-02Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-devTreeHugger Robot
2021-10-02Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-devTreeHugger Robot
2021-10-01Merge "Account for per-edge cutout for system gestures" into sc-qpr1-devWinson Chung
2021-10-01Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: Ida19e34f965a62f3df12266fd57f03b0abc85f32
2021-10-01Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: I3c3899f4b18d5699d77f33128baea4a8d2e65388
2021-09-30Separate refresh rate restrictions for different High Brightness ModesDaniel Solomon
Allow setting a different refresh rate for High Brightness Mode for HDR and for Sunlight. Bug: 196691596 Test: atest DisplayModeDirectorTest Test: Manual: 1. Ensure HBM for HDR takes presedence over HBM for Sunlight 2. Ensure app refresh rate votes override bothHBM for Sunlight Change-Id: I4a29c47f218046d0852178ad5dc7484a86ef8607 Merged-In: I4a29c47f218046d0852178ad5dc7484a86ef8607 (cherry picked from commit 46fff422b49870b67fac1242bd8abfde8ddf96d9)
2021-09-29Merge "Separate refresh rate restrictions for different High Brightness ↵TreeHugger Robot
Modes" into sc-qpr1-dev
2021-09-29Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-devTreeHugger Robot
2021-09-29Account for per-edge cutout for system gesturesWinson Chung
- Currently, the start threshold for all edges is determined by the status bar size in the current orientation. On devices with notches, the device overlays override the status bar height to include the cutout size, which results in a large threshold on all sides which causes touch issues with games (especially now that the game dashboard overlay shows with the bars). Instead, we can use a standard threshold size for all edges and only expand to account for cutouts on each edge respectively. Bug: 195794974 Test: Without cutout, portrait/landscape app use default threshold With cutout, only the edge with the cutout has a non-default threshold Change-Id: Iff7fc98b4fcbb9b78fd5b22bcc07357d7171a9f9
2021-09-29Separate refresh rate restrictions for different High Brightness ModesDaniel Solomon
Allow setting a different refresh rate for High Brightness Mode for HDR and for Sunlight. Bug: 196691596 Test: atest DisplayModeDirectorTest Test: Manual: 1. Ensure HBM for HDR takes presedence over HBM for Sunlight 2. Ensure app refresh rate votes override bothHBM for Sunlight Change-Id: I4a29c47f218046d0852178ad5dc7484a86ef8607
2021-09-28Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: I3c752f3971c33329300390aca506199c5a1673e1
2021-09-27Revert "Add API to specify background color for animations"Pablo Gamito
This reverts commit 2ccc829e71dca5af5eba565319911a53499e99ef. Reason for revert: No longer needed Test: Existing tests Bug: 200763116 Change-Id: Ibd9f22af05eba99c4509b503665c1e915993c940
2021-09-27Merge "Remove uses of background color attribute" into sc-qpr1-devPablo Gamito
2021-09-27Remove uses of background color attributePablo Gamito
Test: Existing tests Fixes: 200763116 Change-Id: Iee395289ecd108327fa2acc23d19059b50f52822 Merged-In: Iee395289ecd108327fa2acc23d19059b50f52822
2021-09-26Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: Ice9e46559f5b1939ce1baff8fce39ad8429e89b5
2021-09-24Merge "Add PACKAGES_SUSPENSION_CHANGED as a protected broadcast." into ↵Varun Shah
sc-qpr1-dev
2021-09-24Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: I788979e651fbbb785107ee6de8a5e7e154194408
2021-09-22Merge "Support configurable multi-stage UDFPS enrollment" into sc-qpr1-devCurtis Belmonte
2021-09-21Update task transition animationsPablo Gamito
Following designs from go/android-new-task-motion Test: atest FlickerTests:TaskTransitionTest Bug: 199507257 Change-Id: I037517d930e3425dc22ebab6f5df1968ebba5483
2021-09-20Support configurable multi-stage UDFPS enrollmentCurtis Belmonte
Implements multi-stage enrollment for UDFPS. This implementation supports both highlighting the progress bar when a help message is received and configuring the progress thresholds between enroll stages via an XML resource. Test: Manual Bug: 198928407 Bug: 200076382 Change-Id: I6f6111ab0ed29ca7f1be01303f0457764d5afe01 Merged-In: I6f6111ab0ed29ca7f1be01303f0457764d5afe01
2021-09-20Add API to specify background color for animationsPablo Gamito
To be used for new task transtion animations (go/android-new-task-motion) to set a background color behind the animations instead of showing the wallpaper. Test: atest FlickerTests:TaskTransitionTest Bug: 199507257 Change-Id: I7fabfdcaf90be63c11eb3b18d65259c620570cab
2021-09-18Add PACKAGES_SUSPENSION_CHANGED as a protected broadcast.Varun Shah
Bug: 169137795 Change-Id: Iadc43987703ddc4a1e3df7f4f8f317d88aa0f778 Test: atest SuspendPackagesBroadcastTest#sendPackagesSuspendModifiedForUser
2021-09-16Protect LE Audio BroadcastsJakub Pawlowski
Test: compilation Bug: 196858567 Bug: 196858999 Change-Id: I5208554b4e39306810da6df718e5365a5a03e755
2021-09-10Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: I28cd400e3832b348ceb5b3008fb93fe7d1be6198
2021-09-02Import translations. DO NOT MERGE ANYWHEREBill Yi
Auto-generated-cl: translation import Change-Id: I10bfe409ec22191c70dfdf1143fe8c9902333bd7
2021-09-01Merge "Add a default string for failures." into sc-qpr1-devJoe Bolinger
2021-09-01wifi: Make PARTIAL_SCAN_RESULTS as protected broadcast.Purushottam Kushwaha
Following broadcast is used by wifi-service to announce partial scan results availability and shall be marked with protected to prevent arbitrary processes from sending this sensitive broadcast: - 'com.qualcomm.qti.net.wifi.PARTIAL_SCAN_RESULTS' Change-Id: I5675bc8917d1817a76a544cb2d5caee33b36b4f6 CRs-Fixed: 3024027