Searched refs:INITIAL_STRONG_VALUE (Results 1 - 2 of 2) sorted by relevance

/system/core/libutils/
H A DRefBase.cpp118 #define INITIAL_STRONG_VALUE (1<<28) macro
128 ((c) == 0 || ((c) & (~(MAX_COUNT | INITIAL_STRONG_VALUE))) != 0)
146 : mStrong(INITIAL_STRONG_VALUE)
165 : mStrong(INITIAL_STRONG_VALUE)
409 if (c != INITIAL_STRONG_VALUE) {
413 int32_t old __unused = refs->mStrong.fetch_sub(INITIAL_STRONG_VALUE, std::memory_order_relaxed);
415 ALOG_ASSERT(old > INITIAL_STRONG_VALUE, "0x%x too small", old);
454 // Allows initial mStrong of 0 in addition to INITIAL_STRONG_VALUE.
468 case INITIAL_STRONG_VALUE:
469 refs->mStrong.fetch_sub(INITIAL_STRONG_VALUE,
[all...]
/system/core/libutils/tests/
H A DRefBase_test.cpp33 static constexpr int INITIAL_STRONG_VALUE = 1 << 28; // Mirroring RefBase definition. variable
51 ASSERT_EQ(INITIAL_STRONG_VALUE, foo->getStrongCount());

Completed in 128 milliseconds