Home
last modified time | relevance | path

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

/external/skia/src/utils/win/
DSkDWrite.cpp71 HRESULT sk_wchar_to_skstring(WCHAR* name, int nameLen, SkString* skname) { in sk_wchar_to_skstring() argument
72 int len = WideCharToMultiByte(CP_UTF8, 0, name, nameLen, nullptr, 0, nullptr, nullptr); in sk_wchar_to_skstring()
74 if (nameLen <= 0) { in sk_wchar_to_skstring()
83 …len = WideCharToMultiByte(CP_UTF8, 0, name, nameLen, skname->writable_str(), len, nullptr, nullptr… in sk_wchar_to_skstring()
105 UINT32 nameLen; in sk_get_locale_string() local
106 HRVM(names->GetStringLength(nameIndex, &nameLen), "Could not get name length."); in sk_get_locale_string()
108 SkSMallocWCHAR name(nameLen+1); in sk_get_locale_string()
109 HRVM(names->GetString(nameIndex, name.get(), nameLen+1), "Could not get string."); in sk_get_locale_string()
111 HRV(sk_wchar_to_skstring(name.get(), nameLen, skname)); in sk_get_locale_string()
DSkDWrite.h36 HRESULT sk_wchar_to_skstring(WCHAR* name, int nameLen, SkString* skname);
/external/skia/src/ports/
DSkFontMgr_android_parser.cpp165 size_t nameLen = strlen(name); in __anon4e75f4fd0102() local
166 if (MEMEQ("tag", name, nameLen)) { in __anon4e75f4fd0102()
184 } else if (MEMEQ("stylevalue", name, nameLen)) { in __anon4e75f4fd0102()
214 size_t nameLen = strlen(name); in __anon4e75f4fd0202() local
215 if (MEMEQ("weight", name, nameLen)) { in __anon4e75f4fd0202()
219 } else if (MEMEQ("style", name, nameLen)) { in __anon4e75f4fd0202()
226 } else if (MEMEQ("index", name, nameLen)) { in __anon4e75f4fd0202()
260 size_t nameLen = strlen(name); in __anon4e75f4fd0602() local
262 if (MEMEQ("name", name, nameLen)) { in __anon4e75f4fd0602()
266 } else if (MEMEQ("lang", name, nameLen)) { in __anon4e75f4fd0602()
[all …]
DSkFontMgr_FontConfigInterface.cpp71 Request(const char* name, size_t nameLen, const SkFontStyle& style) : fStyle(style) { in Request()
81 size_t contentLen = SkAlign4(nameLen); in Request()
82 sk_careful_memcpy(content, name, nameLen); in Request()
83 sk_bzero(content + nameLen, contentLen - nameLen); in Request()
92 size_t nameLen = name ? strlen(name) : 0; in Create() local
93 size_t contentLen = SkAlign4(nameLen); in Create()
95 return new (storage) Request(name, nameLen, style); in Create()
/external/icu/icu4c/source/tools/ctestfw/
Dctest.c69 static TestNode *createTestNode(const char* name, int32_t nameLen);
76 int* nameLen,
152 int* nameLen, in getNextLevel() argument
161 *nameLen = (int)((*nextName) - name); in getNextLevel()
163 strncpy(n, name, *nameLen); in getNextLevel()
164 n[*nameLen] = 0; in getNextLevel()
168 *nameLen = (int)strlen(name); in getNextLevel()
172 static TestNode *createTestNode(const char* name, int32_t nameLen) in createTestNode() argument
176 newNode = (TestNode*)malloc(sizeof(TestNode) + (nameLen + 1)); in createTestNode()
182 strncpy( newNode->name, name, nameLen ); in createTestNode()
[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/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/icu/icu4c/source/i18n/
Danytrans.cpp335 int32_t nameLen = name.length(); in scriptNameToCode() local
336 UBool isInvariant = uprv_isInvariantUString(name.getBuffer(), nameLen); in scriptNameToCode()
339 name.extract(0, nameLen, buf, (int32_t)sizeof(buf), US_INV); in scriptNameToCode()
/external/mdnsresponder/mDNSWindows/ControlPanel/
DRegistrationPage.cpp185 DWORD nameLen = ( kDNSServiceMaxDomainName + 1 ) * sizeof( TCHAR ); in OnSetActive() local
195 err = RegQueryValueEx( m_hostnameSetupKey, L"", NULL, NULL, (LPBYTE) name, &nameLen ); in OnSetActive()
/external/lzma/CPP/7zip/Archive/7z/
D7zHandler.cpp475 unsigned nameLen = MyStringLen(name); in SetMethodToProp() local
477 unsigned totalLen = nameLen + propsLen; in SetMethodToProp()
488 char *dest = temp + pos + nameLen; in SetMethodToProp()
/external/ImageMagick/coders/
Dmat.c592 unsigned int nameLen; in ReadMATImageV4() member
645 HDR.nameLen=ReadBlobLSBLong(image); in ReadMATImageV4()
653 HDR.nameLen=ReadBlobMSBLong(image); in ReadMATImageV4()
656 if (HDR.nameLen > 0xFFFF) in ReadMATImageV4()
658 for (i=0; i < (ssize_t) HDR.nameLen; i++) in ReadMATImageV4()
/external/kernel-headers/original/uapi/linux/
Dncp.h155 __u8 nameLen; member
/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/lzma/C/Util/SfxSetup/
DSfxSetup.c447 unsigned nameLen = FindExt(temp + nameStartPos, &extLen); in main() local
449 unsigned namePrice = FindItem(kNames, sizeof(kNames) / sizeof(kNames[0]), name, nameLen); in main()
/external/icu/icu4c/source/common/
Dudata.cpp324 int32_t nameLen; in udata_cacheDataItem() local
350 nameLen = (int32_t)uprv_strlen(baseName); in udata_cacheDataItem()
351 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.go573 nameLen := int(d[1])<<8 | int(d[2])
575 if len(d) < nameLen {
579 m.serverName = string(d[0:nameLen])
582 d = d[nameLen:]
/external/python/cpython2/Modules/expat/
Dxmlparse.c2074 int nameLen = sizeof(XML_Char) * (tag->name.strLen + 1); in storeRawNames() local
2075 char *rawNameBuf = tag->buf + nameLen; in storeRawNames()
2086 bufSize = nameLen + ROUND_UP(tag->rawNameLength, sizeof(XML_Char)); in storeRawNames()
2104 rawNameBuf = temp + nameLen; in storeRawNames()
4633 int nameLen; in doProlog() local
4647 nameLen = 0; in doProlog()
4648 for (; name[nameLen++]; ); in doProlog()
4649 dtd->contentStringLen += nameLen; in doProlog()
/external/expat/lib/
Dxmlparse.c2110 int nameLen = sizeof(XML_Char) * (tag->name.strLen + 1); in storeRawNames() local
2111 char *rawNameBuf = tag->buf + nameLen; in storeRawNames()
2122 bufSize = nameLen + ROUND_UP(tag->rawNameLength, sizeof(XML_Char)); in storeRawNames()
2140 rawNameBuf = temp + nameLen; in storeRawNames()
4669 int nameLen; in doProlog() local
4683 nameLen = 0; in doProlog()
4684 for (; name[nameLen++]; ); in doProlog()
4685 dtd->contentStringLen += nameLen; in doProlog()
/external/webrtc/webrtc/modules/audio_device/linux/
Daudio_device_pulse_linux.cc1943 uint16_t nameLen = kAdmMaxDeviceNameSize - 9; in GetDefaultDeviceInfo() local
2007 strncpy(pName, tmpName, nameLen); in GetDefaultDeviceInfo()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DULocaleTest.java1099 …Item(String dLoc, DisplayContext dia, DisplayContext cap, DisplayContext nameLen, DisplayContext s… in TestDisplayNames() argument
1103 nameLength = nameLen; in TestDisplayNames()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DULocaleTest.java1100 …Item(String dLoc, DisplayContext dia, DisplayContext cap, DisplayContext nameLen, DisplayContext s… in TestDisplayNames() argument
1104 nameLength = nameLen; in TestDisplayNames()