Home
last modified time | relevance | path

Searched refs:AParcel (Results 1 – 8 of 8) sorted by relevance

/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_parcel.h45 struct AParcel;
46 typedef struct AParcel AParcel; typedef
54 void AParcel_delete(AParcel* parcel) __INTRODUCED_IN(29);
65 binder_status_t AParcel_setDataPosition(const AParcel* parcel, int32_t position)
79 int32_t AParcel_getDataPosition(const AParcel* parcel) __INTRODUCED_IN(29);
179 typedef binder_status_t (*AParcel_writeParcelableElement)(AParcel* parcel, const void* arrayData,
193 typedef binder_status_t (*AParcel_readParcelableElement)(const AParcel* parcel, void* arrayData,
396 binder_status_t AParcel_writeStrongBinder(AParcel* parcel, AIBinder* binder) __INTRODUCED_IN(29);
407 binder_status_t AParcel_readStrongBinder(const AParcel* parcel, AIBinder** binder)
421 binder_status_t AParcel_writeParcelFileDescriptor(AParcel* parcel, int fd);
[all …]
Dbinder_parcel_utils.h158 static inline binder_status_t AParcel_writeNullableStrongBinder(AParcel* parcel, in AParcel_writeNullableStrongBinder()
166 static inline binder_status_t AParcel_readNullableStrongBinder(const AParcel* parcel, in AParcel_readNullableStrongBinder()
179 static inline binder_status_t AParcel_writeRequiredStrongBinder(AParcel* parcel, in AParcel_writeRequiredStrongBinder()
190 static inline binder_status_t AParcel_readRequiredStrongBinder(const AParcel* parcel, in AParcel_readRequiredStrongBinder()
208 AParcel* parcel, const ScopedFileDescriptor& fd) { in AParcel_writeNullableParcelFileDescriptor()
215 static inline binder_status_t AParcel_readNullableParcelFileDescriptor(const AParcel* parcel, in AParcel_readNullableParcelFileDescriptor()
229 AParcel* parcel, const ScopedFileDescriptor& fd) { in AParcel_writeRequiredParcelFileDescriptor()
239 static inline binder_status_t AParcel_readRequiredParcelFileDescriptor(const AParcel* parcel, in AParcel_readRequiredParcelFileDescriptor()
347 static inline binder_status_t AParcel_writeString(AParcel* parcel, const std::string& str) { in AParcel_writeString()
354 static inline binder_status_t AParcel_readString(const AParcel* parcel, std::string* str) { in AParcel_readString()
[all …]
Dbinder_ibinder.h160 const AParcel* in, AParcel* out);
431 binder_status_t AIBinder_prepareTransaction(AIBinder* binder, AParcel** in) __INTRODUCED_IN(29);
455 binder_status_t AIBinder_transact(AIBinder* binder, transaction_code_t code, AParcel** in,
456 AParcel** out, binder_flags_t flags) __INTRODUCED_IN(29);
Dbinder_auto_utils.h179 class ScopedAParcel : public impl::ScopedAResource<AParcel*, void, AParcel_delete, nullptr> {
184 explicit ScopedAParcel(AParcel* a = nullptr) : ScopedAResource(a) {} in ScopedAResource()
/frameworks/native/libs/binder/ndk/
Dparcel.cpp48 binder_status_t WriteAndValidateArraySize(AParcel* parcel, bool isNullArray, int32_t length) { in WriteAndValidateArraySize()
70 binder_status_t WriteArray(AParcel* parcel, const T* array, int32_t length) { in WriteArray()
88 binder_status_t WriteArray<char16_t>(AParcel* parcel, const char16_t* array, int32_t length) { in WriteArray()
108 binder_status_t ReadArray(const AParcel* parcel, void* arrayData, in ReadArray()
137 binder_status_t ReadArray<char16_t>(const AParcel* parcel, void* arrayData, in ReadArray()
166 binder_status_t WriteArray(AParcel* parcel, const void* arrayData, int32_t length, in WriteArray()
186 binder_status_t ReadArray(const AParcel* parcel, void* arrayData, ArrayAllocator<T> allocator, in ReadArray()
211 void AParcel_delete(AParcel* parcel) { in AParcel_delete()
215 binder_status_t AParcel_setDataPosition(const AParcel* parcel, int32_t position) { in AParcel_setDataPosition()
224 int32_t AParcel_getDataPosition(const AParcel* parcel) { in AParcel_getDataPosition()
[all …]
Dparcel_internal.h26 struct AParcel { struct
30 explicit AParcel(const AIBinder* binder) in AParcel() argument
31 : AParcel(binder, new ::android::Parcel, true /*owns*/) {} in AParcel()
32 AParcel(const AIBinder* binder, ::android::Parcel* parcel, bool owns) in AParcel() function
35 ~AParcel() { in ~AParcel() argument
41 static const AParcel readOnly(const AIBinder* binder, const ::android::Parcel* parcel) { in readOnly() argument
42 return AParcel(binder, const_cast<::android::Parcel*>(parcel), false); in readOnly()
Dibinder.cpp155 const AParcel in = AParcel::readOnly(this, &data); in onTransact()
156 AParcel out = AParcel(this, reply, false /*owns*/); in onTransact()
491 binder_status_t AIBinder_prepareTransaction(AIBinder* binder, AParcel** in) { in AIBinder_prepareTransaction()
511 *in = new AParcel(binder); in AIBinder_prepareTransaction()
523 static void DestroyParcel(AParcel** parcel) { in DestroyParcel()
528 binder_status_t AIBinder_transact(AIBinder* binder, transaction_code_t code, AParcel** in, in AIBinder_transact()
529 AParcel** out, binder_flags_t flags) { in AIBinder_transact()
535 using AutoParcelDestroyer = std::unique_ptr<AParcel*, void (*)(AParcel**)>; in AIBinder_transact()
561 *out = new AParcel(binder); in AIBinder_transact()
/frameworks/native/libs/binder/ndk/test/
Diface.cpp45 binder_status_t IFoo_Class_onTransact(AIBinder* binder, transaction_code_t code, const AParcel* in, in IFoo_Class_onTransact()
46 AParcel* out) { in IFoo_Class_onTransact()
83 AParcel* parcelIn; in doubleNumber()
103 AParcel* parcelIn; in die()