summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationModeController.java
Commit message (Collapse)AuthorAgeFilesLines
* fw_base: Cleanup: revert gestural additionsSemavi Ulusoy2022-12-271-47/+4
| | | | | | | | | | | | | | | | | *** they were causing issues with Uninstall & paring with BT after QPR1 merge Squashed revert of the following commits: 1. base: Improve IME space feature [1/2] - https://github.com/AICP/frameworks_base/commit/61d931dbb3d5819e266ab5d0708dc42438a5dfea 2. base: Remove IME space under keyboard feature [1/2] - https://github.com/AICP/frameworks_base/commit/ac8aafa904c2048481b66aeccfd905c464527e0a 3. SystemUI: Gestural: Improvement [1/2] - https://github.com/AICP/frameworks_base/commit/7d85ad7db26690904f23523c1496f157333d2d5b 4. SystemUI: Improve gesture bar length [1/2] - https://github.com/AICP/frameworks_base/commit/8f6f299ae3526db528238cd82a5fcab47b6f8ba1 5. SystemUI: Allow enabling compact layout of navigation bar - https://github.com/AICP/frameworks_base/commit/8b288e0f7c8097e2ca4face17045edfd8a185a30 6. base: Add navbar layout inversion tuning [1/2] - https://github.com/AICP/frameworks_base/commit/a2c4c1457f266c592867ab08411dd49629e41c03 7. SystemUI: allow changing the length of gesture navbar [1/2] - https://github.com/AICP/frameworks_base/commit/95d815ff66ce10b6837fa8487090ea3900a115f1 ** Their fixed versions will be added back soon. Change-Id: I232d88d4dd656d76a7313fd3a9d5aac94d01773c
* base: navigation mode settings [1/2]maxwen2022-10-261-0/+23
| | | | | | | | to configure the height of the back gesture AICP style Change-Id: I6ebe0039e250f3b8f0b91b232df5941b58026499
* SystemUI: Improve gesture bar length [1/2]cjh12491313562022-10-261-1/+1
| | | | | | | | * Merge hidden into length settings. * Cleanup useless configs in overlay. Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com> Change-Id: I84dbe643cc63df205864158e6c453fad69af0adc
* base: Add navbar layout inversion tuning [1/2]LuK13372022-10-261-5/+24
| | | | | | | | | | | | | | | | | | * Originally implemented by jesec but since then has been reworked by me to use RTL instead of replacing left / right buttons. idoybh: * Use existing settings observer instead of tunables * Properly add the setting to Settings.java So we can back it up * Get rid of useless global var @jhonboy121: * use NavigationBarModeController to update layout on settings change Change-Id: I6159f0232ba2ee9f45d2afbba7d11072d902d9ac Co-authored-by: Ido Ben-Hur <idoybh2@gmail.com> Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>
* SystemUI: allow changing the length of gesture navbar [1/2]jhonboy1212022-10-261-3/+29
| | | | | | | | | * forward ported from 11 and improved a lot by delegating all the dirty work to controllers and using LayoutParams for changing the width instead of screwing around in onDraw. Signed-off-by: jhonboy121 <alfredmathew05@gmail.com> Change-Id: Icba8d7cb8b295c5dfebcc8c1a9886b746b8ce4b4
* NavigationModeController: Mute debug logging.spezi772022-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 02-27 15:05:40.079 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.125 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.139 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.143 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.147 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.155 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.163 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.172 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.179 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.186 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.193 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.537 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.567 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.574 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.586 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.590 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.596 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:40.603 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:41.133 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 02-27 15:05:41.180 2282 2282 D NavigationModeController: getCurrentUserContext: contextUser=0 currentUser=0 Signed-off-by: spezi77 <spezi7713@gmx.net> Change-Id: I83c2e797315fa9d7cbcecfad34271c4a433c0a4f
* NavigationModeController: Silence log spamtejasvp252022-10-261-11/+0
| | | | | | Signed-off-by: spezi77 <spezi7713@gmx.net> Change-Id: I5f2f76039280ccef5e6ed360d1e45cce759c21fa Signed-off-by: Joey Huab <joey@evolution-x.org>
* Remove FileDescriptor from systemui.Dumpable.Dave Mankoff2022-04-051-2/+1
| | | | | | | | | | This is the first step in moving over to the new public android.util.Dumpable api. Bug: 217567642 Test: m SystemUI Merged-In: Ibaebcfb2c6c5326d0c45b8c72d868c76655d89a0 Change-Id: Ibaebcfb2c6c5326d0c45b8c72d868c76655d89a0
* Use config_imeDrawsImeNavBarYohei Yukawa2022-02-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | With this CL, IME and SysUI start checking config_imeDrawsImeNavBar [1] instead of config_navBarInteractionMode when determining whether the IME should render the back and IME switcher buttons or not. There should be no observable behavior change as long as config_navBarInteractionMode is set to true when the gestural navigation is enabled. [1]: I0651a99b6007a84be63b85b579a85af0f24bb6ec Fix: 216118048 Test: manual Change-Id: Ifdfd23612f6cb2bfe6ddf302e3caac1e342a8a1e
* Fix theme change notificationSergey Serokurov2021-10-071-1/+1
| | | | | | | Change-Id: Ia7caf5c5c21fcdf6b175ca5cde2f114fc8dd01f7 Bug: 199250382 Test: Manual, verifed that the bubble views colors are correctly updated after theme has been changed. Test: Screen recording: https://drive.google.com/file/d/1Cbd-EinvVPTnDUGYzrtGq1Ym5NqTKNzB/view?usp=sharing
* Manually register Dumpables to DumpManagerNed Burns2021-09-091-1/+5
| | | | | | | | | | | | | | | | | Dependency.get() automatically registers its managed objects to the DumpManager if they implement Dumpable. However, if code is refactored that removes all usages of Dependency.get() in favor of Dagger injection, then there is no longer a guarantee that the class in question will be registered to DumpManager (and so included in bug reports). Instead, remove the auto-registration feature of Dependency in favor of manually registering all dumpables with the DumpManager. Bug: 198713580 Test: atest Change-Id: Ie02a44fb7da0b76bf53da874cc9eee030a1b9173 Merged-In: Ie02a44fb7da0b76bf53da874cc9eee030a1b9173
* Merge "Don't use ApkAssets::GetPath for equality checks" into sc-devRyan Mitchell2021-03-021-1/+1
|\
| * Don't use ApkAssets::GetPath for equality checksRyan Mitchell2021-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the introduction of ResourcesProviders, not all ApkAssets have paths on disk. Theme::SetTo and various AssetManager methods use the path to perform equality checking on ApkAssets. This equality check will be performed on the debug string of an ApkAssets if it does not have a path on disk. This causes ApkAssets with the same debug name (like "<empty>") to be seen as the same ApkAssets. Rather than using path, the pointer to the ApkAssets should be used for equality checking since ResourcesManager caches and reuses ApkAssets when multiple AssetManagers request the same assets. Bug: 177101983 Test: atest CtsResourcesLoaderTests Change-Id: I11f6a2a3a7cc8febe3f976236792f78e41cf07e6
* | Log debug info at Debug levelGreg Kaiser2021-02-231-1/+1
|/ | | | | | | | | | | | | All logs under the DEBUG flag in this file are (properly) logging at Log.d(), except for one at Log.e(), claiming an "E"rror in the system. We change that to Log.d() to avoid confusing folks debugging other issues who are looking through logcat. Bug: 181080516 Test: TreeHugger Change-Id: I4ff6fd9a6dd6caa7516620125762b7c0442b74b4
* Use 30dp as the default value for back gesture insetMehdi Alizadeh2020-09-151-35/+0
| | | | | | Bug: 162842044 Test: Manual test by triggering the migration path and checking the logs Change-Id: I2988ab5bd6cbcf082ccc1eac85824726eefeef07
* 6/N Move everything into SysUIComponent.Dave Mankoff2020-08-161-2/+2
| | | | | | | | | | | | | | | It is far easier to move _everything_ into SysUIComponent, and then selectively promote things back to GlobalScope and/or WMScope than it is to try to do it one at a time. With this change, though lots of files are touched, very little actually changes structurally. After this change goes in, folks should stop using @Singleton quite so freely. Most things should live in @SysuiSingleton. @Singleton is due to quickly be replaced by @GlobalScope. Bug: 162923491 Test: atest SystemUITests && manual Change-Id: Idc31d3d83b030581fb1fa869f7fafc4f2d3a8828
* Clean up navigation barWinson Chung2020-08-121-0/+241
- Move off fragments, now we have direct ownership of NavBarController -> NavBar (per display) -> NavBarView - Move the nav bar components to its own package - Removed some unused files - Can finally dump NavigationBarController instead of FragmentService :) - Clean up some of the dumps to be more consistent Bug: 163690441 Bug: 158605244 Test: atest SystemUITests Test: Test bar in various nav modes Change-Id: I21130899df560f6cf8b7f38d4d86edca6d8f920e