summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/fuelgauge/batterysaver
Commit message (Collapse)AuthorAgeFilesLines
* Migrate Settings to androidx.Aurimas Liutikas2018-04-203-7/+7
| | | | | | Test: make Settings Bug: 76692459 Change-Id: I941dea40562170649bf056e675cc32e5163c0e39
* Merge "Once auto-battery saver is ever set, don't show suggestion" into ↵Makoto Onuki2018-04-091-5/+3
|\ | | | | | | | | | | | | | | pi-dev am: 8064782d77 am: 24287ce1e1 Change-Id: I5a1e1873dd6732ecfc84d3f520b40816a76db2a8
| * Once auto-battery saver is ever set, don't show suggestionMakoto Onuki2018-04-041-5/+3
| | | | | | | | | | | | | | Bug: 77228046 Test: manual test after adb shell settings delete secure suppress_auto_battery_saver_suggestion Test: m -j ROBOTEST_FILTER=BatterySaverButtonPreferenceControllerTest RunSettingsRoboTests Change-Id: If0d26f05399a33269d9540e6e09292ce46765637
* | Autogenerate SearchIndexableResources subclassTony Mantler2018-04-031-0/+2
|/ | | | | | Bug: 77148954 Test: RunSettingsLibRoboTests RunSettingsRoboTests RunSettingsGoogleRoboTests RunArcSettingsRoboTests Change-Id: I842c42c55014c3310070ef22bd4f0d9a70dfd804
* Fix battery saver setting default stateMakoto Onuki2018-03-282-10/+16
| | | | | | | | | | | - Battery saver is off by default. Test: manual test with: settings delete global low_power && settings delete global low_power_trigger_level Test: b ROBOTEST_FILTER=BatterySaver RunSettingsRoboTests Bug: 76460719 Change-Id: I749bba9a5e36fe8ccee6e4ed843596bc94d96fcc Fix: 76460719
* Implement new BS warning / notification flow (2/2)Makoto Onuki2018-03-211-3/+4
| | | | | | Bug: 74120126 Test: Manual tests Change-Id: Ieea6ee97695cd5a30e55f5c6ccec8135ec2d0ef4
* Merge "Make battery seekbar update continuous" into pi-devTreeHugger Robot2018-03-101-0/+1
|\
| * Make battery seekbar update continuousLei Yu2018-03-091-0/+1
| | | | | | | | | | | | | | | | | | After this cl, when user slides the slider, the text will be updated continuously. Bug: 73763634 Test: Manual Change-Id: Ief9278d39426f6ec9ce9bbcc0be911d083673684
* | Get auto-battery saver threshold max from global settingMakoto Onuki2018-03-081-1/+21
|/ | | | | | | Bug: 74351418 Test: Manual test with "settings put global low_power_trigger_level_max 100" Test: m ROBOTEST_FILTER=AutoBatterySeekBarPreferenceControllerTest RunSettingsRoboTests Change-Id: Ice25835f36e7855e3ed665cd780d7eb1a26acd27
* More renaming in DashboardFragmentFan Zhang2018-02-231-1/+1
| | | | | | | | | getPreferenceControllers() -> createPreferenceControllers() for the same reason as in ag/3647936 Bug: 73668763 Test: robotests Change-Id: I97670a91a2a38d1c844d1b9d37f4222c5e6f45a0
* Rename Indexable::getAllPreferenceControllers.Fan Zhang2018-02-231-6/+2
| | | | | | | | | | | To getPreferenceControllers. "all" is redundant. Then internally, the old getPreferenceControllers() is renamed to createPreferenceControllers() to emphasize the controllers are created from code (versus the ones created from xml). Bug: 73668763 Test: robotest Change-Id: Ifec46aefdc2a418031c8e152028b30bdcd396fc7
* Change def value for LOW_POWER_MODE_TRIGGER_LEVELjackqdyulei2018-02-212-4/+9
| | | | | | Fixes: 73668682 Test: RunSettingsRoboTests Change-Id: I2122523c958f12bbdd658ae53d63b00769db3520
* Merge "Handle Looper in PreferenceController"TreeHugger Robot2018-02-141-1/+2
|\
| * Handle Looper in PreferenceControllerMatthew Fritze2018-02-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When indexing content in search, the preference controllers are init'd on the background thread, thus you can't create a handler without calling Looper.prepare(). We have PreferenceConttrollerContractTest to catch these errors, but it was not running in presubmit. Bug tracking: b/73242024 This caused the indexing thread to crash, thus not adding any non-indexable keys for settings results. Test: atest PreferenceControllerContractTest Fixes: 73168342 Change-Id: I89fe596435d317bb3e3baebdaace97a67700d77e
* | Use BatterySaverReceiver in battery saver settingsjackqdyulei2018-02-081-14/+17
| | | | | | | | | | | | | | | | | | | | | | | | Use this receiver to listen to following updates: 1. Plug state: if it is plugged in, disable this two state button, otherwise make it enabled 2. low power mode: If mode on, show "turn off" otherwise show "turn on" Bug: 72228477 Test: RunSettingsRoboTests Change-Id: Ib3d3df9f9a5fbac8b1b876c9e193beb75f522ebd
* | Add controller for battery saver buttonjackqdyulei2018-02-082-0/+86
|/ | | | | | Bug: 72228477 Test: RunSettingsRoboTests Change-Id: Iae9096a10553ea761d099e1e72c1de56b693bac0
* Add preference controller for battery seekbarjackqdyulei2018-02-052-0/+136
| | | | | | | | Also update SeekBarPreference so we can set min for it. Bug: 72228477 Test: RunSettingsRoboTests Change-Id: I5ab1bfd78b0bd461551012c121c7e76764843a30
* Revamp the battery saver pagejackqdyulei2018-02-052-0/+162
1. Make BatterySaverSettings extend from DashboardFragment 2. Add new layout 3. Add battery saver controller Future cl will add controllers for seekbar and button Bug: 72228477 Test: RunSettingsRoboTests Change-Id: I21fb62aef874c04eca2988271f2fd9d7aacb0c6c