Home
last modified time | relevance | path

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

/system/core/libutils/
DStrongPointer_test.cpp94 auto foo2 = sp<TypeParam>::fromExisting(foo.get()); in TYPED_TEST()
106 EXPECT_DEATH(sp<TypeParam>::fromExisting(foo), ""); in TYPED_TEST()
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()
/system/core/libutils/include/utils/
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()
DRefBase.h412 static inline wp<T> fromExisting(T* other);
540 wp<T> wp<T>::fromExisting(T* other) { in fromExisting() function