Home
last modified time | relevance | path

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

12

/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 HRM(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 HRM(names->GetString(nameIndex, name.get(), nameLen + 1), "Could not get string."); in sk_get_locale_string()
111 HR(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/skqp/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 HRM(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 HRM(names->GetString(nameIndex, name.get(), nameLen + 1), "Could not get string."); in sk_get_locale_string()
111 HR(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/skqp/src/ports/
DSkFontMgr_android_parser.cpp163 size_t nameLen = strlen(name); in __anonff2e0a7e0102() local
164 if (MEMEQ("tag", name, nameLen)) { in __anonff2e0a7e0102()
182 } else if (MEMEQ("stylevalue", name, nameLen)) { in __anonff2e0a7e0102()
213 size_t nameLen = strlen(name); in __anonff2e0a7e0202() local
214 if (MEMEQ("weight", name, nameLen)) { in __anonff2e0a7e0202()
218 } else if (MEMEQ("style", name, nameLen)) { in __anonff2e0a7e0202()
225 } else if (MEMEQ("index", name, nameLen)) { in __anonff2e0a7e0202()
229 } else if (MEMEQ("fallbackFor", name, nameLen)) { in __anonff2e0a7e0202()
278 size_t nameLen = strlen(name); in __anonff2e0a7e0602() local
280 if (MEMEQ("name", name, nameLen)) { in __anonff2e0a7e0602()
[all …]
DSkFontMgr_FontConfigInterface.cpp72 Request(const char* name, size_t nameLen, const SkFontStyle& style) : fStyle(style) { in Request()
82 size_t contentLen = SkAlign4(nameLen); in Request()
83 sk_careful_memcpy(content, name, nameLen); in Request()
84 sk_bzero(content + nameLen, contentLen - nameLen); in Request()
93 size_t nameLen = name ? strlen(name) : 0; in Create() local
94 size_t contentLen = SkAlign4(nameLen); in Create()
96 return new (storage) Request(name, nameLen, style); in Create()
/external/skia/src/ports/
DSkFontMgr_android_parser.cpp163 size_t nameLen = strlen(name); in __anon5cafed470102() local
164 if (MEMEQ("tag", name, nameLen)) { in __anon5cafed470102()
182 } else if (MEMEQ("stylevalue", name, nameLen)) { in __anon5cafed470102()
213 size_t nameLen = strlen(name); in __anon5cafed470202() local
214 if (MEMEQ("weight", name, nameLen)) { in __anon5cafed470202()
218 } else if (MEMEQ("style", name, nameLen)) { in __anon5cafed470202()
225 } else if (MEMEQ("index", name, nameLen)) { in __anon5cafed470202()
229 } else if (MEMEQ("fallbackFor", name, nameLen)) { in __anon5cafed470202()
278 size_t nameLen = strlen(name); in __anon5cafed470602() local
280 if (MEMEQ("name", name, nameLen)) { in __anon5cafed470602()
[all …]
DSkFontMgr_FontConfigInterface.cpp72 Request(const char* name, size_t nameLen, const SkFontStyle& style) : fStyle(style) { in Request()
82 size_t contentLen = SkAlign4(nameLen); in Request()
83 sk_careful_memcpy(content, name, nameLen); in Request()
84 sk_bzero(content + nameLen, contentLen - nameLen); in Request()
93 size_t nameLen = name ? strlen(name) : 0; in Create() local
94 size_t contentLen = SkAlign4(nameLen); in Create()
96 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/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/ar/
DArArchiveInputStream.java173 final int nameLen = temp.length(); in getNextArEntry() local
174 len -= nameLen; in getNextArEntry()
175 entryOffset += nameLen; in getNextArEntry()
338 final int nameLen = in getBSDLongName() local
340 final byte[] name = new byte[nameLen]; in getBSDLongName()
343 if (read != nameLen) { in getBSDLongName()
/external/fonttools/Lib/fontTools/ttLib/tables/
DS_I_N_G_.py72 nameLen = len(name)
73 if length <= nameLen:
76 name += (nameLen - length) * "\000"
DG_M_A_P_.py63 nameLen = len(self.name)
64 if nameLen < 32:
65 self.name = self.name + "\0"*(32 - nameLen)
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipArchiveOutputStream.java687 final int nameLen = name.limit() - name.position(); in rewriteSizesAndCrc() local
690 + nameLen + 2 * SHORT); in rewriteSizesAndCrc()
1074 final int nameLen = name.limit() - name.position(); in createLocalFileHeader() local
1075 final int len = LFH_FILENAME_OFFSET + nameLen + extra.length; in createLocalFileHeader()
1122 putShort(nameLen, buf, LFH_FILENAME_LENGTH_OFFSET); in createLocalFileHeader()
1128 System.arraycopy( name.array(), name.arrayOffset(), buf, LFH_FILENAME_OFFSET, nameLen); in createLocalFileHeader() local
1131 System.arraycopy(extra, 0, buf, LFH_FILENAME_OFFSET + nameLen, extra.length); in createLocalFileHeader()
1247 final int nameLen = name.limit() - name.position(); in createCentralFileHeader() local
1249 final int len= CFH_FILENAME_OFFSET + nameLen + extra.length + commentLen; in createCentralFileHeader()
1286 putShort(nameLen, buf, CFH_FILENAME_LENGTH_OFFSET); in createCentralFileHeader()
[all …]
/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.cpp339 int32_t nameLen = name.length(); in scriptNameToCode() local
340 UBool isInvariant = uprv_isInvariantUString(name.getBuffer(), nameLen); in scriptNameToCode()
343 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/oj-libjdwp/src/solaris/back/
Dlinker_md.c86 dbgsysBuildFunName(char *name, int nameLen, int args_size, int encodingIndex) in dbgsysBuildFunName() argument
/external/lzma/CPP/7zip/Archive/7z/
D7zHandler.cpp481 unsigned nameLen = MyStringLen(name); in SetMethodToProp() local
483 unsigned totalLen = nameLen + propsLen; in SetMethodToProp()
494 char *dest = temp + pos + nameLen; in SetMethodToProp()
/external/lzma/C/Util/SfxSetup/
DSfxSetup.c458 unsigned nameLen = FindExt(temp + nameStartPos, &extLen); in main() local
460 unsigned namePrice = FindItem(kNames, sizeof(kNames) / sizeof(kNames[0]), name, nameLen); in main()
/external/ImageMagick/coders/
Dmat.c597 unsigned int nameLen; in ReadMATImageV4() member
659 HDR.nameLen=ReadBlobLSBLong(image); in ReadMATImageV4()
667 HDR.nameLen=ReadBlobMSBLong(image); in ReadMATImageV4()
672 if (HDR.nameLen > 0xFFFF) in ReadMATImageV4()
674 for (i=0; i < (ssize_t) HDR.nameLen; i++) in ReadMATImageV4()
/external/deqp/external/openglcts/modules/common/
DglcUniformBlockCase.cpp1123 int nameLen; in getGLUniformLayout() local
1127 gl.getActiveUniformBlockiv(program, (deUint32)blockNdx, GL_UNIFORM_BLOCK_NAME_LENGTH, &nameLen); in getGLUniformLayout()
1133 std::vector<char> nameBuf(nameLen > 0 ? nameLen : 1); in getGLUniformLayout()
1189 glw::GLsizei nameLen = 0; in getGLUniformLayout() local
1193 …gl.getActiveUniform(program, (deUint32)uniformNdx, (glw::GLsizei)nameBuf.size(), &nameLen, &size, … in getGLUniformLayout()
1199 if (nameLen + 1 != nameLengths[uniformNdx] || size != sizes[uniformNdx] || in getGLUniformLayout()
/external/deqp/modules/gles31/functional/
Des31fSSBOLayoutCase.cpp1402 const int nameLen = returnValues[2]; in getGLBufferLayout() local
1404 vector<char> name (nameLen); in getGLBufferLayout()
1409 if (retLen+1 != nameLen) in getGLBufferLayout()
1411 if (name[nameLen-1] != 0) in getGLBufferLayout()
1412 …ORAGE_BLOCK) returned invalid name. Expected null terminator at index " + de::toString(nameLen-1)); in getGLBufferLayout()
1465 const int nameLen = returnValues[9]; in getGLBufferLayout() local
1467 vector<char> name (nameLen); in getGLBufferLayout()
1472 if (retLen+1 != nameLen) in getGLBufferLayout()
1474 if (name[nameLen-1] != 0) in getGLBufferLayout()
1475 …ER_VARIABLE) returned invalid name. Expected null terminator at index " + de::toString(nameLen-1)); in getGLBufferLayout()
/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/icu/icu4c/source/common/
Dudata.cpp332 int32_t nameLen; in udata_cacheDataItem() local
358 nameLen = (int32_t)uprv_strlen(baseName); in udata_cacheDataItem()
359 newElement->name = (char *)uprv_malloc(nameLen+1); in udata_cacheDataItem()
/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()

12