summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor_parse.cpp
diff options
context:
space:
mode:
authorMichael Butler <butlermichael@google.com>2020-12-06 21:50:59 -0800
committerMichael Butler <butlermichael@google.com>2020-12-21 21:09:37 -0800
commit7fd03c265edbfd345fb70c6ae76fa93a81a26741 (patch)
tree64c8db6cb7b50257d1bd7f979dcc3ae1095cd1aa /identity/support/src/cppbor_parse.cpp
parentaad934baa7894472c5b1e177fb101ce0b2f61f51 (diff)
Cleanup NN callback error handling
This CL introduces a new templated class CallbackValue to handle HIDL "return value" callbacks in a terser and more readable way. This CL also introduces a new macro HANDLE_HAL_STATUS to return from the current function when an error is present with the ability to append a more descriptive error message. Finally, this CL changes the behavior of synchronous executions. Prior to this CL, IPreparedModel fell back to an asynchronous execution if the synchronous execution was allowed and failed. This change instead returns a failure if synchronous execution is allowed and fails. Bug: 173084343 Test: mma Change-Id: I62714a932e71dfc77401bbcb9eaaaf3d94fb9707 Merged-In: I62714a932e71dfc77401bbcb9eaaaf3d94fb9707 (cherry picked from commit 98ed9baf5de85599847b2b2f53585243c3b7b776)
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions