Home
last modified time | relevance | path

Searched refs:promote (Results 1 - 3 of 3) sorted by relevance

/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_refbase_test.cpp502 sptr<RefBaseTest> strongObject = weakObject.promote(); in HWTEST_F()
684 sptr<RefBaseTest> strongObject = weakObject.promote(); in HWTEST_F()
1114 sptr<RefBase> testObject3 = testObject1.promote(); in HWTEST_F()
1150 sptr<RefBase> testObject2 = testObject1.promote(); in HWTEST_F()
/commonlibrary/c_utils/base/include/
H A Drefbase.h352 * the corresponding RefBase object (to promote a wptr to a sptr).
685 * @brief Constructor used to promote the process of wptr.
1307 * @note Avoid using this function independently. Use `promote()` instead.
1323 const sptr<T> promote() const;
1527 inline const sptr<T> wptr<T>::promote() const in promote() function in OHOS::wptr
/commonlibrary/c_utils/base/test/benchmarktest/refbase_benchmark_test/
H A Drefbase_benchmark_test.cpp674 sptr<RefBaseTest> strongObject = weakObject.promote(); in BENCHMARK_F()
1564 sptr<RefBase> testObject3 = testObject1.promote(); in BENCHMARK_F()
1610 sptr<RefBase> testObject2 = testObject1.promote(); in BENCHMARK_F()

Completed in 11 milliseconds