summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/tristate/TriStateUiControllerImpl.java
Commit message (Collapse)AuthorAgeFilesLines
* AlertSlider: Migrate to DisplayUtils.getScaleFactorAnierinB2023-01-031-9/+3
| | | | | Change-Id: I933c8a6da30075b752b2903ab35bdbc71765aac5 Signed-off-by: AnierinB <anierin@evolution-x.org>
* AlertSlider: Add resources for a few display oriented controllersAnierinB2022-11-021-0/+60
| | | | | | | | * Extra Dim, Night Light & Colorspace * Device side controllers: https://github.com/Evolution-X-Devices/hardware_oplus/commit/6a503ff049ed58c2084d684f785ec8d17bed1fca Signed-off-by: AnierinB <anierin@evolution-x.org> Change-Id: I065b8387e1f692194c4c69000c0348bc00eb317d
* AlertSlider: Add resources for refresh rate modesAnierinB2022-10-041-0/+15
| | | | | | | | | | | | | | * We'll only use a single icon here to ensure compatibility accross multiple devices (from refresh tile) * DeviceSide controller: https://github.com/Evolution-X-Devices/hardware_oplus/commit/d2b165722034d2b6afc6b5f331c405c2fdc5b2e5 AICP Edits: * device sided controller: https://gerrit.aicp-rom.com/c/AICP/hardware_oplus/+/117644 * resources: https://gerrit.aicp-rom.com/c/AICP/packages_resources_deviceparts/+/117642 Signed-off-by: AnierinB <anierin@evolution-x.org> Change-Id: Ibc33914eb8448aac46b6021f6dbec2d1fc6e5540
* fixup! AlertSlider: Allow UI to work with multiple resolutionsAnierinB2022-09-191-0/+2
| | | | | | | | | | | | * Device side dimen overlays should reflect the maximum resolution. * Inspired by: https://review.lineageos.org/c/LineageOS/android_frameworks_base/+/339290 @neobuddy89: Clean up redundancy chaos. Signed-off-by: AnierinB <anierin@evolution-x.org> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: I9e2ea6d67edde940c30b2811fd0f279815d80c0f
* AlertSlider: Allow UI to work with multiple resolutionsAnierinB2022-09-191-2/+10
| | | | | | | | | | | | * Device side dimen overlays should reflect the maximum resolution. * Inspired by: https://review.lineageos.org/c/LineageOS/android_frameworks_base/+/339290 @neobuddy89: Clean up redundancy chaos. Signed-off-by: AnierinB <anierin@evolution-x.org> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: I2607300e366da7c356861bc973c15ebae02d9605
* TriStateUi: Adapt onShowRequested changesJoey Huab2022-09-121-1/+1
| | | | | | * After https://github.com/Evolution-X/frameworks_base/commit/f738e2463d0d7ad76cfd1e8b17fbe464141aff0e. Change-Id: Ie66259c84e745b700409335734dbec042068e631
* TriStateUi: Adapt new status bar height apiLibXZR2022-09-121-4/+5
| | | | | | | | 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>
* Alert Slider: check for existing dialog before creating newidoybh2022-09-121-0/+4
| | | | | | Change-Id: I582586e54d25b668c5e51fcc92942b37bda4a014 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org>
* AlertSlider: Support slider actions without broadcast from devicePranav Vashi2022-09-121-5/+61
| | | | | | | | | * Let's not lose purpose of original commit where intent broadcast was not introduced. Partially reverts 9241e52089404ead465c0ee5d48cdefa90b4809b Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org> Change-Id: I270a8fa904f1d4fc728baf844b3546e8e61050ff
* Alert Slider: Add toggle to disable notifications [1/2]Pranav Vashi2022-09-121-3/+30
| | | | | | Change-Id: If7aca1f3f52b338e74f504652ebf16e26d77a8fc Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org>
* AlertSlider: Update theme more swiftlyPranav Vashi2022-09-121-21/+15
| | | | | | | | @neobuddy89: Updated for A12. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org> Change-Id: I1d434d414d855e5bc8b41fff8cb9b56816439df0
* AlertSlider: Prevent crash in case of incomplete broadcastPranav Vashi2022-09-121-3/+3
| | | | | | | | | * 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> Signed-off-by: Joey Huab <joey@evolution-x.org> Change-Id: I995907fe09bc27d50321723d7c485448403bdf99
* fwb: AlertSlider: Add more resourcesPranav Vashi2022-09-121-3/+48
| | | | | | | | Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org> Change-Id: Ibba879c1bc19137e9e9a257787184016a65d2f5e Signed-off-by: kunalshah <kunalshah912@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org>
* fwb: AlertSlider: Fix layout for 180 rotationPranav Vashi2022-09-121-30/+20
| | | | | | | | | | * Also, make 0 rotation consistent with it. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: DennySPb <dennyspb@gmail.com> Change-Id: Ib43ba96e86afb47834ab23a5d024597a57b5ee27 Signed-off-by: DennySPb <dennyspb@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org>
* fwb: AlertSlider: update resourcesAli B2022-09-121-7/+15
| | | | | | Change-Id: Ib07ac9c132933bb3b35dc2fa4fcab3aa9e2d23e4 Signed-off-by: DennySPb <dennyspb@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org>
* AlertSlider: refactor to reflect slider stateAli B2022-09-121-75/+54
| | | | | | | | | | | | As there is the possibility of having more option values for the alertslider (such as various zen mode states) in addition to the current ringer mode states, update logic to reflect the value slider's position is set to instead of the ringer state we were using before. Change-Id: I086549c8fbcbcc213b2964dca8d7979fcb64932b Signed-off-by: DennySPb <dennyspb@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org>
* Alert Slider: Improve layoutPranav Vashi2022-09-121-2/+5
| | | | | | | Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: I0c3e1e5d7099fbafb19c4ebc7c11fc4cc5d96a32 Signed-off-by: DennySPb <dennyspb@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org>
* fwb: Alert slider: Use default position behaviour if position not specified ↵Hikari-no-Tenshi2022-09-121-4/+4
| | | | | | | | | in intent Change-Id: Iabdc274153901b10dbbf6630468d2d0f73c564cf Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: DennySPb <dennyspb@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org>
* fwb: Alert slider: Do not hardcode slider position based on ringer modePranav Vashi2022-09-121-15/+68
| | | | | | | | | | * Let Key Handler send position details. Different ringer options can be now assigned to different position. * Also increase dialog show timeout slightly to avoid race with Key Handler. Change-Id: I5af7f6b42673ab9c62289cb51166132804e3cabf Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: DennySPb <dennyspb@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org>
* fwb: Alert slider: Work better with Key HandlersPranav Vashi2022-09-121-23/+39
| | | | | | | | | * Let Key Handler send intent to let know slider movement. * Helps not showing dialog every time ringer changes. Change-Id: I516450da713e068d133bee2a497b226afff23511 Signed-off-by: DennySPb <dennyspb@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org>
* SystemUI: Alert slider: Make tri-state SystemUI dialog dimensions conditionalZVNexus2022-09-121-3/+3
| | | | | | | Adjust this based on the left/right config. Change-Id: Ic535cc30fba0e142a3c5260f44ad72d49b22bfcd SKULSHADY: Fix dimens for right dialog
* SystemUI: Alert slider: Introduce user interface for Alert SlidersChris Crump2022-09-121-0/+476
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. Signed-off-by: DennySPb <dennyspb@gmail.com> Change-Id: I69dd059b717a4fba244ad2da439fc041e99ad652 Signed-off-by: DennySPb <dennyspb@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org>