Searched refs:fromExisting (Results 1 – 4 of 4) 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);227 sp<T> sp<T>::fromExisting(T* other) { in fromExisting() function299 return sp<T>::fromExisting(static_cast<T*>(other.get())); in cast()
412 static inline wp<T> fromExisting(T* other);540 wp<T> wp<T>::fromExisting(T* other) { in fromExisting() function