b2f089c468b57c0a222fe841f324b5204424e4a1 |
|
20-Apr-2018 |
Lei Yu <jackqdyulei@google.com> |
Update and expose the low battery tip. This tip was punted however we need to bring it back to P. It happens when battery level is low or remaining time is less than 3 hour. The suggestion is to turn on battery saver. 1. Extend tip from EarlyWarningTip since it has most common logic 2. Update the detector to align it to battery saver notifcation in systemui. 3. Update tip order to surface low battery tip. Follow CL will: 1. Hook up the low battery threshold to server side 2. Add test stub for this tip, so we could trigger it by adb. Change-Id: I14f9696a549393bf980e31838fb86afd5d9efbc7 Bug: 76113067 Test: RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java
|
69c370f594131d454901414e368b259a013436a7 |
|
20-Apr-2018 |
Lei Yu <jackqdyulei@google.com> |
Don't show high usage tip when device is charing The summary is "Battery may run out soon", it doesn't make sense when device is charging. Change-Id: I27394c8a75dac4dcad171e5e215102d39cb33546 Fixes: 78261389 Test: RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java
|
ede87ce19f297467217870027f970ad5fefdd9e3 |
|
28-Feb-2018 |
jackqdyulei <jackqdyulei@google.com> |
Add dialog for summary tip Also change SummaryTip to store the time data, which is used in the dialog. If "Full last charge" time is available, show normal message otherwise show message without it. Bug: 72997971 Test: RunSettingsRoboTests Change-Id: I4ce94f0935465a18275edb13e3be343313427c3b
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java
|
af2ece738730f605ecbbbffe78b6319faac39172 |
|
08-Feb-2018 |
jackqdyulei <jackqdyulei@google.com> |
Update detector and action for restrict app 1. In detector, read data from database and display it. 2. Update the RestrictAppAction to mark anomaly as handled if restriction is toggled. 3. Update the RestrictAppTip to handle state change. Bug: 72385333 Test: RunSettingsRoboTests Change-Id: I0bbe6f6fd049bf2e7a2bee1dee08d5199f922e31
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java
|
ab0cde6bad5005e5c7fba3e9e17ca6b6408a09ff |
|
12-Jan-2018 |
jackqdyulei <jackqdyulei@google.com> |
Add app restrict tip and detector 1. Add RestrictAppTip with two state(new and handled) 2. Add RestrictAppDetector, and future cl will hook up it with anomaly database 3. Add related dialog in BatteryTipDialogFragment Bug: 72385333 Test: RunSettingsRoboTests Change-Id: Ic10efc6387150e62b6c6ad8d4c0d16ff75564fac
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java
|
2e0bdc34f2a305b9bca26b95bafa5c49bb7f501f |
|
11-Jan-2018 |
jackqdyulei <jackqdyulei@google.com> |
Only show one tip at a time 1. Update the order for each tip. 2. Change BatteryTipPreferenceController and only show one precedent tip. 3. Update the SummaryDetector since now it doesn't need visibleTips Bug: 70570352 Test: RunSettingsRoboTests Change-Id: I9e2b8e72aad263f8a210c9320e0ea1eaaf8d5042
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java
|
62d6a9dca71cf1cedb34fdefc488b9463f5adc46 |
|
10-Jan-2018 |
jackqdyulei <jackqdyulei@google.com> |
Add early warning tip and detector When battery cannot make to usual charging time, this tip would suggest user to turn on battery saver. This tip has two visible state(NEW, HANDLED) and display different information. This cl also adds an action to turn on the battery saver. Bug: 70570352 Test: RunSettingsRoboTests Change-Id: I0e96554df12a0d6508c27174e16d8dca7f4e1fce
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java
|
e682126a11780abb45d4ecc365bf9705667680f6 |
|
10-Jan-2018 |
jackqdyulei <jackqdyulei@google.com> |
Add smart battery tip. Also move the action method from BatteryTip to TipAction. Since it need extra data that we don't want to store it in parcel. Bug: 71502850 Test: RunSettingsRoboTests Change-Id: Ib658426725158d26fcdd437fa8bf6bf24e9a8c14
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java
|
ca102facf0aa11a8205c0bf66979d40878f8d508 |
|
02-Jan-2018 |
jackqdyulei <jackqdyulei@google.com> |
Add high usage battery tip 1. Add both model and detector 2. Move the screen usage method to BatteryUtils so we could reuse it. 3. Add and update the tests Bug: 70570352 Test: RunSettingsRoboTests Change-Id: I6a7248d9d48ee8cb6fc2c18c8c225210d49b6bc9
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java
|
5f0b09648b6f43fc5ca01473266cf85b28de832b |
|
14-Dec-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add BatteryTipDetector and LowBatteryTip stuffs. This cl adds the infra of BatteryTipDetector and use LowBatteryTip as an example(tip model + detector). Also add SummaryTipDetector and related tests Bug: 70570352 Test: RunSettingsRoboTests Change-Id: Icf1349b6ede9eb7ee5ed69b39ee3a2661ac660fa
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java
|
fde63fc35118c05c12fd7e199d6092bbe2b243a1 |
|
12-Dec-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add infra for battery tip This cl adds the basic structure for battery tip: 1. BaseBatteryTip: Model class to represent the tip and build preference and dialog 2. SummaryTip: Display a general battery summary(i.e. your battery is good..) 3. BatteryTipLoader: AsyncLoader to load the battery tips. 4. BatteryTipPreferenceController: preference controller for preference group to display battery tips This cl also: 1. Remove the anomaly code in PowerUsageSummary and we will add it to app restriction in future. 2. Add preference_category_no_title.xml to avoid the extra 32dp blank at the top. Bug: 70570352 Test: RunSettingsRoboTests Change-Id: If91a553888e2eb91d55fb1d0d7bbea69652f144c
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java
|