summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorGeorge Lu <georgelu@google.com>2019-03-27 15:36:53 -0700
committerGeorge Lu <georgelu@google.com>2019-03-28 21:05:42 +0000
commita276f7ed088b20fdd83e5f9bb6aa45fe8460c041 (patch)
tree615e632116bfacef7f6f6eecb473df365038146d /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd9ee5557f16ef2ba5e715ad67e19eab047929f2a (diff)
Fix for b/126739800: Enforce aggressive open policy on TunerSessions.
BroadcastRadioService currently enforces a 1 ITuner (AIDL) to 1 ITunerSession (HAL) relationship, so because ITunerSession.openSession() mandates an "aggressive open" policy, a similar policy must be enforced on ITuners. Failure to apply this policy resulted in RadioAppService holding onto an invalid ITuner, which caused the radio app to crash when it tried to use it. When an ITuner is closed due to the "aggressive open" policy, that client is notified through a callback to RadioTuner.Callback.onError(ERROR_HARDWARE_FAILURE). Fixes: 126739800 Test: Manually verified radio app usable after switching users Change-Id: I8769f7c41c8f92f024666341ff02e1fe9f137acc
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions