diff options
| author | 2025-01-03 22:03:03 +0000 | |
|---|---|---|
| committer | 2025-01-25 00:32:47 +0000 | |
| commit | 9ef0692a504a73b989208bf2a49ddcb82fbde549 (patch) | |
| tree | fc18f311f1a4a1e3ebb13de78822ec230f48a22a /libs/androidfw/ResourceTimer.cpp | |
| parent | 2fb05f5a565bb47caa5de6076de278c673def147 (diff) | |
Include bitmap memory estimate in AppWidgetServiceImpl dumpsys output
This change adds a new field "view_bitmap_memory" to the
AppWidgetServiceImpl dumpsys output, which holds the estimate of bitmap
memory used by a widget held in memory by the service.
To support this, a new method RemoteViews.estimateTotalBitmapMemoryUsage
is added, which includes memory from both bitmap and Icon actions.
Also updates RemoteViews.estimateMemoryUsage to return a long. The
int sum can be overflowed to beat the memory check in
AppWidgetServiceImpl.
Bug: 377356756
Test: RemoteViewsTest#estimateMemoryUsage_*
Flag: EXEMPT bugfix
Change-Id: Id37d88bad93d154826e132dc243e24daf27d3905
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions