/external/qemu/qobject/ |
qstring.c | 75 static void capacity_increase(QString *qstring, size_t len) 77 if (qstring->capacity < (qstring->length + len)) { 78 qstring->capacity += len; 89 size_t len = strlen(str); local 91 capacity_increase(qstring, len); 92 memcpy(qstring->string + qstring->length, str, len); 93 qstring->length += len;
|
/external/qemu/slirp/ |
ip_output.c | 51 * header (with len, off, ttl, proto, tos, src, dst). 61 int len, off, error = 0; local 69 * m = ip_insertoptions(m, opt, &len); 70 * hlen = len; 117 len = (IF_MTU - hlen) &~ 7; /* ip databytes per packet */ 118 if (len < 8) { 124 int mhlen, firstlen = len; 133 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len) { 155 if (off + len >= (u_int16_t)ip->ip_len [all...] |
sbuf.c | 134 int len, n, nn; local 136 len = m->m_len; 140 if (n > len) n = len; 145 if (n > len) n = len; 147 len -= n; 148 if (len) { 151 if (nn > len) nn = len; [all...] |
/external/qemu/slirp-android/ |
ip_output.c | 51 * header (with len, off, ttl, proto, tos, src, dst). 61 int len, off, error = 0; local 69 * m = ip_insertoptions(m, opt, &len); 70 * hlen = len; 117 len = (IF_MTU - hlen) &~ 7; /* ip databytes per packet */ 118 if (len < 8) { 124 int mhlen, firstlen = len; 133 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len) { 155 if (off + len >= (u_int16_t)ip->ip_len [all...] |
sbuf.c | 134 int len, n, nn; local 136 len = m->m_len; 140 if (n > len) n = len; 145 if (n > len) n = len; 147 len -= n; 148 if (len) { 151 if (nn > len) nn = len; [all...] |
/external/qemu/telephony/ |
sms.h | 46 unsigned char len; member in struct:__anon33961
|
/external/regex-re2/re2/testing/ |
string_generator.cc | 68 int len = acm_->Uniform(maxlen_+1); local 69 digits_.resize(len); 70 for (int i = 0; i < len; i++)
|
/external/regex-re2/util/ |
strutil.cc | 65 const int len = CEscapeString(src.data(), src.size(), local 67 string s = string(dest, len);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTextUtils.java | 31 int len = s.length(); local 34 while (start < len && s.charAt(start) <= ' ') { 38 int end = len; 58 final int len = str.length(); local 59 for (int i = 0; i < len; i++) {
|
/external/sfntly/cpp/src/test/tinyxml/ |
tinystr.cpp | 49 TiXmlString& TiXmlString::assign(const char* str, size_type len) 52 if (len > cap || cap > 3*(len + 8)) 55 tmp.init(len); 56 memcpy(tmp.start(), str, len); 61 memmove(start(), str, len); local 62 set_size(len); 68 TiXmlString& TiXmlString::append(const char* str, size_type len) 70 size_type newsize = length() + len; 75 memmove(finish(), str, len); local [all...] |
/external/skia/gm/ |
getpostextpath.cpp | 40 int len = SkToInt(strlen(text)); local 49 canvas->drawText(text, len, 0, 0, paint); 50 paint.getTextPath(text, len, 0, 0, &path); 54 SkAutoTArray<SkPoint> pos(len); 55 SkAutoTArray<SkScalar> widths(len); 56 paint.getTextWidths(text, len, &widths[0]); 61 for (int i = 0; i < len; ++i) { 68 canvas->drawPosText(text, len, &pos[0], paint); 69 paint.getPosTextPath(text, len, &pos[0], &path);
|
/external/skia/samplecode/ |
SampleLCD.cpp | 42 size_t len = strlen(text); local 52 canvas->drawText(text, len, x0, y, paint); 54 canvas->drawText(text, len, x1, y, paint);
|
/external/skia/src/core/ |
SkWriter32.cpp | 17 size_t len = this->readU32(); local 21 size_t alignedSize = SkAlign4(len + 1); 25 *outLen = len; 31 size_t len; local 32 const char* ptr = this->readString(&len); 34 copy->set(ptr, len); 36 return len; 39 void SkWriter32::writeString(const char str[], size_t len) { 42 len = 0; 44 if ((long)len < 0) [all...] |
/external/skia/src/gpu/ |
GrBinHashKey.h | 41 size_t len = KEY_SIZE; local 42 while (len >= 4) { 46 len -= 4;
|
/external/skia/src/utils/win/ |
SkDWrite.cpp | 71 int len = WideCharToMultiByte(CP_UTF8, 0, name, -1, NULL, 0, NULL, NULL); local 72 if (0 == len) { 76 skname->resize(len - 1); 82 if (1 == len) { 86 len = WideCharToMultiByte(CP_UTF8, 0, name, -1, skname->writable_str(), len, NULL, NULL); 87 if (0 == len) {
|
/external/skia/tests/ |
MD5Test.cpp | 21 size_t len = strlen(string); local 26 context.update(reinterpret_cast<const uint8_t*>(string), len); local 37 const uint8_t* end = reinterpret_cast<const uint8_t*>(string + len);
|
RecordDrawTest.cpp | 21 const size_t len = strlen(text); local 22 SkAutoTMalloc<SkScalar> xpos(len); 23 for (size_t i = 0; i < len; i++) { 26 canvas->drawPosTextH(text, len, xpos, y, SkPaint());
|
TLSTest.cpp | 18 size_t len = strlen(text); local 26 paint.measureText(text, len); 28 paint.measureText(text, len);
|
/external/smali/util/src/main/java/org/jf/util/ |
StringUtils.java | 87 int len = value.length(); local 88 StringBuilder sb = new StringBuilder(len * 3 / 2); 90 for (int i = 0; i < len; i++) {
|
/external/srec/portable/src/ |
PFileImpl.c | 141 ESR_ReturnCode PFileGetFilenameImpl(PFile* self, LCHAR* filename, size_t* len) 146 if (self == NULL || len == NULL) 152 if (LSTRLEN(impl->filename) + 1 > *len) 154 *len = LSTRLEN(impl->filename) + 1; 168 size_t len; local 192 len = LSTRLEN(buffer); 193 passert(len < BUFFER_SIZE); 195 CHKLOG(rc, self->write(self, buffer, sizeof(LCHAR), &len));
|
/external/srec/portable/src/UNIX/ |
PANSIFileSystemUNIXImpl.c | 31 ESR_ReturnCode PANSIFileSystemGetVirtualPathImpl(PFileSystem* self, LCHAR* path, size_t* len) 79 CHKLOG(rc, lstrinsert(bestKey, path, 0, len)); 84 CHKLOG(rc, lstrinsert(L("X:/"), path, LSTRLEN(bestKey), len)); 94 size_t len; local 99 len = P_PATH_MAX; 100 CHKLOG(rc, PANSIFileSystemGetRealPathImpl(self, realPath, &len)); 120 ESR_ReturnCode PANSIFileSystemGetcwdImpl(PFileSystem* self, LCHAR* path, size_t* len) 130 if (getcwd(path, *len) == NULL) 135 *len = P_PATH_MAX; 144 CHKLOG(rc, PANSIFileSystemGetVirtualPathImpl(self, path, len)); 153 size_t len; local [all...] |
/external/srec/srec/Nametag/src/ |
NametagImpl.c | 35 size_t len; local 44 rc = result->getSize(result, &len); 50 if (len < 1) 58 len = MAX_STRING_LEN; 60 rc = result->getValue(result, 0, L("meaning"), transcription, &len); 69 len = LSTRLEN(transcription)+1; 70 rc = SR_NametagCreateFromValue(id, transcription, (int)len, self); 83 len = LSTRLEN(L("ph_")); 87 if (LSTRNCMP(p, L("ph_"), len) != 0) 93 p += len; [all...] |
/external/srec/srec/include/ |
portable.h | 61 size_t len; local 63 len = P_PATH_MAX; 64 CHKLOG(rc, pf_get_cwd (path, &len));
|
/external/srec/tools/make_g2g/ |
make_g2g.c | 52 size_t len; local 67 /* len = P_PATH_MAX; 68 CHKLOG(rc, PANSIFileSystemGetcwd(cwd, &len)); 71 len = P_PATH_MAX; 72 rc = ESR_CommandLineGetValue(argc, (const char **)argv, L("base"), base, &len); 84 len = P_PATH_MAX; 85 rc = ESR_CommandLineGetValue(argc, (const char **)argv, L("out"), outFilename, &len);
|
/external/srtp/crypto/test/ |
datatypes_driver.c | 192 int len; local 194 len = hex_string_to_octet_string(raw, hex1, strlen(hex1)); 195 printf("computed length: %d\tstring: %s\n", len, 196 octet_string_hex_string(raw, len/2)); 199 len = hex_string_to_octet_string(raw, hex2, strlen(hex2)); 200 printf("computed length: %d\tstring: %s\n", len, 201 octet_string_hex_string(raw, len/2));
|