aosp-frameworks-ml-nn: Add non_const_ref for mojo type_mappings
`non_const_ref` field is required for type_mappings after CL:5527832
provided this option.
BUG=b:340134926
TEST=emerge-volteer aosp-frameworks-ml-nn
Change-Id: I8692d8cf1a793feef06965f2dbad5254bda6f36c
Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/frameworks/ml/+/5545683
Reviewed-by: Jim Pollock <[email protected]>
Commit-Queue: Jim Pollock <[email protected]>
Auto-Submit: Byron Lee <[email protected]>
Tested-by: Byron Lee <[email protected]>
diff --git a/chromeos/mojo_driver/mojom/type_mappings.json b/chromeos/mojo_driver/mojom/type_mappings.json
index 709cf68..c1328dc 100644
--- a/chromeos/mojo_driver/mojom/type_mappings.json
+++ b/chromeos/mojo_driver/mojom/type_mappings.json
@@ -12,6 +12,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -29,6 +30,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -46,6 +48,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -63,6 +66,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -80,6 +84,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -97,6 +102,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -114,6 +120,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -131,6 +138,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -148,6 +156,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -165,6 +174,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -182,6 +192,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -199,6 +210,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -216,6 +228,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -233,6 +246,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -250,6 +264,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -267,6 +282,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -284,6 +300,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -301,6 +318,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -318,6 +336,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
@@ -335,6 +354,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"HalInterfaces.h"
diff --git a/chromeos/mojo_driver_canonical/mojom/type_mappings.json b/chromeos/mojo_driver_canonical/mojom/type_mappings.json
index 1cdb757..228fe0d 100644
--- a/chromeos/mojo_driver_canonical/mojom/type_mappings.json
+++ b/chromeos/mojo_driver_canonical/mojom/type_mappings.json
@@ -12,6 +12,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -29,6 +30,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -46,6 +48,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -63,6 +66,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -80,6 +84,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -97,6 +102,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -114,6 +120,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -131,6 +138,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -148,6 +156,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -165,6 +174,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -182,6 +192,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -199,6 +210,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -216,6 +228,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IDevice.h"
@@ -233,6 +246,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IPreparedModel.h",
@@ -252,6 +266,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IPreparedModel.h",
@@ -271,6 +286,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IPreparedModel.h",
@@ -290,6 +306,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IPreparedModel.h",
@@ -309,6 +326,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IPreparedModel.h",
@@ -328,6 +346,7 @@
"force_serialize": false,
"move_only": false,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IPreparedModel.h",
@@ -347,6 +366,7 @@
"force_serialize": false,
"move_only": true,
"nullable_is_same_type": false,
+ "non_const_ref": false,
"non_copyable_non_movable": false,
"public_headers": [
"nnapi/IPreparedModel.h",