summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorFrancois Gaffie <francois.gaffie@renault.com>2021-04-21 08:34:02 +0200
committerEric Laurent <elaurent@google.com>2021-04-22 14:20:20 +0000
commit2364bed6e6079a6a3f653429ab850bb7b9eed31f (patch)
tree38d035de2db4065ddb823375866610142f6d2cf1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent523571c3e8957d77fcf81411d0fcf94b9656b05c (diff)
HwAudioSource: wrong native handle check
Playing status of audio source is checked using the native handler not 0. However, if AudioSystem#startAudioSource fails, the native handler returned is not 0, but an error code. In fact AudioPolicyManager sets the PORT to NONE (0) and sets an error status. JNI layer transforms the failure status into a native handler returned to the caller. Signed-off-by: Francois Gaffie <francois.gaffie@renault.com> Change-Id: Iaa920c073885c2556a93a1b5ae23467fa6ffad4f Merged-In: Iaa920c073885c2556a93a1b5ae23467fa6ffad4f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions