/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, 260 __attribute__((warn_unused_result)) AIBinder* AIBinder_new(const AIBinder_Class* clazz, void* args) 272 bool AIBinder_isRemote(const AIBinder* binder) __INTRODUCED_IN(29); 287 bool AIBinder_isAlive(const AIBinder* binder) __INTRODUCED_IN(29); 300 binder_status_t AIBinder_ping(AIBinder* binder) __INTRODUCED_IN(29); 316 binder_status_t AIBinder_dump(AIBinder* binder, int fd, const char** args, uint32_t numArgs) 338 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) 66 __attribute__((warn_unused_result)) jobject AIBinder_toJavaBinder(JNIEnv* env, AIBinder* binder)
|
D | binder_parcel.h | 35 struct AIBinder; 36 typedef struct AIBinder AIBinder; typedef 405 binder_status_t AParcel_writeStrongBinder(AParcel* parcel, AIBinder* binder) __INTRODUCED_IN(29); 418 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() 54 void AIBinder_forceDowngradeToVendorStability(AIBinder* binder); 56 static inline void AIBinder_forceDowngradeToLocalStability(AIBinder* binder) { in AIBinder_forceDowngradeToLocalStability() 69 __attribute__((weak)) void AIBinder_markSystemStability(AIBinder* binder); 71 static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) { in AIBinder_markCompilationUnitStability() 83 void AIBinder_forceDowngradeToSystemStability(AIBinder* binder); 85 static inline void AIBinder_forceDowngradeToLocalStability(AIBinder* binder) { in AIBinder_forceDowngradeToLocalStability() 104 void AIBinder_markVintfStability(AIBinder* binder);
|
D | binder_manager.h | 38 AIBinder* binder, const char* instance) __INTRODUCED_IN(29); 50 __attribute__((warn_unused_result)) AIBinder* AServiceManager_checkService(const char* instance) 71 __attribute__((warn_unused_result)) AIBinder* AServiceManager_getService(const char* instance) 90 binder_status_t AServiceManager_registerLazyService(AIBinder* binder, const char* instance) 107 __attribute__((warn_unused_result)) AIBinder* AServiceManager_waitForService(const char* instance)
|
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 | 34 android::sp<android::IBinder> AIBinder_toPlatformBinder(AIBinder* binder); 48 AIBinder* AIBinder_fromPlatformBinder(const android::sp<android::IBinder>& binder);
|
D | binder_shell.h | 38 typedef binder_status_t (*AIBinder_handleShellCommand)(AIBinder* binder, int in, int out, int err,
|
/frameworks/native/libs/binder/ndk/ |
D | ibinder.cpp | 73 AIBinder::AIBinder(const AIBinder_Class* clazz) : mClazz(clazz) {} in AIBinder() function in AIBinder 74 AIBinder::~AIBinder() {} in ~AIBinder() 76 std::optional<bool> AIBinder::associateClassInternal(const AIBinder_Class* clazz, in associateClassInternal() 118 bool AIBinder::associateClass(const AIBinder_Class* clazz) { in associateClass() 145 : AIBinder(clazz), BBinder(), mUserData(userData) { in ABBinder() 240 : AIBinder(nullptr /*clazz*/), BpRefBase(binder) { in ABpBinder() 260 sp<AIBinder> ABpBinder::lookupOrCreateFromBinder(const ::android::sp<::android::IBinder>& binder) { in lookupOrCreateFromBinder() 298 wp<AIBinder> binder; 300 AIBinder_Weak* AIBinder_Weak_new(AIBinder* binder) { in AIBinder_Weak_new() 305 return new AIBinder_Weak{wp<AIBinder>(binder)}; in AIBinder_Weak_new() [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 | 34 binder_exception_t AServiceManager_addService(AIBinder* binder, const char* instance) { in AServiceManager_addService() 43 AIBinder* AServiceManager_checkService(const char* instance) { in AServiceManager_checkService() 51 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_checkService() 55 AIBinder* AServiceManager_getService(const char* instance) { in AServiceManager_getService() 63 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_getService() 67 binder_status_t AServiceManager_registerLazyService(AIBinder* binder, const char* instance) { in AServiceManager_registerLazyService() 77 AIBinder* AServiceManager_waitForService(const char* instance) { in AServiceManager_waitForService() 85 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_waitForService()
|
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 67 struct ABBinder : public AIBinder, public ::android::BBinder { 84 friend AIBinder* AIBinder_new(const AIBinder_Class*, void*); 94 struct ABpBinder : public AIBinder, public ::android::BpRefBase { 97 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()
|
/frameworks/native/libs/binder/include_rpc_unstable/ |
D | binder_rpc_unstable.hpp | 23 struct AIBinder; 27 bool RunRpcServer(AIBinder* service, unsigned int port); 32 bool RunRpcServerCallback(AIBinder* service, unsigned int port, void (*readyCallback)(void* param), 40 bool RunRpcServerWithFactory(AIBinder* (*factory)(unsigned int cid, void* context), 43 AIBinder* RpcClient(unsigned int cid, unsigned int port); 52 AIBinder* RpcPreconnectedClient(int (*requestFd)(void* param), void* param);
|
/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() 77 explicit BpFoo(AIBinder* binder) : mBinder(binder) {} in BpFoo() 114 AIBinder* mBinder; 121 AIBinder* IFoo::getBinder() { in getBinder() 122 AIBinder* binder = nullptr; in getBinder() 145 AIBinder* binder = getBinder(); in addService() 153 sp<IFoo> IFoo::getService(const char* instance, AIBinder** outBinder) { in getService() 154 AIBinder* binder = AServiceManager_getService(instance); // maybe nullptr in getService() 180 AIBinder* held = AIBinder_Weak_promote(ret->mWeakBinder); in getService()
|
D | libbinder_ndk_unit_test.cpp | 218 AIBinder* binder = AServiceManager_checkService(serviceName); in isServiceRunning() 243 AIBinder* binder = AServiceManager_checkService("asdfghkl;"); in TEST() 248 AIBinder* binder = AServiceManager_checkService(kExistingNonNdkService); in TEST() 258 AIBinder* binder = foo->getBinder(); in TEST() 411 AIBinder* binder; in TEST() 465 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST() 479 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST() 510 AIBinder* binder = foo->getBinder(); in TEST() 521 AIBinder* binder = AServiceManager_getService(kExistingNonNdkService); in TEST() 556 AIBinder* binderA = AServiceManager_getService(kExistingNonNdkService); in TEST() [all …]
|
/frameworks/native/libs/binder/ |
D | libbinder_rpc_unstable.cpp | 33 bool RunRpcServerWithFactory(AIBinder* (*factory)(unsigned int cid, void* context), in RunRpcServerWithFactory() 55 bool RunRpcServerCallback(AIBinder* service, unsigned int port, void (*readyCallback)(void* param), in RunRpcServerCallback() 73 bool RunRpcServer(AIBinder* service, unsigned int port) { in RunRpcServer() 77 AIBinder* RpcClient(unsigned int cid, unsigned int port) { in RpcClient() 87 AIBinder* RpcPreconnectedClient(int (*requestFd)(void* param), void* param) { in RpcPreconnectedClient()
|
/frameworks/native/libs/binder/rust/src/ |
D | proxy.rs | 43 pub struct SpIBinder(ptr::NonNull<sys::AIBinder>); 78 pub(crate) unsafe fn from_raw(ptr: *mut sys::AIBinder) -> Option<Self> { in from_raw() 92 pub unsafe fn as_raw(&self) -> *mut sys::AIBinder { in as_raw() argument 145 pub unsafe fn new_spibinder(ptr: *mut sys::AIBinder) -> Option<SpIBinder> { in new_spibinder() 237 impl<T: AsNative<sys::AIBinder>> IBinderInternal for T { 249 sys::AIBinder_prepareTransaction(self.as_native() as *mut sys::AIBinder, &mut input) in prepare_transact() 287 self.as_native() as *mut sys::AIBinder, in submit_transact() 369 impl<T: AsNative<sys::AIBinder>> IBinder for T { 474 fn new<B: AsNative<sys::AIBinder>>(binder: &mut B) -> WpIBinder { in new() 742 unsafe impl<T: Proxy> AsNative<sys::AIBinder> for T { [all …]
|
D | native.rs | 40 ibinder: *mut sys::AIBinder, 274 binder: *mut sys::AIBinder, in on_transact() argument 327 binder: *mut sys::AIBinder, in on_dump() argument 430 unsafe impl<B: Remotable> AsNative<sys::AIBinder> for Binder<B> { 431 fn as_native(&self) -> *const sys::AIBinder { in as_native() argument 435 fn as_native_mut(&mut self) -> *mut sys::AIBinder { in as_native_mut() argument
|
/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 | 157 static inline std::shared_ptr<ICInterface> asInterface(AIBinder* binder); 170 static inline std::shared_ptr<ICInterface> getInterface(AIBinder* binder); 174 static inline binder_status_t onDump(AIBinder* binder, int fd, const char** args, 178 static inline binder_status_t handleShellCommand(AIBinder* binder, int in, int out, int err, 243 std::shared_ptr<ICInterface> ICInterface::asInterface(AIBinder* binder) { in asInterface() 270 std::shared_ptr<ICInterface> ICInterface::ICInterfaceData::getInterface(AIBinder* binder) { in defineClass() 289 binder_status_t ICInterface::ICInterfaceData::onDump(AIBinder* binder, int fd, const char** args, in defineClass() 296 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 | 35 AIBinder* getBinder(); 39 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);
|
/frameworks/native/libs/binder/tests/parcel_fuzzer/ |
D | libbinder_ndk_driver.cpp | 27 void fuzzService(AIBinder* binder, FuzzedDataProvider&& provider) { in fuzzService()
|