/frameworks/native/libs/binder/ndk/include_ndk/android/ |
D | binder_ibinder.h | 110 struct AIBinder; 111 typedef struct AIBinder AIBinder; typedef 159 typedef binder_status_t (*AIBinder_Class_onTransact)(AIBinder* binder, transaction_code_t code, 193 typedef binder_status_t (*AIBinder_onDump)(AIBinder* binder, int fd, const char** args, 228 __attribute__((warn_unused_result)) AIBinder* AIBinder_new(const AIBinder_Class* clazz, void* args) 238 bool AIBinder_isRemote(const AIBinder* binder) __INTRODUCED_IN(29); 251 bool AIBinder_isAlive(const AIBinder* binder) __INTRODUCED_IN(29); 262 binder_status_t AIBinder_ping(AIBinder* binder) __INTRODUCED_IN(29); 276 binder_status_t AIBinder_dump(AIBinder* binder, int fd, const char** args, uint32_t numArgs) 296 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient, [all …]
|
D | binder_auto_utils.h | 48 explicit SpAIBinder(AIBinder* binder = nullptr) : mBinder(binder) {} in mBinder() 79 void set(AIBinder* binder) { in set() 80 AIBinder* old = *const_cast<AIBinder* volatile*>(&mBinder); in set() 82 if (old != *const_cast<AIBinder* volatile*>(&mBinder)) { in set() 92 AIBinder* get() const { return mBinder; } in get() 106 AIBinder** getR() { return &mBinder; } in getR() 109 AIBinder* mBinder = nullptr;
|
D | binder_interface_utils.h | 120 static inline std::shared_ptr<ICInterface> asInterface(AIBinder* binder); 133 static inline std::shared_ptr<ICInterface> getInterface(AIBinder* binder); 137 static inline binder_status_t onDump(AIBinder* binder, int fd, const char** args, 194 std::shared_ptr<ICInterface> ICInterface::asInterface(AIBinder* binder) { in asInterface() 212 std::shared_ptr<ICInterface> ICInterface::ICInterfaceData::getInterface(AIBinder* binder) { in getInterface() 231 binder_status_t ICInterface::ICInterfaceData::onDump(AIBinder* binder, int fd, const char** args, in onDump()
|
D | binder_ibinder_jni.h | 49 __attribute__((warn_unused_result)) AIBinder* AIBinder_fromJavaBinder(JNIEnv* env, jobject binder) 63 __attribute__((warn_unused_result)) jobject AIBinder_toJavaBinder(JNIEnv* env, AIBinder* binder)
|
D | binder_parcel.h | 33 struct AIBinder; 34 typedef struct AIBinder AIBinder; typedef 396 binder_status_t AParcel_writeStrongBinder(AParcel* parcel, AIBinder* binder) __INTRODUCED_IN(29); 407 binder_status_t AParcel_readStrongBinder(const AParcel* parcel, AIBinder** binder)
|
D | binder_parcel_utils.h | 168 AIBinder* readBinder; in AParcel_readNullableStrongBinder() 192 AIBinder* readBinder; in AParcel_readRequiredStrongBinder()
|
/frameworks/native/libs/binder/ndk/ |
D | ibinder.cpp | 67 AIBinder::AIBinder(const AIBinder_Class* clazz) : mClazz(clazz) {} in AIBinder() function in AIBinder 68 AIBinder::~AIBinder() {} in ~AIBinder() 70 bool AIBinder::associateClass(const AIBinder_Class* clazz) { in associateClass() 110 : AIBinder(clazz), BBinder(), mUserData(userData) { in ABBinder() 166 : AIBinder(nullptr /*clazz*/), BpRefBase(binder) { in ABpBinder() 189 sp<AIBinder> ABpBinder::lookupOrCreateFromBinder(const ::android::sp<::android::IBinder>& binder) { in lookupOrCreateFromBinder() 219 wp<AIBinder> binder; 221 AIBinder_Weak* AIBinder_Weak_new(AIBinder* binder) { in AIBinder_Weak_new() 226 return new AIBinder_Weak{wp<AIBinder>(binder)}; in AIBinder_Weak_new() 231 AIBinder* AIBinder_Weak_promote(AIBinder_Weak* weakBinder) { in AIBinder_Weak_promote() [all …]
|
D | parcel_internal.h | 30 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;
|
D | service_manager.cpp | 31 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()
|
D | ibinder_internal.h | 37 struct AIBinder : public virtual ::android::RefBase { struct 38 explicit AIBinder(const AIBinder_Class* clazz); 39 virtual ~AIBinder(); 49 ::android::sp<::android::IBinder> binder = const_cast<AIBinder*>(this)->getBinder(); in isRemote() argument 61 struct ABBinder : public AIBinder, public ::android::BBinder { 78 friend AIBinder* AIBinder_new(const AIBinder_Class*, void*); 88 struct ABpBinder : public AIBinder, public ::android::BpRefBase { 91 static ::android::sp<AIBinder> lookupOrCreateFromBinder(
|
D | ibinder_jni.cpp | 27 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()
|
D | parcel.cpp | 228 binder_status_t AParcel_writeStrongBinder(AParcel* parcel, AIBinder* binder) { in AParcel_writeStrongBinder() 232 binder_status_t AParcel_readStrongBinder(const AParcel* parcel, AIBinder** binder) { in AParcel_readStrongBinder() 238 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(readBinder); in AParcel_readStrongBinder()
|
/frameworks/native/libs/binder/ndk/test/ |
D | iface.cpp | 45 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()
|
D | main_client.cpp | 39 AIBinder* binder = AServiceManager_checkService("asdfghkl;"); in TEST() 44 AIBinder* binder = AServiceManager_checkService(kExistingNonNdkService); in TEST() 67 AIBinder* binder; in TEST() 101 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST() 115 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST() 158 AIBinder* binderA = AServiceManager_getService(kExistingNonNdkService); in TEST() 161 AIBinder* binderB = AServiceManager_getService(kExistingNonNdkService); in TEST() 176 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST()
|
/frameworks/native/libs/binder/ndk/include_apex/android/ |
D | binder_manager.h | 33 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);
|
/frameworks/native/libs/binder/ndk/test/include/iface/ |
D | iface.h | 35 static ::android::sp<IFoo> getService(const char* instance, AIBinder** outBinder = nullptr);
|