Home
last modified time | relevance | path

Searched refs:fromExisting (Results 1 – 17 of 17) sorted by relevance

/aosp12/frameworks/native/libs/binder/
H A DRpcSession.cpp92 ExclusiveConnection connection(sp<RpcSession>::fromExisting(this), ConnectionUse::CLIENT); in getRootObject()
93 return state()->getRootObject(connection.fd(), sp<RpcSession>::fromExisting(this)); in getRootObject()
97 ExclusiveConnection connection(sp<RpcSession>::fromExisting(this), ConnectionUse::CLIENT); in getRemoteMaxThreads()
98 return state()->getMaxThreads(connection.fd(), sp<RpcSession>::fromExisting(this), maxThreads); in getRemoteMaxThreads()
103 ExclusiveConnection connection(sp<RpcSession>::fromExisting(this), in transact()
107 sp<RpcSession>::fromExisting(this), reply, flags); in transact()
111 ExclusiveConnection connection(sp<RpcSession>::fromExisting(this), in sendDecStrong()
124 ExclusiveConnection connection(sp<RpcSession>::fromExisting(this), ConnectionUse::CLIENT); in readId()
126 state()->getSessionId(connection.fd(), sp<RpcSession>::fromExisting(this), &id); in readId()
150 state()->getAndExecuteCommand(connection->fd, sp<RpcSession>::fromExisting(this)); in join()
[all …]
H A DIInterface.cpp36 return sp<IBinder>::fromExisting(const_cast<IInterface*>(iface)->onAsBinder()); in asBinder()
43 return sp<IBinder>::fromExisting(iface->onAsBinder()); in asBinder()
H A DRpcServer.cpp152 std::move(sp<RpcServer>::fromExisting(this)), std::move(clientFd)); in acceptOne()
207 session->setForServer(wp<RpcServer>::fromExisting(this), mSessionIdCounter); in establishConnection()
H A DBpBinder.cpp209 sp<BpBinder> thiz = sp<BpBinder>::fromExisting(const_cast<BpBinder*>(this)); in getInterfaceDescriptor()
241 data.markForBinder(sp<BpBinder>::fromExisting(this)); in pingBinder()
418 recipient->binderDied(wp<BpBinder>::fromExisting(this)); in reportOneDeath()
H A DLazyServiceRegistrar.cpp148 sp<android::os::IClientCallback>::fromExisting( in registerServiceLocked()
H A DMemoryDealer.cpp244 memory = sp<Allocation>::make(sp<MemoryDealer>::fromExisting(this), heap(), offset, size); in allocate()
H A DParcel.cpp300 sp<IBinder>::fromExisting(reinterpret_cast<IBinder*>(flat->cookie)); in unflattenBinder()
/aosp12/system/core/libutils/
H A DStrongPointer_test.cpp94 auto foo2 = sp<TypeParam>::fromExisting(foo.get()); in TYPED_TEST()
106 EXPECT_DEATH(sp<TypeParam>::fromExisting(foo), ""); in TYPED_TEST()
H A DRefBase_test.cpp249 EXPECT_EQ(weakFoo, wp<Foo>::fromExisting(foo.get())); in TEST()
250 EXPECT_EQ(weakFoo.unsafe_get(), wp<Foo>::fromExisting(foo.get()).unsafe_get()); in TEST()
263 EXPECT_DEATH(wp<Foo>::fromExisting(foo), ""); in TEST()
/aosp12/frameworks/native/cmds/servicemanager/
H A DServiceManager.cpp276 binder->linkToDeath(sp<ServiceManager>::fromExisting(this)) != OK) { in addService()
346 sp<ServiceManager>::fromExisting(this))) { in registerForNotifications()
522 IInterface::asBinder(cb)->linkToDeath(sp<ServiceManager>::fromExisting(this))) { in registerClientCallback()
552 sp<BpBinder> bpBinder = sp<BpBinder>::fromExisting(binder->remoteBinder()); in getNodeStrongRefCount()
/aosp12/system/core/libutils/include/utils/
H A DStrongPointer.h57 static inline sp<T> fromExisting(T* other);
227 sp<T> sp<T>::fromExisting(T* other) { in fromExisting() function
299 return sp<T>::fromExisting(static_cast<T*>(other.get())); in cast()
H A DRefBase.h412 static inline wp<T> fromExisting(T* other);
540 wp<T> wp<T>::fromExisting(T* other) { in fromExisting() function
/aosp12/frameworks/native/libs/binder/include/binder/
H A DBinder.h135 inline sp<IBinder> remoteStrong() const { return sp<IBinder>::fromExisting(mRemote); } in remoteStrong()
H A DIInterface.h188 if (_descriptor == INTERFACE::descriptor) return sp<IInterface>::fromExisting(this); in queryLocalInterface()
/aosp12/frameworks/native/include/binder/
H A DBinder.h135 inline sp<IBinder> remoteStrong() const { return sp<IBinder>::fromExisting(mRemote); } in remoteStrong()
H A DIInterface.h188 if (_descriptor == INTERFACE::descriptor) return sp<IInterface>::fromExisting(this); in queryLocalInterface()
/aosp12/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
H A DSipSessionTrackerTest.java90 public DialogAttributes fromExisting() { in fromExisting() method in SipSessionTrackerTest.DialogAttributes
253 DialogAttributes attrB2 = attrB1.fromExisting(); in testForkDialog()