summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-021-0/+4
|\ | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * Revert "Volume: Hide dialog when motion cancelled, as well as when finished."Alison Cichowlas2023-03-131-18/+7
| | | | | | | | | | | | | | | | | | | | This reverts commit 3f8dd35901707ee6e0c36b41be413a52b9e1c66a. Reason for revert: b/273157752 (long press flicker) Bug: 273157752, 232606092 Change-Id: Iafd7dce156fea867d16bb3709700e01a19c043b4
| * Volume: Hide dialog when motion cancelled, as well as when finished.Alison Cichowlas2023-03-091-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Speculative fix for issue where sometimes volume dialog does not ever dismiss. Logs show that VolumeDialogImpl.dismissH is being called, and the VolumeDialogImpl dump shows that the dialog thinks it is not showing. I think that these animations are getting cancelled, leaving mIsAnimatingDismiss true with no active dismiss animation running (normally it is reset to false during the animation's end action). mIsAnimatingDismiss then prevents the creation of another dismiss animation, leaving the dialog stranded. Test: existing Volume tests pass, no repro available for bug Bug: 232606092 Change-Id: If6dbccf52de6452ce57d872de40037d5080d8ef0
| * Fix malformed trace sectionPeter Kalauskas2023-03-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fixes an issue where traces had extremely long trace sections named "com.android.systemui.volume.VolumeDialogImpl$H: ..." - Before: http://screen/9FqnTei2mgQTVcb - After: http://screen/6dVEB4u36oorCNm Test: capture perfetto trace, ensure there is no unusual trace sections Bug: 238923086 Change-Id: Ia1f3e3a519da2f4e836f723e04edd75d65ee5afe
| * Log volume dialogBehnam Heydarshahi2023-02-211-0/+2
| | | | | | | | | | | | | | | | | | Temporarily add logs in volume dialog to learn more about why the dialg resists dismiss(). Bug: b/232606092 Test: CL is log-only. Change-Id: Iae0ff674b263236ae4d699e56591b6d2b20ef884
| * Fix volume dialog dismiss animationJohannes Gallmann2023-01-061-1/+1
| | | | | | | | | | | | | | | | The root cause of the problem is that within `mController.notifyVisible(false)` `updateActiveStreamW(-1)` is called. This causes the slider to be set to inactive which changes its color. By calling the callback after the animation ended, this problem is fixed. Bug: 240682583 Test: atest VolumeDialogImplTest, Manual, i.e. changing the volume and observing the animation when the VolumeDialog dismisses. Change-Id: I928564202036ce7447d0cbae98302af8bf66c600
* | base: Add switch to unlink ringtone and notifications volume [1/2]Pranav Vashi2023-05-051-4/+32
| | | | | | | | | | | | | | | | | | | | | | * Make use of AOSP config to set default initial value Ref: https://github.com/crdroidandroid/android_frameworks_base/commit/345ff7b8618bd57f6c6ccbf875cf860338deb513 https://github.com/crdroidandroid/android_frameworks_base/commit/ab1aad9aa76391d675ca38a93f23120032c1d957 Change-Id: Ib0adde055d91527a57b203cb488bce6f62974322 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | Merge tag 'android-13.0.0_r35' of ↵George Zacharia2023-04-031-11/+27
|\ \ | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 release 35 Change-Id: I709958b2f015d1774b2ece25894467c3a279f93c
| * | DO NOT MERGE ANYWHEREBehnam Heydarshahi2023-01-281-100/+8
| |/ | | | | | | | | | | | | | | | | | | | | | | Revert "Change volume ringer icon based on device config" This reverts commit 903b3025a7e5caaddae848376bd12b62e698315c. Reason for revert: b/261809910 fixing for qpr2 Change-Id: Ica3ef9df1470fd2b5e20fc8caa3bdf6647a21426 (cherry picked from commit 1bdb0b76bfa439abf6cddb11e752aec3499d8f03) Merged-In: Ica3ef9df1470fd2b5e20fc8caa3bdf6647a21426
| * Merge "Register VolumeDialogImpl dumpable." into tm-qpr-devAlison Cichowlas2022-12-121-3/+11
| |\
| | * Register VolumeDialogImpl dumpable.Alison Cichowlas2022-12-051-3/+11
| | | | | | | | | | | | | | | | | | Bug: 232606092 Test: adb shell dumpsys activity service SystemUI | grep VolumeDialogImpl: (including final colon) has results Change-Id: If15e3c5947b8595d824a21dc9088e3fc9e8636ac
| * | Merge "[LE Audio] Add BT LE headset check for voice call to update the icon" ↵Betty Chang2022-12-051-2/+7
| |\ \ | | | | | | | | | | | | into tm-qpr-dev
| | * | [LE Audio] Add BT LE headset check for voice call to update the iconchangbetty2022-12-011-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug: 240506858 Test: manual test Test: atest VolumeDialogControllerImplTest Test: atest VolumeDialogImplTest Change-Id: Id14ccbc7d3b9343f91c2356000229a0af0e9ced3
| * | | Revert "Revert "Change volume ringer icon based on device config""Behnam Heydarshahi2022-11-231-9/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 354b40af7b90dc3dca6c89a4381a9cdfffcfb603. Reason for revert: New patch with bug fixed. Check for ringer icon before setting its image res Bug: b/259899277, b/38477228 Test: boot up a TV device, adjust volume. atest VolumeDialogImplTest Change-Id: Ia5dcc5532f8567d072c41bbc6daf59aab5057455
| * | | Merge "Revert "Change volume ringer icon based on device config"" into ↵TreeHugger Robot2022-11-221-102/+9
| |\ \ \ | | |_|/ | |/| | | | | | tm-qpr-dev
| | * | Revert "Change volume ringer icon based on device config"Robin Lee2022-11-221-102/+9
| | |/ | | | | | | | | | | | | | | | | | | | | | This reverts commit 903b3025a7e5caaddae848376bd12b62e698315c. Reason for revert: b/259899277 (missing null checks) Change-Id: Ia3a33e2d7c665b4c9d03a97545a32d378f55017b
| * / Log Volume visibility at INFO temporarily, to collect better dataAlison Cichowlas2022-11-211-6/+6
| |/ | | | | | | | | | | | | | | | | on why it is sometimes not dismissed. Bug: 232606092 Test: verify logs present with adb logcat -v color VolumeDialogImpl:I | grep Volume Change-Id: Ide1752e45fa6389db5546063881acb9d85a1ecfb
| * Change volume ringer icon based on device configBehnam Heydarshahi2022-11-171-9/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | When device config volume_separate_notification is enabled, change the ringer drawer icon, so it covers both ring and notification, and not just one. When not enabled, the ringer icon should remain/switch to the old bell icon. Also, the icon on the secondary vertical progressbar follows the device config flag, matching the horizontal slider for ring: https://screenshot.googleplex.com/6N5CPjSCR4P5DbZ.png Bug: b/38477228 Test: atest VolumeDialogImplTest Change-Id: I2d1d7348d3d6506fda98394a2ddf18461f575fc2
| * Remove conflicting vibration-only haptic causing inconsistent touch feedback.Jason Mylen2022-11-011-2/+4
| | | | | | | | | | | | | | Fix: 204162928 Test: manual Change-Id: I8fb87d634177d070124a03ba360660c763cad454
* | Revert "frameworks: Add unlinked ringtone and notification volumes"Michael Bestas2023-03-261-34/+8
| | | | | | | | | | | | | | | | Conflicts with QPR2 implementation This reverts commit 35ccfd76968a9e55fe46987e896c41831055285c. Change-Id: I3bdcb7d9ca0fbf4e8fdb996b64669c98943578f4
* | SystemUI: Use App icon for per-app volumetimjosten2023-01-031-0/+22
| | | | | | | | | | | | | | | | | | Co-authored-by: AnierinB <anierin@evolution-x.org> Co-authored-by: LorDClockaN <lordclockan@gmail.com> Signed-off-by: AnierinB <anierin@evolution-x.org> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: minaripenguin37 <alexfinhart@gmail.com> Change-Id: I31bc8169504552a93c2baaca0256f2e10b2a8f69
* | Merge tag 'android-13.0.0_r16' into t13.0George Zacharia2022-12-151-0/+4
|\| | | | | | | | | | | | | | | | | | | | | Android 13.0.0 Release 16 (TQ1A.221205.011) Also included the following reverts: 1. Revert "fw/b: Import Wi-Fi standard icon [1/2]" 2. Revert "Add preference for toggling the wallpaper zooming animation" Co-authored-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: I9a6b51e452c28d10411712c59778bb54da5783e9
| * Refer to FeatureFlagUtils.SETTINGS_VOLUME_PANEL_IN_SYSTEMUI to launchAlan Huang2022-09-181-1/+9
| | | | | | | | | | | | | | | | the VolumePanel in SystemUI or in Settings Bug: 202262476 Test: manual build and test with the feature flag on/off Change-Id: I7206fb2afb839f05cc016ece7d29540ace8910ed
| * [VolumePanel] Move the Settings' volume panel into a SystemUIDialogAlan Huang2022-08-291-3/+4
| | | | | | | | | | | | | | | | | | Move most of the logic of the Settings' volume panel to a SystemUIDialog to make the dialogs consistent with other system dialog. Bug: 202262476 Test: manual build and launch the new dialog. Change-Id: Ic27dcca77072dee2b78827e1eb58c28022b47265
* | base: Volume dialog timeout (1/2)LorDClockaN2022-10-261-2/+3
| | | | | | | | | | | | adapted logic to Android 10 Change-Id: Ic9ecb5576bd661b94154b04f010033d7138c4f69
* | base: Add support for per-app volume [2/3]cjybyjk2022-10-261-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | [ghostrider-reborn] - Enable by default and remove setting - Use app volume icon by amartya (@ yukiscape) [@npv12 adapt for A13] Change-Id: I674cda1d7463b3603ccaac673178aeead4093619 Co-authored-by: yukiscape <garikapatiamartya@gmail.com> Signed-off-by: chrisw444 <wandersonrodriguesf1@gmail.com> Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
* | Volume panel: avoid multiple animations on touch spamGiuseppe Maggio2022-10-261-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spamming touch outside of the Dialog causes multiple animations, put a simple check down dismissH that avoids the animation calls over and over again. Test: - Open any messaging app - Open a conversation or start new one - Click on text field - Press volume keys to bring up volume panel - Press any keyboard key repeatedly Change-Id: I2471df22f6b394aec5dad0be447d4ee167c13ada Signed-off-by: spezi77 <spezi7713@gmx.net> Signed-off-by: Joey Huab <joey@evolution-x.org> Signed-off-by: Pranav <npv12@iitbbs.ac.in>
* | SystemUI: VolumeDialogImpl: Change bg tint for inactive rowsArian2022-10-261-2/+3
| | | | | | | | | | | | | | | | | | | | | | The secondary accent in light mode does not have a good contrast to the previously white icon. Previously: https://imgur.com/a/XHpDHDJ Now: https://imgur.com/a/QCk3QwC Change-Id: Ib61ad4803e0e3c6cc9163408137c7a16742922b6 Signed-off-by: Pranav <npv12@iitbbs.ac.in>
* | SystemUI: Show notification row when it's unliked to ringer volumeMesquita2022-10-261-0/+1
| | | | | | | | | | | | Signed-off-by: Mesquita <mesquita@aospa.co> Change-Id: Id7a2602153dbc94eb40caf70946d2b31e4a3c19f Signed-off-by: Pranav <npv12@iitbbs.ac.in>
* | SystemUI: VolumeDialogImpl: notifyVisible after the volume panel is fully hiddenJesse Chan2022-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | notifyVisible(false) leads to reset of active stream. As a result, the current active row will be untinted. Currently, this happens immediately after the dismissal is requested, before the volume panel is fully hidden. User can notice the row has been untinted before the panel is hidden. This changes moves notifyVisible to the end of animation so the volume panel appearance will be consistent in between. Change-Id: Iacd83d48634a11bc248c9a2a45b68b53256fdcb2 Signed-off-by: Jesse Chan <jc@lineageos.org>
* | SystemUI: Make the volume dialog expandableArian2022-10-261-12/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Arian <arian.kulmer@web.de> Date: Sun Jan 30 20:59:18 2022 +0100 SystemUI: Make the volume dialog expandable Change-Id: I282aece97f0c7b4435c94ca773631e2d9e738a14 Author: Christian Hoffmann <chrmhoffmann@gmail.com> Date: Wed Jun 22 21:50:42 2022 +0200 SystemUI: Avoid NPE in volume dialog Change-Id: I1bc6d46de01ddd4db6b32555e5557611550d007e Author: Arian <arian.kulmer@web.de> Date: Fri Jun 17 13:46:42 2022 +0200 SystemUI: VolumeDialogImpl: Show output button if there is an active stream The media output dialog can be used to connect different devices. This patch makes it show up if at least one of the following conditions is met: 1: There is an active local media controller 2: There is a bluetooth a2dp device connected Change-Id: Ie2a2a0f3125e1ffbf78bfc1f66868696f6389294 Author: Arian <arian.kulmer@web.de> Date: Tue Jul 26 11:26:06 2022 +0200 SystemUI: VolumeDialogImpl: Move the MediaOutputDialog above status bar The volume dialog is above the status bar too and can be used while the statusbar is expanded. Opening the media output dialog then will cause the dialog to appear below the status bar which isn't visible until the status bar is collapsed. This change moves the media output dialog above the status bar. Change-Id: Ie906ee0a59d52dbb6b6f703e210fa43308d069f0 Change-Id: I780a9851eaa209204b6be2ad26506e4eab4dc84e
* | VolumeDialogImpl: Don't hide the default stream when adjusting the music streamArian2022-10-261-1/+12
| | | | | | | | | | | | | | | | | | | | | | If there are two visible rows and the user touches the default (music) row, the other row disappears immediately. Avoid this behaviour by tracking the row with which this panel was created and keep showing that row if the user adjusts the music stream. Test: While receiving a call both rows are touchable and the additional row does not disappear when adjusting the music stream. Change-Id: I4e14a0ea50c5cc41cb279c6fbfc8a7d6e6d1ba61
* | VolumeDialogImpl: Respect multiple visible rows in landscapeArian2022-10-261-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the user is in a call we are showing two volume rows, the default (music) stream and the active stream, in this case the voice call. Currently the second row is not touchable in landscape mode because the calculation of the touchable region does not handle the case of multiple visible rows. This patchset adds a check wether the ringer drawer extra size is bigger than the additionally visible rows and then substracts the size of the visible rows so that they stay touchable. Test: While receiving a call in landscape both, the music row and the ring row, are touchable. Touches at the left of the volume panel are still going through the app behind the volume panel. Change-Id: Icda80b7a98d5510747bc92ef12a3c7647131b18d
* | VolumeDialogImpl: Don't vibrate when volume dialog is not visibleLuK13372022-10-261-1/+1
| | | | | | | | | | | | | | | | | | 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
* | base: Live Volume Steps [1/2]Meticulus2022-10-261-4/+5
| | | | | | | | Change-Id: Ia803a6ef38e5e89e1af9a31e7904d77ec1f16722
* | frameworks: Add unlinked ringtone and notification volumesAdnan Begovic2022-10-261-8/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Port over linked volumes from 12.1 Implement linked volumes and add upgrade path. Change-Id: Ibbeff656fcaaa4a2ff79de530b48b216df271b21 frameworks: read VOLUME_LINK_NOTIFICATION from proper table Change-Id: I15e9caa18f307a51a732c7a59013bbbb234a7477 Signed-off-by: Roman Birg <roman@cyngn.com> (cherry picked from commit 1b7cfa1716017e0d03c9693428c21d8e11c5dc0a) fix Notification volume slider linking Change-Id: I0f74485f5c8c2aa7698cf9ba1c60c2c8c967798d Signed-off-by: Roman Birg <roman@cyngn.com> Improve SeekBarVolumizer behavior with unlinked streams - Fix notification stream enabling at 0 volume - Fix the notification slider being set when moving ringer stream Change-Id: If3705cc833c07f726f8ad7b1ec79a42e86e8ff22 Signed-off-by: Roman Birg <roman@cyngn.com> base: Fix notification sounds for wifi only devices The linking of voice & notification doesn't take into account the fact that a device may not actually have voice capabilities. Whenever checking whether or not to link notification and ring volumes, also verify that the device really is voice capable. Change-Id: Iae49302d3b5934d36b182e289e4975f5dd85b834 frameworks: fix setting up linked notification stream on boot updateStreamVolumeAlias() was previously responsible for checking the linked notification variable and mapping the notification stream, but the setting to read whether the notifications were linked was read in after that method had run which was responsible for linking them. Extract the logic and re-run it again after reading the persisted settings. Change-Id: Ia62bf3ca072def54ec6ebf4f9e865d9c913e3bc4 Signed-off-by: Roman Birg <roman@cyngn.com> fixup volume stream linking - Make the SeekBarVolumizer move notification and ringer streams when linked and moving ringer. - Fix initial state causing volume stream seek bar to be set to 0 initially - Clean up AudioService initialization code Change-Id: Ia11a7a392e5eb3ef862147843e365d5f20eaf90a Signed-off-by: Roman Birg <roman@cyngn.com> SystemUI: Fix volume panel inconsistencies * Use xml drawables everywhere * Add muted notification icon * Use AOSP naming scheme for drawables Change-Id: I14a3af9a7aecf4828f81a8e39855608e452848d6 Misc fixes Change-Id: Ia94b0a6655e52f5949f031360f525c871cd8df14 Signed-off-by: Meninblack007 <sanyam.53jain@gmail.com> Use STREAM_RING on non-voice capable devices * That's what Google does. Change-Id: Iac88d161eb1dccbbb5c538d5e04d8d1fc43edef2 (cherry picked from commit 981e89eb6b99c058a9b3bf533e6494ab44a4b241) VolumeDialog: Fix mismerge Fixes not disappearing cast pickers * Commit 568585b introduced a new LinearLayout for the volume rows * Remove unused booleans Change-Id: I0660d10872cc1098fdd67b618a20ea0f8e926e68 Fix VOLUME_LINK_NOTIFICATION javadoc * Fixes checkapi: frameworks/base/core/java/android/provider/Settings.java:8920: error: Added field android.provider.Settings.Secure.VOLUME_LINK_NOTIFICATION [AddedField] Change-Id: I4da34de53ce23e90d5f2eff72ef0a15034f08ec1 Change-Id: I7695aa15bc85e8ff19747ba7cd6700e190c7d988
* | VolumePanel: Pass touch outside of volume panelAkash2022-10-261-3/+6
| | | | | | | | | | | | | | Change-Id: Ia37ae4109e5702e6558544ee4aa89ef1c537feed Signed-off-by: DennySPb <dennyspb@gmail.com> Signed-off-by: SuperDroidBond <superdroidbond@yahoo.com> Signed-off-by: Pranav <npv12@iitbbs.ac.in>
* | VolumeDialog: Display default row when active row is notificationJesse Chan2022-10-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Commit "frameworks: Add unlinked ringtone and notification volumes" introduced STREAM_NOTIFICATION. However, this stream type, although marked as important, was not added to the list in shouldBeVisibleH. As a result, the volume panel behavior of STREAM_NOTIFICATION deviates from other user-facing streams like media, call and ring. This change adds STREAM_NOTIFICATION so the behavior becomes consistent. Change-Id: I092c5bf0ae8cbee85af6adfa0da308dfdb60e66a Signed-off-by: Jesse Chan <jc@lineageos.org>
* | SystemUI: runtime configurable audio panel locationa.derendyaev2022-09-221-36/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Updates for twelve (bgcngm / Arian) * Adapt to new UI * Updates for eleven (LuK1337): * Disable on TVs * Simplify changes once again. * Updates for ten (sam3000): * Squash in tuner service settings reset blacklist. * Remove layout xml changes that aren't needed. * Apply slide in/out animations to landscape too (they work fine). * Few other simplifications. * Placement is now determined at runtime by a lineage setting. Use TunerService to track settings change. Various cleanup and fix formatting. Fixed left/right gravity on expand arrow and ringer. Fix commit author. (sam3000) This is a squashed and adapted commit of the following patches: ---- From cf187bd54fbd807e16b0ac3593e839008efd302e Mon Sep 17 00:00:00 2001 From: "a.derendyaev" <a.derendyaev@magdv.com> Date: Wed, 19 Dec 2018 21:57:45 +0800 Subject: [PATCH] SystemUI: allow devices override audio panel location Some devices have volume buttons on left side and it not fancy if volume panel will be at right side. You can override panel location using overlay for SystemUI: <!-- Allow devices override audio panel location to the left side --> <bool name="config_audioPanelOnLeftSide">true</bool> Change-Id: I8a2302867010b0e6a02efa68df57e534ce7bbf46 Signed-off-by: Jagrav Naik <jagravnaik0@gmail.com> Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com> ---- From 9d0ff1efd26961a4f14d0821f50ebe80c2a65ff9 Mon Sep 17 00:00:00 2001 From: Alex Cruz <alex@dirtyunicorns.com> Date: Fri, 21 Dec 2018 22:08:52 -0600 Subject: [PATCH] Volume panel: Do the same with less Use common volume_dialog layout for both left- and right-aligned panel [@TheDorkKnightRises - POSP] - Tweak padding values to make them uniform across both alignments - Remove redundant comment Change-Id: If41456f71ffd18466166e7b4120ff34d9e6f5a46 Signed-off-by: Josh Fox (XlxFoXxlX) <joshfox87@gmail.com> ---- Author: Sam Mortimer <sam@mortimer.me.uk> Date: Sun Jun 9 13:33:05 2019 -0700 SystemUI: Blacklist volume panel on left setting from tuner reset Change-Id: I47ddb3b818cfa3548fef42fa686d0991e2a35605 Author: programminghoch10 <hoch10@kabelbw.de> Date: Mon Jul 12 17:55:28 2021 +0200 SystemUI: VolumeDialogImpl: Fix volume panel permanently visible * The Volume Panel is permanently visible when changing the panel side while the panel is open until SystemUI is restarted * This change removes the Panel View when changing the panel side Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3482 Change-Id: Ic3ca5a196315e96024121c995cc6282fb74f6e4c Change-Id: I666420e97f0c7b4435c69ca773631e2d9e738a14 (cherry picked from commit 232b17f1c507625c643a1616e9f12db828bd151c)
* | Configurable 0, 90, 180 and 270 degree rotationRicardo Cerqueira2022-09-121-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia1859c51d71ef9d01cec2d13c6468ed89c6ac53e Contributor: jonasl - Add system setting - AICP Edit: add backup validator Author: Tim Schumacher <timschumi@gmx.de> Date: Wed Nov 28 21:44:18 2018 +0100 Add back ACCELEROMETER_ROTATION_ANGLES and update references This needed to move back into fw/b, because it needs to be accessed from inside the RotationPolicy. Previously (when this constant and Setting were located in lineage-sdk), the settings for the display rotation had no effect, because we couldn't query the correct set of settings. Change-Id: Icce249925a578c328db3884e5d332b20d6e7db6c Fixes: BUGBASH-2042 Author: eray orçunus <erayorcunus@gmail.com> Date: Mon Jun 22 22:47:40 2015 +0300 Rotation related corrections - There are some conditions deleted while placing rotation angles code, I added them. - Rotation lock was screwed up since CM 12. Fixed it by fetching allowed rotations from CM's allowed rotations setting. - Also, a CAF commit had killed rotation lock ability. [port to 15.1]: - ACCELEROMETER_ROTATION_ANGLES moved to LineageSDK - Slight change of the WindowManager API [port to 16.0]: - adjust context - ACCELEROMETER_ROTATION_ANGLES moved to Settings - Use the configstore API Change-Id: I8f1b468249c68e7b6514d1a96bdb3fc638af84fd Signed-off-by: eray orçunus <erayorcunus@gmail.com> (cherry picked from commit a62720d51e9d8f3a3c9992ea0bdb707b64e865b5) Author: Tim Schumacher <timschumi@gmx.de> Date: Thu May 2 19:48:39 2019 +0200 RotationPolicy: Don't crash if configstore 1.1 isn't available Change-Id: I77301ec8c72393daa0003ca310eee07b767d4e69 Change-Id: Ia7bf8cb64258e1d602230a8f9ea227d3b56a4dab
* Merge "Avoid warning log from InteractionJankMonitor in VolumeDialogImpl" ↵Lucas Dupin2022-05-181-0/+4
|\ | | | | | | into tm-dev
| * Avoid warning log from InteractionJankMonitor in VolumeDialogImplBill Lin2022-05-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | the two intents ACTION_CLOSE_SYSTEM_DIALOGS, ACTION_SCREEN_OFF have a race in VolumeDialogImpl, so the JankLinster may begin a tracing on a DialogView which has detachted from window. Test: Manually press VolumeKey and Press power key to screen off InteractionJankMonitor warning log should not showing. Bug: 232066671 Change-Id: Ic8f973372bbe1bda0f8dbab58d99269a2d766e46
* | Move Volume control Binder calls to worker threadJustin Weir2022-05-161-30/+16
|/ | | | | | | | | Pushed the binder calls down the call stack to where it's on the worker thread instead of the main thread. Bug: 226354720 Test: Ran all the tests and verified that Binder calls are on worker threads Change-Id: I05c89b5057529a492b0e33a9198d1207609245da
* Instrument CUJ_VOLUME_CONTROL with Trace taglbill2022-05-121-3/+55
| | | | | | | | | | | | | | | | | 1. CUJ_VOLUME_CONTROL begin in animator begin() CUJ_VOLUME_CONTROL end in animator end() - initDialog(): Tag show - dismissH(): Tag dismiss - updateVolumeRowSliderH(): Tag update 2. Add Trace.beginSection("VolumeDialogImpl#showH") 3. Add Trace.beginSection("VolumeDialogImpl#dismissH") 4. Add Trace.beginSection("VolumeDialogImpl#updateVolumeRowSliderH") 5. Add Trace.beginSection("VolumeDialogImpl#updateRowsH") Bug: 232066671 Test: Press Volume key and check perfetto trace Change-Id: Ib74bfc46bd6841d4b8e86266a75d7003ae4cbe80
* Integrate captions volume button with new CaptioningManager APINadav Bar2022-02-231-5/+0
| | | | | | | | | | | | The code that checks for the captions service component will be removed once the integration in the system captions side will happen. Also cleans up the unused stream opt-out property. Change-Id: I606f0d7a5319bbdc54b2e853fb70ea44ff9645a0 Bug: 221021539. Bug: 136282740. Test: Manually.
* [Dagger] Remove Dependency.get from VolumeDialogImpl.Caitlin Cassidy2021-08-231-10/+22
| | | | | | | | | | | | | The original change was reverted because it was breaking the build, but that was because automerger split the topic so not all CLs were in the build (see go/automerger-questions#did-automerger-split-a-topic). I'm now submitting the same changes on master and sc-v2-dev to avoid automerger issues. Test: atest and manual Bug: 138786270 Change-Id: I42665b800fb2016db9e33dcfa85c3661d9ccf605
* Revert "[Dagger] Remove Dependency.get from VolumeDialogImpl."Caitlin Cassidy2021-08-191-22/+10
| | | | | | | | | | | | | | | | | Revert "[Dagger] Remove CarVolumeDialogComponent now that the cu..." Revert "[Dagger] Add VolumeModule to SystemUIGoogleModule." Revert submission 15548780-dagger-volumedialogimpl Reason for revert: Breaking builds Reverted Changes: Iea3f06de8:[Dagger] Add VolumeModule to SystemUIGoogleModule.... I3213f0c6f:[Dagger] Remove CarVolumeDialogComponent now that ... I74c71860b:[Dagger] Remove Dependency.get from VolumeDialogIm... Change-Id: I17255bb75282481014ada7dee43c9a5d5cd2caf9 Bug: 138786270
* [Dagger] Remove Dependency.get from VolumeDialogImpl.Caitlin Cassidy2021-08-131-10/+22
| | | | | | Test: atest and manual Bug: 138786270 Change-Id: I74c71860bbcca044a91c1cd34715742cd6f5a9de
* Merge "Don't let ringer drawer icons be clicked while the drawer is ↵Josh Tsuji2021-08-051-0/+5
|\ | | | | | | | | | | | | | | animating closed." into sc-dev am: 286530b685 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15474817 Change-Id: I3c505ef4cc2542be67397bfc11ca592beb94a94e
| * Don't let ringer drawer icons be clicked while the drawer is animating closed.Josh Tsuji2021-08-051-0/+5
| | | | | | | | | | | | | | | | This could happen after a quick double tap on the ringer icon, where you'd hit the ringer icon as the drawer animated shut. This resulted in a permanently unusable ringer drawer (a reboot was needed to fix). Fixes: 195392457 Test: switch to vibrate, then tap the ringer icon several times quickly Change-Id: If5ddd2a27364a6fd66ebd6bfd12b5810e1973a75