commit | d34e965b387cb15a91fc44a475968b47fb740960 | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Wed Jul 03 14:26:57 2019 -0700 |
committer | Michael Butler <butlermichael@google.com> | Wed Jul 03 15:21:01 2019 -0700 |
tree | 18c05ae048381376ada51d016f6ab31dce03da7b | |
parent | 8ed448037a3538a9a10f6820ce425339438d1620 [diff] |
Check HIDL ICallback return values in sample drivers If a Return<T> containing a transport error is not checked (isOk()) before it is destroyed, the application will be terminated with a HIDL error. This CL checks all HIDL return values with isOk() in the driver, and logs any appropriate message. Bug: 118636733 Test: mma Test: NeuralNetworksTest_static (with sample drivers) Change-Id: I9b2547b7a6a76bd2c97f535ae55c38725dc6aed9