Searched refs:fromExisting (Results 1 – 9 of 9) sorted by relevance
94 auto foo2 = sp<TypeParam>::fromExisting(foo.get()); in TYPED_TEST()106 EXPECT_DEATH(sp<TypeParam>::fromExisting(foo), ""); in TYPED_TEST()
249 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()
57 static inline sp<T> fromExisting(T* other);213 sp<T> sp<T>::fromExisting(T* other) { in fromExisting() function281 return sp<T>::fromExisting(static_cast<T*>(other.get())); in cast()
413 static inline wp<T> fromExisting(T* other);541 wp<T> wp<T>::fromExisting(T* other) { in fromExisting() function
676 mHoldSelf = sp<Thread>::fromExisting(this); in run()
125 return sp<Looper>::fromExisting(looper); in getForThread()
795 auto srv = sp<ITestService>::fromExisting(this); in GetCircular()