TreeHugger Robot
db7e7d0920
Merge "Put Android Core Apps under System apps" into udc-dev
2023-03-14 08:14:09 +00:00
Zaiyue Xue
ae45b5812b
Merge "Change getSystemAppsAllowlist() returns an empty list instead of null." into udc-dev
2023-03-14 07:08:40 +00:00
Zaiyue Xue
702921c9ff
Put Android Core Apps under System apps
...
Bug: 269188405
Fix: 269188405
Test: manual
Change-Id: Ie79cdb71c48661b6b1e90b8d0e7836269cf665e7
2023-03-14 13:53:08 +08:00
Zaiyue Xue
f57ae783f3
Change getSystemAppsAllowlist() returns an empty list instead of null.
...
Bug: 265751163
Test: presubmit
Change-Id: Ide8b36345b328d5969b764b6c5e1503904e9ecaf
2023-03-14 13:45:48 +08:00
Zaiyue Xue
64965ded30
Replace stream().min() to Collections.min() to avoid stream object.
...
Bug: 273175976
Fix: 273175976
Test: manual
Change-Id: I36a162443e8e275b03f804edb4fc6b421deb345d
2023-03-13 19:06:53 +08:00
Zaiyue Xue
a528f1e382
Fix b/273175976: Screen time counts the time before full charge.
...
Use the raw start timestamp instead of the first timestamp in the level
map to query app usage time.
Bug: 273175976
Fix: 273175976
Test: manual
Change-Id: Idb43b2bd5378e2f34ec722354408754f4a439c6d
2023-03-13 15:59:05 +08:00
Marcelo Arteiro
7e2d77a717
Merge "Revert "Automated Token Alignment Android/Material"" into udc-dev
2023-03-10 13:43:23 +00:00
Marcelo Arteiro
1b599e0232
Revert "Automated Token Alignment Android/Material"
...
This reverts commit c9ca4a9014
.
Reason for revert: Black Search Box in Settings App (Light Theme)
Change-Id: I936e977ce044b8da41d818d6b3392adc6fd1e4e6
2023-03-09 23:40:40 +00:00
Ting-Kang Chang
ec90572f75
Add debug logs for updateBatteryStatus and TopLevelBatteryPreferenceController updating.
...
Bug: 271665638
Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge"
Change-Id: I1c9cc3cfcb54051223df2ad46947d7f0c1ebbdb0
2023-03-09 13:22:53 +08:00
TreeHugger Robot
e4058d20a7
Merge "Fix battery saver switch test case" into udc-dev
2023-03-07 13:13:19 +00:00
Wesley Wang
5d18287b3b
Fix battery saver switch test case
...
- Fix the test fail which cause by ag/21784766, and also mentioned at
ag/21644522
Bug: 260380584
Test: make SettingsRoboTests
Change-Id: I72a7a24f57a7eeeacefeb40eef3025398329379b
2023-03-07 11:44:55 +00:00
Marcelo Arteiro
b93f186df4
Merge "Automated Token Alignment Android/Material" into udc-dev
2023-03-06 12:46:02 +00:00
ykhung
ecb91b7d36
Update the incompatible banner tip icon based on UX refinement
...
Bug: 246960554
Test: presubmit & manual
Change-Id: I5fab570e1a8947d70a7923338c4e74caa67bcd2e
2023-03-05 11:30:19 +08:00
ykhung
3ae46cd6ec
Add a new config for checking BatteryManager show/hide rule
...
Bug: 271387663
Test: presubmit
Change-Id: If24b5e6de630afe972ad7ff7af866cb587db0a56
2023-03-05 10:54:01 +08:00
ykhung
82d5103f07
Hide BatteryManagerPreference if there is no adaptive charging
...
Fix: 271387663
Test: presubmit
Change-Id: I12c511f17f23b21f6a584d86e854683fba037047
2023-03-03 17:46:27 +08:00
ykhung
b25a824f50
Update the battery saver scheduler string
...
Fix: 266030870
Test: presubmit
Change-Id: I271f02b6a6044ba39d23e9ad1eb1decebe4eec85
2023-03-03 12:16:29 +08:00
Zaiyue Xue
6d939b34dc
Fix b/265387286: The total percentage of all apps is not 100%
...
Bug: 265387286
Fix: 265387286
Test: manual
Change-Id: I654f8211a45c818f9a2d4867ac679e72c9ce6eb1
2023-02-24 19:19:28 +08:00
TreeHugger Robot
802bff9092
Merge "Fix b/265364351: Light theme icons opacity is too light" into udc-dev
2023-02-24 03:10:42 +00:00
Zaiyue Xue
ea5b49f799
Fix b/265364351: Light theme icons opacity is too light
...
https://screenshot.googleplex.com/Avqsw3gb2tjKqrK.png
https://screenshot.googleplex.com/46AZuJMjp2HMyqd.png
https://screenshot.googleplex.com/9mE3XutRUNaGckg.png
https://screenshot.googleplex.com/5rNUKMJjhNBNShZ.png
Bug: 265364351
Fix: 265364351
Test: manual
Change-Id: I7521030f1a5d84cd88027fb84a465623610707fb
2023-02-23 21:12:29 +08:00
Zaiyue Xue
2959831d59
Merge "Fix b/265364507: Merge GPU and TPU into Others in battery usage system components list" into udc-dev
2023-02-23 11:46:58 +00:00
Zaiyue Xue
cbd5223bc7
Fix b/265364507: Merge GPU and TPU into Others in battery usage system components list
...
Bug: 265364507
Fix: 265364507
Test: manual
Change-Id: Ia428a0854c42dacff130c2492ae11642643043b0
2023-02-23 16:01:07 +08:00
YK Hung
629782cc88
Merge "Fix b/270290013: Updates battery usage system component icons" into udc-dev
2023-02-22 15:06:44 +00:00
Zaiyue Xue
7350621d40
Fix b/270290013: Updates battery usage system component icons
...
Bug: 270290013
Fix: 270290013
Test: manual
Change-Id: I92cda88269fdee767b00cd1b9aa78062015a5095
2023-02-22 18:23:20 +08:00
Zaiyue Xue
cc9df56ed4
Fix b/265364509 Update battery usage page footer string
...
Bug: 265364509
Fix: 265364509
Test: manual
Change-Id: I1deef3157ae7c5a8425e2ae438dacebcadd25fce
2023-02-22 15:55:51 +08:00
Nikhil Kumar
846d1d26f4
Get profile parent's context in case of work profile
...
In the headless system user mode a non-system user can also have
a work profile.
Refactor DatabaseUtils to get the profile parent's context when
the user is a work profile.
Bug: 270039752
Test: make RunSettingsRoboTests
Change-Id: I1fb78c9d91d59d50880a1ea0dd5f83a3d11dd08f
2023-02-20 18:38:13 +00:00
Marcelo Arteiro
c9ca4a9014
Automated Token Alignment Android/Material
...
Test: Treehugger
Bug: 268682423
Change-Id: Ia1f84669090e04b3a2aaac82bb5971032d74a125
2023-02-17 15:14:30 +00:00
Alex Johnston
97658e3a1f
Merge "Implement OP_SYSTEM_EXEMPT_FROM_POWER_RESTRICTIONS exemption"
2023-02-15 09:37:12 +00:00
TreeHugger Robot
7c7e235730
Merge "Update battery usage app list filter logic:"
2023-02-13 09:05:01 +00:00
Zaiyue Xue
7fad47a8d7
Update battery usage app list filter logic:
...
(1) Add app screen on time thrshold 100 ms.
(2) Change app battery comsuption threshold from 0.1 mA to 1 mA.
Apps meet one of above conditions will be shown.
Bug: 264840285
Test: manual
Change-Id: Icfb304f09c49248397350ebe55bf06f3eb82d639
2023-02-13 15:30:03 +08:00
Alex Johnston
2747dc6e8c
Implement OP_SYSTEM_EXEMPT_FROM_POWER_RESTRICTIONS exemption
...
OP_SYSTEM_EXEMPT_FROM_POWER_RESTRICTIONS details:
* An app with this appop will be made exempt from all
power restrictions, including app standby and doze.
* In addition, the app will be able to start fgs from
the bg, and the user will not be able to stop fgs
run by the app.
Changes:
* Implement the OP_SYSTEM_EXEMPT_FROM_POWER_RESTRICTIONS
Bug: 246330879
Test: atest PowerAllowlistBackendTest
Manual testing:
- Give OP_SYSTEM_EXEMPT_FROM_POWER_RESTRICTIONS appop to TestDPC app
- Verify the app can start fg services from the bg
- Verify fgs started by the app cannot be stopped
- Verify the app cannot be put into background restricted via Settings
Change-Id: If9e76076c59195f1e6e5f3eee3c8e7a0c754d8de
2023-02-10 13:37:38 +00:00
YK Hung
54e727b2d8
Merge "Replace getBatteryIntent() to centralized method"
2023-02-09 06:33:46 +00:00
YK Hung
cc9ae66987
Merge "Remove legacy useless BatteryTip cache mechanism"
2023-02-09 03:24:38 +00:00
TreeHugger Robot
5982ef23af
Merge "Optimize the tip detector loading performance"
2023-02-09 03:21:04 +00:00
ykhung
7cf9d0108e
Replace getBatteryIntent() to centralized method
...
Replace the current getBatteryIntent() in the Settings into the
centralized method in the SettingsLib
Bug: N/A
Test: presubmit
Change-Id: If27d01c4ff52259e0185ca5d16ac88ca1bebac82
2023-02-09 11:13:27 +08:00
ykhung
4a1f04e70d
Remove legacy useless BatteryTip cache mechanism
...
Remove the legacy BatteryTip list cache mechanism to avoid not using the
new re-create BatteryTip list, but only update its state and invoke
updatePreference(). We should use the new BatteryTip list to apply the
new detected results.
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge.batterytip"
Change-Id: I884f04927403ad4d97b459ff5477a1fe9df21553
2023-02-09 01:11:25 +08:00
ykhung
19b913cd0c
Optimize the tip detector loading performance
...
Optimize the tip detector loading performance by removing 3 times
redundant IPC with PowerManager and BatteryManager
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge.batterytip"
Change-Id: I0df8b0c600b743c93dfcdd66aeae07e2aba6b797
2023-02-09 00:46:58 +08:00
Zaiyue Xue
d4aa8d764d
[Battery Usage] Make the timestamp slot info text format localizable.
...
(1) Some languages could localize the hephen to "~" or "to".
(2) Both 12hr format and 24hr format will have spaces around the hyphen.
Bug: 267185303
Bug: 266839251
Bug: 267349989
Bug: 267572852
Bug: 267595534
Test: manual
Change-Id: I62ff37d9ab20292621ee29ee3080cea7f8fd0fdb
2023-02-08 15:38:42 +08:00
TreeHugger Robot
6f76d5dc91
Merge "Fix b/265746746: Announce "Battery usage for [slot_timestamp]" instead of changing focus when Talk Back on."
2023-02-06 10:49:46 +00:00
Zaiyue Xue
e04ffdea58
Fix b/265746746: Announce "Battery usage for [slot_timestamp]" instead of changing focus when Talk Back on.
...
https://drive.google.com/file/d/173RPKsnIE7ZhBAJLrivqkbiWg9Ay41bC/view?usp=sharing&resourcekey=0-jHJ7vZ9BEhzxdWncqCQVQg
Bug: 265746746
Fix: 265746746
Test: manual
Change-Id: Iad92eff50d73853793daa9d6d3551768678c2eb2
2023-02-06 17:38:29 +08:00
ykhung
a43f9ead39
Add incompatible charging battery tip detector
...
Fix: 263193978
Bug: 246960554
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge.batterytip"
Change-Id: Ifbfd28e81b03aa8e1bb4cc70199b3262e21931cc
2023-02-06 08:48:49 +00:00
ykhung
c6d34d6c58
Add incompatible charging battery tip UI and card skeleton
...
Bug: 263193978
Bug: 246960554
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge.batterytip"
Change-Id: I8180022bd39f66c88463a2552c6050669bb0357c
2023-02-06 03:25:23 +00:00
ykhung
2593fcd1bf
Clean up useless battery tips and detectors
...
Bug: 263193978
Test: make -j64 RunSettingsRoboTests
ROBOTEST_FILTER="com.android.settings.fuelgauge.batterytip"
Change-Id: Idfe03eee5acee33126f1805ef45ccc4a9fc7e7a8
2023-02-05 18:34:00 +08:00
Zaiyue Xue
2b66ff613d
Remove the comma between hour and minutes in app list.
...
Bug: 267184192
Fix: 267184192
Test: presubmit
Change-Id: Ic37046218ffe501600d5d247a10d3f091acf131b
2023-02-03 16:06:14 +08:00
TreeHugger Robot
2174e45c73
Merge "Only log the names of the app packages which are installed from Google Play Store in battery usage app optimization page"
2023-02-02 09:55:17 +00:00
Zaiyue Xue
65cfcbe486
Only log the names of the app packages which are installed from Google Play Store in battery usage app optimization page
...
This is to meet the Guidelines for Logging Package Names: go/package-name-logging-guidance
Bug: 267430574
Fix: 267430574
Test: presubmit
Change-Id: Icf10000f5dcf87e45175d4005af8365191ad444d
2023-02-02 16:51:13 +08:00
TreeHugger Robot
e0f2d9c879
Merge "[Battery Usage U] Add logging for selecting by the dropdown in battery usage page"
2023-01-31 13:30:00 +00:00
Zaiyue Xue
495d6d5030
[Battery Usage U] Add logging for selecting by the dropdown in battery usage page
...
Bug: 267270271
Fix: 267270271
Test: presubmit
Change-Id: I5c74afb48188b8bab2d4d1d087bc62db3baa4963
2023-01-31 20:02:35 +08:00
TreeHugger Robot
1b73b6c63b
Merge "Fix battery usage chart error when daylight saving."
2023-01-31 11:44:39 +00:00
Zaiyue Xue
4af2ef80b0
Fix b/266795925: Different font size in IW language.
...
Bug: 266795925
Fix: 266795925
Test: manual
Change-Id: I9bd726852484cb33e2b442e5da19d2ac99e596ed
2023-01-31 18:40:01 +08:00
Zaiyue Xue
d72ff28a52
Fix battery usage chart error when daylight saving.
...
Bug: 258000978
Fix: 258000978
Test: presubmit
Change-Id: Ia8746ec67f0f37dd35043f78f2aa55d2ef7c215b
2023-01-31 18:33:47 +08:00