summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/tuner/TunerServiceImpl.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-021-2/+2
|\ | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * Extract QSHost interfaceFabian Kozynski2023-02-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | In preparation for refactor, extract the QSHost interface everywhere so access is done through it. This determines also the surface we may need to provide. Test: atest SystemUITests Test: atest android.host.systemui Test: atest CtsTileServiceTestCases Bug: 249804331 Change-Id: I660311eb60336ead6e5694c4e3e6099151dbaecc
* | Clock: Add ability to resize QS & Statusbar Clock [1/2]StarkDroid2022-10-261-0/+2
| | | | | | | | | | | | | | | | | | spkal01: Utilize Tuner Settings and simplify implementation Co-Authored-By: spkal01 <kalligeross@gmail.com> Signed-off-by: StarkDroid <gamerprince.exp@gmail.com> Change-Id: I4ca9d8fe6258b2dfa3e5ae7ab8bde2fb3372aff5 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* | Add option to auto hide status-bar clockPranav Vashi2022-10-261-0/+3
| | | | | | | | | | | | | | | | Inspired by: https://github.com/PotatoProject/frameworks_base/commit/dbaed27cd2633bd825a598e0b4615dacdb36cd00 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: Ib581beeca3af155d406f4ca5d2f773abed913c5e
* | Statusbar clock customizationsLars Greiss2022-10-261-0/+4
| | | | | | | | | | | | | | | | @neobuddy89: Complete rewrite with fixes. @Stallix: Adapt to A13 changes. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: I7d8741fb24de1eca00822b357f8f3d1e50d327d7
* | Add separate tunable for clock secondsPranav Vashi2022-10-261-0/+2
| | | | | | | | Change-Id: If6033ab86d5513ff0da33bdd49f5f658732ba4ed
* | TunerServiceImpl: Blacklist Settings.System from tuner resetdianlujitao2022-09-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | * They use the tunable infrastructure but are real user settings and shouldn't be reset with tuner settings. Moreover, setting them to null would cause a IllegalArgumentException. jhenrique09 edits: Adapted to PE Signed-off-by: Henrique Silva <jhenrique09.mcz@hotmail.com> Change-Id: I8d8b35fb4a8699480c158610e82f67c0fba622e1
* | SystemUI: Allow using tuner API for Global settingsPranav Vashi2022-09-221-1/+21
| | | | | | | | | | Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: I26785cd36552e72fb57d1a6bfa7a18c47b81f117
* | SystemUI: tuner: Allow Tuner API for System settingsZhao Wei Liew2022-09-221-11/+47
| | | | | | | | | | | | We'd like to modify some AOSP System settings as well. Change-Id: I4e2e7bf680f20bce9619ff2adf243d0f8f4a9906
* | TunerService: Prevent NPE with tunablePranav Vashi2022-09-221-2/+6
| | | | | | | | | | Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: I508fe6b72e6163a31d47f016aa294b74658773f3
* | Tuner: Don't clear out prefs, it's not disabledJoe Maples2022-09-221-10/+2
| | | | | | | | Change-Id: I7bea54fa19c61f3c769c0bafd9ea359ad1bd3356
* | base: SystemUI: enable tuner and show in Settingsmaxwen2022-09-221-0/+1
|/ | | | | Change-Id: I4d3ff3ca989e6a6952419d147208318ee269b9d7 Signed-off-by: xyyx <xyyx@mail.ru>
* Remove tuner icon from settings buttonFabian Kozynski2022-02-111-0/+3
| | | | | | | | | | This removes a two-way call to system_server in the main thread. The only way to enable the tuner right now is through adb and it's largely not used, so removing this indicator is not a big loss. Fixes: 207257090 Test: atest FooterActionsControllerTest Change-Id: If03c697f97a6c155122be98e369da66d2617069b
* Remove recommendations when setting is disabledBeth Thibodeau2021-06-071-1/+2
| | | | | | | | | Add a listener so that when the user toggles "show recommendations" in settings, any existing recommendation is immediately removed Fixes: 190214883 Test: atest MediaDataManagerTest Change-Id: I3faa5ea7762baf41e802f128987a358163e00759
* Add recommendation setting and remove app settingsBeth Thibodeau2021-05-261-2/+1
| | | | | | | | | | - Add a new setting to control whether smartspace recommendations are enabled - Remove setting to block individual apps from resumption Bug: 187925818 Test: atest MediaDataManagerTest Change-Id: If1d5f4c5a204e655a90dd2cca6687acdfcd12fec
* Use correct string resource for "Remove"Peter Kalauskas2021-03-051-1/+1
| | | | | | Test: m SystemUI Bug: 169783558 Change-Id: I126852ebe45e3f034a1e162048c2e8875276f524
* Move static calls in TunerService to use depsFabian Kozynski2021-02-161-3/+49
| | | | | | | | | That way, they can use cached values for UserContext and others. Test: manual, temporarily enabling TunerActivity in SettingsButton Test: atest SystemUITests Bug: 179913579 Change-Id: Ib0e74b39fbf72b33bbd1ec20f46695ae90b5cf3e
* 3/N Remove DevProvCtrl & UserTracker from QSFooterDave Mankoff2020-10-201-0/+1
| | | | | | | | | Remove DeviceProvisionedConroller and UserTracker from QSFooterImpl. This also adds QSFooterImplControllerTest, and fixes one of the tests that was marked as failing. Bug: 168904199 Test: manual Change-Id: I0e04bef8df76c6b73c8844f4679cfef08b3b2c13
* Migrate to new UserTracker for currentUserFabian Kozynski2020-09-291-12/+16
| | | | | | | | | | | | This is a partial migration, mostly in classes I'm familiar with. This means that the current user is meant to be retrieved async as part of initialization or user action, with the execption of PrivacyItemController that uses the new listener. Test: atest SystemUITests Test: manual Bug: 163579262 Change-Id: I32b5a47194fa0f9607df19f210f30a0e416f7464
* 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
* Merge "Create a DemoMode controller"Evan Laird2020-08-131-9/+14
|\
| * Create a DemoMode controllerEvan Laird2020-08-131-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pull Demo Mode out of StatusBar.java and create a subscription / callback model. This reduces the number of broadcasts needed by StatusBar and also enables for demo mode: - clean state tracking (dumpsys DemoModeController) - We can fix bugs like state initialization (entering demo mode on in dev options has a different effect than entering via broadcast, etc). - We can more easily implement it as a command line interface (available for preorder today!) Bug: 163393864 Test: atest SystemUITests; manual demo mode testing Change-Id: I70535aeca3478a42b1ebb668822346e23854379f
* | Allow user to block individual apps from resumingBeth Thibodeau2020-08-101-1/+2
|/ | | | | | | | | | | This adds a setting which stores a list of packages that will be prevented from persisting in QS as resumable media controls, even when resumption is enabled. If the user adds a new package to this list when it already has a resume control, that control will be removed. Bug: 161813143 Test: manual, atest Change-Id: I8c85bc937aeaf366954f2669eba8f6954640fe4c
* Update language to comply with Android’s inclusive language guidanceJulia Tuttle2020-07-291-10/+10
| | | | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference #inclusivefixit Bug: 161896447 Test: still builds! let's see what presubmit says. Change-Id: Ia0aac0b80511076f77a64a9eee6eff9376ed906f
* Support toggling resumption in SettingsBeth Thibodeau2020-06-201-1/+2
| | | | | | | | | | | | | | Moved setting so we can use Tunable: adb shell settings put secure qs_media_resumption 1 If setting is changed, removes all existing resume players Bug: 154039093 Test: manual Test: atest SettingsProviderTest Test: atest com.android.systemui.media Change-Id: Iad056fbad4520cfe762d9e9f5ed62d38ea1117b1
* Merge "Merge "Give hidden API behavior to legacy apps." into rvc-dev am: ↵Automerger Merge Worker2020-03-111-1/+2
|\ | | | | | | | | | | a7a96ad6f8 am: 314eb8f16b" into rvc-d1-dev-plus-aosp am: 059370c6f9 am: d0db148bcd Change-Id: I039fc6b9674fb31ac5733daf95a1157b58921d3b
| * Give hidden API behavior to legacy apps.Jeff Sharkey2020-03-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting in R, there is a new public API overload that delivers a flags argument. Some apps may be relying on a previous hidden API that delivered a userId argument, and this change is used to control delivery of the new flags argument in its place. There are dozens of these hidden API users are in the system UID, either in the system process or the Settings app, so we hard-code giving them the legacy behavior, since refactoring would be messy between internal and AOSP branches. Also adjust incoming and outgoing method signatures to use slightly more flexible Collection<Uri>, which has handy methods like contains() and isEmpty(). Bug: 150939131 Test: atest --test-mapping packages/providers/MediaProvider Test: atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest Exempt-From-Owner-Approval: trivial refactoring Change-Id: If6a77449e19215cf1c60d4217e62fc04b0959bfc
* | Merge "Fix instances of ContentObserver#onChange in SystemUI" into rvc-dev ↵Automerger Merge Worker2020-03-071-2/+5
|\| | | | | | | | | | | am: bea69abe17 am: 9e4f2bfde8 am: ab5e2d6fa8 am: 2e9ed7ff6c Change-Id: I24561cb1d7a9778c342eb060e6b07a64ed63fc48
| * Fix instances of ContentObserver#onChange in SystemUIFabian Kozynski2020-03-061-2/+5
| | | | | | | | | | | | | | | | | | Fix instances due to change in signature. Test: atest SystemUITests Test: atest TileServiceTest BooleanTileServiceTest Bug: 150939131 Change-Id: Ie5903231eb7dd22553803c6a65994ef3dc957708
* | Prevent ConcurrentModificationException while accessing mTunableLookup.Rajeev Kumar2020-02-261-2/+3
|/ | | | | | | | Swapped HashMap with ConcurrentHashMap to allow multi-threaded access to mTunableLookup. Bug: 131588251 Test: atest SystemUITests Change-Id: I318fbd591060305b0365163ac3d2242abeabfeea
* Updated StatusBarIconController and StatusBarSignalPolicy to check iconJianYang Liu2020-01-161-1/+1
| | | | | | | | blacklist from config value, config_statusBarIconBlacklist. Bug: 118675475 Test: Manual Change-Id: I44dd1d007d3f7b9b435eceb273ecf333aef7cef4
* Conslidate @MainHandler and similar to @Main (and similar).Dave Mankoff2019-12-201-2/+2
| | | | | | | | | | | | @MainHandler, @MainLooper, @MainResources -> @Main @BgHandler, @BgLooper -> @Background. Also, move the providers for Handlers and Loopers into the ConcurrencyModule. Bug: 146510722 Test: atest SystemUITests Change-Id: I991735e1fdca397784427409a2ae696a7374f584
* Finish migrating to BroadcastDispatcherFabian Kozynski2019-11-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | This CL migrates most of the remaining classes to use BroadcastDispatcher. Some classes left are Views or created before the BroadcastDispatcher can be injected. Adds docs for instructions on using the BroadcastDispatcher. Using the broadcast dispatcher, the time system_server spends dispatching common intents to SystemUI like SCREEN_OFF and SCREEN_ON can be seen to decrease from ~70-150ms (in a Q build) to ~2-4ms. Additionally, once a broadcast is received by the dispatcher, time until it is fully dispatched inside SystemUI is not impacted greatly. Most broadcasts are fully dispatched after ~20ms with a few of them taking ~100ms. Test: atest SystemUITests no regressions Test: build and boot Test: tried some random broadcasts and they are properly dispatched Test: BroadcastDispatch dump Test: adb shell dumpsys activity broadcasts Bug: 134566046 Change-Id: I26a592be66b053f25669b5481b58bf7f07bfd0da
* Move DI related coded into new dagger package.Dave Mankoff2019-10-211-4/+2
| | | | | | | | | This adds new Dagger qualifiers for BgHandler, BgLooper, MainHandler, MainLooper, and MainResources, replacing the use of @Named for them. Bug: 142954072 Test: atest SystemUITests Change-Id: Ibbda8998e587474c26740ba8d49a8b3f90d89efa
* IPC StrictModeLucas Dupin2019-08-261-1/+3
| | | | | | | | | | | | | | This CL introduces a way of blocking IPCs on the main thread. This is enforced by StrictMode, and enabled on tests and eng builds. All current blocking IPCs were whitelisted and bugs will be filed, in order to fix them for R. Bug: 139360025 Test: adb logcat Test: atest SystemUITests Change-Id: I45af2619605ee36b6bae83ef080272c62754b654
* Fix flaky sysui crash in devicehealthchecks test.Amin Shaikh2019-07-021-5/+5
| | | | | | | | | Upgrade tuner on the main thread to avoid ConcurrentModificationException. Fixes: 133847620 Test: mp droid Change-Id: I15ef66a19eeac2c6baf652d83e6a90669834f203
* Remove Dependency.get usages from TunerServiceImplJason Monk2018-12-211-6/+11
| | | | | Test: atest SystemUITests Change-Id: I9567304e30cc61f7aeb4115da4993fc6af91cfd3
* Clean up DependencyProvider a bitJason Monk2018-12-211-0/+9
| | | | | | | | | Create DependencyBinder which is abstract and can tell dagger how to convert directly between interfaces and implementations without requiring code for it. Test: compile (which runs dagger) Change-Id: I7013ee12d37172441e2c70cf2fe36f707975c821
* Fix: [SystemUI] icon_blacklist is not reset for sub usersTetsutoki Shiozawa2018-08-091-2/+8
| | | | | | | | | | Symptom: System icon tuner preference is removed at P-osv but icon_blacklist setting remains for sub users. There is no way to reveal the hidden icons. Bug: 111575893 Change-Id: I5174657048c24e5f85bbf2bb936a97a51262eee5
* Blacklist doze setting from tuner resetJason Monk2018-05-151-0/+1
| | | | | | Test: manual Change-Id: I934cfcd65552c9998eb95ecfed65670ec73dde8d Fixes: 78512759
* Revert "Revert "Clear out tuner prefs since it is disabled""Jason Monk2018-04-231-13/+17
| | | | | | | | | | Now without wiping user settings! This reverts commit a3e5552c475c328fcfb385ab4bdbb34cb556f5fb. Test: build, push, see QS tiles not reset Fixes: 74851117 Change-Id: I34c98da2d96f5d4f0774acf106a80a7b27391ca7
* Revert "Clear out tuner prefs since it is disabled"Jason Monk2018-04-121-5/+1
| | | | | | | | Bug: 74851117 Fixes: 77937472 This reverts commit 8bb9bbf152e35cdb4263aa1132827d51eb57e8b4. Change-Id: I2dea3fec7ca3f59c63ce9395ba2784ca9dc58316
* Clear out tuner prefs since it is disabledJason Monk2018-04-101-1/+5
| | | | | | Test: manual Change-Id: Iff383557761fee92e37de4c4f3fcc10cff333299 Fixes: 74851117
* Disable tunerJason Monk2018-01-221-1/+4
| | | | | | | | - Turn off the affordance that enables the tuner - Bump the tuner version db and disable the tuner Test: manual Change-Id: Id2d2a4005ff88ca94c7abed5f4a6b3c71d46b9ef
* Move out test utilities to a Testables libraryJason Monk2017-03-141-0/+242
Test: runtest --path frameworks/base/tests/testablets/tests && runtest systemui Change-Id: Ideef4aef5f26136b1741c556b9be5884f38842a0