| 1 |
/* |
| 2 |
* This file is auto-generated. DO NOT MODIFY. |
| 3 |
* Using: out/host/linux-x86/bin/aidl --lang=rust -Weverything -Wno-missing-permission-annotation --min_sdk_version current --ninja -d out/soong/.intermediates/system/tools/aidl/aidl-test-fixedsizearray-rust-source/gen/android/aidl/fixedsizearray/FixedSizeArrayExample.rs.d -o out/soong/.intermediates/system/tools/aidl/aidl-test-fixedsizearray-rust-source/gen -Nsystem/tools/aidl/tests system/tools/aidl/tests/android/aidl/fixedsizearray/FixedSizeArrayExample.aidl |
| 4 |
*/ |
| 5 |
#![forbid(unsafe_code)] |
| 6 |
#![cfg_attr(rustfmt, rustfmt_skip)] |
| 7 |
#[derive(Debug, PartialEq)] |
| 8 |
pub struct r#FixedSizeArrayExample { |
| 9 |
pub r#int2x3: [[i32; 3]; 2], |
| 10 |
pub r#boolArray: [bool; 2], |
| 11 |
pub r#byteArray: [u8; 2], |
| 12 |
pub r#charArray: [u16; 2], |
| 13 |
pub r#intArray: [i32; 2], |
| 14 |
pub r#longArray: [i64; 2], |
| 15 |
pub r#floatArray: [f32; 2], |
| 16 |
pub r#doubleArray: [f64; 2], |
| 17 |
pub r#stringArray: [String; 2], |
| 18 |
pub r#byteEnumArray: [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_8_ByteEnum; 2], |
| 19 |
pub r#intEnumArray: [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_7_IntEnum; 2], |
| 20 |
pub r#longEnumArray: [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_8_LongEnum; 2], |
| 21 |
pub r#parcelableArray: [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 2], |
| 22 |
pub r#boolMatrix: [[bool; 2]; 2], |
| 23 |
pub r#byteMatrix: [[u8; 2]; 2], |
| 24 |
pub r#charMatrix: [[u16; 2]; 2], |
| 25 |
pub r#intMatrix: [[i32; 2]; 2], |
| 26 |
pub r#longMatrix: [[i64; 2]; 2], |
| 27 |
pub r#floatMatrix: [[f32; 2]; 2], |
| 28 |
pub r#doubleMatrix: [[f64; 2]; 2], |
| 29 |
pub r#stringMatrix: [[String; 2]; 2], |
| 30 |
pub r#byteEnumMatrix: [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_8_ByteEnum; 2]; 2], |
| 31 |
pub r#intEnumMatrix: [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_7_IntEnum; 2]; 2], |
| 32 |
pub r#longEnumMatrix: [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_8_LongEnum; 2]; 2], |
| 33 |
pub r#parcelableMatrix: [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 2]; 2], |
| 34 |
pub r#boolNullableArray: Option<[bool; 2]>, |
| 35 |
pub r#byteNullableArray: Option<[u8; 2]>, |
| 36 |
pub r#charNullableArray: Option<[u16; 2]>, |
| 37 |
pub r#intNullableArray: Option<[i32; 2]>, |
| 38 |
pub r#longNullableArray: Option<[i64; 2]>, |
| 39 |
pub r#floatNullableArray: Option<[f32; 2]>, |
| 40 |
pub r#doubleNullableArray: Option<[f64; 2]>, |
| 41 |
pub r#stringNullableArray: Option<[Option<String>; 2]>, |
| 42 |
pub r#byteEnumNullableArray: Option<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_8_ByteEnum; 2]>, |
| 43 |
pub r#intEnumNullableArray: Option<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_7_IntEnum; 2]>, |
| 44 |
pub r#longEnumNullableArray: Option<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_8_LongEnum; 2]>, |
| 45 |
pub r#binderNullableArray: Option<[Option<binder::SpIBinder>; 2]>, |
| 46 |
pub r#pfdNullableArray: Option<[Option<binder::ParcelFileDescriptor>; 2]>, |
| 47 |
pub r#parcelableNullableArray: Option<[Option<crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable>; 2]>, |
| 48 |
pub r#interfaceNullableArray: Option<[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_15_IEmptyInterface>>; 2]>, |
| 49 |
pub r#boolNullableMatrix: Option<[[bool; 2]; 2]>, |
| 50 |
pub r#byteNullableMatrix: Option<[[u8; 2]; 2]>, |
| 51 |
pub r#charNullableMatrix: Option<[[u16; 2]; 2]>, |
| 52 |
pub r#intNullableMatrix: Option<[[i32; 2]; 2]>, |
| 53 |
pub r#longNullableMatrix: Option<[[i64; 2]; 2]>, |
| 54 |
pub r#floatNullableMatrix: Option<[[f32; 2]; 2]>, |
| 55 |
pub r#doubleNullableMatrix: Option<[[f64; 2]; 2]>, |
| 56 |
pub r#stringNullableMatrix: Option<[[Option<String>; 2]; 2]>, |
| 57 |
pub r#byteEnumNullableMatrix: Option<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_8_ByteEnum; 2]; 2]>, |
| 58 |
pub r#intEnumNullableMatrix: Option<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_7_IntEnum; 2]; 2]>, |
| 59 |
pub r#longEnumNullableMatrix: Option<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_8_LongEnum; 2]; 2]>, |
| 60 |
pub r#binderNullableMatrix: Option<[[Option<binder::SpIBinder>; 2]; 2]>, |
| 61 |
pub r#pfdNullableMatrix: Option<[[Option<binder::ParcelFileDescriptor>; 2]; 2]>, |
| 62 |
pub r#parcelableNullableMatrix: Option<[[Option<crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable>; 2]; 2]>, |
| 63 |
pub r#interfaceNullableMatrix: Option<[[Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_15_IEmptyInterface>>; 2]; 2]>, |
| 64 |
} |
| 65 |
impl Default for r#FixedSizeArrayExample { |
| 66 |
fn default() -> Self { |
| 67 |
Self { |
| 68 |
r#int2x3: [[1, 2, 3], [4, 5, 6]], |
| 69 |
r#boolArray: [Default::default(), Default::default()], |
| 70 |
r#byteArray: [Default::default(), Default::default()], |
| 71 |
r#charArray: [Default::default(), Default::default()], |
| 72 |
r#intArray: [Default::default(), Default::default()], |
| 73 |
r#longArray: [Default::default(), Default::default()], |
| 74 |
r#floatArray: [Default::default(), Default::default()], |
| 75 |
r#doubleArray: [Default::default(), Default::default()], |
| 76 |
r#stringArray: ["hello".into(), "world".into()], |
| 77 |
r#byteEnumArray: [Default::default(), Default::default()], |
| 78 |
r#intEnumArray: [Default::default(), Default::default()], |
| 79 |
r#longEnumArray: [Default::default(), Default::default()], |
| 80 |
r#parcelableArray: [Default::default(), Default::default()], |
| 81 |
r#boolMatrix: [[Default::default(), Default::default()], [Default::default(), Default::default()]], |
| 82 |
r#byteMatrix: [[Default::default(), Default::default()], [Default::default(), Default::default()]], |
| 83 |
r#charMatrix: [[Default::default(), Default::default()], [Default::default(), Default::default()]], |
| 84 |
r#intMatrix: [[Default::default(), Default::default()], [Default::default(), Default::default()]], |
| 85 |
r#longMatrix: [[Default::default(), Default::default()], [Default::default(), Default::default()]], |
| 86 |
r#floatMatrix: [[Default::default(), Default::default()], [Default::default(), Default::default()]], |
| 87 |
r#doubleMatrix: [[Default::default(), Default::default()], [Default::default(), Default::default()]], |
| 88 |
r#stringMatrix: [["hello".into(), "world".into()], ["Ciao".into(), "mondo".into()]], |
| 89 |
r#byteEnumMatrix: [[Default::default(), Default::default()], [Default::default(), Default::default()]], |
| 90 |
r#intEnumMatrix: [[Default::default(), Default::default()], [Default::default(), Default::default()]], |
| 91 |
r#longEnumMatrix: [[Default::default(), Default::default()], [Default::default(), Default::default()]], |
| 92 |
r#parcelableMatrix: [[Default::default(), Default::default()], [Default::default(), Default::default()]], |
| 93 |
r#boolNullableArray: Default::default(), |
| 94 |
r#byteNullableArray: Default::default(), |
| 95 |
r#charNullableArray: Default::default(), |
| 96 |
r#intNullableArray: Default::default(), |
| 97 |
r#longNullableArray: Default::default(), |
| 98 |
r#floatNullableArray: Default::default(), |
| 99 |
r#doubleNullableArray: Default::default(), |
| 100 |
r#stringNullableArray: Some([Some("hello".into()), Some("world".into())]), |
| 101 |
r#byteEnumNullableArray: Default::default(), |
| 102 |
r#intEnumNullableArray: Default::default(), |
| 103 |
r#longEnumNullableArray: Default::default(), |
| 104 |
r#binderNullableArray: Default::default(), |
| 105 |
r#pfdNullableArray: Default::default(), |
| 106 |
r#parcelableNullableArray: Default::default(), |
| 107 |
r#interfaceNullableArray: Default::default(), |
| 108 |
r#boolNullableMatrix: Default::default(), |
| 109 |
r#byteNullableMatrix: Default::default(), |
| 110 |
r#charNullableMatrix: Default::default(), |
| 111 |
r#intNullableMatrix: Default::default(), |
| 112 |
r#longNullableMatrix: Default::default(), |
| 113 |
r#floatNullableMatrix: Default::default(), |
| 114 |
r#doubleNullableMatrix: Default::default(), |
| 115 |
r#stringNullableMatrix: Some([[Some("hello".into()), Some("world".into())], [Some("Ciao".into()), Some("mondo".into())]]), |
| 116 |
r#byteEnumNullableMatrix: Default::default(), |
| 117 |
r#intEnumNullableMatrix: Default::default(), |
| 118 |
r#longEnumNullableMatrix: Default::default(), |
| 119 |
r#binderNullableMatrix: Default::default(), |
| 120 |
r#pfdNullableMatrix: Default::default(), |
| 121 |
r#parcelableNullableMatrix: Default::default(), |
| 122 |
r#interfaceNullableMatrix: Default::default(), |
| 123 |
} |
| 124 |
} |
| 125 |
} |
| 126 |
impl binder::Parcelable for r#FixedSizeArrayExample { |
| 127 |
fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { |
| 128 |
parcel.sized_write(|subparcel| { |
| 129 |
subparcel.write(&self.r#int2x3)?; |
| 130 |
subparcel.write(&self.r#boolArray)?; |
| 131 |
subparcel.write(&self.r#byteArray)?; |
| 132 |
subparcel.write(&self.r#charArray)?; |
| 133 |
subparcel.write(&self.r#intArray)?; |
| 134 |
subparcel.write(&self.r#longArray)?; |
| 135 |
subparcel.write(&self.r#floatArray)?; |
| 136 |
subparcel.write(&self.r#doubleArray)?; |
| 137 |
subparcel.write(&self.r#stringArray)?; |
| 138 |
subparcel.write(&self.r#byteEnumArray)?; |
| 139 |
subparcel.write(&self.r#intEnumArray)?; |
| 140 |
subparcel.write(&self.r#longEnumArray)?; |
| 141 |
subparcel.write(&self.r#parcelableArray)?; |
| 142 |
subparcel.write(&self.r#boolMatrix)?; |
| 143 |
subparcel.write(&self.r#byteMatrix)?; |
| 144 |
subparcel.write(&self.r#charMatrix)?; |
| 145 |
subparcel.write(&self.r#intMatrix)?; |
| 146 |
subparcel.write(&self.r#longMatrix)?; |
| 147 |
subparcel.write(&self.r#floatMatrix)?; |
| 148 |
subparcel.write(&self.r#doubleMatrix)?; |
| 149 |
subparcel.write(&self.r#stringMatrix)?; |
| 150 |
subparcel.write(&self.r#byteEnumMatrix)?; |
| 151 |
subparcel.write(&self.r#intEnumMatrix)?; |
| 152 |
subparcel.write(&self.r#longEnumMatrix)?; |
| 153 |
subparcel.write(&self.r#parcelableMatrix)?; |
| 154 |
subparcel.write(&self.r#boolNullableArray)?; |
| 155 |
subparcel.write(&self.r#byteNullableArray)?; |
| 156 |
subparcel.write(&self.r#charNullableArray)?; |
| 157 |
subparcel.write(&self.r#intNullableArray)?; |
| 158 |
subparcel.write(&self.r#longNullableArray)?; |
| 159 |
subparcel.write(&self.r#floatNullableArray)?; |
| 160 |
subparcel.write(&self.r#doubleNullableArray)?; |
| 161 |
subparcel.write(&self.r#stringNullableArray)?; |
| 162 |
subparcel.write(&self.r#byteEnumNullableArray)?; |
| 163 |
subparcel.write(&self.r#intEnumNullableArray)?; |
| 164 |
subparcel.write(&self.r#longEnumNullableArray)?; |
| 165 |
subparcel.write(&self.r#binderNullableArray)?; |
| 166 |
subparcel.write(&self.r#pfdNullableArray)?; |
| 167 |
subparcel.write(&self.r#parcelableNullableArray)?; |
| 168 |
subparcel.write(&self.r#interfaceNullableArray)?; |
| 169 |
subparcel.write(&self.r#boolNullableMatrix)?; |
| 170 |
subparcel.write(&self.r#byteNullableMatrix)?; |
| 171 |
subparcel.write(&self.r#charNullableMatrix)?; |
| 172 |
subparcel.write(&self.r#intNullableMatrix)?; |
| 173 |
subparcel.write(&self.r#longNullableMatrix)?; |
| 174 |
subparcel.write(&self.r#floatNullableMatrix)?; |
| 175 |
subparcel.write(&self.r#doubleNullableMatrix)?; |
| 176 |
subparcel.write(&self.r#stringNullableMatrix)?; |
| 177 |
subparcel.write(&self.r#byteEnumNullableMatrix)?; |
| 178 |
subparcel.write(&self.r#intEnumNullableMatrix)?; |
| 179 |
subparcel.write(&self.r#longEnumNullableMatrix)?; |
| 180 |
subparcel.write(&self.r#binderNullableMatrix)?; |
| 181 |
subparcel.write(&self.r#pfdNullableMatrix)?; |
| 182 |
subparcel.write(&self.r#parcelableNullableMatrix)?; |
| 183 |
subparcel.write(&self.r#interfaceNullableMatrix)?; |
| 184 |
Ok(()) |
| 185 |
}) |
| 186 |
} |
| 187 |
fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { |
| 188 |
parcel.sized_read(|subparcel| { |
| 189 |
if subparcel.has_more_data() { |
| 190 |
self.r#int2x3 = subparcel.read()?; |
| 191 |
} |
| 192 |
if subparcel.has_more_data() { |
| 193 |
self.r#boolArray = subparcel.read()?; |
| 194 |
} |
| 195 |
if subparcel.has_more_data() { |
| 196 |
self.r#byteArray = subparcel.read()?; |
| 197 |
} |
| 198 |
if subparcel.has_more_data() { |
| 199 |
self.r#charArray = subparcel.read()?; |
| 200 |
} |
| 201 |
if subparcel.has_more_data() { |
| 202 |
self.r#intArray = subparcel.read()?; |
| 203 |
} |
| 204 |
if subparcel.has_more_data() { |
| 205 |
self.r#longArray = subparcel.read()?; |
| 206 |
} |
| 207 |
if subparcel.has_more_data() { |
| 208 |
self.r#floatArray = subparcel.read()?; |
| 209 |
} |
| 210 |
if subparcel.has_more_data() { |
| 211 |
self.r#doubleArray = subparcel.read()?; |
| 212 |
} |
| 213 |
if subparcel.has_more_data() { |
| 214 |
self.r#stringArray = subparcel.read()?; |
| 215 |
} |
| 216 |
if subparcel.has_more_data() { |
| 217 |
self.r#byteEnumArray = subparcel.read()?; |
| 218 |
} |
| 219 |
if subparcel.has_more_data() { |
| 220 |
self.r#intEnumArray = subparcel.read()?; |
| 221 |
} |
| 222 |
if subparcel.has_more_data() { |
| 223 |
self.r#longEnumArray = subparcel.read()?; |
| 224 |
} |
| 225 |
if subparcel.has_more_data() { |
| 226 |
self.r#parcelableArray = subparcel.read()?; |
| 227 |
} |
| 228 |
if subparcel.has_more_data() { |
| 229 |
self.r#boolMatrix = subparcel.read()?; |
| 230 |
} |
| 231 |
if subparcel.has_more_data() { |
| 232 |
self.r#byteMatrix = subparcel.read()?; |
| 233 |
} |
| 234 |
if subparcel.has_more_data() { |
| 235 |
self.r#charMatrix = subparcel.read()?; |
| 236 |
} |
| 237 |
if subparcel.has_more_data() { |
| 238 |
self.r#intMatrix = subparcel.read()?; |
| 239 |
} |
| 240 |
if subparcel.has_more_data() { |
| 241 |
self.r#longMatrix = subparcel.read()?; |
| 242 |
} |
| 243 |
if subparcel.has_more_data() { |
| 244 |
self.r#floatMatrix = subparcel.read()?; |
| 245 |
} |
| 246 |
if subparcel.has_more_data() { |
| 247 |
self.r#doubleMatrix = subparcel.read()?; |
| 248 |
} |
| 249 |
if subparcel.has_more_data() { |
| 250 |
self.r#stringMatrix = subparcel.read()?; |
| 251 |
} |
| 252 |
if subparcel.has_more_data() { |
| 253 |
self.r#byteEnumMatrix = subparcel.read()?; |
| 254 |
} |
| 255 |
if subparcel.has_more_data() { |
| 256 |
self.r#intEnumMatrix = subparcel.read()?; |
| 257 |
} |
| 258 |
if subparcel.has_more_data() { |
| 259 |
self.r#longEnumMatrix = subparcel.read()?; |
| 260 |
} |
| 261 |
if subparcel.has_more_data() { |
| 262 |
self.r#parcelableMatrix = subparcel.read()?; |
| 263 |
} |
| 264 |
if subparcel.has_more_data() { |
| 265 |
self.r#boolNullableArray = subparcel.read()?; |
| 266 |
} |
| 267 |
if subparcel.has_more_data() { |
| 268 |
self.r#byteNullableArray = subparcel.read()?; |
| 269 |
} |
| 270 |
if subparcel.has_more_data() { |
| 271 |
self.r#charNullableArray = subparcel.read()?; |
| 272 |
} |
| 273 |
if subparcel.has_more_data() { |
| 274 |
self.r#intNullableArray = subparcel.read()?; |
| 275 |
} |
| 276 |
if subparcel.has_more_data() { |
| 277 |
self.r#longNullableArray = subparcel.read()?; |
| 278 |
} |
| 279 |
if subparcel.has_more_data() { |
| 280 |
self.r#floatNullableArray = subparcel.read()?; |
| 281 |
} |
| 282 |
if subparcel.has_more_data() { |
| 283 |
self.r#doubleNullableArray = subparcel.read()?; |
| 284 |
} |
| 285 |
if subparcel.has_more_data() { |
| 286 |
self.r#stringNullableArray = subparcel.read()?; |
| 287 |
} |
| 288 |
if subparcel.has_more_data() { |
| 289 |
self.r#byteEnumNullableArray = subparcel.read()?; |
| 290 |
} |
| 291 |
if subparcel.has_more_data() { |
| 292 |
self.r#intEnumNullableArray = subparcel.read()?; |
| 293 |
} |
| 294 |
if subparcel.has_more_data() { |
| 295 |
self.r#longEnumNullableArray = subparcel.read()?; |
| 296 |
} |
| 297 |
if subparcel.has_more_data() { |
| 298 |
self.r#binderNullableArray = subparcel.read()?; |
| 299 |
} |
| 300 |
if subparcel.has_more_data() { |
| 301 |
self.r#pfdNullableArray = subparcel.read()?; |
| 302 |
} |
| 303 |
if subparcel.has_more_data() { |
| 304 |
self.r#parcelableNullableArray = subparcel.read()?; |
| 305 |
} |
| 306 |
if subparcel.has_more_data() { |
| 307 |
self.r#interfaceNullableArray = subparcel.read()?; |
| 308 |
} |
| 309 |
if subparcel.has_more_data() { |
| 310 |
self.r#boolNullableMatrix = subparcel.read()?; |
| 311 |
} |
| 312 |
if subparcel.has_more_data() { |
| 313 |
self.r#byteNullableMatrix = subparcel.read()?; |
| 314 |
} |
| 315 |
if subparcel.has_more_data() { |
| 316 |
self.r#charNullableMatrix = subparcel.read()?; |
| 317 |
} |
| 318 |
if subparcel.has_more_data() { |
| 319 |
self.r#intNullableMatrix = subparcel.read()?; |
| 320 |
} |
| 321 |
if subparcel.has_more_data() { |
| 322 |
self.r#longNullableMatrix = subparcel.read()?; |
| 323 |
} |
| 324 |
if subparcel.has_more_data() { |
| 325 |
self.r#floatNullableMatrix = subparcel.read()?; |
| 326 |
} |
| 327 |
if subparcel.has_more_data() { |
| 328 |
self.r#doubleNullableMatrix = subparcel.read()?; |
| 329 |
} |
| 330 |
if subparcel.has_more_data() { |
| 331 |
self.r#stringNullableMatrix = subparcel.read()?; |
| 332 |
} |
| 333 |
if subparcel.has_more_data() { |
| 334 |
self.r#byteEnumNullableMatrix = subparcel.read()?; |
| 335 |
} |
| 336 |
if subparcel.has_more_data() { |
| 337 |
self.r#intEnumNullableMatrix = subparcel.read()?; |
| 338 |
} |
| 339 |
if subparcel.has_more_data() { |
| 340 |
self.r#longEnumNullableMatrix = subparcel.read()?; |
| 341 |
} |
| 342 |
if subparcel.has_more_data() { |
| 343 |
self.r#binderNullableMatrix = subparcel.read()?; |
| 344 |
} |
| 345 |
if subparcel.has_more_data() { |
| 346 |
self.r#pfdNullableMatrix = subparcel.read()?; |
| 347 |
} |
| 348 |
if subparcel.has_more_data() { |
| 349 |
self.r#parcelableNullableMatrix = subparcel.read()?; |
| 350 |
} |
| 351 |
if subparcel.has_more_data() { |
| 352 |
self.r#interfaceNullableMatrix = subparcel.read()?; |
| 353 |
} |
| 354 |
Ok(()) |
| 355 |
}) |
| 356 |
} |
| 357 |
} |
| 358 |
binder::impl_serialize_for_parcelable!(r#FixedSizeArrayExample); |
| 359 |
binder::impl_deserialize_for_parcelable!(r#FixedSizeArrayExample); |
| 360 |
impl binder::binder_impl::ParcelableMetadata for r#FixedSizeArrayExample { |
| 361 |
fn get_descriptor() -> &'static str { "android.aidl.fixedsizearray.FixedSizeArrayExample" } |
| 362 |
} |
| 363 |
pub mod r#IRepeatFixedSizeArray { |
| 364 |
#![allow(non_upper_case_globals)] |
| 365 |
#![allow(non_snake_case)] |
| 366 |
#[allow(unused_imports)] use binder::binder_impl::IBinderInternal; |
| 367 |
use binder::declare_binder_interface; |
| 368 |
declare_binder_interface! { |
| 369 |
IRepeatFixedSizeArray["android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray"] { |
| 370 |
native: BnRepeatFixedSizeArray(on_transact), |
| 371 |
proxy: BpRepeatFixedSizeArray { |
| 372 |
}, |
| 373 |
async: IRepeatFixedSizeArrayAsync, |
| 374 |
} |
| 375 |
} |
| 376 |
pub trait IRepeatFixedSizeArray: binder::Interface + Send { |
| 377 |
fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray" } |
| 378 |
fn r#RepeatBytes(&self, _arg_input: &[u8; 3], _arg_repeated: &mut [u8; 3]) -> binder::Result<[u8; 3]>; |
| 379 |
fn r#RepeatInts(&self, _arg_input: &[i32; 3], _arg_repeated: &mut [i32; 3]) -> binder::Result<[i32; 3]>; |
| 380 |
fn r#RepeatBinders(&self, _arg_input: &[binder::SpIBinder; 3], _arg_repeated: &mut [Option<binder::SpIBinder>; 3]) -> binder::Result<[binder::SpIBinder; 3]>; |
| 381 |
fn r#RepeatParcelables(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3], _arg_repeated: &mut [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]) -> binder::Result<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]>; |
| 382 |
fn r#Repeat2dBytes(&self, _arg_input: &[[u8; 3]; 2], _arg_repeated: &mut [[u8; 3]; 2]) -> binder::Result<[[u8; 3]; 2]>; |
| 383 |
fn r#Repeat2dInts(&self, _arg_input: &[[i32; 3]; 2], _arg_repeated: &mut [[i32; 3]; 2]) -> binder::Result<[[i32; 3]; 2]>; |
| 384 |
fn r#Repeat2dBinders(&self, _arg_input: &[[binder::SpIBinder; 3]; 2], _arg_repeated: &mut [[Option<binder::SpIBinder>; 3]; 2]) -> binder::Result<[[binder::SpIBinder; 3]; 2]>; |
| 385 |
fn r#Repeat2dParcelables(&self, _arg_input: &[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2], _arg_repeated: &mut [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]) -> binder::Result<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]>; |
| 386 |
fn getDefaultImpl() -> IRepeatFixedSizeArrayDefaultRef where Self: Sized { |
| 387 |
DEFAULT_IMPL.lock().unwrap().clone() |
| 388 |
} |
| 389 |
fn setDefaultImpl(d: IRepeatFixedSizeArrayDefaultRef) -> IRepeatFixedSizeArrayDefaultRef where Self: Sized { |
| 390 |
std::mem::replace(&mut *DEFAULT_IMPL.lock().unwrap(), d) |
| 391 |
} |
| 392 |
} |
| 393 |
pub trait IRepeatFixedSizeArrayAsync<P>: binder::Interface + Send { |
| 394 |
fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray" } |
| 395 |
fn r#RepeatBytes<'a>(&'a self, _arg_input: &'a [u8; 3], _arg_repeated: &'a mut [u8; 3]) -> binder::BoxFuture<'a, binder::Result<[u8; 3]>>; |
| 396 |
fn r#RepeatInts<'a>(&'a self, _arg_input: &'a [i32; 3], _arg_repeated: &'a mut [i32; 3]) -> binder::BoxFuture<'a, binder::Result<[i32; 3]>>; |
| 397 |
fn r#RepeatBinders<'a>(&'a self, _arg_input: &'a [binder::SpIBinder; 3], _arg_repeated: &'a mut [Option<binder::SpIBinder>; 3]) -> binder::BoxFuture<'a, binder::Result<[binder::SpIBinder; 3]>>; |
| 398 |
fn r#RepeatParcelables<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3], _arg_repeated: &'a mut [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]) -> binder::BoxFuture<'a, binder::Result<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]>>; |
| 399 |
fn r#Repeat2dBytes<'a>(&'a self, _arg_input: &'a [[u8; 3]; 2], _arg_repeated: &'a mut [[u8; 3]; 2]) -> binder::BoxFuture<'a, binder::Result<[[u8; 3]; 2]>>; |
| 400 |
fn r#Repeat2dInts<'a>(&'a self, _arg_input: &'a [[i32; 3]; 2], _arg_repeated: &'a mut [[i32; 3]; 2]) -> binder::BoxFuture<'a, binder::Result<[[i32; 3]; 2]>>; |
| 401 |
fn r#Repeat2dBinders<'a>(&'a self, _arg_input: &'a [[binder::SpIBinder; 3]; 2], _arg_repeated: &'a mut [[Option<binder::SpIBinder>; 3]; 2]) -> binder::BoxFuture<'a, binder::Result<[[binder::SpIBinder; 3]; 2]>>; |
| 402 |
fn r#Repeat2dParcelables<'a>(&'a self, _arg_input: &'a [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2], _arg_repeated: &'a mut [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]) -> binder::BoxFuture<'a, binder::Result<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]>>; |
| 403 |
} |
| 404 |
#[::async_trait::async_trait] |
| 405 |
pub trait IRepeatFixedSizeArrayAsyncServer: binder::Interface + Send { |
| 406 |
fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.fixedsizearray.FixedSizeArrayExample.IRepeatFixedSizeArray" } |
| 407 |
async fn r#RepeatBytes(&self, _arg_input: &[u8; 3], _arg_repeated: &mut [u8; 3]) -> binder::Result<[u8; 3]>; |
| 408 |
async fn r#RepeatInts(&self, _arg_input: &[i32; 3], _arg_repeated: &mut [i32; 3]) -> binder::Result<[i32; 3]>; |
| 409 |
async fn r#RepeatBinders(&self, _arg_input: &[binder::SpIBinder; 3], _arg_repeated: &mut [Option<binder::SpIBinder>; 3]) -> binder::Result<[binder::SpIBinder; 3]>; |
| 410 |
async fn r#RepeatParcelables(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3], _arg_repeated: &mut [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]) -> binder::Result<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]>; |
| 411 |
async fn r#Repeat2dBytes(&self, _arg_input: &[[u8; 3]; 2], _arg_repeated: &mut [[u8; 3]; 2]) -> binder::Result<[[u8; 3]; 2]>; |
| 412 |
async fn r#Repeat2dInts(&self, _arg_input: &[[i32; 3]; 2], _arg_repeated: &mut [[i32; 3]; 2]) -> binder::Result<[[i32; 3]; 2]>; |
| 413 |
async fn r#Repeat2dBinders(&self, _arg_input: &[[binder::SpIBinder; 3]; 2], _arg_repeated: &mut [[Option<binder::SpIBinder>; 3]; 2]) -> binder::Result<[[binder::SpIBinder; 3]; 2]>; |
| 414 |
async fn r#Repeat2dParcelables(&self, _arg_input: &[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2], _arg_repeated: &mut [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]) -> binder::Result<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]>; |
| 415 |
} |
| 416 |
impl BnRepeatFixedSizeArray { |
| 417 |
/// Create a new async binder service. |
| 418 |
pub fn new_async_binder<T, R>(inner: T, rt: R, features: binder::BinderFeatures) -> binder::Strong<dyn IRepeatFixedSizeArray> |
| 419 |
where |
| 420 |
T: IRepeatFixedSizeArrayAsyncServer + binder::Interface + Send + Sync + 'static, |
| 421 |
R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, |
| 422 |
{ |
| 423 |
struct Wrapper<T, R> { |
| 424 |
_inner: T, |
| 425 |
_rt: R, |
| 426 |
} |
| 427 |
impl<T, R> binder::Interface for Wrapper<T, R> where T: binder::Interface, R: Send + Sync + 'static { |
| 428 |
fn as_binder(&self) -> binder::SpIBinder { self._inner.as_binder() } |
| 429 |
fn dump(&self, _writer: &mut dyn std::io::Write, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder::StatusCode> { self._inner.dump(_writer, _args) } |
| 430 |
} |
| 431 |
impl<T, R> IRepeatFixedSizeArray for Wrapper<T, R> |
| 432 |
where |
| 433 |
T: IRepeatFixedSizeArrayAsyncServer + Send + Sync + 'static, |
| 434 |
R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, |
| 435 |
{ |
| 436 |
fn r#RepeatBytes(&self, _arg_input: &[u8; 3], _arg_repeated: &mut [u8; 3]) -> binder::Result<[u8; 3]> { |
| 437 |
self._rt.block_on(self._inner.r#RepeatBytes(_arg_input, _arg_repeated)) |
| 438 |
} |
| 439 |
fn r#RepeatInts(&self, _arg_input: &[i32; 3], _arg_repeated: &mut [i32; 3]) -> binder::Result<[i32; 3]> { |
| 440 |
self._rt.block_on(self._inner.r#RepeatInts(_arg_input, _arg_repeated)) |
| 441 |
} |
| 442 |
fn r#RepeatBinders(&self, _arg_input: &[binder::SpIBinder; 3], _arg_repeated: &mut [Option<binder::SpIBinder>; 3]) -> binder::Result<[binder::SpIBinder; 3]> { |
| 443 |
self._rt.block_on(self._inner.r#RepeatBinders(_arg_input, _arg_repeated)) |
| 444 |
} |
| 445 |
fn r#RepeatParcelables(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3], _arg_repeated: &mut [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]) -> binder::Result<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]> { |
| 446 |
self._rt.block_on(self._inner.r#RepeatParcelables(_arg_input, _arg_repeated)) |
| 447 |
} |
| 448 |
fn r#Repeat2dBytes(&self, _arg_input: &[[u8; 3]; 2], _arg_repeated: &mut [[u8; 3]; 2]) -> binder::Result<[[u8; 3]; 2]> { |
| 449 |
self._rt.block_on(self._inner.r#Repeat2dBytes(_arg_input, _arg_repeated)) |
| 450 |
} |
| 451 |
fn r#Repeat2dInts(&self, _arg_input: &[[i32; 3]; 2], _arg_repeated: &mut [[i32; 3]; 2]) -> binder::Result<[[i32; 3]; 2]> { |
| 452 |
self._rt.block_on(self._inner.r#Repeat2dInts(_arg_input, _arg_repeated)) |
| 453 |
} |
| 454 |
fn r#Repeat2dBinders(&self, _arg_input: &[[binder::SpIBinder; 3]; 2], _arg_repeated: &mut [[Option<binder::SpIBinder>; 3]; 2]) -> binder::Result<[[binder::SpIBinder; 3]; 2]> { |
| 455 |
self._rt.block_on(self._inner.r#Repeat2dBinders(_arg_input, _arg_repeated)) |
| 456 |
} |
| 457 |
fn r#Repeat2dParcelables(&self, _arg_input: &[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2], _arg_repeated: &mut [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]) -> binder::Result<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]> { |
| 458 |
self._rt.block_on(self._inner.r#Repeat2dParcelables(_arg_input, _arg_repeated)) |
| 459 |
} |
| 460 |
} |
| 461 |
let wrapped = Wrapper { _inner: inner, _rt: rt }; |
| 462 |
Self::new_binder(wrapped, features) |
| 463 |
} |
| 464 |
} |
| 465 |
pub trait IRepeatFixedSizeArrayDefault: Send + Sync { |
| 466 |
fn r#RepeatBytes(&self, _arg_input: &[u8; 3], _arg_repeated: &mut [u8; 3]) -> binder::Result<[u8; 3]> { |
| 467 |
Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) |
| 468 |
} |
| 469 |
fn r#RepeatInts(&self, _arg_input: &[i32; 3], _arg_repeated: &mut [i32; 3]) -> binder::Result<[i32; 3]> { |
| 470 |
Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) |
| 471 |
} |
| 472 |
fn r#RepeatBinders(&self, _arg_input: &[binder::SpIBinder; 3], _arg_repeated: &mut [Option<binder::SpIBinder>; 3]) -> binder::Result<[binder::SpIBinder; 3]> { |
| 473 |
Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) |
| 474 |
} |
| 475 |
fn r#RepeatParcelables(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3], _arg_repeated: &mut [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]) -> binder::Result<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]> { |
| 476 |
Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) |
| 477 |
} |
| 478 |
fn r#Repeat2dBytes(&self, _arg_input: &[[u8; 3]; 2], _arg_repeated: &mut [[u8; 3]; 2]) -> binder::Result<[[u8; 3]; 2]> { |
| 479 |
Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) |
| 480 |
} |
| 481 |
fn r#Repeat2dInts(&self, _arg_input: &[[i32; 3]; 2], _arg_repeated: &mut [[i32; 3]; 2]) -> binder::Result<[[i32; 3]; 2]> { |
| 482 |
Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) |
| 483 |
} |
| 484 |
fn r#Repeat2dBinders(&self, _arg_input: &[[binder::SpIBinder; 3]; 2], _arg_repeated: &mut [[Option<binder::SpIBinder>; 3]; 2]) -> binder::Result<[[binder::SpIBinder; 3]; 2]> { |
| 485 |
Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) |
| 486 |
} |
| 487 |
fn r#Repeat2dParcelables(&self, _arg_input: &[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2], _arg_repeated: &mut [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]) -> binder::Result<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]> { |
| 488 |
Err(binder::StatusCode::UNKNOWN_TRANSACTION.into()) |
| 489 |
} |
| 490 |
} |
| 491 |
pub mod transactions { |
| 492 |
pub const r#RepeatBytes: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 0; |
| 493 |
pub const r#RepeatInts: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 1; |
| 494 |
pub const r#RepeatBinders: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 2; |
| 495 |
pub const r#RepeatParcelables: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 3; |
| 496 |
pub const r#Repeat2dBytes: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 4; |
| 497 |
pub const r#Repeat2dInts: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 5; |
| 498 |
pub const r#Repeat2dBinders: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 6; |
| 499 |
pub const r#Repeat2dParcelables: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSACTION + 7; |
| 500 |
} |
| 501 |
pub type IRepeatFixedSizeArrayDefaultRef = Option<std::sync::Arc<dyn IRepeatFixedSizeArrayDefault>>; |
| 502 |
static DEFAULT_IMPL: std::sync::Mutex<IRepeatFixedSizeArrayDefaultRef> = std::sync::Mutex::new(None); |
| 503 |
impl BpRepeatFixedSizeArray { |
| 504 |
fn build_parcel_RepeatBytes(&self, _arg_input: &[u8; 3], _arg_repeated: &mut [u8; 3]) -> binder::Result<binder::binder_impl::Parcel> { |
| 505 |
let mut aidl_data = self.binder.prepare_transact()?; |
| 506 |
aidl_data.write(_arg_input)?; |
| 507 |
Ok(aidl_data) |
| 508 |
} |
| 509 |
fn read_response_RepeatBytes(&self, _arg_input: &[u8; 3], _arg_repeated: &mut [u8; 3], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<[u8; 3]> { |
| 510 |
if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { |
| 511 |
if let Some(_aidl_default_impl) = <Self as IRepeatFixedSizeArray>::getDefaultImpl() { |
| 512 |
return _aidl_default_impl.r#RepeatBytes(_arg_input, _arg_repeated); |
| 513 |
} |
| 514 |
} |
| 515 |
let _aidl_reply = _aidl_reply?; |
| 516 |
let _aidl_status: binder::Status = _aidl_reply.read()?; |
| 517 |
if !_aidl_status.is_ok() { return Err(_aidl_status); } |
| 518 |
let _aidl_return: [u8; 3] = _aidl_reply.read()?; |
| 519 |
_aidl_reply.read_onto(_arg_repeated)?; |
| 520 |
Ok(_aidl_return) |
| 521 |
} |
| 522 |
fn build_parcel_RepeatInts(&self, _arg_input: &[i32; 3], _arg_repeated: &mut [i32; 3]) -> binder::Result<binder::binder_impl::Parcel> { |
| 523 |
let mut aidl_data = self.binder.prepare_transact()?; |
| 524 |
aidl_data.write(_arg_input)?; |
| 525 |
Ok(aidl_data) |
| 526 |
} |
| 527 |
fn read_response_RepeatInts(&self, _arg_input: &[i32; 3], _arg_repeated: &mut [i32; 3], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<[i32; 3]> { |
| 528 |
if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { |
| 529 |
if let Some(_aidl_default_impl) = <Self as IRepeatFixedSizeArray>::getDefaultImpl() { |
| 530 |
return _aidl_default_impl.r#RepeatInts(_arg_input, _arg_repeated); |
| 531 |
} |
| 532 |
} |
| 533 |
let _aidl_reply = _aidl_reply?; |
| 534 |
let _aidl_status: binder::Status = _aidl_reply.read()?; |
| 535 |
if !_aidl_status.is_ok() { return Err(_aidl_status); } |
| 536 |
let _aidl_return: [i32; 3] = _aidl_reply.read()?; |
| 537 |
_aidl_reply.read_onto(_arg_repeated)?; |
| 538 |
Ok(_aidl_return) |
| 539 |
} |
| 540 |
fn build_parcel_RepeatBinders(&self, _arg_input: &[binder::SpIBinder; 3], _arg_repeated: &mut [Option<binder::SpIBinder>; 3]) -> binder::Result<binder::binder_impl::Parcel> { |
| 541 |
let mut aidl_data = self.binder.prepare_transact()?; |
| 542 |
aidl_data.write(_arg_input)?; |
| 543 |
Ok(aidl_data) |
| 544 |
} |
| 545 |
fn read_response_RepeatBinders(&self, _arg_input: &[binder::SpIBinder; 3], _arg_repeated: &mut [Option<binder::SpIBinder>; 3], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<[binder::SpIBinder; 3]> { |
| 546 |
if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { |
| 547 |
if let Some(_aidl_default_impl) = <Self as IRepeatFixedSizeArray>::getDefaultImpl() { |
| 548 |
return _aidl_default_impl.r#RepeatBinders(_arg_input, _arg_repeated); |
| 549 |
} |
| 550 |
} |
| 551 |
let _aidl_reply = _aidl_reply?; |
| 552 |
let _aidl_status: binder::Status = _aidl_reply.read()?; |
| 553 |
if !_aidl_status.is_ok() { return Err(_aidl_status); } |
| 554 |
let _aidl_return: [binder::SpIBinder; 3] = _aidl_reply.read()?; |
| 555 |
_aidl_reply.read_onto(_arg_repeated)?; |
| 556 |
Ok(_aidl_return) |
| 557 |
} |
| 558 |
fn build_parcel_RepeatParcelables(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3], _arg_repeated: &mut [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]) -> binder::Result<binder::binder_impl::Parcel> { |
| 559 |
let mut aidl_data = self.binder.prepare_transact()?; |
| 560 |
aidl_data.write(_arg_input)?; |
| 561 |
Ok(aidl_data) |
| 562 |
} |
| 563 |
fn read_response_RepeatParcelables(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3], _arg_repeated: &mut [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]> { |
| 564 |
if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { |
| 565 |
if let Some(_aidl_default_impl) = <Self as IRepeatFixedSizeArray>::getDefaultImpl() { |
| 566 |
return _aidl_default_impl.r#RepeatParcelables(_arg_input, _arg_repeated); |
| 567 |
} |
| 568 |
} |
| 569 |
let _aidl_reply = _aidl_reply?; |
| 570 |
let _aidl_status: binder::Status = _aidl_reply.read()?; |
| 571 |
if !_aidl_status.is_ok() { return Err(_aidl_status); } |
| 572 |
let _aidl_return: [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3] = _aidl_reply.read()?; |
| 573 |
_aidl_reply.read_onto(_arg_repeated)?; |
| 574 |
Ok(_aidl_return) |
| 575 |
} |
| 576 |
fn build_parcel_Repeat2dBytes(&self, _arg_input: &[[u8; 3]; 2], _arg_repeated: &mut [[u8; 3]; 2]) -> binder::Result<binder::binder_impl::Parcel> { |
| 577 |
let mut aidl_data = self.binder.prepare_transact()?; |
| 578 |
aidl_data.write(_arg_input)?; |
| 579 |
Ok(aidl_data) |
| 580 |
} |
| 581 |
fn read_response_Repeat2dBytes(&self, _arg_input: &[[u8; 3]; 2], _arg_repeated: &mut [[u8; 3]; 2], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<[[u8; 3]; 2]> { |
| 582 |
if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { |
| 583 |
if let Some(_aidl_default_impl) = <Self as IRepeatFixedSizeArray>::getDefaultImpl() { |
| 584 |
return _aidl_default_impl.r#Repeat2dBytes(_arg_input, _arg_repeated); |
| 585 |
} |
| 586 |
} |
| 587 |
let _aidl_reply = _aidl_reply?; |
| 588 |
let _aidl_status: binder::Status = _aidl_reply.read()?; |
| 589 |
if !_aidl_status.is_ok() { return Err(_aidl_status); } |
| 590 |
let _aidl_return: [[u8; 3]; 2] = _aidl_reply.read()?; |
| 591 |
_aidl_reply.read_onto(_arg_repeated)?; |
| 592 |
Ok(_aidl_return) |
| 593 |
} |
| 594 |
fn build_parcel_Repeat2dInts(&self, _arg_input: &[[i32; 3]; 2], _arg_repeated: &mut [[i32; 3]; 2]) -> binder::Result<binder::binder_impl::Parcel> { |
| 595 |
let mut aidl_data = self.binder.prepare_transact()?; |
| 596 |
aidl_data.write(_arg_input)?; |
| 597 |
Ok(aidl_data) |
| 598 |
} |
| 599 |
fn read_response_Repeat2dInts(&self, _arg_input: &[[i32; 3]; 2], _arg_repeated: &mut [[i32; 3]; 2], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<[[i32; 3]; 2]> { |
| 600 |
if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { |
| 601 |
if let Some(_aidl_default_impl) = <Self as IRepeatFixedSizeArray>::getDefaultImpl() { |
| 602 |
return _aidl_default_impl.r#Repeat2dInts(_arg_input, _arg_repeated); |
| 603 |
} |
| 604 |
} |
| 605 |
let _aidl_reply = _aidl_reply?; |
| 606 |
let _aidl_status: binder::Status = _aidl_reply.read()?; |
| 607 |
if !_aidl_status.is_ok() { return Err(_aidl_status); } |
| 608 |
let _aidl_return: [[i32; 3]; 2] = _aidl_reply.read()?; |
| 609 |
_aidl_reply.read_onto(_arg_repeated)?; |
| 610 |
Ok(_aidl_return) |
| 611 |
} |
| 612 |
fn build_parcel_Repeat2dBinders(&self, _arg_input: &[[binder::SpIBinder; 3]; 2], _arg_repeated: &mut [[Option<binder::SpIBinder>; 3]; 2]) -> binder::Result<binder::binder_impl::Parcel> { |
| 613 |
let mut aidl_data = self.binder.prepare_transact()?; |
| 614 |
aidl_data.write(_arg_input)?; |
| 615 |
Ok(aidl_data) |
| 616 |
} |
| 617 |
fn read_response_Repeat2dBinders(&self, _arg_input: &[[binder::SpIBinder; 3]; 2], _arg_repeated: &mut [[Option<binder::SpIBinder>; 3]; 2], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<[[binder::SpIBinder; 3]; 2]> { |
| 618 |
if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { |
| 619 |
if let Some(_aidl_default_impl) = <Self as IRepeatFixedSizeArray>::getDefaultImpl() { |
| 620 |
return _aidl_default_impl.r#Repeat2dBinders(_arg_input, _arg_repeated); |
| 621 |
} |
| 622 |
} |
| 623 |
let _aidl_reply = _aidl_reply?; |
| 624 |
let _aidl_status: binder::Status = _aidl_reply.read()?; |
| 625 |
if !_aidl_status.is_ok() { return Err(_aidl_status); } |
| 626 |
let _aidl_return: [[binder::SpIBinder; 3]; 2] = _aidl_reply.read()?; |
| 627 |
_aidl_reply.read_onto(_arg_repeated)?; |
| 628 |
Ok(_aidl_return) |
| 629 |
} |
| 630 |
fn build_parcel_Repeat2dParcelables(&self, _arg_input: &[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2], _arg_repeated: &mut [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]) -> binder::Result<binder::binder_impl::Parcel> { |
| 631 |
let mut aidl_data = self.binder.prepare_transact()?; |
| 632 |
aidl_data.write(_arg_input)?; |
| 633 |
Ok(aidl_data) |
| 634 |
} |
| 635 |
fn read_response_Repeat2dParcelables(&self, _arg_input: &[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2], _arg_repeated: &mut [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2], _aidl_reply: std::result::Result<binder::binder_impl::Parcel, binder::StatusCode>) -> binder::Result<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]> { |
| 636 |
if let Err(binder::StatusCode::UNKNOWN_TRANSACTION) = _aidl_reply { |
| 637 |
if let Some(_aidl_default_impl) = <Self as IRepeatFixedSizeArray>::getDefaultImpl() { |
| 638 |
return _aidl_default_impl.r#Repeat2dParcelables(_arg_input, _arg_repeated); |
| 639 |
} |
| 640 |
} |
| 641 |
let _aidl_reply = _aidl_reply?; |
| 642 |
let _aidl_status: binder::Status = _aidl_reply.read()?; |
| 643 |
if !_aidl_status.is_ok() { return Err(_aidl_status); } |
| 644 |
let _aidl_return: [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2] = _aidl_reply.read()?; |
| 645 |
_aidl_reply.read_onto(_arg_repeated)?; |
| 646 |
Ok(_aidl_return) |
| 647 |
} |
| 648 |
} |
| 649 |
impl IRepeatFixedSizeArray for BpRepeatFixedSizeArray { |
| 650 |
fn r#RepeatBytes(&self, _arg_input: &[u8; 3], _arg_repeated: &mut [u8; 3]) -> binder::Result<[u8; 3]> { |
| 651 |
let _aidl_data = self.build_parcel_RepeatBytes(_arg_input, _arg_repeated)?; |
| 652 |
let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatBytes, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); |
| 653 |
self.read_response_RepeatBytes(_arg_input, _arg_repeated, _aidl_reply) |
| 654 |
} |
| 655 |
fn r#RepeatInts(&self, _arg_input: &[i32; 3], _arg_repeated: &mut [i32; 3]) -> binder::Result<[i32; 3]> { |
| 656 |
let _aidl_data = self.build_parcel_RepeatInts(_arg_input, _arg_repeated)?; |
| 657 |
let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatInts, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); |
| 658 |
self.read_response_RepeatInts(_arg_input, _arg_repeated, _aidl_reply) |
| 659 |
} |
| 660 |
fn r#RepeatBinders(&self, _arg_input: &[binder::SpIBinder; 3], _arg_repeated: &mut [Option<binder::SpIBinder>; 3]) -> binder::Result<[binder::SpIBinder; 3]> { |
| 661 |
let _aidl_data = self.build_parcel_RepeatBinders(_arg_input, _arg_repeated)?; |
| 662 |
let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatBinders, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); |
| 663 |
self.read_response_RepeatBinders(_arg_input, _arg_repeated, _aidl_reply) |
| 664 |
} |
| 665 |
fn r#RepeatParcelables(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3], _arg_repeated: &mut [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]) -> binder::Result<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]> { |
| 666 |
let _aidl_data = self.build_parcel_RepeatParcelables(_arg_input, _arg_repeated)?; |
| 667 |
let _aidl_reply = self.binder.submit_transact(transactions::r#RepeatParcelables, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); |
| 668 |
self.read_response_RepeatParcelables(_arg_input, _arg_repeated, _aidl_reply) |
| 669 |
} |
| 670 |
fn r#Repeat2dBytes(&self, _arg_input: &[[u8; 3]; 2], _arg_repeated: &mut [[u8; 3]; 2]) -> binder::Result<[[u8; 3]; 2]> { |
| 671 |
let _aidl_data = self.build_parcel_Repeat2dBytes(_arg_input, _arg_repeated)?; |
| 672 |
let _aidl_reply = self.binder.submit_transact(transactions::r#Repeat2dBytes, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); |
| 673 |
self.read_response_Repeat2dBytes(_arg_input, _arg_repeated, _aidl_reply) |
| 674 |
} |
| 675 |
fn r#Repeat2dInts(&self, _arg_input: &[[i32; 3]; 2], _arg_repeated: &mut [[i32; 3]; 2]) -> binder::Result<[[i32; 3]; 2]> { |
| 676 |
let _aidl_data = self.build_parcel_Repeat2dInts(_arg_input, _arg_repeated)?; |
| 677 |
let _aidl_reply = self.binder.submit_transact(transactions::r#Repeat2dInts, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); |
| 678 |
self.read_response_Repeat2dInts(_arg_input, _arg_repeated, _aidl_reply) |
| 679 |
} |
| 680 |
fn r#Repeat2dBinders(&self, _arg_input: &[[binder::SpIBinder; 3]; 2], _arg_repeated: &mut [[Option<binder::SpIBinder>; 3]; 2]) -> binder::Result<[[binder::SpIBinder; 3]; 2]> { |
| 681 |
let _aidl_data = self.build_parcel_Repeat2dBinders(_arg_input, _arg_repeated)?; |
| 682 |
let _aidl_reply = self.binder.submit_transact(transactions::r#Repeat2dBinders, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); |
| 683 |
self.read_response_Repeat2dBinders(_arg_input, _arg_repeated, _aidl_reply) |
| 684 |
} |
| 685 |
fn r#Repeat2dParcelables(&self, _arg_input: &[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2], _arg_repeated: &mut [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]) -> binder::Result<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]> { |
| 686 |
let _aidl_data = self.build_parcel_Repeat2dParcelables(_arg_input, _arg_repeated)?; |
| 687 |
let _aidl_reply = self.binder.submit_transact(transactions::r#Repeat2dParcelables, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL); |
| 688 |
self.read_response_Repeat2dParcelables(_arg_input, _arg_repeated, _aidl_reply) |
| 689 |
} |
| 690 |
} |
| 691 |
impl<P: binder::BinderAsyncPool> IRepeatFixedSizeArrayAsync<P> for BpRepeatFixedSizeArray { |
| 692 |
fn r#RepeatBytes<'a>(&'a self, _arg_input: &'a [u8; 3], _arg_repeated: &'a mut [u8; 3]) -> binder::BoxFuture<'a, binder::Result<[u8; 3]>> { |
| 693 |
let _aidl_data = match self.build_parcel_RepeatBytes(_arg_input, _arg_repeated) { |
| 694 |
Ok(_aidl_data) => _aidl_data, |
| 695 |
Err(err) => return Box::pin(std::future::ready(Err(err))), |
| 696 |
}; |
| 697 |
let binder = self.binder.clone(); |
| 698 |
P::spawn( |
| 699 |
move || binder.submit_transact(transactions::r#RepeatBytes, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), |
| 700 |
move |_aidl_reply| async move { |
| 701 |
self.read_response_RepeatBytes(_arg_input, _arg_repeated, _aidl_reply) |
| 702 |
} |
| 703 |
) |
| 704 |
} |
| 705 |
fn r#RepeatInts<'a>(&'a self, _arg_input: &'a [i32; 3], _arg_repeated: &'a mut [i32; 3]) -> binder::BoxFuture<'a, binder::Result<[i32; 3]>> { |
| 706 |
let _aidl_data = match self.build_parcel_RepeatInts(_arg_input, _arg_repeated) { |
| 707 |
Ok(_aidl_data) => _aidl_data, |
| 708 |
Err(err) => return Box::pin(std::future::ready(Err(err))), |
| 709 |
}; |
| 710 |
let binder = self.binder.clone(); |
| 711 |
P::spawn( |
| 712 |
move || binder.submit_transact(transactions::r#RepeatInts, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), |
| 713 |
move |_aidl_reply| async move { |
| 714 |
self.read_response_RepeatInts(_arg_input, _arg_repeated, _aidl_reply) |
| 715 |
} |
| 716 |
) |
| 717 |
} |
| 718 |
fn r#RepeatBinders<'a>(&'a self, _arg_input: &'a [binder::SpIBinder; 3], _arg_repeated: &'a mut [Option<binder::SpIBinder>; 3]) -> binder::BoxFuture<'a, binder::Result<[binder::SpIBinder; 3]>> { |
| 719 |
let _aidl_data = match self.build_parcel_RepeatBinders(_arg_input, _arg_repeated) { |
| 720 |
Ok(_aidl_data) => _aidl_data, |
| 721 |
Err(err) => return Box::pin(std::future::ready(Err(err))), |
| 722 |
}; |
| 723 |
let binder = self.binder.clone(); |
| 724 |
P::spawn( |
| 725 |
move || binder.submit_transact(transactions::r#RepeatBinders, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), |
| 726 |
move |_aidl_reply| async move { |
| 727 |
self.read_response_RepeatBinders(_arg_input, _arg_repeated, _aidl_reply) |
| 728 |
} |
| 729 |
) |
| 730 |
} |
| 731 |
fn r#RepeatParcelables<'a>(&'a self, _arg_input: &'a [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3], _arg_repeated: &'a mut [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]) -> binder::BoxFuture<'a, binder::Result<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]>> { |
| 732 |
let _aidl_data = match self.build_parcel_RepeatParcelables(_arg_input, _arg_repeated) { |
| 733 |
Ok(_aidl_data) => _aidl_data, |
| 734 |
Err(err) => return Box::pin(std::future::ready(Err(err))), |
| 735 |
}; |
| 736 |
let binder = self.binder.clone(); |
| 737 |
P::spawn( |
| 738 |
move || binder.submit_transact(transactions::r#RepeatParcelables, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), |
| 739 |
move |_aidl_reply| async move { |
| 740 |
self.read_response_RepeatParcelables(_arg_input, _arg_repeated, _aidl_reply) |
| 741 |
} |
| 742 |
) |
| 743 |
} |
| 744 |
fn r#Repeat2dBytes<'a>(&'a self, _arg_input: &'a [[u8; 3]; 2], _arg_repeated: &'a mut [[u8; 3]; 2]) -> binder::BoxFuture<'a, binder::Result<[[u8; 3]; 2]>> { |
| 745 |
let _aidl_data = match self.build_parcel_Repeat2dBytes(_arg_input, _arg_repeated) { |
| 746 |
Ok(_aidl_data) => _aidl_data, |
| 747 |
Err(err) => return Box::pin(std::future::ready(Err(err))), |
| 748 |
}; |
| 749 |
let binder = self.binder.clone(); |
| 750 |
P::spawn( |
| 751 |
move || binder.submit_transact(transactions::r#Repeat2dBytes, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), |
| 752 |
move |_aidl_reply| async move { |
| 753 |
self.read_response_Repeat2dBytes(_arg_input, _arg_repeated, _aidl_reply) |
| 754 |
} |
| 755 |
) |
| 756 |
} |
| 757 |
fn r#Repeat2dInts<'a>(&'a self, _arg_input: &'a [[i32; 3]; 2], _arg_repeated: &'a mut [[i32; 3]; 2]) -> binder::BoxFuture<'a, binder::Result<[[i32; 3]; 2]>> { |
| 758 |
let _aidl_data = match self.build_parcel_Repeat2dInts(_arg_input, _arg_repeated) { |
| 759 |
Ok(_aidl_data) => _aidl_data, |
| 760 |
Err(err) => return Box::pin(std::future::ready(Err(err))), |
| 761 |
}; |
| 762 |
let binder = self.binder.clone(); |
| 763 |
P::spawn( |
| 764 |
move || binder.submit_transact(transactions::r#Repeat2dInts, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), |
| 765 |
move |_aidl_reply| async move { |
| 766 |
self.read_response_Repeat2dInts(_arg_input, _arg_repeated, _aidl_reply) |
| 767 |
} |
| 768 |
) |
| 769 |
} |
| 770 |
fn r#Repeat2dBinders<'a>(&'a self, _arg_input: &'a [[binder::SpIBinder; 3]; 2], _arg_repeated: &'a mut [[Option<binder::SpIBinder>; 3]; 2]) -> binder::BoxFuture<'a, binder::Result<[[binder::SpIBinder; 3]; 2]>> { |
| 771 |
let _aidl_data = match self.build_parcel_Repeat2dBinders(_arg_input, _arg_repeated) { |
| 772 |
Ok(_aidl_data) => _aidl_data, |
| 773 |
Err(err) => return Box::pin(std::future::ready(Err(err))), |
| 774 |
}; |
| 775 |
let binder = self.binder.clone(); |
| 776 |
P::spawn( |
| 777 |
move || binder.submit_transact(transactions::r#Repeat2dBinders, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), |
| 778 |
move |_aidl_reply| async move { |
| 779 |
self.read_response_Repeat2dBinders(_arg_input, _arg_repeated, _aidl_reply) |
| 780 |
} |
| 781 |
) |
| 782 |
} |
| 783 |
fn r#Repeat2dParcelables<'a>(&'a self, _arg_input: &'a [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2], _arg_repeated: &'a mut [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]) -> binder::BoxFuture<'a, binder::Result<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]>> { |
| 784 |
let _aidl_data = match self.build_parcel_Repeat2dParcelables(_arg_input, _arg_repeated) { |
| 785 |
Ok(_aidl_data) => _aidl_data, |
| 786 |
Err(err) => return Box::pin(std::future::ready(Err(err))), |
| 787 |
}; |
| 788 |
let binder = self.binder.clone(); |
| 789 |
P::spawn( |
| 790 |
move || binder.submit_transact(transactions::r#Repeat2dParcelables, _aidl_data, binder::binder_impl::FLAG_PRIVATE_LOCAL), |
| 791 |
move |_aidl_reply| async move { |
| 792 |
self.read_response_Repeat2dParcelables(_arg_input, _arg_repeated, _aidl_reply) |
| 793 |
} |
| 794 |
) |
| 795 |
} |
| 796 |
} |
| 797 |
impl IRepeatFixedSizeArray for binder::binder_impl::Binder<BnRepeatFixedSizeArray> { |
| 798 |
fn r#RepeatBytes(&self, _arg_input: &[u8; 3], _arg_repeated: &mut [u8; 3]) -> binder::Result<[u8; 3]> { self.0.r#RepeatBytes(_arg_input, _arg_repeated) } |
| 799 |
fn r#RepeatInts(&self, _arg_input: &[i32; 3], _arg_repeated: &mut [i32; 3]) -> binder::Result<[i32; 3]> { self.0.r#RepeatInts(_arg_input, _arg_repeated) } |
| 800 |
fn r#RepeatBinders(&self, _arg_input: &[binder::SpIBinder; 3], _arg_repeated: &mut [Option<binder::SpIBinder>; 3]) -> binder::Result<[binder::SpIBinder; 3]> { self.0.r#RepeatBinders(_arg_input, _arg_repeated) } |
| 801 |
fn r#RepeatParcelables(&self, _arg_input: &[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3], _arg_repeated: &mut [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]) -> binder::Result<[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]> { self.0.r#RepeatParcelables(_arg_input, _arg_repeated) } |
| 802 |
fn r#Repeat2dBytes(&self, _arg_input: &[[u8; 3]; 2], _arg_repeated: &mut [[u8; 3]; 2]) -> binder::Result<[[u8; 3]; 2]> { self.0.r#Repeat2dBytes(_arg_input, _arg_repeated) } |
| 803 |
fn r#Repeat2dInts(&self, _arg_input: &[[i32; 3]; 2], _arg_repeated: &mut [[i32; 3]; 2]) -> binder::Result<[[i32; 3]; 2]> { self.0.r#Repeat2dInts(_arg_input, _arg_repeated) } |
| 804 |
fn r#Repeat2dBinders(&self, _arg_input: &[[binder::SpIBinder; 3]; 2], _arg_repeated: &mut [[Option<binder::SpIBinder>; 3]; 2]) -> binder::Result<[[binder::SpIBinder; 3]; 2]> { self.0.r#Repeat2dBinders(_arg_input, _arg_repeated) } |
| 805 |
fn r#Repeat2dParcelables(&self, _arg_input: &[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2], _arg_repeated: &mut [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]) -> binder::Result<[[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2]> { self.0.r#Repeat2dParcelables(_arg_input, _arg_repeated) } |
| 806 |
} |
| 807 |
fn on_transact(_aidl_service: &dyn IRepeatFixedSizeArray, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { |
| 808 |
match _aidl_code { |
| 809 |
transactions::r#RepeatBytes => { |
| 810 |
let _arg_input: [u8; 3] = _aidl_data.read()?; |
| 811 |
let mut _arg_repeated: [u8; 3] = Default::default(); |
| 812 |
let _aidl_return = _aidl_service.r#RepeatBytes(&_arg_input, &mut _arg_repeated); |
| 813 |
match &_aidl_return { |
| 814 |
Ok(_aidl_return) => { |
| 815 |
_aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; |
| 816 |
_aidl_reply.write(_aidl_return)?; |
| 817 |
_aidl_reply.write(&_arg_repeated)?; |
| 818 |
} |
| 819 |
Err(_aidl_status) => _aidl_reply.write(_aidl_status)? |
| 820 |
} |
| 821 |
Ok(()) |
| 822 |
} |
| 823 |
transactions::r#RepeatInts => { |
| 824 |
let _arg_input: [i32; 3] = _aidl_data.read()?; |
| 825 |
let mut _arg_repeated: [i32; 3] = Default::default(); |
| 826 |
let _aidl_return = _aidl_service.r#RepeatInts(&_arg_input, &mut _arg_repeated); |
| 827 |
match &_aidl_return { |
| 828 |
Ok(_aidl_return) => { |
| 829 |
_aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; |
| 830 |
_aidl_reply.write(_aidl_return)?; |
| 831 |
_aidl_reply.write(&_arg_repeated)?; |
| 832 |
} |
| 833 |
Err(_aidl_status) => _aidl_reply.write(_aidl_status)? |
| 834 |
} |
| 835 |
Ok(()) |
| 836 |
} |
| 837 |
transactions::r#RepeatBinders => { |
| 838 |
let _arg_input: [binder::SpIBinder; 3] = _aidl_data.read()?; |
| 839 |
let mut _arg_repeated: [Option<binder::SpIBinder>; 3] = Default::default(); |
| 840 |
let _aidl_return = _aidl_service.r#RepeatBinders(&_arg_input, &mut _arg_repeated); |
| 841 |
match &_aidl_return { |
| 842 |
Ok(_aidl_return) => { |
| 843 |
_aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; |
| 844 |
_aidl_reply.write(_aidl_return)?; |
| 845 |
_aidl_reply.write(&_arg_repeated)?; |
| 846 |
} |
| 847 |
Err(_aidl_status) => _aidl_reply.write(_aidl_status)? |
| 848 |
} |
| 849 |
Ok(()) |
| 850 |
} |
| 851 |
transactions::r#RepeatParcelables => { |
| 852 |
let _arg_input: [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3] = _aidl_data.read()?; |
| 853 |
let mut _arg_repeated: [crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3] = Default::default(); |
| 854 |
let _aidl_return = _aidl_service.r#RepeatParcelables(&_arg_input, &mut _arg_repeated); |
| 855 |
match &_aidl_return { |
| 856 |
Ok(_aidl_return) => { |
| 857 |
_aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; |
| 858 |
_aidl_reply.write(_aidl_return)?; |
| 859 |
_aidl_reply.write(&_arg_repeated)?; |
| 860 |
} |
| 861 |
Err(_aidl_status) => _aidl_reply.write(_aidl_status)? |
| 862 |
} |
| 863 |
Ok(()) |
| 864 |
} |
| 865 |
transactions::r#Repeat2dBytes => { |
| 866 |
let _arg_input: [[u8; 3]; 2] = _aidl_data.read()?; |
| 867 |
let mut _arg_repeated: [[u8; 3]; 2] = Default::default(); |
| 868 |
let _aidl_return = _aidl_service.r#Repeat2dBytes(&_arg_input, &mut _arg_repeated); |
| 869 |
match &_aidl_return { |
| 870 |
Ok(_aidl_return) => { |
| 871 |
_aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; |
| 872 |
_aidl_reply.write(_aidl_return)?; |
| 873 |
_aidl_reply.write(&_arg_repeated)?; |
| 874 |
} |
| 875 |
Err(_aidl_status) => _aidl_reply.write(_aidl_status)? |
| 876 |
} |
| 877 |
Ok(()) |
| 878 |
} |
| 879 |
transactions::r#Repeat2dInts => { |
| 880 |
let _arg_input: [[i32; 3]; 2] = _aidl_data.read()?; |
| 881 |
let mut _arg_repeated: [[i32; 3]; 2] = Default::default(); |
| 882 |
let _aidl_return = _aidl_service.r#Repeat2dInts(&_arg_input, &mut _arg_repeated); |
| 883 |
match &_aidl_return { |
| 884 |
Ok(_aidl_return) => { |
| 885 |
_aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; |
| 886 |
_aidl_reply.write(_aidl_return)?; |
| 887 |
_aidl_reply.write(&_arg_repeated)?; |
| 888 |
} |
| 889 |
Err(_aidl_status) => _aidl_reply.write(_aidl_status)? |
| 890 |
} |
| 891 |
Ok(()) |
| 892 |
} |
| 893 |
transactions::r#Repeat2dBinders => { |
| 894 |
let _arg_input: [[binder::SpIBinder; 3]; 2] = _aidl_data.read()?; |
| 895 |
let mut _arg_repeated: [[Option<binder::SpIBinder>; 3]; 2] = Default::default(); |
| 896 |
let _aidl_return = _aidl_service.r#Repeat2dBinders(&_arg_input, &mut _arg_repeated); |
| 897 |
match &_aidl_return { |
| 898 |
Ok(_aidl_return) => { |
| 899 |
_aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; |
| 900 |
_aidl_reply.write(_aidl_return)?; |
| 901 |
_aidl_reply.write(&_arg_repeated)?; |
| 902 |
} |
| 903 |
Err(_aidl_status) => _aidl_reply.write(_aidl_status)? |
| 904 |
} |
| 905 |
Ok(()) |
| 906 |
} |
| 907 |
transactions::r#Repeat2dParcelables => { |
| 908 |
let _arg_input: [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2] = _aidl_data.read()?; |
| 909 |
let mut _arg_repeated: [[crate::mangled::_7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; 3]; 2] = Default::default(); |
| 910 |
let _aidl_return = _aidl_service.r#Repeat2dParcelables(&_arg_input, &mut _arg_repeated); |
| 911 |
match &_aidl_return { |
| 912 |
Ok(_aidl_return) => { |
| 913 |
_aidl_reply.write(&binder::Status::from(binder::StatusCode::OK))?; |
| 914 |
_aidl_reply.write(_aidl_return)?; |
| 915 |
_aidl_reply.write(&_arg_repeated)?; |
| 916 |
} |
| 917 |
Err(_aidl_status) => _aidl_reply.write(_aidl_status)? |
| 918 |
} |
| 919 |
Ok(()) |
| 920 |
} |
| 921 |
_ => Err(binder::StatusCode::UNKNOWN_TRANSACTION) |
| 922 |
} |
| 923 |
} |
| 924 |
} |
| 925 |
pub mod r#ByteEnum { |
| 926 |
#![allow(non_upper_case_globals)] |
| 927 |
use binder::declare_binder_enum; |
| 928 |
declare_binder_enum! { |
| 929 |
r#ByteEnum : [i8; 1] { |
| 930 |
r#A = 0, |
| 931 |
} |
| 932 |
} |
| 933 |
} |
| 934 |
pub mod r#IntEnum { |
| 935 |
#![allow(non_upper_case_globals)] |
| 936 |
use binder::declare_binder_enum; |
| 937 |
declare_binder_enum! { |
| 938 |
r#IntEnum : [i32; 1] { |
| 939 |
r#A = 0, |
| 940 |
} |
| 941 |
} |
| 942 |
} |
| 943 |
pub mod r#LongEnum { |
| 944 |
#![allow(non_upper_case_globals)] |
| 945 |
use binder::declare_binder_enum; |
| 946 |
declare_binder_enum! { |
| 947 |
r#LongEnum : [i64; 1] { |
| 948 |
r#A = 0, |
| 949 |
} |
| 950 |
} |
| 951 |
} |
| 952 |
pub mod r#IntParcelable { |
| 953 |
#[derive(Debug, Clone, Copy, PartialEq)] |
| 954 |
pub struct r#IntParcelable { |
| 955 |
pub r#value: i32, |
| 956 |
} |
| 957 |
impl Default for r#IntParcelable { |
| 958 |
fn default() -> Self { |
| 959 |
Self { |
| 960 |
r#value: 0, |
| 961 |
} |
| 962 |
} |
| 963 |
} |
| 964 |
impl binder::Parcelable for r#IntParcelable { |
| 965 |
fn write_to_parcel(&self, parcel: &mut binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { |
| 966 |
parcel.sized_write(|subparcel| { |
| 967 |
subparcel.write(&self.r#value)?; |
| 968 |
Ok(()) |
| 969 |
}) |
| 970 |
} |
| 971 |
fn read_from_parcel(&mut self, parcel: &binder::binder_impl::BorrowedParcel) -> std::result::Result<(), binder::StatusCode> { |
| 972 |
parcel.sized_read(|subparcel| { |
| 973 |
if subparcel.has_more_data() { |
| 974 |
self.r#value = subparcel.read()?; |
| 975 |
} |
| 976 |
Ok(()) |
| 977 |
}) |
| 978 |
} |
| 979 |
} |
| 980 |
binder::impl_serialize_for_parcelable!(r#IntParcelable); |
| 981 |
binder::impl_deserialize_for_parcelable!(r#IntParcelable); |
| 982 |
impl binder::binder_impl::ParcelableMetadata for r#IntParcelable { |
| 983 |
fn get_descriptor() -> &'static str { "android.aidl.fixedsizearray.FixedSizeArrayExample.IntParcelable" } |
| 984 |
} |
| 985 |
} |
| 986 |
pub mod r#IEmptyInterface { |
| 987 |
#![allow(non_upper_case_globals)] |
| 988 |
#![allow(non_snake_case)] |
| 989 |
#[allow(unused_imports)] use binder::binder_impl::IBinderInternal; |
| 990 |
use binder::declare_binder_interface; |
| 991 |
declare_binder_interface! { |
| 992 |
IEmptyInterface["android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface"] { |
| 993 |
native: BnEmptyInterface(on_transact), |
| 994 |
proxy: BpEmptyInterface { |
| 995 |
}, |
| 996 |
async: IEmptyInterfaceAsync, |
| 997 |
} |
| 998 |
} |
| 999 |
pub trait IEmptyInterface: binder::Interface + Send { |
| 1000 |
fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface" } |
| 1001 |
fn getDefaultImpl() -> IEmptyInterfaceDefaultRef where Self: Sized { |
| 1002 |
DEFAULT_IMPL.lock().unwrap().clone() |
| 1003 |
} |
| 1004 |
fn setDefaultImpl(d: IEmptyInterfaceDefaultRef) -> IEmptyInterfaceDefaultRef where Self: Sized { |
| 1005 |
std::mem::replace(&mut *DEFAULT_IMPL.lock().unwrap(), d) |
| 1006 |
} |
| 1007 |
} |
| 1008 |
pub trait IEmptyInterfaceAsync<P>: binder::Interface + Send { |
| 1009 |
fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface" } |
| 1010 |
} |
| 1011 |
#[::async_trait::async_trait] |
| 1012 |
pub trait IEmptyInterfaceAsyncServer: binder::Interface + Send { |
| 1013 |
fn get_descriptor() -> &'static str where Self: Sized { "android.aidl.fixedsizearray.FixedSizeArrayExample.IEmptyInterface" } |
| 1014 |
} |
| 1015 |
impl BnEmptyInterface { |
| 1016 |
/// Create a new async binder service. |
| 1017 |
pub fn new_async_binder<T, R>(inner: T, rt: R, features: binder::BinderFeatures) -> binder::Strong<dyn IEmptyInterface> |
| 1018 |
where |
| 1019 |
T: IEmptyInterfaceAsyncServer + binder::Interface + Send + Sync + 'static, |
| 1020 |
R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, |
| 1021 |
{ |
| 1022 |
struct Wrapper<T, R> { |
| 1023 |
_inner: T, |
| 1024 |
_rt: R, |
| 1025 |
} |
| 1026 |
impl<T, R> binder::Interface for Wrapper<T, R> where T: binder::Interface, R: Send + Sync + 'static { |
| 1027 |
fn as_binder(&self) -> binder::SpIBinder { self._inner.as_binder() } |
| 1028 |
fn dump(&self, _writer: &mut dyn std::io::Write, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder::StatusCode> { self._inner.dump(_writer, _args) } |
| 1029 |
} |
| 1030 |
impl<T, R> IEmptyInterface for Wrapper<T, R> |
| 1031 |
where |
| 1032 |
T: IEmptyInterfaceAsyncServer + Send + Sync + 'static, |
| 1033 |
R: binder::binder_impl::BinderAsyncRuntime + Send + Sync + 'static, |
| 1034 |
{ |
| 1035 |
} |
| 1036 |
let wrapped = Wrapper { _inner: inner, _rt: rt }; |
| 1037 |
Self::new_binder(wrapped, features) |
| 1038 |
} |
| 1039 |
} |
| 1040 |
pub trait IEmptyInterfaceDefault: Send + Sync { |
| 1041 |
} |
| 1042 |
pub mod transactions { |
| 1043 |
} |
| 1044 |
pub type IEmptyInterfaceDefaultRef = Option<std::sync::Arc<dyn IEmptyInterfaceDefault>>; |
| 1045 |
static DEFAULT_IMPL: std::sync::Mutex<IEmptyInterfaceDefaultRef> = std::sync::Mutex::new(None); |
| 1046 |
impl BpEmptyInterface { |
| 1047 |
} |
| 1048 |
impl IEmptyInterface for BpEmptyInterface { |
| 1049 |
} |
| 1050 |
impl<P: binder::BinderAsyncPool> IEmptyInterfaceAsync<P> for BpEmptyInterface { |
| 1051 |
} |
| 1052 |
impl IEmptyInterface for binder::binder_impl::Binder<BnEmptyInterface> { |
| 1053 |
} |
| 1054 |
fn on_transact(_aidl_service: &dyn IEmptyInterface, _aidl_code: binder::binder_impl::TransactionCode, _aidl_data: &binder::binder_impl::BorrowedParcel<'_>, _aidl_reply: &mut binder::binder_impl::BorrowedParcel<'_>) -> std::result::Result<(), binder::StatusCode> { |
| 1055 |
match _aidl_code { |
| 1056 |
_ => Err(binder::StatusCode::UNKNOWN_TRANSACTION) |
| 1057 |
} |
| 1058 |
} |
| 1059 |
} |
| 1060 |
pub(crate) mod mangled { |
| 1061 |
pub use super::r#FixedSizeArrayExample as _7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample; |
| 1062 |
pub use super::r#IRepeatFixedSizeArray::r#IRepeatFixedSizeArray as _7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_21_IRepeatFixedSizeArray; |
| 1063 |
pub use super::r#ByteEnum::r#ByteEnum as _7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_8_ByteEnum; |
| 1064 |
pub use super::r#IntEnum::r#IntEnum as _7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_7_IntEnum; |
| 1065 |
pub use super::r#LongEnum::r#LongEnum as _7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_8_LongEnum; |
| 1066 |
pub use super::r#IntParcelable::r#IntParcelable as _7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_13_IntParcelable; |
| 1067 |
pub use super::r#IEmptyInterface::r#IEmptyInterface as _7_android_4_aidl_14_fixedsizearray_21_FixedSizeArrayExample_15_IEmptyInterface; |
| 1068 |
} |