Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10088ca2 authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Support Notification bitmap offloading.

Introduce a BitmapOffloadService in system_server that can take a Bitmap
and serve it as a Uri through a ContentProvider. This allows the Bitmap
to be written to disk, and to be loaded back into memory when needed.

The ContentProvider will only allow system_server to insert, modify and
delete entries. Users of the offloader must provide a PermissionChecker
interface to determine which callers are allowed to retrieve the
Bitmap associated with each entry.

The offloader does not persist the Bitmaps; they are wiped on every
system_server start. It will also only allow offloading Bitmaps if the
device has enough free storage space.

Modify NotificationManagerService to offload BigPicture Bitmaps, if
the corresponding flag is enabled.

Bug: 398153219
Flag: android.service.notification.notification_bitmap_offloading
Test: atest CtsNotificationTestCases
Change-Id: I531d3e81c8733f913ec7638f3877d11bb1229e88
parent 421044be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment