platform_hardware_interfaces/neuralnetworks
Michael Butler 11761e37a8 Remove 'blocking' param from NN ResilientPreparedModel and *Buffer
This change removes the 'blocking' parameter for the
ResilientPreparedModel::Factory and ResilientBuffer::Factory. The
'blocking' parameter is only useful for ResilientDevice::Factory, which
behind the scenes chooses between the HIDL calls IDevice::getService and
IDevice::tryGetService. The equivalent calls for IPreparedModel and
IBuffer are not used, as both are created from the IDevice object.

This change also modifies the ResilientDevice's device recovery
behavior. Prior to this change, ResilientDevice's recovery mechanism had
the following behavior:
* attempt to call a function
* if the function did not return a DEAD_OBJECT error, return
* if the function returned a DEAD_OBJECT error, attempt to recover the
  device
* whether or not the recovery succeeded, call the function again

This CL changes the behavior so that if device recovery fails,
ResilientDevice will not call the function the second time.

Bug: N/A
Test: mma
Change-Id: Icf37d05c884c740178324fcd046ea56914ef7d44
2020-12-17 11:09:15 -08:00
..
1.0 Cleanup NN callback error handling 2020-12-17 11:01:14 -08:00
1.1 Cleanup NN callback error handling 2020-12-17 11:01:14 -08:00
1.2 Cleanup NN callback error handling 2020-12-17 11:01:14 -08:00
1.3 Cleanup NN callback error handling 2020-12-17 11:01:14 -08:00
utils Remove 'blocking' param from NN ResilientPreparedModel and *Buffer 2020-12-17 11:09:15 -08:00
README Add README to NeuralNetworks HAL 2018-03-05 12:59:35 -08:00
TEST_MAPPING Move VtsHalNeuralnetworksV1_2/3TargetTest to group presubmit-large 2020-12-03 12:10:46 -08:00

NeuralNetworks sample driver implementation is located at
frameworks/ml/nn/driver/sample.