Home
last modified time | relevance | path

Searched refs:curCount (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/utils/
DRefBase.cpp416 int32_t curCount = impl->mStrong; in attemptIncStrong() local
417 LOG_ASSERT(curCount >= 0, "attemptIncStrong called on %p after underflow", in attemptIncStrong()
419 while (curCount > 0 && curCount != INITIAL_STRONG_VALUE) { in attemptIncStrong()
420 if (android_atomic_cmpxchg(curCount, curCount+1, &impl->mStrong) == 0) { in attemptIncStrong()
423 curCount = impl->mStrong; in attemptIncStrong()
426 if (curCount <= 0 || curCount == INITIAL_STRONG_VALUE) { in attemptIncStrong()
428 if (curCount == INITIAL_STRONG_VALUE) { in attemptIncStrong()
447 curCount = android_atomic_inc(&impl->mStrong); in attemptIncStrong()
454 if (curCount > 0 && curCount < INITIAL_STRONG_VALUE) { in attemptIncStrong()
463 LOGD("attemptIncStrong of %p from %p: cnt=%d\n", this, id, curCount); in attemptIncStrong()
[all …]
/frameworks/base/core/jni/
Dandroid_util_Process.cpp590 jsize curCount = 0; in android_os_Process_getPids() local
593 curCount = env->GetArrayLength(lastArray); in android_os_Process_getPids()
611 if (curPos >= curCount) { in android_os_Process_getPids()
612 jsize newCount = (curCount == 0) ? 10 : (curCount*2); in android_os_Process_getPids()
621 memcpy(newData, curData, sizeof(jint)*curCount); in android_os_Process_getPids()
625 curCount = newCount; in android_os_Process_getPids()
639 while (curPos < curCount) { in android_os_Process_getPids()