Lines Matching refs:parcel
48 binder_status_t WriteAndValidateArraySize(AParcel* parcel, bool isNullArray, int32_t length) { in WriteAndValidateArraySize() argument
61 Parcel* rawParcel = parcel->get(); in WriteAndValidateArraySize()
70 binder_status_t WriteArray(AParcel* parcel, const T* array, int32_t length) { in WriteArray() argument
71 binder_status_t status = WriteAndValidateArraySize(parcel, array == nullptr, length); in WriteArray()
78 void* const data = parcel->get()->writeInplace(size); in WriteArray()
88 binder_status_t WriteArray<char16_t>(AParcel* parcel, const char16_t* array, int32_t length) { in WriteArray() argument
89 binder_status_t status = WriteAndValidateArraySize(parcel, array == nullptr, length); in WriteArray()
96 Parcel* rawParcel = parcel->get(); in WriteArray()
108 binder_status_t ReadArray(const AParcel* parcel, void* arrayData, in ReadArray() argument
110 const Parcel* rawParcel = parcel->get(); in ReadArray()
137 binder_status_t ReadArray<char16_t>(const AParcel* parcel, void* arrayData, in ReadArray() argument
139 const Parcel* rawParcel = parcel->get(); in ReadArray()
166 binder_status_t WriteArray(AParcel* parcel, const void* arrayData, int32_t length, in WriteArray() argument
170 binder_status_t status = WriteAndValidateArraySize(parcel, arrayIsNull, length); in WriteArray()
174 Parcel* rawParcel = parcel->get(); in WriteArray()
186 binder_status_t ReadArray(const AParcel* parcel, void* arrayData, ArrayAllocator<T> allocator, in ReadArray() argument
188 const Parcel* rawParcel = parcel->get(); in ReadArray()
211 void AParcel_delete(AParcel* parcel) { in AParcel_delete() argument
212 delete parcel; in AParcel_delete()
215 binder_status_t AParcel_setDataPosition(const AParcel* parcel, int32_t position) { in AParcel_setDataPosition() argument
220 parcel->get()->setDataPosition(position); in AParcel_setDataPosition()
224 int32_t AParcel_getDataPosition(const AParcel* parcel) { in AParcel_getDataPosition() argument
225 return parcel->get()->dataPosition(); in AParcel_getDataPosition()
228 binder_status_t AParcel_writeStrongBinder(AParcel* parcel, AIBinder* binder) { in AParcel_writeStrongBinder() argument
230 return parcel->get()->writeStrongBinder(writeBinder); in AParcel_writeStrongBinder()
232 binder_status_t AParcel_readStrongBinder(const AParcel* parcel, AIBinder** binder) { in AParcel_readStrongBinder() argument
234 status_t status = parcel->get()->readNullableStrongBinder(&readBinder); in AParcel_readStrongBinder()
244 binder_status_t AParcel_writeParcelFileDescriptor(AParcel* parcel, int fd) { in AParcel_writeParcelFileDescriptor() argument
256 status_t status = parcel->get()->writeNullableParcelable(parcelFd); in AParcel_writeParcelFileDescriptor()
266 binder_status_t AParcel_readParcelFileDescriptor(const AParcel* parcel, int* fd) { in AParcel_readParcelFileDescriptor() argument
269 status_t status = parcel->get()->readParcelable(&parcelFd); in AParcel_readParcelFileDescriptor()
281 binder_status_t AParcel_writeStatusHeader(AParcel* parcel, const AStatus* status) { in AParcel_writeStatusHeader() argument
282 return PruneStatusT(status->get()->writeToParcel(parcel->get())); in AParcel_writeStatusHeader()
284 binder_status_t AParcel_readStatusHeader(const AParcel* parcel, AStatus** status) { in AParcel_readStatusHeader() argument
286 binder_status_t ret = PruneStatusT(bstatus.readFromParcel(*parcel->get())); in AParcel_readStatusHeader()
293 binder_status_t AParcel_writeString(AParcel* parcel, const char* string, int32_t length) { in AParcel_writeString() argument
300 status_t err = parcel->get()->writeInt32(-1); in AParcel_writeString()
317 status_t err = parcel->get()->writeInt32(len16); in AParcel_writeString()
322 void* str16 = parcel->get()->writeInplace((len16 + 1) * sizeof(char16_t)); in AParcel_writeString()
332 binder_status_t AParcel_readString(const AParcel* parcel, void* stringData, in AParcel_readString() argument
335 const char16_t* str16 = parcel->get()->readString16Inplace(&len16); in AParcel_readString()
371 binder_status_t AParcel_writeStringArray(AParcel* parcel, const void* arrayData, int32_t length, in AParcel_writeStringArray() argument
375 binder_status_t status = WriteAndValidateArraySize(parcel, arrayIsNull, length); in AParcel_writeStringArray()
384 binder_status_t status = AParcel_writeString(parcel, str, elementLength); in AParcel_writeStringArray()
405 binder_status_t AParcel_readStringArray(const AParcel* parcel, void* arrayData, in AParcel_readStringArray() argument
408 const Parcel* rawParcel = parcel->get(); in AParcel_readStringArray()
427 binder_status_t status = AParcel_readString(parcel, static_cast<void*>(&adapter), in AParcel_readStringArray()
436 binder_status_t AParcel_writeParcelableArray(AParcel* parcel, const void* arrayData, int32_t length, in AParcel_writeParcelableArray() argument
440 binder_status_t status = WriteAndValidateArraySize(parcel, arrayIsNull, length); in AParcel_writeParcelableArray()
445 binder_status_t status = elementWriter(parcel, arrayData, i); in AParcel_writeParcelableArray()
452 binder_status_t AParcel_readParcelableArray(const AParcel* parcel, void* arrayData, in AParcel_readParcelableArray() argument
455 const Parcel* rawParcel = parcel->get(); in AParcel_readParcelableArray()
468 binder_status_t status = elementReader(parcel, arrayData, i); in AParcel_readParcelableArray()
478 binder_status_t AParcel_writeInt32(AParcel* parcel, int32_t value) { in AParcel_writeInt32() argument
479 status_t status = parcel->get()->writeInt32(value); in AParcel_writeInt32()
483 binder_status_t AParcel_writeUint32(AParcel* parcel, uint32_t value) { in AParcel_writeUint32() argument
484 status_t status = parcel->get()->writeUint32(value); in AParcel_writeUint32()
488 binder_status_t AParcel_writeInt64(AParcel* parcel, int64_t value) { in AParcel_writeInt64() argument
489 status_t status = parcel->get()->writeInt64(value); in AParcel_writeInt64()
493 binder_status_t AParcel_writeUint64(AParcel* parcel, uint64_t value) { in AParcel_writeUint64() argument
494 status_t status = parcel->get()->writeUint64(value); in AParcel_writeUint64()
498 binder_status_t AParcel_writeFloat(AParcel* parcel, float value) { in AParcel_writeFloat() argument
499 status_t status = parcel->get()->writeFloat(value); in AParcel_writeFloat()
503 binder_status_t AParcel_writeDouble(AParcel* parcel, double value) { in AParcel_writeDouble() argument
504 status_t status = parcel->get()->writeDouble(value); in AParcel_writeDouble()
508 binder_status_t AParcel_writeBool(AParcel* parcel, bool value) { in AParcel_writeBool() argument
509 status_t status = parcel->get()->writeBool(value); in AParcel_writeBool()
513 binder_status_t AParcel_writeChar(AParcel* parcel, char16_t value) { in AParcel_writeChar() argument
514 status_t status = parcel->get()->writeChar(value); in AParcel_writeChar()
518 binder_status_t AParcel_writeByte(AParcel* parcel, int8_t value) { in AParcel_writeByte() argument
519 status_t status = parcel->get()->writeByte(value); in AParcel_writeByte()
523 binder_status_t AParcel_readInt32(const AParcel* parcel, int32_t* value) { in AParcel_readInt32() argument
524 status_t status = parcel->get()->readInt32(value); in AParcel_readInt32()
528 binder_status_t AParcel_readUint32(const AParcel* parcel, uint32_t* value) { in AParcel_readUint32() argument
529 status_t status = parcel->get()->readUint32(value); in AParcel_readUint32()
533 binder_status_t AParcel_readInt64(const AParcel* parcel, int64_t* value) { in AParcel_readInt64() argument
534 status_t status = parcel->get()->readInt64(value); in AParcel_readInt64()
538 binder_status_t AParcel_readUint64(const AParcel* parcel, uint64_t* value) { in AParcel_readUint64() argument
539 status_t status = parcel->get()->readUint64(value); in AParcel_readUint64()
543 binder_status_t AParcel_readFloat(const AParcel* parcel, float* value) { in AParcel_readFloat() argument
544 status_t status = parcel->get()->readFloat(value); in AParcel_readFloat()
548 binder_status_t AParcel_readDouble(const AParcel* parcel, double* value) { in AParcel_readDouble() argument
549 status_t status = parcel->get()->readDouble(value); in AParcel_readDouble()
553 binder_status_t AParcel_readBool(const AParcel* parcel, bool* value) { in AParcel_readBool() argument
554 status_t status = parcel->get()->readBool(value); in AParcel_readBool()
558 binder_status_t AParcel_readChar(const AParcel* parcel, char16_t* value) { in AParcel_readChar() argument
559 status_t status = parcel->get()->readChar(value); in AParcel_readChar()
563 binder_status_t AParcel_readByte(const AParcel* parcel, int8_t* value) { in AParcel_readByte() argument
564 status_t status = parcel->get()->readByte(value); in AParcel_readByte()
568 binder_status_t AParcel_writeInt32Array(AParcel* parcel, const int32_t* arrayData, int32_t length) { in AParcel_writeInt32Array() argument
569 return WriteArray<int32_t>(parcel, arrayData, length); in AParcel_writeInt32Array()
572 binder_status_t AParcel_writeUint32Array(AParcel* parcel, const uint32_t* arrayData, in AParcel_writeUint32Array() argument
574 return WriteArray<uint32_t>(parcel, arrayData, length); in AParcel_writeUint32Array()
577 binder_status_t AParcel_writeInt64Array(AParcel* parcel, const int64_t* arrayData, int32_t length) { in AParcel_writeInt64Array() argument
578 return WriteArray<int64_t>(parcel, arrayData, length); in AParcel_writeInt64Array()
581 binder_status_t AParcel_writeUint64Array(AParcel* parcel, const uint64_t* arrayData, in AParcel_writeUint64Array() argument
583 return WriteArray<uint64_t>(parcel, arrayData, length); in AParcel_writeUint64Array()
586 binder_status_t AParcel_writeFloatArray(AParcel* parcel, const float* arrayData, int32_t length) { in AParcel_writeFloatArray() argument
587 return WriteArray<float>(parcel, arrayData, length); in AParcel_writeFloatArray()
590 binder_status_t AParcel_writeDoubleArray(AParcel* parcel, const double* arrayData, int32_t length) { in AParcel_writeDoubleArray() argument
591 return WriteArray<double>(parcel, arrayData, length); in AParcel_writeDoubleArray()
594 binder_status_t AParcel_writeBoolArray(AParcel* parcel, const void* arrayData, int32_t length, in AParcel_writeBoolArray() argument
596 return WriteArray<bool>(parcel, arrayData, length, getter, &Parcel::writeBool); in AParcel_writeBoolArray()
599 binder_status_t AParcel_writeCharArray(AParcel* parcel, const char16_t* arrayData, int32_t length) { in AParcel_writeCharArray() argument
600 return WriteArray<char16_t>(parcel, arrayData, length); in AParcel_writeCharArray()
603 binder_status_t AParcel_writeByteArray(AParcel* parcel, const int8_t* arrayData, int32_t length) { in AParcel_writeByteArray() argument
604 return WriteArray<int8_t>(parcel, arrayData, length); in AParcel_writeByteArray()
607 binder_status_t AParcel_readInt32Array(const AParcel* parcel, void* arrayData, in AParcel_readInt32Array() argument
609 return ReadArray<int32_t>(parcel, arrayData, allocator); in AParcel_readInt32Array()
612 binder_status_t AParcel_readUint32Array(const AParcel* parcel, void* arrayData, in AParcel_readUint32Array() argument
614 return ReadArray<uint32_t>(parcel, arrayData, allocator); in AParcel_readUint32Array()
617 binder_status_t AParcel_readInt64Array(const AParcel* parcel, void* arrayData, in AParcel_readInt64Array() argument
619 return ReadArray<int64_t>(parcel, arrayData, allocator); in AParcel_readInt64Array()
622 binder_status_t AParcel_readUint64Array(const AParcel* parcel, void* arrayData, in AParcel_readUint64Array() argument
624 return ReadArray<uint64_t>(parcel, arrayData, allocator); in AParcel_readUint64Array()
627 binder_status_t AParcel_readFloatArray(const AParcel* parcel, void* arrayData, in AParcel_readFloatArray() argument
629 return ReadArray<float>(parcel, arrayData, allocator); in AParcel_readFloatArray()
632 binder_status_t AParcel_readDoubleArray(const AParcel* parcel, void* arrayData, in AParcel_readDoubleArray() argument
634 return ReadArray<double>(parcel, arrayData, allocator); in AParcel_readDoubleArray()
637 binder_status_t AParcel_readBoolArray(const AParcel* parcel, void* arrayData, in AParcel_readBoolArray() argument
640 return ReadArray<bool>(parcel, arrayData, allocator, setter, &Parcel::readBool); in AParcel_readBoolArray()
643 binder_status_t AParcel_readCharArray(const AParcel* parcel, void* arrayData, in AParcel_readCharArray() argument
645 return ReadArray<char16_t>(parcel, arrayData, allocator); in AParcel_readCharArray()
648 binder_status_t AParcel_readByteArray(const AParcel* parcel, void* arrayData, in AParcel_readByteArray() argument
650 return ReadArray<int8_t>(parcel, arrayData, allocator); in AParcel_readByteArray()