Home
last modified time | relevance | path

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

12

/external/jhead/
Dmain.c475 static int addKeyValueString(char** buf, int bufLen, const char* key, const char* value) { in addKeyValueString() argument
484 if (newLen >= bufLen) { in addKeyValueString()
486 bufLen = newLen + 5; in addKeyValueString()
487 LOGE("reallocing to %d", bufLen); in addKeyValueString()
489 bufLen = newLen + 500; in addKeyValueString()
491 *buf = realloc(*buf, bufLen); in addKeyValueString()
497 snprintf(*buf + strlen(*buf), bufLen, "%s%s%s", key, valueLen, value); in addKeyValueString()
502 return bufLen; in addKeyValueString()
506 static int addKeyValueInt(char** buf, int bufLen, const char* key, int value) { in addKeyValueInt() argument
510 return addKeyValueString(buf, bufLen, key, valueStr); in addKeyValueInt()
[all …]
/external/opencore/android/drm/oma1/src/
Dpvmf_cpmplugin_kmj_oma1_data_access.cpp76 int32_t DrmPluginDataAccess::ReadData(uint8_t* buf,int32_t bufLen) in ReadData() argument
80 return pvfile->Read(buf,sizeof(uint8_t),bufLen); in ReadData()
91 if(((dataPos - dataBuf) + bufLen) <= dataLen) in ReadData()
93 readDataLen = bufLen; in ReadData()
122 int32_t DrmPluginReadData( int32_t dataHandle,uint8_t* buf,int32_t bufLen) in DrmPluginReadData() argument
125 return dataAccess->ReadData(buf,bufLen); in DrmPluginReadData()
Dpvmf_cpmplugin_kmj_oma1_data_access.h54 int32_t ReadData(uint8_t* buf,int32_t bufLen);
110 extern int32_t DrmPluginReadData( int32_t dataHandle,uint8_t* buf,int32_t bufLen);
/external/icu4c/samples/numfmt/
Dutil.cpp66 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); in uprintf() local
67 if(bufLen < sizeof(stackBuffer)) { in uprintf()
70 buf = new char[bufLen + 1]; in uprintf()
71 bufLen = str.extract(0, 0x7fffffff, buf, bufLen + 1, "UTF-8"); in uprintf()
/external/icu4c/test/intltest/
Dnptrans.cpp160 int32_t bufLen = rsource.length(); in map() local
165 for(;bufIndex<bufLen;){ in map()
166 U16_NEXT(buffer, bufIndex, bufLen, ch); in map()
174 if(bufLen < destCapacity){ in map()
175 uprv_memcpy(dest,buffer,bufLen*U_SIZEOF_UCHAR); in map()
178 return u_terminateUChars(dest, destCapacity, bufLen, &status); in map()
Ducaconf.cpp115 int32_t bufLen = (int32_t)uprv_strlen(buffer); in openTestFile() local
123 uprv_strcpy(buffer+bufLen, ext); in openTestFile()
128 uprv_strcpy(buffer+bufLen, "_SHORT"); in openTestFile()
133 uprv_strcpy(buffer+bufLen, "_STUB"); in openTestFile()
138 *(buffer+bufLen) = 0; in openTestFile()
Dtestidna.cpp721 int32_t bufLen = 0; in testIDNToUnicode() local
724 bufLen = (int32_t)strlen(domainNames[i]); in testIDNToUnicode()
725 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in testIDNToUnicode()
726 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in testIDNToUnicode()
747 int32_t bufLen = 0; in testIDNToASCII() local
750 bufLen = (int32_t)strlen(domainNames[i]); in testIDNToASCII()
751 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in testIDNToASCII()
752 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in testIDNToASCII()
901 int32_t bufLen=0; in testErrorCases() local
907 bufLen = (int32_t)strlen(errorCase.ascii); in testErrorCases()
[all …]
Dtsmthred.cpp1282 size_t bufLen = strlen(buffer); in TestCollators() local
1290 strcpy(buffer+bufLen, ext); in TestCollators()
1295 strcpy(buffer+bufLen, "_SHORT"); in TestCollators()
1300 strcpy(buffer+bufLen, "_STUB"); in TestCollators()
1305 *(buffer+bufLen) = 0; in TestCollators()
/external/icu4c/common/
Dcaniter.cpp503 int32_t bufLen = 0; in extract() local
544 uprv_memcpy(buff+bufLen, segment+i, (segLen-i)*sizeof(UChar)); in extract()
545 bufLen+=segLen-i; in extract()
556 U16_APPEND(buff, bufLen, bufSize, cp, overflow); in extract()
588 if (bufLen == 0) { in extract()
595 int32_t tempLen = inputLen + bufLen; in extract()
606 return getEquivalents2(fillinResult, buff, bufLen, status); in extract()
Duloc.c892 int32_t bufLen; in uloc_setKeywordValue() local
909 bufLen = (int32_t)uprv_strlen(buffer); in uloc_setKeywordValue()
914 if(bufferCapacity<bufLen) { in uloc_setKeywordValue()
934 return bufLen; in uloc_setKeywordValue()
937 needLen = bufLen+1+keywordNameLen+1+keywordValueLen; in uloc_setKeywordValue()
942 startSearchHere=buffer+bufLen; in uloc_setKeywordValue()
1004 return bufLen; /* no change in size */ in uloc_setKeywordValue()
1008 uprv_memmove(nextSeparator - delta, nextSeparator, bufLen-(nextSeparator-buffer)); in uloc_setKeywordValue()
1011 bufLen -= delta; in uloc_setKeywordValue()
1012 buffer[bufLen]=0; in uloc_setKeywordValue()
[all …]
Dlocid.cpp1305 Locale::getKeywordValue(const char* keywordName, char *buffer, int32_t bufLen, UErrorCode &status) … in getKeywordValue() argument
1307 return uloc_getKeywordValue(fullName, keywordName, buffer, bufLen, &status); in getKeywordValue()
/external/icu4c/tools/genrb/
Drle.h40 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode…
57 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* …
Dwrtxml.c352 int32_t bufLen = 0; in print() local
363 buf = convertAndEscape(&buf, bufCapacity, &bufLen, src, srcLen,status); in print()
365 trim(&buf,&bufLen); in print()
367 T_FileStream_write(out, buf, bufLen); in print()
429 int32_t bufLen = 0; in printComments() local
453 buf = convertAndEscape(&buf, 0, &bufLen, trans, transLen, status); in printComments()
455 printAttribute("translate", buf, bufLen); in printComments()
558 int32_t bufLen = 0; in string_write_xml() local
570 buf = convertAndEscape(&buf, 0, &bufLen, res->u.fString.fChars, res->u.fString.fLength, status); in string_write_xml()
576 T_FileStream_write(out, buf, bufLen); in string_write_xml()
[all …]
Dwrtjava.c232 uint32_t bufLen = 0; in str_write_java() local
244 bufLen = uCharsToChars(buf,length,src,srcLen,status); in str_write_java()
254 if(bufLen+(tabCount*4) > columnCount ){ in str_write_java()
258 while(len < bufLen){ in str_write_java()
261 if (add < (bufLen-len)) { in str_write_java()
285 if(len+add<bufLen){ in str_write_java()
290 T_FileStream_write(out,current,bufLen-len); in str_write_java()
296 T_FileStream_write(out, buf,bufLen); in str_write_java()
Drle.c148 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* … in usArrayToRLEString() argument
149 uint16_t* bufLimit = buffer+bufLen; in usArrayToRLEString()
194 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode… in byteArrayToRLEString() argument
196 uint16_t* bufLimit = buffer+bufLen; in byteArrayToRLEString()
/external/icu4c/test/cintltst/
Didnatest.c461 int32_t bufLen = 0; in TestIDNToUnicode() local
466 bufLen = (int32_t)strlen(domainNames[i]); in TestIDNToUnicode()
467 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in TestIDNToUnicode()
468 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in TestIDNToUnicode()
490 int32_t bufLen = 0; in TestIDNToASCII() local
496 bufLen = (int32_t)strlen(domainNames[i]); in TestIDNToASCII()
497 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in TestIDNToASCII()
498 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in TestIDNToASCII()
Dcrestst.c779 int32_t bufLen = (int32_t)strlen(testline)+10; in TestFileStream() local
780 char* buf = (char*) malloc(bufLen); in TestFileStream()
864 T_FileStream_readLine(stream,buf,bufLen); in TestFileStream()
872 retLen = T_FileStream_read(stream, buf, bufLen); in TestFileStream()
Dcapitst.c388 int32_t bufLen = 200000; in TestProperty() local
391 tempLength = ucol_getRulesEx(col,UCOL_TAILORING_ONLY,buffer,bufLen ); in TestProperty()
396 tempLength=ucol_getRulesEx(col,UCOL_FULL_RULES,buffer,bufLen ); in TestProperty()
1942 int32_t bufLen; in doSetsTest() local
1945 bufLen = u_unescape(inSet, buffer, 512); in doSetsTest()
1946 uset_applyPattern(set, buffer, bufLen, 0, status); in doSetsTest()
1956 bufLen = u_unescape(outSet, buffer, 512); in doSetsTest()
1957 uset_applyPattern(set, buffer, bufLen, 0, status); in doSetsTest()
/external/icu4c/samples/translit/
Dutil.cpp56 int32_t bufLen = len + 16; in uprintf() local
58 buf = new char[bufLen + 1]; in uprintf()
/external/icu4c/samples/datefmt/
Dutil.cpp56 int32_t bufLen = len + 16; in uprintf() local
58 buf = new char[bufLen + 1]; in uprintf()
/external/icu4c/samples/msgfmt/
Dutil.cpp56 int32_t bufLen = len + 16; in uprintf() local
58 buf = new char[bufLen + 1]; in uprintf()
/external/opencore/android/drm/oma1/test/
Dtest_pv_drm_plugin.cpp1133 int32_t bufLen = SVC_drm_getContentLength(drmSession); in SavePureMediaForCompare() local
1135 if (bufLen > 0) in SavePureMediaForCompare()
1137 uint8_t *buf = OSCL_ARRAY_NEW(uint8_t, (bufLen)); in SavePureMediaForCompare()
1140 if (DRM_SUCCESS == SVC_drm_getContent(drmSession,0, buf, bufLen)) in SavePureMediaForCompare()
1146 fwrite(buf, bufLen, 1, handle); in SavePureMediaForCompare()
1173 int32_t DrmPluginSTReadFileData( int32_t fileHandle,uint8_t* buf,int32_t bufLen) in DrmPluginSTReadFileData() argument
1176 return fileObject->Read(buf,sizeof(uint8_t),bufLen); in DrmPluginSTReadFileData()
Dtest_pv_drm_plugin.h169 extern int32_t DrmPluginSTReadFileData( int32_t fileHandle,uint8_t* buf,int32_t bufLen);
/external/webkit/WebCore/bridge/jni/
Djni_utility.cpp42 static jint KJS_GetCreatedJavaVMs(JavaVM** vmBuf, jsize bufLen, jsize* nVMs) in KJS_GetCreatedJavaVMs() argument
55 return functionPointer(vmBuf, bufLen, nVMs); in KJS_GetCreatedJavaVMs()
75 jsize bufLen = 1; in getJavaVM() local
80 jniError = KJS_GetCreatedJavaVMs(jvmArray, bufLen, &nJVMs); in getJavaVM()
/external/icu4c/i18n/
Ducol_sit.cpp957 addSpecial(contContext *context, UChar *buffer, int32_t bufLen, in addSpecial() argument
970 addSpecial(context, buffer, bufLen, newCE, leftIndex, rightIndex, status); in addSpecial()
992 addSpecial(context, buffer, bufLen, newCE, leftIndex, rightIndex, status); in addSpecial()
1004 if(rightIndex == bufLen-1) { in addSpecial()
1012 addSpecial(context, buffer, bufLen, newCE, leftIndex, rightIndex+1, status); in addSpecial()

12