Home
last modified time | relevance | path

Searched refs:bufLen (Results 1 – 25 of 45) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/hash/
DFarmHashFingerprint64Test.java161 int bufLen = 0; in testMultipleLengths() local
166 buf[bufLen++] = getChar(h); in testMultipleLengths()
168 h ^= fingerprint(buf, i * i % bufLen); in testMultipleLengths()
170 buf[bufLen++] = getChar(h); in testMultipleLengths()
172 h ^= fingerprint(buf, i * i * i % bufLen); in testMultipleLengths()
174 buf[bufLen++] = getChar(h); in testMultipleLengths()
176 h ^= fingerprint(buf, bufLen); in testMultipleLengths()
178 buf[bufLen++] = getChar(h); in testMultipleLengths()
180 int x0 = buf[bufLen - 1] & 0xff; in testMultipleLengths()
181 int x1 = buf[bufLen - 2] & 0xff; in testMultipleLengths()
[all …]
/external/guava/android/guava-tests/test/com/google/common/hash/
DFarmHashFingerprint64Test.java161 int bufLen = 0; in testMultipleLengths() local
166 buf[bufLen++] = getChar(h); in testMultipleLengths()
168 h ^= fingerprint(buf, i * i % bufLen); in testMultipleLengths()
170 buf[bufLen++] = getChar(h); in testMultipleLengths()
172 h ^= fingerprint(buf, i * i * i % bufLen); in testMultipleLengths()
174 buf[bufLen++] = getChar(h); in testMultipleLengths()
176 h ^= fingerprint(buf, bufLen); in testMultipleLengths()
178 buf[bufLen++] = getChar(h); in testMultipleLengths()
180 int x0 = buf[bufLen - 1] & 0xff; in testMultipleLengths()
181 int x1 = buf[bufLen - 2] & 0xff; in testMultipleLengths()
[all …]
/external/conscrypt/platform/src/main/java/org/conscrypt/
DHex.java42 int bufLen = 8; // Max number of hex digits in an int in intToHexString() local
43 char[] buf = new char[bufLen]; in intToHexString()
44 int cursor = bufLen; in intToHexString()
48 } while ((i >>>= 4) != 0 || (bufLen - cursor < minWidth)); in intToHexString()
50 return new String(buf, cursor, bufLen - cursor); in intToHexString()
/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/
DHex.java44 int bufLen = 8; // Max number of hex digits in an int in intToHexString() local
45 char[] buf = new char[bufLen]; in intToHexString()
46 int cursor = bufLen; in intToHexString()
50 } while ((i >>>= 4) != 0 || (bufLen - cursor < minWidth)); in intToHexString()
52 return new String(buf, cursor, bufLen - cursor); in intToHexString()
/external/icu/icu4c/source/samples/numfmt/
Dutil.cpp75 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); in uprintf() local
76 if(bufLen < sizeof(stackBuffer)) { in uprintf()
79 buf = new char[bufLen + 1]; in uprintf()
80 bufLen = str.extract(0, 0x7fffffff, buf, bufLen + 1, "UTF-8"); in uprintf()
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/
DDetectingViewer.java218 int bufLen = 0; in filter() local
224 int bytesRead = in.read(buffer, bufLen, bytesRemaining); in filter()
230 bufLen += bytesRead; in filter()
242 for (int i = 0; i < bufLen; i += 1) { in filter()
248 if (openTag(buffer, i + 1, bufLen, scriptTag) || in filter()
249 openTag(buffer, i + 1, bufLen, styleTag)) { in filter()
251 } else if (closedTag(buffer, i + 1, bufLen, scriptTag) || in filter()
252 closedTag(buffer, i + 1, bufLen, styleTag)) { in filter()
/external/icu/icu4c/source/test/intltest/
Dnptrans.cpp159 int32_t bufLen = rsource.length(); in map() local
164 for(;bufIndex<bufLen;){ in map()
165 U16_NEXT(buffer, bufIndex, bufLen, ch); in map()
173 if(bufLen < destCapacity){ in map()
174 u_memcpy(dest, buffer, bufLen); in map()
177 return u_terminateUChars(dest, destCapacity, bufLen, &status); in map()
Ducaconf.cpp118 int32_t bufLen = (int32_t)uprv_strlen(buffer); in openTestFile() local
126 uprv_strcpy(buffer+bufLen, ext); in openTestFile()
131 uprv_strcpy(buffer+bufLen, "_SHORT"); in openTestFile()
136 uprv_strcpy(buffer+bufLen, "_STUB"); in openTestFile()
141 *(buffer+bufLen) = 0; in openTestFile()
Dtestidna.cpp729 int32_t bufLen = 0; in testIDNToUnicode() local
732 bufLen = (int32_t)strlen(domainNames[i]); in testIDNToUnicode()
733 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in testIDNToUnicode()
734 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in testIDNToUnicode()
755 int32_t bufLen = 0; in testIDNToASCII() local
758 bufLen = (int32_t)strlen(domainNames[i]); in testIDNToASCII()
759 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in testIDNToASCII()
760 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in testIDNToASCII()
909 int32_t bufLen=0; in testErrorCases() local
915 bufLen = (int32_t)strlen(errorCase.ascii); in testErrorCases()
[all …]
/external/icu/icu4c/source/common/
Dunifiedcache.h116 virtual char *writeDescription(char *buffer, int32_t bufLen) const { in writeDescription() argument
118 uprv_strncpy(buffer, s, bufLen); in writeDescription()
119 buffer[bufLen - 1] = 0; in writeDescription()
169 virtual char *writeDescription(char *buffer, int32_t bufLen) const { in writeDescription() argument
171 uprv_strncpy(buffer, s, bufLen); in writeDescription()
172 buffer[bufLen - 1] = 0; in writeDescription()
/external/icu/icu4c/source/tools/genrb/
Dwrtjava.cpp235 uint32_t bufLen = 0; in str_write_java() local
247 bufLen = uCharsToChars(buf,length,src,srcLen,status); in str_write_java()
258 if(bufLen+(tabCount*4) > columnCount ){ in str_write_java()
262 while(len < bufLen){ in str_write_java()
265 if (add < (bufLen-len)) { in str_write_java()
291 if(len+add<bufLen){ in str_write_java()
301 if (len + add < bufLen) { in str_write_java()
306 T_FileStream_write(out,current,bufLen-len); in str_write_java()
312 T_FileStream_write(out, buf,bufLen); in str_write_java()
Drle.h42 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode…
59 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* …
Dwrtxml.cpp403 int32_t bufLen = 0; in print() local
414 buf = convertAndEscape(&buf, bufCapacity, &bufLen, src, srcLen,status); in print()
416 trim(&buf,&bufLen); in print()
418 write_utf8_file(out,UnicodeString(buf, bufLen, "UTF-8")); in print()
499 int32_t bufLen = 0; in printComments() local
519 buf = convertAndEscape(&buf, 0, &bufLen, trans, transLen, status); in printComments()
521 printAttribute("translate", UnicodeString(buf, bufLen, "UTF-8"), bufLen); in printComments()
627 int32_t bufLen = 0; in string_write_xml() local
639 buf = convertAndEscape(&buf, 0, &bufLen, res->getBuffer(), res->length(), status); in string_write_xml()
645 write_utf8_file(out, UnicodeString(buf, bufLen, "UTF-8")); in string_write_xml()
[all …]
Drle.c150 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* … in usArrayToRLEString() argument
151 uint16_t* bufLimit = buffer+bufLen; in usArrayToRLEString()
196 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode… in byteArrayToRLEString() argument
198 uint16_t* bufLimit = buffer+bufLen; in byteArrayToRLEString()
/external/skia/tests/
DReadWriteAlphaTest.cpp95 size_t bufLen = nonZeroRowBytes * Y_SIZE; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
96 std::unique_ptr<uint8_t[]> readback(new uint8_t[bufLen]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
98 memset(readback.get(), kClearValue, bufLen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
132 if (bufLen > 0) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
133 memset(readback.get(), kClearValue, bufLen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skqp/tests/
DReadWriteAlphaTest.cpp99 size_t bufLen = nonZeroRowBytes * Y_SIZE; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
100 std::unique_ptr<uint8_t[]> readback(new uint8_t[bufLen]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
102 memset(readback.get(), kClearValue, bufLen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
136 if (bufLen > 0) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
137 memset(readback.get(), kClearValue, bufLen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/icu/icu4c/source/test/perf/DateFmtPerf/
DDateFmtPerf.h134 int32_t bufLen = len + 16; in uprintf() local
136 buf = new char[bufLen + 1]; in uprintf()
220 int32_t bufLen = len + 16; in uprintf() local
222 buf = new char[bufLen + 1]; in uprintf()
670 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); in uprintf() local
671 if(bufLen < sizeof(stackBuffer)) { in uprintf()
674 buf = new char[bufLen + 1]; in uprintf()
675 bufLen = str.extract(0, 0x7fffffff, buf, bufLen + 1, "UTF-8"); in uprintf()
/external/icu/icu4c/source/samples/translit/
Dutil.cpp62 int32_t bufLen = len + 16; in uprintf() local
64 buf = new char[bufLen + 1]; in uprintf()
/external/icu/icu4c/source/samples/datefmt/
Dutil.cpp62 int32_t bufLen = len + 16; in uprintf() local
64 buf = new char[bufLen + 1]; in uprintf()
/external/icu/icu4c/source/samples/msgfmt/
Dutil.cpp62 int32_t bufLen = len + 16; in uprintf() local
64 buf = new char[bufLen + 1]; in uprintf()
/external/fastrpc/inc/
Dapps_std.h117 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_fread)(apps_std_FILE sin, byte* buf, int bufLen, in…
118 …t __QAIC_HEADER(apps_std_fwrite)(apps_std_FILE sin, const byte* buf, int bufLen, int* bytesWritten…
172 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_fgets)(apps_std_FILE sin, byte* buf, int bufLen, in…
/external/fastrpc/src/
Dapps_std_imp.c286 __QAIC_IMPL_EXPORT int __QAIC_IMPL(apps_std_fread)(apps_std_FILE sin, byte* buf, int bufLen, int* b… in __QAIC_IMPL()
292 out = fread(buf, 1, bufLen, sinfo->u.stream); in __QAIC_IMPL()
294 if(out <= bufLen) { in __QAIC_IMPL()
298 …rror %x: fread returning %d bytes, requested was %d bytes, errno is %x\n", nErr, out, bufLen, err); in __QAIC_IMPL()
305 *bytesRead = std_memscpy(buf, bufLen, sinfo->u.binfo.fbuf + sinfo->u.binfo.pos, in __QAIC_IMPL()
310 FARF(HIGH, "fread returning %d %d 0", out, bufLen); in __QAIC_IMPL()
315 __QAIC_IMPL_EXPORT int __QAIC_IMPL(apps_std_fwrite)(apps_std_FILE sin, const byte* buf, int bufLen,… in __QAIC_IMPL()
321 int out = fwrite(buf, 1, bufLen, sinfo->u.stream); in __QAIC_IMPL()
323 if(out <= bufLen) { in __QAIC_IMPL()
327 …ror %x: fwrite returning %d bytes, requested was %d bytes, errno is %x\n", nErr, out, bufLen, err); in __QAIC_IMPL()
[all …]
/external/icu/icu4c/source/test/cintltst/
Didnatest.c462 int32_t bufLen = 0; in TestIDNToUnicode() local
467 bufLen = (int32_t)strlen(domainNames[i]); in TestIDNToUnicode()
468 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in TestIDNToUnicode()
469 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in TestIDNToUnicode()
491 int32_t bufLen = 0; in TestIDNToASCII() local
497 bufLen = (int32_t)strlen(domainNames[i]); in TestIDNToASCII()
498 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in TestIDNToASCII()
499 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in TestIDNToASCII()
/external/libunwind_llvm/src/
Dlibunwind.cpp192 size_t bufLen, unw_word_t *offset) { in unw_get_proc_name() argument
195 static_cast<unsigned long>(bufLen)); in unw_get_proc_name()
197 if (co->getFunctionName(buf, bufLen, offset)) in unw_get_proc_name()
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/biz/base64Coder/
DBase64Coder.java108 int bufLen = ((iLen + 2) / 3) * 4 + lines * lineSeparator.length(); in encodeLines() local
109 StringBuilder buf = new StringBuilder(bufLen); in encodeLines()

12