summaryrefslogtreecommitdiff
path: root/security/keymint/aidl/default/RemotelyProvisionedComponent.cpp
diff options
context:
space:
mode:
authorMichael Butler <butlermichael@google.com>2021-03-24 21:26:02 -0700
committerMichael Butler <butlermichael@google.com>2021-04-07 12:54:18 -0700
commitdd53d04d8c19515223f86129ca043614e196840e (patch)
treedac66df765e9bc9551a091f5529f6acecaff3d08 /security/keymint/aidl/default/RemotelyProvisionedComponent.cpp
parentd1626e1a4a24cb1fd8e3c8d9bc1e5c4c18648311 (diff)
Improve the structure of NNAPI AIDL Memory
Prior to this change, the NN AIDL HAL created a Memory struct analogous to hidl_memory, consisting of a name, size, and native handle. However, this Memory struct is not very structured, and requires both the client and server to agree on how the data should be interpreted. This CL tightens the structure of the Memory representation by introducing Ashmem and MappableFile structs to android.hardware.common in order to hold specific file descriptors representing memory regions. Further, this CL redefines android.hardwre.neuralnetworks's Memory object as a union of the Ashmem, MappableFile, and (existing) HardwareBuffer memory types. This change also adds "com.android.neuralnetworks" to the graphics AIDL HAL's apex_available build rule. Bug: 183118727 Test: mma Change-Id: I32322df676b83597c9e95f13662c322a6a80accc Merged-In: I32322df676b83597c9e95f13662c322a6a80accc (cherry picked from commit 1158c80ff6f24223b8add271945b66f34db78d60)
Diffstat (limited to 'security/keymint/aidl/default/RemotelyProvisionedComponent.cpp')
0 files changed, 0 insertions, 0 deletions