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-17 11:01:14 -0800
commit98ed9baf5de85599847b2b2f53585243c3b7b776 (patch)
tree2bcf3bb58bad33bf351db49f54244b653266e602 /identity/support/src/cppbor_parse.cpp
parent6e46896d0f9469f01b48ed94f760118b88040a03 (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
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions