OSDN Git Service

Fix IAAudioService interface
authorAndy Hung <hunga@google.com>
Tue, 27 Jun 2017 23:17:40 +0000 (16:17 -0700)
committerAndy Hung <hunga@google.com>
Tue, 27 Jun 2017 23:17:40 +0000 (16:17 -0700)
commita88051816bc629eb20de8f4cecf2d4a4c1cbfc4a
tree8204cb3cdfbc4f4c0b76a78d41c817f1ec1d149d
parentd4ef5f1eafa099eb40e68a1dfc7b701e4a8d0b1a
Fix IAAudioService interface

Do not call data.checkInterface(this) unless needed,
and properly handle invalid interface.

This prevents stripping the file descriptor from the dump()
binder call.

Test: adb shell dumpsys media.aaudio
Bug: 38396780
Change-Id: I14c847e098145f49d4d5732787d3cc435dd05226
media/libaaudio/src/binding/IAAudioService.cpp