/frameworks/native/libs/binder/ndk/include_ndk/android/ |
D | binder_ibinder.h | 115 struct AIBinder; 116 typedef struct AIBinder AIBinder; typedef 169 typedef binder_status_t (*AIBinder_Class_onTransact)(AIBinder* binder, transaction_code_t code, 205 typedef binder_status_t (*AIBinder_onDump)(AIBinder* binder, int fd, const char** args, 265 __attribute__((warn_unused_result)) AIBinder* AIBinder_new(const AIBinder_Class* clazz, void* args) 277 bool AIBinder_isRemote(const AIBinder* binder) __INTRODUCED_IN(29); 292 bool AIBinder_isAlive(const AIBinder* binder) __INTRODUCED_IN(29); 305 binder_status_t AIBinder_ping(AIBinder* binder) __INTRODUCED_IN(29); 321 binder_status_t AIBinder_dump(AIBinder* binder, int fd, const char** args, uint32_t numArgs) 343 binder_status_t AIBinder_linkToDeath(AIBinder* binder, AIBinder_DeathRecipient* recipient, [all …]
|
D | binder_ibinder_jni.h | 50 __attribute__((warn_unused_result)) AIBinder* AIBinder_fromJavaBinder(JNIEnv* env, jobject binder) 72 __attribute__((warn_unused_result)) jobject AIBinder_toJavaBinder(JNIEnv* env, AIBinder* binder)
|
D | binder_parcel.h | 35 struct AIBinder; 36 typedef struct AIBinder AIBinder; typedef 410 binder_status_t AParcel_writeStrongBinder(AParcel* parcel, AIBinder* binder) __INTRODUCED_IN(29); 423 binder_status_t AParcel_readStrongBinder(const AParcel* parcel, AIBinder** binder)
|
/frameworks/native/libs/binder/ndk/include_platform/android/ |
D | binder_stability.h | 42 void AIBinder_markVendorStability(AIBinder* binder); 44 static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) { in AIBinder_markCompilationUnitStability() 63 void AIBinder_forceDowngradeToVendorStability(AIBinder* binder); 65 static inline void AIBinder_forceDowngradeToLocalStability(AIBinder* binder) { in AIBinder_forceDowngradeToLocalStability() 78 __attribute__((weak)) void AIBinder_markSystemStability(AIBinder* binder); 80 static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) { in AIBinder_markCompilationUnitStability() 101 void AIBinder_forceDowngradeToSystemStability(AIBinder* binder); 103 static inline void AIBinder_forceDowngradeToLocalStability(AIBinder* binder) { in AIBinder_forceDowngradeToLocalStability() 122 void AIBinder_markVintfStability(AIBinder* binder);
|
D | binder_manager.h | 48 AIBinder* binder, const char* instance) __INTRODUCED_IN(29); 64 AIBinder* binder, const char* instance, const AServiceManager_AddServiceFlag flags) 77 __attribute__((warn_unused_result)) AIBinder* AServiceManager_checkService(const char* instance) 99 __attribute__((warn_unused_result)) AIBinder* AServiceManager_getService(const char* instance) 118 binder_status_t AServiceManager_registerLazyService(AIBinder* binder, const char* instance) 135 __attribute__((warn_unused_result)) AIBinder* AServiceManager_waitForService(const char* instance) 150 typedef void (*AServiceManager_onRegister)(const char* instance, AIBinder* registered,
|
D | binder_ibinder_platform.h | 42 __attribute__((weak)) void AIBinder_setRequestingSid(AIBinder* binder, bool requestingSid) 69 void AIBinder_setMinSchedulerPolicy(AIBinder* binder, int policy, int priority) __INTRODUCED_IN(33); 81 void AIBinder_setInheritRt(AIBinder* binder, bool inheritRt) __INTRODUCED_IN(33);
|
D | binder_libbinder.h | 36 android::sp<android::IBinder> AIBinder_toPlatformBinder(AIBinder* binder); 50 AIBinder* AIBinder_fromPlatformBinder(const android::sp<android::IBinder>& binder);
|
/frameworks/native/libs/binder/include_rpc_unstable/ |
D | binder_rpc_unstable.hpp | 24 struct AIBinder; 40 [[nodiscard]] ARpcServer* ARpcServer_newVsock(AIBinder* service, unsigned int cid, 48 [[nodiscard]] ARpcServer* ARpcServer_newInitUnixDomain(AIBinder* service, const char* name); 58 [[nodiscard]] ARpcServer* ARpcServer_newUnixDomainBootstrap(AIBinder* service, int bootstrapFd); 66 [[nodiscard]] ARpcServer* ARpcServer_newInet(AIBinder* service, const char* address, 97 AIBinder* ARpcSession_setupVsockClient(ARpcSession* session, unsigned int cid, 103 AIBinder* ARpcSession_setupUnixDomainClient(ARpcSession* session, const char* name); 107 AIBinder* ARpcSession_setupUnixDomainBootstrapClient(ARpcSession* session, 112 AIBinder* ARpcSession_setupInet(ARpcSession* session, const char* address, unsigned int port); 121 AIBinder* ARpcSession_setupPreconnectedClient(ARpcSession* session,
|
/frameworks/native/libs/binder/ndk/ |
D | ibinder.cpp | 75 AIBinder::AIBinder(const AIBinder_Class* clazz) : mClazz(clazz) {} in AIBinder() function in AIBinder 76 AIBinder::~AIBinder() {} in ~AIBinder() 89 bool AIBinder::associateClass(const AIBinder_Class* clazz) { in associateClass() 164 : AIBinder(clazz), BBinder(), mUserData(userData) { in ABBinder() 259 : AIBinder(nullptr /*clazz*/), mRemote(binder) { in ABpBinder() 264 sp<AIBinder> ABpBinder::lookupOrCreateFromBinder(const ::android::sp<::android::IBinder>& binder) { in lookupOrCreateFromBinder() 302 wp<AIBinder> binder; 304 AIBinder_Weak* AIBinder_Weak_new(AIBinder* binder) { in AIBinder_Weak_new() 309 return new AIBinder_Weak{wp<AIBinder>(binder)}; in AIBinder_Weak_new() 314 AIBinder* AIBinder_Weak_promote(AIBinder_Weak* weakBinder) { in AIBinder_Weak_promote() [all …]
|
D | parcel_internal.h | 30 explicit AParcel(AIBinder* binder) : AParcel(binder, new ::android::Parcel, true /*owns*/) {} in AParcel() 31 AParcel(AIBinder* binder, ::android::Parcel* parcel, bool owns) in AParcel() 40 static const AParcel readOnly(AIBinder* binder, const ::android::Parcel* parcel) { in readOnly() 44 const AIBinder* getBinder() { return mBinder; } in getBinder() 49 const AIBinder* mBinder;
|
D | stability.cpp | 35 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() 48 extern "C" void AIBinder_forceDowngradeToVendorStability(AIBinder* binder) { in AIBinder_forceDowngradeToVendorStability() 52 void AIBinder_forceDowngradeToSystemStability(AIBinder* binder) { in AIBinder_forceDowngradeToSystemStability()
|
D | service_manager.cpp | 35 binder_exception_t AServiceManager_addService(AIBinder* binder, const char* instance) { in AServiceManager_addService() 45 binder_exception_t AServiceManager_addServiceWithFlags(AIBinder* binder, const char* instance, in AServiceManager_addServiceWithFlags() 58 AIBinder* AServiceManager_checkService(const char* instance) { in AServiceManager_checkService() 66 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_checkService() 70 AIBinder* AServiceManager_getService(const char* instance) { in AServiceManager_getService() 78 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_getService() 82 binder_status_t AServiceManager_registerLazyService(AIBinder* binder, const char* instance) { in AServiceManager_registerLazyService() 92 AIBinder* AServiceManager_waitForService(const char* instance) { in AServiceManager_waitForService() 100 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_waitForService() 104 typedef void (*AServiceManager_onRegister)(const char* instance, AIBinder* registered, [all …]
|
D | ibinder_internal.h | 39 struct AIBinder : public virtual ::android::RefBase { struct 40 explicit AIBinder(const AIBinder_Class* clazz); 41 virtual ~AIBinder(); 51 ::android::sp<::android::IBinder> binder = const_cast<AIBinder*>(this)->getBinder(); in isRemote() argument 69 struct ABBinder : public AIBinder, public ::android::BBinder { 86 friend AIBinder* AIBinder_new(const AIBinder_Class*, void*); 96 struct ABpBinder : public AIBinder { 99 static ::android::sp<AIBinder> lookupOrCreateFromBinder(
|
D | libbinder.cpp | 26 sp<IBinder> AIBinder_toPlatformBinder(AIBinder* binder) { in AIBinder_toPlatformBinder() 31 AIBinder* AIBinder_fromPlatformBinder(const sp<IBinder>& binder) { in AIBinder_fromPlatformBinder() 32 sp<AIBinder> ndkBinder = ABpBinder::lookupOrCreateFromBinder(binder); in AIBinder_fromPlatformBinder()
|
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()
|
/frameworks/native/libs/binder/ndk/tests/ |
D | iface.cpp | 45 binder_status_t IFoo_Class_onTransact(AIBinder* binder, transaction_code_t code, const AParcel* in, in IFoo_Class_onTransact() 82 explicit BpFoo(AIBinder* binder) : mBinder(binder) {} in BpFoo() 119 AIBinder* mBinder; 126 AIBinder* IFoo::getBinder() { in getBinder() 127 AIBinder* binder = nullptr; in getBinder() 150 AIBinder* binder = getBinder(); in addService() 158 sp<IFoo> IFoo::getService(const char* instance, AIBinder** outBinder) { in getService() 159 AIBinder* binder = AServiceManager_getService(instance); // maybe nullptr in getService() 185 AIBinder* held = AIBinder_Weak_promote(ret->mWeakBinder); in getService()
|
D | libbinder_ndk_unit_test.cpp | 251 AIBinder* binder = AServiceManager_checkService(serviceName); in isServiceRunning() 276 AIBinder* binder = AServiceManager_checkService("asdfghkl;"); in TEST() 281 AIBinder* binder = AServiceManager_checkService(kExistingNonNdkService); in TEST() 292 static void fillOnRegister(const char* instance, AIBinder* binder, void* cookie) { in fillOnRegister() 512 AIBinder* binder; in TEST() 566 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST() 580 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST() 599 AIBinder* binder = foo->getBinder(); in TEST() 610 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST() 646 AIBinder* binderA = AServiceManager_getService(kExistingNonNdkService); in TEST() [all …]
|
/frameworks/native/libs/binder/tests/parcel_fuzzer/ |
D | libbinder_ndk_driver.cpp | 27 void fuzzService(AIBinder* binder, FuzzedDataProvider&& provider) { in fuzzService() 36 AIBinder* aiBinder = static_cast<AIBinder*>(binder); in fuzzRustService()
|
/frameworks/native/libs/binder/rust/src/ |
D | proxy.rs | 44 pub struct SpIBinder(ptr::NonNull<sys::AIBinder>); 79 pub(crate) unsafe fn from_raw(ptr: *mut sys::AIBinder) -> Option<Self> { in from_raw() 93 pub unsafe fn as_raw(&self) -> *mut sys::AIBinder { in as_raw() argument 154 pub unsafe fn new_spibinder(ptr: *mut sys::AIBinder) -> Option<SpIBinder> { in new_spibinder() 246 impl<T: AsNative<sys::AIBinder>> IBinderInternal for T { 258 sys::AIBinder_prepareTransaction(self.as_native() as *mut sys::AIBinder, &mut input) in prepare_transact() 296 self.as_native() as *mut sys::AIBinder, in submit_transact() 378 impl<T: AsNative<sys::AIBinder>> IBinder for T { 480 fn new<B: AsNative<sys::AIBinder>>(binder: &mut B) -> WpIBinder { in new() 754 unsafe impl<T: Proxy> AsNative<sys::AIBinder> for T { [all …]
|
D | native.rs | 41 ibinder: *mut sys::AIBinder, 272 binder: *mut sys::AIBinder, in on_transact() argument 325 binder: *mut sys::AIBinder, in on_dump() argument 432 unsafe impl<B: Remotable> AsNative<sys::AIBinder> for Binder<B> { 433 fn as_native(&self) -> *const sys::AIBinder { in as_native() argument 437 fn as_native_mut(&mut self) -> *mut sys::AIBinder { in as_native_mut() argument
|
/frameworks/native/libs/binder/ |
D | libbinder_rpc_unstable.cpp | 78 ARpcServer* ARpcServer_newVsock(AIBinder* service, unsigned int cid, unsigned int port) { in ARpcServer_newVsock() 108 ARpcServer* ARpcServer_newInitUnixDomain(AIBinder* service, const char* name) { in ARpcServer_newInitUnixDomain() 131 ARpcServer* ARpcServer_newUnixDomainBootstrap(AIBinder* service, int bootstrapFd) { in ARpcServer_newUnixDomainBootstrap() 148 ARpcServer* ARpcServer_newInet(AIBinder* service, const char* address, unsigned int port) { in ARpcServer_newInet() 198 AIBinder* ARpcSession_setupVsockClient(ARpcSession* handle, unsigned int cid, unsigned int port) { in ARpcSession_setupVsockClient() 208 AIBinder* ARpcSession_setupUnixDomainClient(ARpcSession* handle, const char* name) { in ARpcSession_setupUnixDomainClient() 220 AIBinder* ARpcSession_setupUnixDomainBootstrapClient(ARpcSession* handle, int bootstrapFd) { in ARpcSession_setupUnixDomainBootstrapClient() 236 AIBinder* ARpcSession_setupInet(ARpcSession* handle, const char* address, unsigned int port) { in ARpcSession_setupInet() 246 AIBinder* ARpcSession_setupPreconnectedClient(ARpcSession* handle, int (*requestFd)(void* param), in ARpcSession_setupPreconnectedClient()
|
/frameworks/native/libs/binder/ndk/include_cpp/android/ |
D | binder_auto_utils.h | 55 explicit SpAIBinder(AIBinder* binder) : mBinder(binder) {} in SpAIBinder() 89 void set(AIBinder* binder) { in set() 90 AIBinder* old = *const_cast<AIBinder* volatile*>(&mBinder); in set() 92 if (old != *const_cast<AIBinder* volatile*>(&mBinder)) { in set() 102 AIBinder* get() const { return mBinder; } in get() 116 AIBinder** getR() { return &mBinder; } in getR() 126 AIBinder* mBinder = nullptr;
|
D | binder_interface_utils.h | 159 static inline std::shared_ptr<ICInterface> asInterface(AIBinder* binder); 172 static inline std::shared_ptr<ICInterface> getInterface(AIBinder* binder); 176 static inline binder_status_t onDump(AIBinder* binder, int fd, const char** args, 180 static inline binder_status_t handleShellCommand(AIBinder* binder, int in, int out, int err, 249 std::shared_ptr<ICInterface> ICInterface::asInterface(AIBinder* binder) { in asInterface() 276 std::shared_ptr<ICInterface> ICInterface::ICInterfaceData::getInterface(AIBinder* binder) { in defineClass() 295 binder_status_t ICInterface::ICInterfaceData::onDump(AIBinder* binder, int fd, const char** args, in defineClass() 305 binder_status_t ICInterface::ICInterfaceData::handleShellCommand(AIBinder* binder, int in, int out, in defineClass()
|
/frameworks/native/libs/binder/ndk/tests/include/iface/ |
D | iface.h | 40 AIBinder* getBinder(); 44 static ::android::sp<IFoo> getService(const char* instance, AIBinder** outBinder = nullptr);
|
/frameworks/native/libs/binder/tests/parcel_fuzzer/include_random_parcel/fuzzbinder/ |
D | libbinder_ndk_driver.h | 36 void fuzzService(AIBinder* binder, FuzzedDataProvider&& provider);
|