/external/jhead/ |
main.c | 511 static int addKeyValueString(char** buf, int bufLen, const char* key, const char* value) { 520 if (newLen >= bufLen) { 522 bufLen = newLen + 5; 523 ALOGE("reallocing to %d", bufLen); 525 bufLen = newLen + 500; 527 *buf = realloc(*buf, bufLen); 533 snprintf(*buf + strlen(*buf), bufLen, "%s%s%s", key, valueLen, value); 538 return bufLen; 542 static int addKeyValueInt(char** buf, int bufLen, const char* key, int value) { 546 return addKeyValueString(buf, bufLen, key, valueStr) [all...] |
/external/conscrypt/src/platform/java/org/conscrypt/ |
Hex.java | 41 int bufLen = 8; // Max number of hex digits in an int 42 char[] buf = new char[bufLen]; 43 int cursor = bufLen; 47 } while ((i >>>= 4) != 0 || (bufLen - cursor < minWidth)); 49 return new String(buf, cursor, bufLen - cursor);
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
IntegralToString.java | 138 int bufLen = radix < 8 ? 33 : 12; // Max chars in result (conservative) 139 char[] buf = new char[bufLen]; 140 int cursor = bufLen; 152 return new String(buf, cursor, bufLen - cursor); 208 int bufLen = 11; // Max number of chars in result 209 char[] buf = (sb != null) ? BUFFER.get() : new char[bufLen]; 210 int cursor = bufLen; 236 sb.append(buf, cursor, bufLen - cursor); 239 return new String(buf, cursor, bufLen - cursor); 272 int bufLen = radix < 8 ? 65 : 23; // Max chars in result (conservative [all...] |
/external/icu/icu4c/source/tools/genrb/ |
rle.h | 40 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status); 57 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status);
|
wrtxml.cpp | 400 int32_t bufLen = 0; 411 buf = convertAndEscape(&buf, bufCapacity, &bufLen, src, srcLen,status); 413 trim(&buf,&bufLen); 415 write_utf8_file(out,UnicodeString(buf, bufLen, "UTF-8")); 492 int32_t bufLen = 0; 512 buf = convertAndEscape(&buf, 0, &bufLen, trans, transLen, status); 514 printAttribute("translate", UnicodeString(buf, bufLen, "UTF-8"), bufLen); 620 int32_t bufLen = 0; 632 buf = convertAndEscape(&buf, 0, &bufLen, res->getBuffer(), res->length(), status) [all...] |
/external/icu/icu4c/source/samples/numfmt/ |
util.cpp | 66 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); 67 if(bufLen < sizeof(stackBuffer)) { 70 buf = new char[bufLen + 1]; 71 bufLen = str.extract(0, 0x7fffffff, buf, bufLen + 1, "UTF-8");
|
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
ChecksumCalculator.h | 68 // bool testChecksum(void* buf, size_t bufLen) { 72 // encoder.addBuffer(buf, bufLen); 73 // std::vector<unsigned char> message(bufLen + encoder.checksumByteSize()); 74 // memcpy(&message[0], buf, bufLen); 75 // encoder.writeChecksum(&message[0] + bufLen, encoder.checksumByteSize()); 80 // decoder.addBuffer(&message[0], bufLen); 81 // return decoder.validate(&message[0] + bufLen, decoder.checksumByteSize()); 149 // at |buf| of |bufLen| bytes. Once all buffers 152 void addBuffer(const void* buf, size_t bufLen);
|
/external/icu/icu4c/source/samples/datefmt/ |
util.cpp | 53 // int32_t bufLen = str.extract(0, len, buf); // Preflight 56 int32_t bufLen = len + 16; 58 buf = new char[bufLen + 1]; 59 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
|
/external/icu/icu4c/source/samples/msgfmt/ |
util.cpp | 53 // int32_t bufLen = str.extract(0, len, buf); // Preflight 56 int32_t bufLen = len + 16; 58 buf = new char[bufLen + 1]; 59 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
|
/external/icu/icu4c/source/samples/translit/ |
util.cpp | 53 // int32_t bufLen = str.extract(0, len, buf); // Preflight 56 int32_t bufLen = len + 16; 58 buf = new char[bufLen + 1]; 59 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
|
/libcore/ojluni/src/main/java/java/util/zip/ |
DeflaterInputStream.java | 100 * @param bufLen compression buffer size 101 * @throws IllegalArgumentException if {@code bufLen} is <= 0 104 public DeflaterInputStream(InputStream in, Deflater defl, int bufLen) { 112 if (bufLen < 1) 117 buf = new byte[bufLen];
|
InflaterOutputStream.java | 99 * @param bufLen decompression buffer size 100 * @throws IllegalArgumentException if {@code bufLen} is <= 0 103 public InflaterOutputStream(OutputStream out, Inflater infl, int bufLen) { 111 if (bufLen <= 0) 116 buf = new byte[bufLen];
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/ |
DetectingViewer.java | 216 int bufLen = 0; 222 int bytesRead = in.read(buffer, bufLen, bytesRemaining); 228 bufLen += bytesRead; 240 for (int i = 0; i < bufLen; i += 1) { 246 if (openTag(buffer, i + 1, bufLen, scriptTag) || 247 openTag(buffer, i + 1, bufLen, styleTag)) { 249 } else if (closedTag(buffer, i + 1, bufLen, scriptTag) || 250 closedTag(buffer, i + 1, bufLen, styleTag)) {
|
/system/bt/embdrv/sbc/decoder/include/ |
oi_utils.h | 228 * @param bufLen The length of the destination buffer. 235 OI_UINT16 bufLen, 244 * @param bufLen The length of the destination buffer. 253 OI_UINT16 bufLen,
|
/external/icu/icu4c/source/common/ |
unifiedcache.h | 114 virtual char *writeDescription(char *buffer, int32_t bufLen) const { 116 uprv_strncpy(buffer, s, bufLen); 117 buffer[bufLen - 1] = 0; 167 virtual char *writeDescription(char *buffer, int32_t bufLen) const { 169 uprv_strncpy(buffer, s, bufLen); 170 buffer[bufLen - 1] = 0;
|
uloc.cpp | [all...] |
/external/icu/icu4c/source/test/intltest/ |
nptrans.cpp | 160 int32_t bufLen = rsource.length(); 165 for(;bufIndex<bufLen;){ 166 U16_NEXT(buffer, bufIndex, bufLen, ch); 174 if(bufLen < destCapacity){ 175 uprv_memcpy(dest,buffer,bufLen*U_SIZEOF_UCHAR); 178 return u_terminateUChars(dest, destCapacity, bufLen, &status);
|
ucaconf.cpp | 116 int32_t bufLen = (int32_t)uprv_strlen(buffer); 124 uprv_strcpy(buffer+bufLen, ext); 129 uprv_strcpy(buffer+bufLen, "_SHORT"); 134 uprv_strcpy(buffer+bufLen, "_STUB"); 139 *(buffer+bufLen) = 0; 210 int32_t buflen = u_parseString(lineB, buffer, 1024, &first, &status); local 216 buffer[buflen] = 0; 218 if(skipLineBecauseOfBug(buffer, buflen, skipFlags)) { 223 int32_t resLen = withSortKeys ? coll->getSortKey(buffer, buflen, newSk, 1024) : 0; 228 int32_t cmpres = coll->compare(oldB, oldBlen, buffer, buflen, status) [all...] |
/bootable/recovery/minzip/ |
Zip.h | 120 char* buf, int bufLen);
|
Zip.c | 624 int bufLen; 631 if (dataLen <= args->bufLen) { 634 args->bufLen -= dataLen; 644 char *buf, int bufLen) 650 args.bufLen = bufLen; 746 int bufLen; 762 if (needLen > helper->bufLen) { 771 helper->bufLen = needLen; 866 helper.bufLen = 0 [all...] |
/external/icu/icu4c/source/tools/toolutil/ |
toolutil.h | 90 * @param bufLen the output buffer length 91 * @param status error code- may return U_BUFFER_OVERFLOW_ERROR if bufLen is too small. 92 * @return If successful, a pointer to the output buffer. If failure or bufLen is too small, NULL. 95 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status);
|
/frameworks/av/cmds/screenrecord/ |
Overlay.h | 99 void getTimeString_l(nsecs_t monotonicNsec, char* buf, size_t bufLen);
|
/frameworks/base/include/androidfw/ |
ZipFileRO.h | 116 int getEntryFileName(ZipEntryRO entry, char* buffer, size_t bufLen) const;
|
/external/icu/icu4c/source/test/perf/DateFmtPerf/ |
DateFmtPerf.h | 130 int32_t bufLen = len + 16; 132 buf = new char[bufLen + 1]; 133 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion 216 int32_t bufLen = len + 16; 218 buf = new char[bufLen + 1]; 219 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion 666 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); 667 if(bufLen < sizeof(stackBuffer)) { 670 buf = new char[bufLen + 1]; 671 bufLen = str.extract(0, 0x7fffffff, buf, bufLen + 1, "UTF-8") [all...] |
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/biz/base64Coder/ |
Base64Coder.java | 108 int bufLen = ((iLen + 2) / 3) * 4 + lines * lineSeparator.length(); 109 StringBuilder buf = new StringBuilder(bufLen);
|