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 11:24:34 +0200
commit81b0519f04c9b378403fff9f399a2d085eecbf7d (patch)
tree7aa830c07ee07ada65250bf2eb9ab15c84d5376e /tools/aapt2/java/JavaClassGenerator_test.cpp
parent011805bf48366fe521e1b58c29873cd6d2f9432c (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. Bug: 186088557 Test: make Signed-off-by: Francois Gaffie <francois.gaffie@renault.com> Change-Id: I4eb8046a1263aeb7d464d35a360a8adb77c4b1a5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions