diff options
| author | Yifan Hong <elsk@google.com> | 2020-08-05 16:15:15 -0700 |
|---|---|---|
| committer | Yifan Hong <elsk@google.com> | 2020-08-07 17:07:09 -0700 |
| commit | 490fed50da04feb9e5ab69a78fde0685c45c389f (patch) | |
| tree | 1512a3c5d12f7d88920187cc5b9f4b0166bbd815 /trusty/coverage/coverage_test.cpp | |
| parent | e8525883d8643c0459440cabe50ab5fc7b635ab7 (diff) | |
charger: Load default resources from /system
When charger resources are missing from /product, before this change,
images are loaded from /res/images/charger. After this change, charger
first checks if the resource exists at that location, and if not, use
resource under /system/etc/res/images/charger.
On devices that uses resources from /product, this change has no effect.
On devices that uses resources from /res,
- if an old image is mounted at /, charger continues to load resources
from /res.
- if a new image is mounted at /, that is, battery_fail and
battery_scale may not exist under /res, charger loads them from /system.
There are no font files installed by modules defined here, so any
device-specific font files stay at /res.
Also create virtual function wrappers over minui APIs to be mocked
later.
See next change on moving battery_scale and battery_fail images to
/system.
Test: build and inspect system/etc/res/images/charger
Bug: 143907179
Change-Id: I4895b9602274fa4a1ebb4d7d3b842622b81b7b51
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions
