summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/tuner/TunerService.java
Commit message (Collapse)AuthorAgeFilesLines
* TunerService: Add parseInteger failsafe methodPranav Vashi2022-09-221-0/+8
| | | | Change-Id: I4f5613f1a4f27fef3a6dec1a3bacec9c78bce524
* Move static calls in TunerService to use depsFabian Kozynski2021-02-161-70/+11
| | | | | | | | | 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
* Revert "Update icons and text for guest user"Peter Kalauskas2021-02-111-1/+1
| | | | | | | | | | | | | | Revert "Update icons and text for guest user" Revert submission 13278947-new-guest-user-strings Reason for revert: Use same strings and text as Android R Reverted Changes: I8e9b7992d:Update icons and text for guest user I42c0b46fd:Update icons and text for guest user Bug: 169783558 Change-Id: I69d8e45c14d6e3f6c78de1be4e5212b226553b0f
* Update icons and text for guest userPeter Kalauskas2021-01-051-1/+1
| | | | | | | Test: As Guest, open Settings > System > Multiple users Test: As Owner, open Settings > System > Multiple users Bug: 169783558 Change-Id: I8e9b7992dcfa8a27105b8700438dcc1aa2416b37
* 3/N Remove DevProvCtrl & UserTracker from QSFooterDave Mankoff2020-10-201-0/+20
| | | | | | | | | 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-23/+22
| | | | | | | | | | | | 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
* Merge "revent NFE in SystemUI when parsing invalid int (2)" am: a5f53a59c7 ↵Evan Laird2019-03-161-0/+8
|\ | | | | | | | | | | | | | | am: fd19257a76 am: 4da6983197 Change-Id: Ibc7a143c6db3d9ca2ac79bc06876136399f4d54b
| * revent NFE in SystemUI when parsing invalid int (2)Henrik Baard2019-03-151-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A user can change various tunable settings setting via adb. If the value set is not an integer, SystemUI will end up in an exception loop. Test: No crash when running: adb exec-out settings put secure sysui_qs_move_whole_rows a adb exec-out settings put secure qs_show_brightness a adb exec-out settings put secure clock_seconds a adb exec-out settings put secure sysui_volume_down_silent a adb exec-out settings put secure sysui_volume_up_silent a adb exec-out settings put secure sysui_do_not_disturb a Change-Id: If9c565cbdd44db25ba7fce381c98aa0ab735bfc4
* | Fixes import ordering.Gus Prevas2018-11-141-2/+0
|/ | | | | Test: n/a Change-Id: I432e11b52deb7974e50f62076af3b7aa07e364b6
* Use new settings preference theme in sysui tunerFan Zhang2017-07-111-6/+0
| | | | | | | | - Also removed deprecated activity manifest entry for tuneractivity Change-Id: Id3a8d25cd9e2bf18c999e273714a2b82fd14ffe8 Fix: 36663882 Test: visual
* Move out test utilities to a Testables libraryJason Monk2017-03-141-233/+46
| | | | | | | Test: runtest --path frameworks/base/tests/testablets/tests && runtest systemui Change-Id: Ideef4aef5f26136b1741c556b9be5884f38842a0
* Move battery percent constant to SettingsEvan Laird2017-03-131-2/+2
| | | | | | | | | | This switch is moving to system settings so it should also be declared by Settings. Also changed the constant's name to make sense in the System context. Test: runtest systemui Bug: 32539932 Change-Id: I7cce21b50702f31465328dd8faed3fbac47528ea
* Percentage text now sits alongside the battery icon.Dan Sandler2017-02-141-1/+1
| | | | | | | | | | | | | | | | The old embedded percentage (introduced in change I6a3e7409) is hard to read at status bar size, so we now draw it in a separate TextView to the left (start) of the battery gauge. (The embedded code remains so that it can be used by other places where the battery is drawn larger.) The old system setting "status_bar_show_battery_percent" is still used to control whether this percentage is shown, but note that it now applies only to BatteryMeterView (i.e., the status bar) and not other usages of BatteryMeterDrawable. Bug: 32539932 Test: (manual) adb shell settings put system status_bar_show_battery_percent 1 Change-Id: Id298dba544f594b11269539284a2e8042fd4780b
* Merge changes I348c18dc,I0c33d519TreeHugger Robot2017-02-091-0/+11
|\ | | | | | | | | | | * changes: SysUiLeaks: Detect leaks in TunerService SysUiLeaks: Detect leaks of NotificationData.Entry
| * SysUiLeaks: Detect leaks in TunerServiceAdrian Roos2017-02-091-0/+11
| | | | | | | | | | | | Bug: 34932615 Test: manual Change-Id: I348c18dc4e5772637828c1f53f15c84ad4c39485
* | Work on separating out the status bar managementJason Monk2017-02-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Lots of stuff: - Make StatusBarIconController be a permanent dependency - Break out dark stuff into DarkIconDispatcher - Create StatusBarFragment - This bit is a bit ugly for now, but will be better later - Other stuff probably Test: runtest systemui Change-Id: I4973bc9f944e66af92731bf1edd2b39657f1782f
* | Clean up BatteryMeterDrawable internal api.Dan Sandler2017-02-081-4/+2
| | | | | | | | | | | | | | Bug: 32539932 Test: runtest -x frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/graph/BatteryMeterDrawableBaseTest.java Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/BatteryMeterDrawableTest.java Change-Id: Ifdc3368b930abcf248b60ee99f6f9139ad804f91
* | Merge "Move the logic of batteryMeterDrawable to settingslib"TreeHugger Robot2017-02-081-2/+3
|\ \ | |/ |/|
| * Move the logic of batteryMeterDrawable to settingslibjackqdyulei2017-02-071-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Settings, we also need a BatteryMeterDrawable to show battery meter, that's why I move it to settingslib. In this cl, what I have changed is listed below: 1. Create BatteryMeterDrawableLib that contains logic of battery drawing. 2. Still Keep the battery control logic in systemui. 3. Remove hardcoded battery color by using the color state lists. 4. Move some tests to settingslib Bug: 34771849 Test: make SettingsLibTests Change-Id: I39c0f0e31ca5e1b958467298db1d0590d16c9f6d
* | Fix leaks in sysuiJason Monk2017-02-021-31/+6
|/ | | | | | | | | | | Add support for testing for PluginManager and TunerService leaks and add tests for the known leaks and fix them. Also port PluginManager and TunerService to Dependency to make them easier to handle in tests. Test: runtest systemui Change-Id: I5642539ee24dd72f802905106decd0c87b41b4eb Fixes: 34846972
* Tuner: Nav bar tunerJason Monk2017-01-241-0/+7
| | | | | | | Usable edition. Test: Manual Change-Id: I20ec31560b89df8ded089974b7da1b60423cdb8b
* Cleanup and refactoring of test utilitiesJason Monk2016-12-081-0/+4
| | | | | | | | | - Make leak checking faster by converting to fakes - Requires making clean interfaces for all CallbackControllers - Integrate leak checking into the TestableContext Test: runtest systemui Change-Id: Ic57a06360d01a0323ef26735a543e9d1805459e2
* Add a temporary activity-alias for TunerActivity.Fan Zhang2016-10-061-0/+6
| | | | | | | | | | | | | Bug: 31781480 Test: make SystemUI, and manually inspected sysui appears in Settings. Turning off sysui tuner still works. The new alias is used by Settings to display sysui tuner in a different category instead of in homepage directly. The display location is controlled by category metadata. We need a alias because the category metadata is different between new/old activity. Change-Id: Ie4f2c1f6017459e34227155c83a7767f2003b18b
* Add upgrader for tunerJason Monk2016-02-011-0/+33
| | | | | | Unspam everybody's status bar icons with new default off icons. Change-Id: Id8375d1871705cc2b3bf258f934176c7510a0fde
* Referencing static interpolators. Winson2016-01-291-0/+1
| | | Change-Id: I5d2292016e869ed533f5873e373a1eccce651fc5
* SysUI Tuner: Color mod v2Jason Monk2016-01-271-0/+16
| | | | Change-Id: Id2734c2f4ee8724ef7d7e633fed124454e2d8c5a
* QS Customize panel cleanupJason Monk2016-01-061-7/+6
| | | | | | | | | - Use better service management to ensure onTileAdded and onTileRemoved are sent. - Fix not always registered as tunable bug. Bug: 26423350 Change-Id: I56156de8e0edf903509dac594b471700068ebe3e
* Better service management for QS 3rd party tilesJason Monk2016-01-041-2/+5
| | | | | | | | | | | | Better wrapper around the service that will handle rebinding when it dies, binding when it becomes available, and forwarding along all messages to the service once it binds. Also better handling of too many services at a time. Will only ever bind to at most 3 tiles and will manage which ones are most important to show based on pending clicks, last update, etc. Change-Id: I5f4da0bc751f7eb25baa32e5c0bb9f1bc418f5bb
* Fix tuner-related crashesJason Monk2015-11-101-1/+5
| | | | | | | | | - Make the dialog a fragment - add a null check Bug: 23341500 Bug: 25341011 Change-Id: I4d9991657c487ea3b5ced8cce2a5072c8adb2ee5
* Add more QS tilesJason Monk2015-09-291-2/+2
| | | | | | (only for paging prototype) Change-Id: Ifb09e3262540a486c9ee7e83a904f96cc4e33fec
* Fix tuner for secondary usersJason Monk2015-08-111-3/+14
| | | | | Bug: 23112000 Change-Id: I52aabdd1f345fb50e2c5015d233f4de3cc8d994d
* Move tuner enable point to QSJason Monk2015-07-221-0/+73
| | | | | | | | | | | | | | Long clicking on settings gear in QS causes it to accelarate and spin, when released it will open and enable the tuner. On first opening there will be a warning dialog. Also add way to disable tuner from tuner screen. This way it can be removed from its former home in Developer Settings. All tuner settings are reset when disabled to match developer settings behavior. Bug: 22462605 Change-Id: Ie700a6a15e6c3caccf7cd1885da73328e6fac6ab
* Setup service for tunable things to use.Jason Monk2015-06-071-0/+160
Change-Id: I13daa68d3d1ec5584fd84f356f4f5a0d1c0b853a