platform_hardware_interfaces/neuralnetworks
Michael Butler 7c0353f8e4 Handle case where NN AIDL callback is null in IDevice::prepareModel*
Prior to this change, if IDevice::prepareModel* was passed a null
callback, the code would still attempt to call "notify" on the callback
to return the error to the client. This CL ensures the "notify" method
will not be invoked if the callback is null.

Bug: 230914930
Test: mma
Test: presubmit
Change-Id: I4a15d02c4879a0261ec26cc0e7a47d0a4da86b8b
Merged-In: I4a15d02c4879a0261ec26cc0e7a47d0a4da86b8b
(cherry picked from commit d6f6d01499)
2022-04-29 23:39:27 +00:00
..
1.0 Move NN_TRY macro out of struct initialization 2022-04-28 22:05:37 +00:00
1.1 Move NN_TRY macro out of struct initialization 2022-04-28 22:05:37 +00:00
1.2 Move NN_TRY macro out of struct initialization 2022-04-28 22:05:37 +00:00
1.3 Move NN_TRY macro out of struct initialization 2022-04-28 22:05:37 +00:00
aidl Merge "Move NN_TRY macro out of struct initialization" into tm-dev 2022-04-29 18:06:29 +00:00
utils Handle case where NN AIDL callback is null in IDevice::prepareModel* 2022-04-29 23:39:27 +00:00
OWNERS Update NNAPI owners file 2022-01-04 09:45:05 -08:00
README Consolidate NNAPI OWNERS files 2021-11-15 20:22:41 +00:00
TEST_MAPPING Add canonical types adapters for NNAPI AIDL interface 2021-03-16 11:57:04 -07:00

NeuralNetworks sample driver implementation is located at
packages/modules/NeuralNetworks/driver/sample*.