Home
last modified time | relevance | path

Searched refs:AIBinder (Results 1 – 21 of 21) sorted by relevance

/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_ibinder.h117 struct AIBinder;
118 typedef struct AIBinder AIBinder; typedef
166 typedef binder_status_t (*AIBinder_Class_onTransact)(AIBinder* binder, transaction_code_t code,
202 typedef binder_status_t (*AIBinder_onDump)(AIBinder* binder, int fd, const char** args,
241 __attribute__((warn_unused_result)) AIBinder* AIBinder_new(const AIBinder_Class* clazz, void* args)
253 bool AIBinder_isRemote(const AIBinder* binder) __INTRODUCED_IN(29);
268 bool AIBinder_isAlive(const AIBinder* binder) __INTRODUCED_IN(29);
281 binder_status_t AIBinder_ping(AIBinder* binder) __INTRODUCED_IN(29);
297 binder_status_t AIBinder_dump(AIBinder* binder, int fd, const char** args, uint32_t numArgs)
319 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient,
[all …]
Dbinder_ibinder_jni.h51 __attribute__((warn_unused_result)) AIBinder* AIBinder_fromJavaBinder(JNIEnv* env, jobject binder)
67 __attribute__((warn_unused_result)) jobject AIBinder_toJavaBinder(JNIEnv* env, AIBinder* binder)
Dbinder_parcel.h35 struct AIBinder;
36 typedef struct AIBinder AIBinder; typedef
406 binder_status_t AParcel_writeStrongBinder(AParcel* parcel, AIBinder* binder) __INTRODUCED_IN(29);
419 binder_status_t AParcel_readStrongBinder(const AParcel* parcel, AIBinder** binder)
/frameworks/native/libs/binder/ndk/
Dibinder.cpp72 AIBinder::AIBinder(const AIBinder_Class* clazz) : mClazz(clazz) {} in AIBinder() function in AIBinder
73 AIBinder::~AIBinder() {} in ~AIBinder()
75 bool AIBinder::associateClass(const AIBinder_Class* clazz) { in associateClass()
121 : AIBinder(clazz), BBinder(), mUserData(userData) { in ABBinder()
216 : AIBinder(nullptr /*clazz*/), BpRefBase(binder) { in ABpBinder()
239 sp<AIBinder> ABpBinder::lookupOrCreateFromBinder(const ::android::sp<::android::IBinder>& binder) { in lookupOrCreateFromBinder()
269 wp<AIBinder> binder;
271 AIBinder_Weak* AIBinder_Weak_new(AIBinder* binder) { in AIBinder_Weak_new()
276 return new AIBinder_Weak{wp<AIBinder>(binder)}; in AIBinder_Weak_new()
281 AIBinder* AIBinder_Weak_promote(AIBinder_Weak* weakBinder) { in AIBinder_Weak_promote()
[all …]
Dparcel_internal.h30 explicit AParcel(const AIBinder* binder) in AParcel()
32 AParcel(const AIBinder* binder, ::android::Parcel* parcel, bool owns) in AParcel()
41 static const AParcel readOnly(const AIBinder* binder, const ::android::Parcel* parcel) { in readOnly()
45 const AIBinder* getBinder() { return mBinder; } in getBinder()
50 const AIBinder* mBinder;
Dservice_manager.cpp31 binder_status_t AServiceManager_addService(AIBinder* binder, const char* instance) { in AServiceManager_addService()
40 AIBinder* AServiceManager_checkService(const char* instance) { in AServiceManager_checkService()
48 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_checkService()
52 AIBinder* AServiceManager_getService(const char* instance) { in AServiceManager_getService()
60 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_getService()
Dibinder_internal.h38 struct AIBinder : public virtual ::android::RefBase { struct
39 explicit AIBinder(const AIBinder_Class* clazz);
40 virtual ~AIBinder();
50 ::android::sp<::android::IBinder> binder = const_cast<AIBinder*>(this)->getBinder(); in isRemote() argument
62 struct ABBinder : public AIBinder, public ::android::BBinder {
79 friend AIBinder* AIBinder_new(const AIBinder_Class*, void*);
89 struct ABpBinder : public AIBinder, public ::android::BpRefBase {
92 static ::android::sp<AIBinder> lookupOrCreateFromBinder(
Dibinder_jni.cpp27 AIBinder* AIBinder_fromJavaBinder(JNIEnv* env, jobject binder) { in AIBinder_fromJavaBinder()
33 sp<AIBinder> cbinder = ABpBinder::lookupOrCreateFromBinder(ibinder); in AIBinder_fromJavaBinder()
39 jobject AIBinder_toJavaBinder(JNIEnv* env, AIBinder* binder) { in AIBinder_toJavaBinder()
Dstability.cpp35 extern "C" void AIBinder_markVendorStability(AIBinder* binder) { in AIBinder_markVendorStability()
39 void AIBinder_markSystemStability(AIBinder* binder) { in AIBinder_markSystemStability()
43 void AIBinder_markVintfStability(AIBinder* binder) { in AIBinder_markVintfStability()
Dparcel.cpp229 binder_status_t AParcel_writeStrongBinder(AParcel* parcel, AIBinder* binder) { in AParcel_writeStrongBinder()
233 binder_status_t AParcel_readStrongBinder(const AParcel* parcel, AIBinder** binder) { in AParcel_readStrongBinder()
239 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(readBinder); in AParcel_readStrongBinder()
/frameworks/native/libs/binder/ndk/include_platform/android/
Dbinder_stability.h42 void AIBinder_markVendorStability(AIBinder* binder);
44 static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) { in AIBinder_markCompilationUnitStability()
57 __attribute__((weak)) void AIBinder_markSystemStability(AIBinder* binder);
59 static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) { in AIBinder_markCompilationUnitStability()
70 void AIBinder_markVintfStability(AIBinder* binder);
Dbinder_manager.h33 binder_status_t AServiceManager_addService(AIBinder* binder, const char* instance);
42 __attribute__((warn_unused_result)) AIBinder* AServiceManager_checkService(const char* instance);
51 __attribute__((warn_unused_result)) AIBinder* AServiceManager_getService(const char* instance);
Dbinder_ibinder_platform.h35 void AIBinder_setRequestingSid(AIBinder* binder, bool requestingSid) __INTRODUCED_IN(31);
64 android::sp<android::IBinder> AIBinder_toPlatformBinder(AIBinder* binder);
78 AIBinder* AIBinder_fromPlatformBinder(const android::sp<android::IBinder>& binder);
Dbinder_shell.h38 typedef binder_status_t (*AIBinder_handleShellCommand)(AIBinder* binder, int in, int out, int err,
/frameworks/native/libs/binder/ndk/include_cpp/android/
Dbinder_auto_utils.h49 explicit SpAIBinder(AIBinder* binder = nullptr) : mBinder(binder) {} in mBinder()
80 void set(AIBinder* binder) { in set()
81 AIBinder* old = *const_cast<AIBinder* volatile*>(&mBinder); in set()
83 if (old != *const_cast<AIBinder* volatile*>(&mBinder)) { in set()
93 AIBinder* get() const { return mBinder; } in get()
107 AIBinder** getR() { return &mBinder; } in getR()
110 AIBinder* mBinder = nullptr;
Dbinder_interface_utils.h139 static inline std::shared_ptr<ICInterface> asInterface(AIBinder* binder);
152 static inline std::shared_ptr<ICInterface> getInterface(AIBinder* binder);
156 static inline binder_status_t onDump(AIBinder* binder, int fd, const char** args,
160 static inline binder_status_t handleShellCommand(AIBinder* binder, int in, int out, int err,
225 std::shared_ptr<ICInterface> ICInterface::asInterface(AIBinder* binder) { in asInterface()
248 std::shared_ptr<ICInterface> ICInterface::ICInterfaceData::getInterface(AIBinder* binder) { in getInterface()
267 binder_status_t ICInterface::ICInterfaceData::onDump(AIBinder* binder, int fd, const char** args, in onDump()
274 binder_status_t ICInterface::ICInterfaceData::handleShellCommand(AIBinder* binder, int in, int out, in handleShellCommand()
Dbinder_parcel_utils.h168 AIBinder* readBinder; in AParcel_readNullableStrongBinder()
192 AIBinder* readBinder; in AParcel_readRequiredStrongBinder()
/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()
77 explicit BpFoo(AIBinder* binder) : mBinder(binder) {} in BpFoo()
114 AIBinder* mBinder;
122 AIBinder* binder = nullptr; in addService()
143 sp<IFoo> IFoo::getService(const char* instance, AIBinder** outBinder) { in getService()
144 AIBinder* binder = AServiceManager_getService(instance); // maybe nullptr in getService()
170 AIBinder* held = AIBinder_Weak_promote(ret->mWeakBinder); in getService()
Dlibbinder_ndk_unit_test.cpp153 AIBinder* binder = AServiceManager_checkService("asdfghkl;"); in TEST()
158 AIBinder* binder = AServiceManager_checkService(kExistingNonNdkService); in TEST()
181 AIBinder* binder; in TEST()
215 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST()
229 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST()
272 AIBinder* binderA = AServiceManager_getService(kExistingNonNdkService); in TEST()
275 AIBinder* binderB = AServiceManager_getService(kExistingNonNdkService); in TEST()
290 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST()
/frameworks/native/libs/binder/ndk/tests/include/iface/
Diface.h35 static ::android::sp<IFoo> getService(const char* instance, AIBinder** outBinder = nullptr);
/frameworks/native/libs/binder/tests/
DbinderStabilityTest.cpp224 NdkBinderStable_DataClass* NdkBadStableBinder_getUserData(AIBinder* binder) { in NdkBadStableBinder_getUserData()
232 AIBinder* binder, transaction_code_t code, const AParcel* /*in*/, AParcel* /*out*/) { in NdkBadStableBinder_Class_onTransact()
250 extern "C" void AIBinder_markVendorStability(AIBinder* binder); // <- BAD DO NOT COPY