commit | c1de2dfe8602f10ed3086ab601b626bec632b198 | [log] [tgz] |
---|---|---|
author | jiabin <jiabin@google.com> | Tue May 07 14:26:40 2019 -0700 |
committer | jiabin <jiabin@google.com> | Wed May 08 15:19:13 2019 -0700 |
tree | 68241794ce067005b2770a31b232588ecb4c33fc | |
parent | a8cc6d418bdf459a0c0f79326b09faa45645850c [diff] |
Fix NPE when trying to get input device for attributes. 1. Return error when remote submix device is null. Remote submix device could be null in some case, such as device address error. Returning error to avoid native crash. 2. Unregister policy mix if set device connection fails. In that case, get input device could fail when policy mix is not found. Bug: 131906484 Test: Manually Change-Id: I03ab2bf217341b672c14adfba96d92ad9b453b01