summaryrefslogtreecommitdiff
path: root/tests/net/java/com/android/server/ConnectivityServiceTest.java
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 11:24:52 +0200
commit5253a31c7adad9b07f0a8c3b59f59fb91e97674f (patch)
tree7612c0f1f9db6986be64a9d5ad846299a7971301 /tests/net/java/com/android/server/ConnectivityServiceTest.java
parent81b0519f04c9b378403fff9f399a2d085eecbf7d (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. Bug: 186088557 Test: make Signed-off-by: Francois Gaffie <francois.gaffie@renault.com> Change-Id: Iaa920c073885c2556a93a1b5ae23467fa6ffad4f
Diffstat (limited to 'tests/net/java/com/android/server/ConnectivityServiceTest.java')
0 files changed, 0 insertions, 0 deletions