diff options
| author | 2021-12-13 21:17:47 -0800 | |
|---|---|---|
| committer | 2021-12-22 15:28:49 -0800 | |
| commit | b6580b4ac0a9917ce8f05989aeb5bdffdac8a303 (patch) | |
| tree | 88edc5746e81a6226c92eef09f2f483d0612ec28 /api/api.go | |
| parent | 238f9d577dee3515fd3489deb1f13852d7718e4d (diff) | |
Enhance resource sharing and enable ownership transfer
New public APIs
- Tuner.closeFrontend()
- Enables TIS app to continue using other resource while changing
frontend resource
- close & release Frontend resource when called on the owner, while
it unshares Frontend resource when called on the sharee.
- Lnb.addCallback(Callback, Executor) and Lnb.removeCallback(Callback)
- Enables TIS app to receive callback from the sharee
- Also helps with the ownership transfer
- Tuner.transferOwner(Tuner newOwner)
- Transfers the ownership of Frontend, CiCam, and Lnb resource
Additionally, added the following:
- Call nativeSetLnb() in requestFrontend() in case mLnb resource
is already held. (this use case becomes a possibility now that we
support Tuner.closeFrontend())
Bug: 192010866
Test: cts.TunerTest#testTransferOwner, testLnbAddAndRemoveSharee
Change-Id: I4c39c3726f0dd7bd1c153975ad01393ff2773005
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions