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
Loading
Please register or sign in to comment