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

Skip to content
Commit a9d45c71 authored by Chong Zhang's avatar Chong Zhang
Browse files

Add resource observer service

Add resource observer service so that clients can
register listeners to receive resource status change.

This is needed by transcoding service to properly
handle media resource lost. Resource lost itself is
detected by exceptions on MediaCodec, however in
order to resume the service, a notification from
ResourceManager is needed.

Note that the observer service is built as a separate
service so that client can access it without requesting
full resourcemanager service. It also allows us to
list the observer service interface as a stable interface
without having to lock down resourcemanager interface.

bug: 168307955
bug: 154733526

test:
- unit testing in this CL;
- manually tested using the service from media.transcoding
  and got codec updates and "adb shell dumpsys"

Change-Id: I8028c605600a40c1aa2c89850ef877a5bf1d0c09
parent ffebb80b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment