Home
last modified time | relevance | path

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

/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_parcel.h47 struct AParcel;
48 typedef struct AParcel AParcel; typedef
58 void AParcel_delete(AParcel* parcel) __INTRODUCED_IN(29);
71 binder_status_t AParcel_setDataPosition(const AParcel* parcel, int32_t position)
87 int32_t AParcel_getDataPosition(const AParcel* parcel) __INTRODUCED_IN(29);
187 typedef binder_status_t (*AParcel_writeParcelableElement)(AParcel* parcel, const void* arrayData,
201 typedef binder_status_t (*AParcel_readParcelableElement)(const AParcel* parcel, void* arrayData,
406 binder_status_t AParcel_writeStrongBinder(AParcel* parcel, AIBinder* binder) __INTRODUCED_IN(29);
419 binder_status_t AParcel_readStrongBinder(const AParcel* parcel, AIBinder** binder)
435 binder_status_t AParcel_writeParcelFileDescriptor(AParcel* parcel, int fd) __INTRODUCED_IN(29);
[all …]
Dbinder_ibinder.h167 const AParcel* in, AParcel* out);
476 binder_status_t AIBinder_prepareTransaction(AIBinder* binder, AParcel** in) __INTRODUCED_IN(29);
502 binder_status_t AIBinder_transact(AIBinder* binder, transaction_code_t code, AParcel** in,
503 AParcel** out, binder_flags_t flags) __INTRODUCED_IN(29);
Dbinder_parcel_jni.h50 __attribute__((warn_unused_result)) AParcel* AParcel_fromJavaParcel(JNIEnv* env, jobject parcel)
/frameworks/native/libs/binder/ndk/
Dparcel.cpp49 binder_status_t WriteAndValidateArraySize(AParcel* parcel, bool isNullArray, int32_t length) { in WriteAndValidateArraySize()
71 binder_status_t WriteArray(AParcel* parcel, const T* array, int32_t length) { in WriteArray()
89 binder_status_t WriteArray<char16_t>(AParcel* parcel, const char16_t* array, int32_t length) { in WriteArray()
109 binder_status_t ReadArray(const AParcel* parcel, void* arrayData, in ReadArray()
138 binder_status_t ReadArray<char16_t>(const AParcel* parcel, void* arrayData, in ReadArray()
167 binder_status_t WriteArray(AParcel* parcel, const void* arrayData, int32_t length, in WriteArray()
187 binder_status_t ReadArray(const AParcel* parcel, void* arrayData, ArrayAllocator<T> allocator, in ReadArray()
212 void AParcel_delete(AParcel* parcel) { in AParcel_delete()
216 binder_status_t AParcel_setDataPosition(const AParcel* parcel, int32_t position) { in AParcel_setDataPosition()
225 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()
Dparcel_jni.cpp25 AParcel* AParcel_fromJavaParcel(JNIEnv* env, jobject jbinder) { in AParcel_fromJavaParcel()
36 return new AParcel(nullptr /*binder*/, parcel, false /*shouldOwn*/); in AParcel_fromJavaParcel()
Dibinder.cpp166 const AParcel in = AParcel::readOnly(this, &data); in onTransact()
167 AParcel out = AParcel(this, reply, false /*owns*/); in onTransact()
547 binder_status_t AIBinder_prepareTransaction(AIBinder* binder, AParcel** in) { in AIBinder_prepareTransaction()
567 *in = new AParcel(binder); in AIBinder_prepareTransaction()
579 static void DestroyParcel(AParcel** parcel) { in DestroyParcel()
584 binder_status_t AIBinder_transact(AIBinder* binder, transaction_code_t code, AParcel** in, in AIBinder_transact()
585 AParcel** out, binder_flags_t flags) { in AIBinder_transact()
591 using AutoParcelDestroyer = std::unique_ptr<AParcel*, void (*)(AParcel**)>; in AIBinder_transact()
618 *out = new AParcel(binder); in AIBinder_transact()
/frameworks/native/libs/binder/ndk/include_cpp/android/
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_auto_utils.h184 class ScopedAParcel : public impl::ScopedAResource<AParcel*, void, AParcel_delete, nullptr> {
189 explicit ScopedAParcel(AParcel* a = nullptr) : ScopedAResource(a) {} in ScopedAResource()
/frameworks/native/libs/binder/ndk/tests/
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()
/frameworks/native/libs/binder/ndk/include_platform/android/
Dbinder_parcel_platform.h34 bool AParcel_getAllowFds(const AParcel*);
/frameworks/native/libs/binder/tests/
DbinderStabilityTest.cpp232 AIBinder* binder, transaction_code_t code, const AParcel* /*in*/, AParcel* /*out*/) { in NdkBadStableBinder_Class_onTransact() argument