Home
last modified time | relevance | path

Searched refs:sizeNeeded (Results 1 – 13 of 13) sorted by relevance

/external/guava/guava/src/com/google/common/escape/
DCharEscaper.java106 int sizeNeeded = destIndex + charsSkipped + rlen; in escapeSlow() local
107 if (destSize < sizeNeeded) { in escapeSlow()
108 destSize = sizeNeeded + DEST_PAD_MULTIPLIER * (slen - index); in escapeSlow()
129 int sizeNeeded = destIndex + charsLeft; in escapeSlow() local
130 if (destSize < sizeNeeded) { in escapeSlow()
133 dest = growBuffer(dest, destIndex, sizeNeeded); in escapeSlow()
136 destIndex = sizeNeeded; in escapeSlow()
DUnicodeEscaper.java200 int sizeNeeded = destIndex + charsSkipped + escaped.length; in escapeSlow() local
201 if (dest.length < sizeNeeded) { in escapeSlow()
202 int destLength = sizeNeeded + (end - index) + DEST_PAD; in escapeSlow()
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/com/google/gdata/util/common/base/
DUnicodeEscaper.java207 int sizeNeeded = destIndex + charsSkipped + escaped.length; in escapeSlow() local
208 if (dest.length < sizeNeeded) { in escapeSlow()
209 int destLength = sizeNeeded + (end - index) + DEST_PAD; in escapeSlow()
/external/icu/icu4c/source/test/perf/ubrkperf/
Dubrkperfold.cpp438 int sizeNeeded = ucnv_fromUChars(cvrtr, in UnixConvert()
449 gFileLines[line].unixName = new char[sizeNeeded+1]; in UnixConvert()
450 sizeNeeded = ucnv_fromUChars(cvrtr, in UnixConvert()
452 sizeNeeded+1, // length of target buffer. in UnixConvert()
460 gFileLines[line].unixName[sizeNeeded] = 0; in UnixConvert()
/external/skia/src/core/
DSkPath_serial.cpp69 const size_t sizeNeeded = sizeof(int32_t) + SkRRect::kSizeInMemory + sizeof(int32_t); in writeToMemoryAsRRect() local
71 return sizeNeeded; in writeToMemoryAsRRect()
85 SkASSERT(sizeNeeded == buffer.pos()); in writeToMemoryAsRRect()
/external/skqp/src/core/
DSkPath_serial.cpp69 const size_t sizeNeeded = sizeof(int32_t) + SkRRect::kSizeInMemory + sizeof(int32_t); in writeToMemoryAsRRect() local
71 return sizeNeeded; in writeToMemoryAsRRect()
85 SkASSERT(sizeNeeded == buffer.pos()); in writeToMemoryAsRRect()
/external/skqp/src/ports/
DSkScalerContext_win_dw.cpp901 int sizeNeeded = glyph.fWidth * glyph.fHeight; in drawDWMask() local
903 sizeNeeded *= 3; in drawDWMask()
905 if (sizeNeeded > fBits.count()) { in drawDWMask()
906 fBits.setCount(sizeNeeded); in drawDWMask()
910 memset(fBits.begin(), 0, sizeNeeded); in drawDWMask()
975 sizeNeeded), in drawDWMask()
/external/skia/src/ports/
DSkScalerContext_win_dw.cpp903 int sizeNeeded = glyph.fWidth * glyph.fHeight; in drawDWMask() local
905 sizeNeeded *= 3; in drawDWMask()
907 if (sizeNeeded > fBits.count()) { in drawDWMask()
908 fBits.setCount(sizeNeeded); in drawDWMask()
912 memset(fBits.begin(), 0, sizeNeeded); in drawDWMask()
977 sizeNeeded), in drawDWMask()
/external/icu/icu4c/source/test/perf/collationperf/
Dcollperf.cpp1177 int sizeNeeded = ucnv_fromUChars(cvrtr, in UnixConvert() local
1188 gFileLines[line].unixName = new char[sizeNeeded+1]; in UnixConvert()
1189 sizeNeeded = ucnv_fromUChars(cvrtr, in UnixConvert()
1191 sizeNeeded+1, // length of target buffer. in UnixConvert()
1199 gFileLines[line].unixName[sizeNeeded] = 0; in UnixConvert()
/external/icu/icu4c/source/common/
Dubidi.cpp199 …etMemory(BidiMemoryForAllocation *bidiMem, int32_t *pSize, UBool mayAllocate, int32_t sizeNeeded) { in ubidi_getMemory() argument
204 if(mayAllocate && (*pMemory=uprv_malloc(sizeNeeded))!=NULL) { in ubidi_getMemory()
205 *pSize=sizeNeeded; in ubidi_getMemory()
211 if(sizeNeeded<=*pSize) { in ubidi_getMemory()
225 if((memory=uprv_realloc(*pMemory, sizeNeeded))!=NULL) { in ubidi_getMemory()
227 *pSize=sizeNeeded; in ubidi_getMemory()
Dubidiimp.h428 …getMemory(BidiMemoryForAllocation *pMemory, int32_t *pSize, UBool mayAllocate, int32_t sizeNeeded);
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DBidi.java1339 boolean mayAllocate, int sizeNeeded) in getMemory() argument
1344 if (sizeNeeded == len) { in getMemory()
1349 if (sizeNeeded <= len) { in getMemory()
1359 return Array.newInstance(arrayClass, sizeNeeded); in getMemory()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DBidi.java1312 boolean mayAllocate, int sizeNeeded) in getMemory() argument
1317 if (sizeNeeded == len) { in getMemory()
1322 if (sizeNeeded <= len) { in getMemory()
1332 return Array.newInstance(arrayClass, sizeNeeded); in getMemory()