Home
last modified time | relevance | path

Searched refs:nameLen (Results 1 – 23 of 23) sorted by relevance

/external/skia/src/utils/win/
DSkDWrite.cpp69 HRESULT sk_wchar_to_skstring(WCHAR* name, int nameLen, SkString* skname) { in sk_wchar_to_skstring() argument
70 int len = WideCharToMultiByte(CP_UTF8, 0, name, nameLen, NULL, 0, NULL, NULL); in sk_wchar_to_skstring()
72 if (nameLen <= 0) { in sk_wchar_to_skstring()
81 len = WideCharToMultiByte(CP_UTF8, 0, name, nameLen, skname->writable_str(), len, NULL, NULL); in sk_wchar_to_skstring()
103 UINT32 nameLen; in sk_get_locale_string() local
104 HRVM(names->GetStringLength(nameIndex, &nameLen), "Could not get name length."); in sk_get_locale_string()
106 SkSMallocWCHAR name(nameLen+1); in sk_get_locale_string()
107 HRVM(names->GetString(nameIndex, name.get(), nameLen+1), "Could not get string."); in sk_get_locale_string()
109 HRV(sk_wchar_to_skstring(name.get(), nameLen, skname)); in sk_get_locale_string()
DSkDWrite.h44 HRESULT sk_wchar_to_skstring(WCHAR* name, int nameLen, SkString* skname);
/external/icu/icu4c/source/tools/ctestfw/
Dctest.c67 static TestNode *createTestNode(const char* name, int32_t nameLen);
74 int* nameLen,
150 int* nameLen, in getNextLevel() argument
159 *nameLen = (int)((*nextName) - name); in getNextLevel()
161 strncpy(n, name, *nameLen); in getNextLevel()
162 n[*nameLen] = 0; in getNextLevel()
166 *nameLen = (int)strlen(name); in getNextLevel()
170 static TestNode *createTestNode(const char* name, int32_t nameLen) in createTestNode() argument
174 newNode = (TestNode*)malloc(sizeof(TestNode) + (nameLen + 1)); in createTestNode()
180 strncpy( newNode->name, name, nameLen ); in createTestNode()
[all …]
/external/skia/src/ports/
DSkFontConfigParser_android.cpp188 size_t nameLen = strlen(name); in __anon50d49d8f0102() local
189 if (MEMEQ("weight", name, nameLen)) { in __anon50d49d8f0102()
193 } else if (MEMEQ("style", name, nameLen)) { in __anon50d49d8f0102()
200 } else if (MEMEQ("index", name, nameLen)) { in __anon50d49d8f0102()
228 size_t nameLen = strlen(name); in __anon50d49d8f0402() local
230 if (MEMEQ("name", name, nameLen)) { in __anon50d49d8f0402()
234 } else if (MEMEQ("lang", name, nameLen)) { in __anon50d49d8f0402()
236 } else if (MEMEQ("variant", name, nameLen)) { in __anon50d49d8f0402()
285 size_t nameLen = strlen(name); in __anon50d49d8f0702() local
286 if (MEMEQ("name", name, nameLen)) { in __anon50d49d8f0702()
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
DS_I_N_G_.py74 nameLen = len(name)
75 if length <= nameLen:
78 name += (nameLen - length) * "\000"
DG_M_A_P_.py66 nameLen = len(self.name)
67 if nameLen < 32:
68 self.name = self.name + "\0"*(32 - nameLen)
/external/mesa3d/src/mesa/program/
Dprog_parameter.c430 GLsizei nameLen, const char *name) in _mesa_lookup_parameter_value() argument
432 GLint i = _mesa_lookup_parameter_index(paramList, nameLen, name); in _mesa_lookup_parameter_value()
450 GLsizei nameLen, const char *name) in _mesa_lookup_parameter_index() argument
457 if (nameLen == -1) { in _mesa_lookup_parameter_index()
469 strncmp(paramList->Parameters[i].Name, name, nameLen) == 0 in _mesa_lookup_parameter_index()
470 && strlen(paramList->Parameters[i].Name) == (size_t)nameLen) in _mesa_lookup_parameter_index()
Dprog_parameter.h170 GLsizei nameLen, const char *name);
174 GLsizei nameLen, const char *name);
/external/deqp/executor/
DxeTestCase.cpp108 int nameLen = 0; in getFullPath() local
113 nameLen += (int)curNode->m_name.length(); in getFullPath()
118 nameLen += 1; in getFullPath()
125 dst.resize(nameLen); in getFullPath()
128 int pos = nameLen; in getFullPath()
/external/skia/src/svg/parser/
DSkSVGParser.cpp157 size_t nameLen = strlen(name); in onAddAttributeLen() local
158 int attrIndex = findAttribute(fCurrElement, name, nameLen, false); in onAddAttributeLen()
160 attrIndex = findAttribute(&fCurrElement->fPaintState, name, nameLen, true); in onAddAttributeLen()
165 if (nameLen == 2 && strncmp("id", name, nameLen) == 0) { in onAddAttributeLen()
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/asset/plugins/
DHttpZipLocator.java201 int nameLen = get16(table, offset + CENNAM);
204 int newOffset = offset + CENHDR + nameLen + extraLen + commentLen;
218 String name = getUTF8String(table, offset + CENHDR, nameLen);
235 entry.offset += LOCHDR + nameLen + extraLen;
/external/icu/icu4c/source/i18n/
Danytrans.cpp333 int32_t nameLen = name.length(); in scriptNameToCode() local
334 UBool isInvariant = uprv_isInvariantUString(name.getBuffer(), nameLen); in scriptNameToCode()
337 name.extract(0, nameLen, buf, (int32_t)sizeof(buf), US_INV); in scriptNameToCode()
/external/kernel-headers/original/uapi/linux/
Dncp.h155 __u8 nameLen; member
/external/lzma/C/Util/SfxSetup/
DSfxSetup.c435 unsigned nameLen = FindExt(temp + nameStartPos, &extLen); in main() local
437 unsigned namePrice = FindItem(kNames, sizeof(kNames) / sizeof(kNames[0]), name, nameLen); in main()
/external/deqp/modules/gles31/functional/
Des31fSSBOLayoutCase.cpp1388 const int nameLen = returnValues[2]; in getGLBufferLayout() local
1390 vector<char> name (nameLen); in getGLBufferLayout()
1395 if (retLen+1 != nameLen) in getGLBufferLayout()
1397 if (name[nameLen-1] != 0) in getGLBufferLayout()
1398 …ORAGE_BLOCK) returned invalid name. Expected null terminator at index " + de::toString(nameLen-1)); in getGLBufferLayout()
1451 const int nameLen = returnValues[9]; in getGLBufferLayout() local
1453 vector<char> name (nameLen); in getGLBufferLayout()
1458 if (retLen+1 != nameLen) in getGLBufferLayout()
1460 if (name[nameLen-1] != 0) in getGLBufferLayout()
1461 …ER_VARIABLE) returned invalid name. Expected null terminator at index " + de::toString(nameLen-1)); in getGLBufferLayout()
/external/icu/icu4c/source/common/
Dudata.cpp317 int32_t nameLen; in udata_cacheDataItem() local
342 nameLen = (int32_t)uprv_strlen(baseName); in udata_cacheDataItem()
343 newElement->name = (char *)uprv_malloc(nameLen+1); in udata_cacheDataItem()
/external/deqp/modules/glshared/
DglsUniformBlockCase.cpp1183 int nameLen; in getGLUniformLayout() local
1187 gl.getActiveUniformBlockiv(program, (deUint32)blockNdx, GL_UNIFORM_BLOCK_NAME_LENGTH, &nameLen); in getGLUniformLayout()
1193 std::vector<char> nameBuf(nameLen > 0 ? nameLen : 1); in getGLUniformLayout()
1240 glw::GLsizei nameLen = 0; in getGLUniformLayout() local
1244 …gl.getActiveUniform(program, (deUint32)uniformNdx, (glw::GLsizei)nameBuf.size(), &nameLen, &size, … in getGLUniformLayout()
1249 if (nameLen+1 != nameLengths[uniformNdx] || in getGLUniformLayout()
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c618 int nameLen = (sdl->sdl_nlen < IFI_NAME - 1) ? sdl->sdl_nlen : (IFI_NAME - 1); in recvfrom_flags() local
619 strncpy(pktp->ipi_ifname, sdl->sdl_data, nameLen); in recvfrom_flags()
/external/boringssl/src/ssl/test/runner/
Dhandshake_messages.go484 nameLen := int(d[1])<<8 | int(d[2])
486 if len(d) < nameLen {
490 m.serverName = string(d[0:nameLen])
493 d = d[nameLen:]
/external/expat/lib/
Dxmlparse.c2060 int nameLen = sizeof(XML_Char) * (tag->name.strLen + 1); in storeRawNames() local
2061 char *rawNameBuf = tag->buf + nameLen; in storeRawNames()
2072 bufSize = nameLen + ROUND_UP(tag->rawNameLength, sizeof(XML_Char)); in storeRawNames()
2090 rawNameBuf = temp + nameLen; in storeRawNames()
4617 int nameLen; in doProlog() local
4631 nameLen = 0; in doProlog()
4632 for (; name[nameLen++]; ); in doProlog()
4633 dtd->contentStringLen += nameLen; in doProlog()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DULocaleTest.java1041 …Item(String dLoc, DisplayContext dia, DisplayContext cap, DisplayContext nameLen, String locToName… in TestDisplayNames() argument
1045 nameLength = nameLen; in TestDisplayNames()
/external/robolectric/lib/main/
Dxpp3-1.1.4c.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/services/ META- ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.jdt.apt.core_3.3.401.R36_v20100727-0110.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...