summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorFrancois Gaffie <francois.gaffie@renault.com>2021-04-20 08:59:46 +0200
committerEric Laurent <elaurent@google.com>2021-04-22 14:15:41 +0000
commit523571c3e8957d77fcf81411d0fcf94b9656b05c (patch)
tree45716993be765f8c75ce6f479e29dd043cbab552 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent6c57d63fcd1e2745def9d878a4de703e2d68e167 (diff)
AudioSystem: startAudioSource: ensure port handle initialized
In case of failure, port handle reported is not initialized by JNI layer. Any failing call to native AudioSystem::startAudioSource will not set the port handle, but returning an error status. JNI checks for port handle validity rather than error status. This CL ensures JNI checks first status to report an error, otherwise asserts on handle validity. Signed-off-by: Francois Gaffie <francois.gaffie@renault.com> Change-Id: I4eb8046a1263aeb7d464d35a360a8adb77c4b1a5 Merged-In: I4eb8046a1263aeb7d464d35a360a8adb77c4b1a5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions