Home
last modified time | relevance | path

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

123

/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_ibinder.h115 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 …]
Dbinder_ibinder_jni.h50 __attribute__((warn_unused_result)) AIBinder* AIBinder_fromJavaBinder(JNIEnv* env, jobject binder)
72 __attribute__((warn_unused_result)) jobject AIBinder_toJavaBinder(JNIEnv* env, AIBinder* binder)
Dbinder_parcel.h35 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/
Dbinder_stability.h40 void AIBinder_markVendorStability(AIBinder* binder);
42 static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) { in AIBinder_markCompilationUnitStability()
61 void AIBinder_forceDowngradeToVendorStability(AIBinder* binder);
63 static inline void AIBinder_forceDowngradeToLocalStability(AIBinder* binder) { in AIBinder_forceDowngradeToLocalStability()
76 __attribute__((weak)) void AIBinder_markSystemStability(AIBinder* binder);
78 static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) { in AIBinder_markCompilationUnitStability()
99 void AIBinder_forceDowngradeToSystemStability(AIBinder* binder);
101 static inline void AIBinder_forceDowngradeToLocalStability(AIBinder* binder) { in AIBinder_forceDowngradeToLocalStability()
120 void AIBinder_markVintfStability(AIBinder* binder);
Dbinder_manager.h53 AIBinder* binder, const char* instance) __INTRODUCED_IN(29);
69 AIBinder* binder, const char* instance, const AServiceManager_AddServiceFlag flags)
82 __attribute__((warn_unused_result)) AIBinder* AServiceManager_checkService(const char* instance)
104 __attribute__((warn_unused_result)) AIBinder* AServiceManager_getService(const char* instance)
123 binder_status_t AServiceManager_registerLazyService(AIBinder* binder, const char* instance)
140 __attribute__((warn_unused_result)) AIBinder* AServiceManager_waitForService(const char* instance)
155 typedef void (*AServiceManager_onRegister)(const char* instance, AIBinder* registered,
Dbinder_ibinder_platform.h42 __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);
Dbinder_libbinder.h36 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/
Dbinder_rpc_unstable.hpp24 struct AIBinder;
40 [[nodiscard]] ARpcServer* ARpcServer_newVsock(AIBinder* service, unsigned int cid,
49 [[nodiscard]] ARpcServer* ARpcServer_newBoundSocket(AIBinder* service, int socketFd);
59 [[nodiscard]] ARpcServer* ARpcServer_newUnixDomainBootstrap(AIBinder* service, int bootstrapFd);
67 [[nodiscard]] ARpcServer* ARpcServer_newInet(AIBinder* service, const char* address,
109 AIBinder* ARpcSession_setupVsockClient(ARpcSession* session, unsigned int cid,
115 AIBinder* ARpcSession_setupUnixDomainClient(ARpcSession* session, const char* name);
119 AIBinder* ARpcSession_setupUnixDomainBootstrapClient(ARpcSession* session,
124 AIBinder* ARpcSession_setupInet(ARpcSession* session, const char* address, unsigned int port);
133 AIBinder* ARpcSession_setupPreconnectedClient(ARpcSession* session,
/frameworks/native/libs/binder/ndk/
Dibinder.cpp79 AIBinder::AIBinder(const AIBinder_Class* clazz) : mClazz(clazz) {} in AIBinder() function in AIBinder
80 AIBinder::~AIBinder() {} in ~AIBinder()
93 bool AIBinder::associateClass(const AIBinder_Class* clazz) { in associateClass()
166 : AIBinder(clazz), BBinder(), mUserData(userData) { in ABBinder()
276 : AIBinder(nullptr /*clazz*/), mRemote(binder) { in ABpBinder()
289 sp<AIBinder> ABpBinder::lookupOrCreateFromBinder(const ::android::sp<::android::IBinder>& binder) { in lookupOrCreateFromBinder()
333 wp<AIBinder> binder;
335 AIBinder_Weak* AIBinder_Weak_new(AIBinder* binder) { in AIBinder_Weak_new()
340 return new AIBinder_Weak{wp<AIBinder>(binder)}; in AIBinder_Weak_new()
345 AIBinder* AIBinder_Weak_promote(AIBinder_Weak* weakBinder) { in AIBinder_Weak_promote()
[all …]
Dparcel_internal.h30 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;
Dstability.cpp39 extern "C" void AIBinder_markVendorStability(AIBinder* binder) { in AIBinder_markVendorStability()
43 void AIBinder_markSystemStability(AIBinder* binder) { in AIBinder_markSystemStability()
47 void AIBinder_markVintfStability(AIBinder* binder) { in AIBinder_markVintfStability()
52 extern "C" void AIBinder_forceDowngradeToVendorStability(AIBinder* binder) { in AIBinder_forceDowngradeToVendorStability()
56 void AIBinder_forceDowngradeToSystemStability(AIBinder* binder) { in AIBinder_forceDowngradeToSystemStability()
Dservice_manager.cpp33 binder_exception_t AServiceManager_addService(AIBinder* binder, const char* instance) { in AServiceManager_addService()
43 binder_exception_t AServiceManager_addServiceWithFlags(AIBinder* binder, const char* instance, in AServiceManager_addServiceWithFlags()
74 AIBinder* AServiceManager_checkService(const char* instance) { in AServiceManager_checkService()
82 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_checkService()
86 AIBinder* AServiceManager_getService(const char* instance) { in AServiceManager_getService()
94 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_getService()
98 binder_status_t AServiceManager_registerLazyService(AIBinder* binder, const char* instance) { in AServiceManager_registerLazyService()
108 AIBinder* AServiceManager_waitForService(const char* instance) { in AServiceManager_waitForService()
116 sp<AIBinder> ret = ABpBinder::lookupOrCreateFromBinder(binder); in AServiceManager_waitForService()
120 typedef void (*AServiceManager_onRegister)(const char* instance, AIBinder* registered,
[all …]
Dibinder_internal.h39 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
71 struct ABBinder : public AIBinder, public ::android::BBinder {
90 friend AIBinder* AIBinder_new(const AIBinder_Class*, void*);
100 struct ABpBinder : public AIBinder {
103 static ::android::sp<AIBinder> lookupOrCreateFromBinder(
Dlibbinder.cpp26 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()
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()
/frameworks/native/libs/binder/ndk/tests/
Diface.cpp46 binder_status_t IFoo_Class_onTransact(AIBinder* binder, transaction_code_t code, const AParcel* in, in IFoo_Class_onTransact()
83 explicit BpFoo(AIBinder* binder) : mBinder(binder) {} in BpFoo()
120 AIBinder* mBinder;
127 AIBinder* IFoo::getBinder() { in getBinder()
128 AIBinder* binder = nullptr; in getBinder()
151 AIBinder* binder = getBinder(); in addService()
159 sp<IFoo> IFoo::getService(const char* instance, AIBinder** outBinder) { in getService()
162 AIBinder* binder = AServiceManager_getService(instance); // maybe nullptr in getService()
189 AIBinder* held = AIBinder_Weak_promote(ret->mWeakBinder); in getService()
/frameworks/native/libs/binder/rust/src/
Dproxy.rs43 pub struct SpIBinder(ptr::NonNull<sys::AIBinder>);
76 pub(crate) unsafe fn from_raw(ptr: *mut sys::AIBinder) -> Option<Self> { in from_raw()
90 pub unsafe fn as_raw(&self) -> *mut sys::AIBinder { in as_raw() argument
141 pub unsafe fn new_spibinder(ptr: *mut sys::AIBinder) -> Option<SpIBinder> { in new_spibinder()
228 impl<T: AsNative<sys::AIBinder>> IBinderInternal for T {
240 sys::AIBinder_prepareTransaction(self.as_native() as *mut sys::AIBinder, &mut input) in prepare_transact()
276 self.as_native() as *mut sys::AIBinder, in submit_transact()
354 impl<T: AsNative<sys::AIBinder>> IBinder for T {
460 fn new<B: AsNative<sys::AIBinder>>(binder: &mut B) -> WpIBinder { in new()
723 unsafe impl<T: Proxy> AsNative<sys::AIBinder> for T {
[all …]
Dnative.rs38 ibinder: *mut sys::AIBinder,
266 binder: *mut sys::AIBinder, in on_transact() argument
332 binder: *mut sys::AIBinder, in on_dump() argument
379 _binder: *mut sys::AIBinder, in on_dump() argument
454 unsafe impl<B: Remotable> AsNative<sys::AIBinder> for Binder<B> {
455 fn as_native(&self) -> *const sys::AIBinder { in as_native() argument
459 fn as_native_mut(&mut self) -> *mut sys::AIBinder { in as_native_mut() argument
/frameworks/native/libs/binder/ndk/include_cpp/android/
Dbinder_auto_utils.h56 explicit SpAIBinder(AIBinder* binder) : mBinder(binder) {} in SpAIBinder()
90 void set(AIBinder* binder) { in set()
91 AIBinder* old = *const_cast<AIBinder* volatile*>(&mBinder); in set()
93 if (old != *const_cast<AIBinder* volatile*>(&mBinder)) { in set()
103 AIBinder* get() const { return mBinder; } in get()
117 AIBinder** getR() { return &mBinder; } in getR()
120 AIBinder* mBinder = nullptr;
127 static inline bool operator _op_(const SpAIBinder& lhs, const AIBinder* rhs) { \
130 static inline bool operator _op_(const AIBinder* lhs, const SpAIBinder& rhs) { \
Dbinder_interface_utils.h161 static inline std::shared_ptr<ICInterface> asInterface(AIBinder* binder);
174 static inline std::shared_ptr<ICInterface> getInterface(AIBinder* binder);
178 static inline binder_status_t onDump(AIBinder* binder, int fd, const char** args,
182 static inline binder_status_t handleShellCommand(AIBinder* binder, int in, int out, int err,
251 std::shared_ptr<ICInterface> ICInterface::asInterface(AIBinder* binder) { in asInterface()
278 std::shared_ptr<ICInterface> ICInterface::ICInterfaceData::getInterface(AIBinder* binder) { in defineClass()
297 binder_status_t ICInterface::ICInterfaceData::onDump(AIBinder* binder, int fd, const char** args, in defineClass()
307 binder_status_t ICInterface::ICInterfaceData::handleShellCommand(AIBinder* binder, int in, int out, in defineClass()
/frameworks/native/libs/binder/
Dlibbinder_rpc_unstable.cpp84 ARpcServer* ARpcServer_newVsock(AIBinder* service, unsigned int cid, unsigned int port) { in ARpcServer_newVsock()
114 ARpcServer* ARpcServer_newBoundSocket(AIBinder* service, int socketFd) { in ARpcServer_newBoundSocket()
130 ARpcServer* ARpcServer_newUnixDomainBootstrap(AIBinder* service, int bootstrapFd) { in ARpcServer_newUnixDomainBootstrap()
147 ARpcServer* ARpcServer_newInet(AIBinder* service, const char* address, unsigned int port) { in ARpcServer_newInet()
203 AIBinder* ARpcSession_setupVsockClient(ARpcSession* handle, unsigned int cid, unsigned int port) { in ARpcSession_setupVsockClient()
213 AIBinder* ARpcSession_setupUnixDomainClient(ARpcSession* handle, const char* name) { in ARpcSession_setupUnixDomainClient()
225 AIBinder* ARpcSession_setupUnixDomainBootstrapClient(ARpcSession* handle, int bootstrapFd) { in ARpcSession_setupUnixDomainBootstrapClient()
241 AIBinder* ARpcSession_setupInet(ARpcSession* handle, const char* address, unsigned int port) { in ARpcSession_setupInet()
252 AIBinder* ARpcSession_setupPreconnectedClient(ARpcSession* handle, int (*requestFd)(void* param), in ARpcSession_setupPreconnectedClient()
/frameworks/native/libs/binder/tests/parcel_fuzzer/
Dlibbinder_ndk_driver.cpp39 void fuzzService(AIBinder* binder, FuzzedDataProvider&& provider) { in fuzzService()
50 AIBinder* aiBinder = static_cast<AIBinder*>(binders[binderIndex]); in fuzzRustService()
/frameworks/native/libs/binder/trusty/include/binder/
DARpcServerTrusty.h24 struct AIBinder;
27 struct ARpcServerTrusty* ARpcServerTrusty_newPerSession(struct AIBinder* (*)(const void*, size_t,
/frameworks/native/libs/binder/ndk/tests/include/iface/
Diface.h41 AIBinder* getBinder();
45 static ::android::sp<IFoo> getService(const char* instance, AIBinder** outBinder = nullptr);
/frameworks/av/media/libaudiohal/impl/
DAidlUtils.h32 bool registerHandler(AIBinder* binder);
47 AIBinder* serviceBinder = nullptr; in getServiceInstance()

123