Home
last modified time | relevance | path

Searched refs:bufferCapacity (Results 1 – 25 of 26) sorted by relevance

12

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/
DSharedFlow.kt214 …val bufferCapacity = if (bufferCapacity0 < 0) Int.MAX_VALUE else bufferCapacity0 // coerce to MAX_… in tryEmit() constant
215 return SharedFlowImpl(replay, bufferCapacity, onBufferOverflow) in tryEmit()
244 private val bufferCapacity: Int, constant in kotlinx.coroutines.flow.SharedFlowImpl
347 if (bufferSize >= bufferCapacity && minCollectorIndex <= replayIndex) { in tryEmitLocked()
357 if (bufferSize > bufferCapacity) dropOldestLocked() in tryEmitLocked()
430 if (bufferCapacity == 0) resumes = findSlotsToResumeLocked(resumes) in emitSuspend()
461 if (bufferCapacity == 0 && queueSize > 0) newMinCollectorIndex++ in updateCollectorIndexLocked()
476 minOf(queueSize, bufferCapacity - newBufferSize0) in updateCollectorIndexLocked()
510 …if (bufferCapacity == 0 && newReplayIndex < newQueueEndIndex && buffer!!.getBufferAt(newReplayInde… in updateCollectorIndexLocked()
548 if (bufferCapacity == 0 && queueSize <= 1) return // return, don't clear it in cleanupTailLocked()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/sharing/
DShareInConflationTest.kt19 bufferCapacity: Int, in <lambda>()
37 … val first = if (onBufferOverflow == BufferOverflow.DROP_LATEST) 0 else n - bufferCapacity in <lambda>()
38 val last = first + bufferCapacity - 1 in <lambda>()
46 finish(n + bufferCapacity + 2) in <lambda>()
/external/icu/icu4c/source/i18n/
Dnumber_capi.cpp150 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity, in unumf_resultToString() argument
155 if (buffer == nullptr ? bufferCapacity != 0 : bufferCapacity < 0) { in unumf_resultToString()
160 return result->fData.toTempString(*ec).extract(buffer, bufferCapacity, *ec); in unumf_resultToString()
/external/icu/icu4c/source/common/
Duloc.cpp719 char* buffer, int32_t bufferCapacity, in uloc_getKeywordValue() argument
726 CheckedArrayByteSink sink(buffer, bufferCapacity); in uloc_getKeywordValue()
738 u_terminateChars(buffer, bufferCapacity, reslen, status); in uloc_getKeywordValue()
857 char* buffer, int32_t bufferCapacity, in uloc_setKeywordValue() argument
883 if (keywordName == NULL || keywordName[0] == 0 || bufferCapacity <= 1) { in uloc_setKeywordValue()
888 if(bufferCapacity<bufLen) { in uloc_setKeywordValue()
931 if(needLen >= bufferCapacity) { in uloc_setKeywordValue()
1068 if (appendLength >= bufferCapacity - needLen) { in uloc_setKeywordValue()
1073 startSearchHere, bufferCapacity - needLen, *status); in uloc_setKeywordValue()
Ducnvsel.cpp284 void* buffer, int32_t bufferCapacity, UErrorCode* status) { in ucnvsel_serialize() argument
291 if (bufferCapacity < 0 || in ucnvsel_serialize()
292 (bufferCapacity > 0 && (p == NULL || (U_POINTER_MASK_LSB(p, 3) != 0))) in ucnvsel_serialize()
325 if (totalSize > bufferCapacity) { in ucnvsel_serialize()
Duniset.cpp1436 bufferCapacity = 0; in compact()
1679 if (newLen <= bufferCapacity) { in ensureBufferCapacity()
1694 bufferCapacity = newCapacity; in ensureBufferCapacity()
1708 capacity = bufferCapacity; in swapBuffers()
1709 bufferCapacity = c; in swapBuffers()
Dloclikely.cpp1187 int32_t bufferCapacity, in do_canonicalize() argument
1193 bufferCapacity, in do_canonicalize()
/external/icu/icu4c/source/common/unicode/
Ducnvsel.h152 void* buffer, int32_t bufferCapacity, UErrorCode* status);
Duloc.h966 char* buffer, int32_t bufferCapacity,
1003 char* buffer, int32_t bufferCapacity,
Dlocid.h650 …int32_t getKeywordValue(const char* keywordName, char *buffer, int32_t bufferCapacity, UErrorCode …
Duniset.h298 int32_t bufferCapacity = 0; // capacity of buffer variable
/external/icu/libandroidicu/include/unicode/
Ducnvsel.h152 void* buffer, int32_t bufferCapacity, UErrorCode* status);
Duloc.h966 char* buffer, int32_t bufferCapacity,
1003 char* buffer, int32_t bufferCapacity,
Dunumberformatter.h595 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity,
/external/icu/libicu/cts_headers/unicode/
Ducnvsel.h152 void* buffer, int32_t bufferCapacity, UErrorCode* status);
Duloc.h966 char* buffer, int32_t bufferCapacity,
1003 char* buffer, int32_t bufferCapacity,
Dunumberformatter.h595 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity,
Dlocid.h650 …int32_t getKeywordValue(const char* keywordName, char *buffer, int32_t bufferCapacity, UErrorCode …
/external/icu/libicu/ndk_headers/unicode/
Duloc.h953 char* buffer, int32_t bufferCapacity,
992 char* buffer, int32_t bufferCapacity,
/external/icu/icu4c/source/tools/toolutil/
Dudbgutil.h103 U_CAPI int32_t udbg_getSystemParameterValueByIndex(int32_t i, char *buffer, int32_t bufferCapacity,…
Dudbgutil.cpp572 U_CAPI int32_t udbg_getSystemParameterValueByIndex(int32_t i, char *buffer, int32_t bufferCapacity,… in udbg_getSystemParameterValueByIndex() argument
574 return systemParams[i].paramFunction(&(systemParams[i]),buffer,bufferCapacity,status); in udbg_getSystemParameterValueByIndex()
/external/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DAnalyzerActivity.java134 int bufferCapacity = outStream.getBufferCapacityInFrames(); in getCommonTestReport() local
135 report.append(String.format("out.buffer.capacity.frames = %d\n", bufferCapacity)); in getCommonTestReport()
/external/icu/icu4c/source/i18n/unicode/
Dunumberformatter.h595 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity,
/external/oboe/tests/
DtestStreamClosedMethods.cpp106 int32_t bufferCapacity = mStream->getBufferCapacityInFrames(); in TEST_F() local
108 ASSERT_EQ(mStream->getBufferCapacityInFrames(), bufferCapacity); in TEST_F()
/external/icu/libicu/src/
Dshim.cpp917 …st char * localeID, const char * keywordName, char * buffer, int32_t bufferCapacity, UErrorCode * … in uloc_getKeywordValue() argument
918 …CU_ENTRY_POINT_RENAME(uloc_getKeywordValue)(localeID, keywordName, buffer, bufferCapacity, status); in uloc_getKeywordValue()
944 …har * keywordName, const char * keywordValue, char * buffer, int32_t bufferCapacity, UErrorCode * … in uloc_setKeywordValue() argument
945 …NTRY_POINT_RENAME(uloc_setKeywordValue)(keywordName, keywordValue, buffer, bufferCapacity, status); in uloc_setKeywordValue()

12