Lines Matching refs:arrayData
40 using ContiguousArrayAllocator = bool (*)(void* arrayData, int32_t length, T** outBuffer);
43 using ArrayAllocator = bool (*)(void* arrayData, int32_t length);
45 using ArrayGetter = T (*)(const void* arrayData, size_t index);
47 using ArraySetter = void (*)(void* arrayData, size_t index, T value);
109 binder_status_t ReadArray(const AParcel* parcel, void* arrayData, in ReadArray() argument
120 if (!allocator(arrayData, length, &array)) return STATUS_NO_MEMORY; in ReadArray()
138 binder_status_t ReadArray<char16_t>(const AParcel* parcel, void* arrayData, in ReadArray() argument
149 if (!allocator(arrayData, length, &array)) return STATUS_NO_MEMORY; in ReadArray()
167 binder_status_t WriteArray(AParcel* parcel, const void* arrayData, int32_t length, in WriteArray() argument
178 status = (rawParcel->*write)(getter(arrayData, i)); in WriteArray()
187 binder_status_t ReadArray(const AParcel* parcel, void* arrayData, ArrayAllocator<T> allocator, in ReadArray() argument
197 if (!allocator(arrayData, length)) return STATUS_NO_MEMORY; in ReadArray()
206 setter(arrayData, i, readTarget); in ReadArray()
364 binder_status_t AParcel_writeStringArray(AParcel* parcel, const void* arrayData, int32_t length, in AParcel_writeStringArray() argument
374 const char* str = getter(arrayData, i, &elementLength); in AParcel_writeStringArray()
387 void* arrayData; // stringData from the NDK member
394 return adapter->elementAllocator(adapter->arrayData, adapter->index, length, buffer); in Allocator()
398 binder_status_t AParcel_readStringArray(const AParcel* parcel, void* arrayData, in AParcel_readStringArray() argument
409 if (!allocator(arrayData, length)) return STATUS_NO_MEMORY; in AParcel_readStringArray()
414 .arrayData = arrayData, in AParcel_readStringArray()
429 binder_status_t AParcel_writeParcelableArray(AParcel* parcel, const void* arrayData, int32_t length, in AParcel_writeParcelableArray() argument
438 binder_status_t status = elementWriter(parcel, arrayData, i); in AParcel_writeParcelableArray()
445 binder_status_t AParcel_readParcelableArray(const AParcel* parcel, void* arrayData, in AParcel_readParcelableArray() argument
456 if (!allocator(arrayData, length)) return STATUS_NO_MEMORY; in AParcel_readParcelableArray()
461 binder_status_t status = elementReader(parcel, arrayData, i); in AParcel_readParcelableArray()
561 binder_status_t AParcel_writeInt32Array(AParcel* parcel, const int32_t* arrayData, int32_t length) { in AParcel_writeInt32Array() argument
562 return WriteArray<int32_t>(parcel, arrayData, length); in AParcel_writeInt32Array()
565 binder_status_t AParcel_writeUint32Array(AParcel* parcel, const uint32_t* arrayData, in AParcel_writeUint32Array() argument
567 return WriteArray<uint32_t>(parcel, arrayData, length); in AParcel_writeUint32Array()
570 binder_status_t AParcel_writeInt64Array(AParcel* parcel, const int64_t* arrayData, int32_t length) { in AParcel_writeInt64Array() argument
571 return WriteArray<int64_t>(parcel, arrayData, length); in AParcel_writeInt64Array()
574 binder_status_t AParcel_writeUint64Array(AParcel* parcel, const uint64_t* arrayData, in AParcel_writeUint64Array() argument
576 return WriteArray<uint64_t>(parcel, arrayData, length); in AParcel_writeUint64Array()
579 binder_status_t AParcel_writeFloatArray(AParcel* parcel, const float* arrayData, int32_t length) { in AParcel_writeFloatArray() argument
580 return WriteArray<float>(parcel, arrayData, length); in AParcel_writeFloatArray()
583 binder_status_t AParcel_writeDoubleArray(AParcel* parcel, const double* arrayData, int32_t length) { in AParcel_writeDoubleArray() argument
584 return WriteArray<double>(parcel, arrayData, length); in AParcel_writeDoubleArray()
587 binder_status_t AParcel_writeBoolArray(AParcel* parcel, const void* arrayData, int32_t length, in AParcel_writeBoolArray() argument
589 return WriteArray<bool>(parcel, arrayData, length, getter, &Parcel::writeBool); in AParcel_writeBoolArray()
592 binder_status_t AParcel_writeCharArray(AParcel* parcel, const char16_t* arrayData, int32_t length) { in AParcel_writeCharArray() argument
593 return WriteArray<char16_t>(parcel, arrayData, length); in AParcel_writeCharArray()
596 binder_status_t AParcel_writeByteArray(AParcel* parcel, const int8_t* arrayData, int32_t length) { in AParcel_writeByteArray() argument
597 return WriteArray<int8_t>(parcel, arrayData, length); in AParcel_writeByteArray()
600 binder_status_t AParcel_readInt32Array(const AParcel* parcel, void* arrayData, in AParcel_readInt32Array() argument
602 return ReadArray<int32_t>(parcel, arrayData, allocator); in AParcel_readInt32Array()
605 binder_status_t AParcel_readUint32Array(const AParcel* parcel, void* arrayData, in AParcel_readUint32Array() argument
607 return ReadArray<uint32_t>(parcel, arrayData, allocator); in AParcel_readUint32Array()
610 binder_status_t AParcel_readInt64Array(const AParcel* parcel, void* arrayData, in AParcel_readInt64Array() argument
612 return ReadArray<int64_t>(parcel, arrayData, allocator); in AParcel_readInt64Array()
615 binder_status_t AParcel_readUint64Array(const AParcel* parcel, void* arrayData, in AParcel_readUint64Array() argument
617 return ReadArray<uint64_t>(parcel, arrayData, allocator); in AParcel_readUint64Array()
620 binder_status_t AParcel_readFloatArray(const AParcel* parcel, void* arrayData, in AParcel_readFloatArray() argument
622 return ReadArray<float>(parcel, arrayData, allocator); in AParcel_readFloatArray()
625 binder_status_t AParcel_readDoubleArray(const AParcel* parcel, void* arrayData, in AParcel_readDoubleArray() argument
627 return ReadArray<double>(parcel, arrayData, allocator); in AParcel_readDoubleArray()
630 binder_status_t AParcel_readBoolArray(const AParcel* parcel, void* arrayData, in AParcel_readBoolArray() argument
633 return ReadArray<bool>(parcel, arrayData, allocator, setter, &Parcel::readBool); in AParcel_readBoolArray()
636 binder_status_t AParcel_readCharArray(const AParcel* parcel, void* arrayData, in AParcel_readCharArray() argument
638 return ReadArray<char16_t>(parcel, arrayData, allocator); in AParcel_readCharArray()
641 binder_status_t AParcel_readByteArray(const AParcel* parcel, void* arrayData, in AParcel_readByteArray() argument
643 return ReadArray<int8_t>(parcel, arrayData, allocator); in AParcel_readByteArray()