Home
last modified time | relevance | path

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

/frameworks/native/libs/gralloc/types/fuzzer/
Dmain.cpp55 uint8_t nameLen = *(input.data() + size); in fillInMetadataType() local
58 if (input.size() < size + nameLen) { in fillInMetadataType()
61 std::string name(reinterpret_cast<const char*>(input.data()) + size, nameLen); in fillInMetadataType()
63 return size + nameLen; in fillInMetadataType()
/frameworks/rs/cpp/
DRenderScript.cpp145 uint32_t nameLen = strlen(name); in init() local
146 if (nameLen > PATH_MAX) { in init()
150 memcpy(mCacheDir, name, nameLen); in init()
152 mCacheDir[nameLen] = 0; in init()
153 mCacheDirLen = nameLen + 1; in init()
DElement.cpp479 size_t nameLen = strlen(name); in add() local
480 mElementNameLengths[mElementsCount] = nameLen + 1; in add()
481 mElementNames[mElementsCount] = (char *)calloc(nameLen + 1, sizeof(char)); in add()
482 memcpy(mElementNames[mElementsCount], name, nameLen); in add()
483 mElementNames[mElementsCount][nameLen] = 0; in add()
/frameworks/native/opengl/libs/EGL/
Degl_display.cpp53 bool findExtension(const char* exts, const char* name, size_t nameLen) { in findExtension() argument
55 if (!nameLen) { in findExtension()
56 nameLen = strlen(name); in findExtension()
58 for (const char* match = strstr(exts, name); match; match = strstr(match + nameLen, name)) { in findExtension()
59 if (match[nameLen] == '\0' || match[nameLen] == ' ') { in findExtension()
538 bool egl_display_t::haveExtension(const char* name, size_t nameLen) const { in haveExtension()
539 if (!nameLen) { in haveExtension()
540 nameLen = strlen(name); in haveExtension()
542 return findExtension(mExtensionString.c_str(), name, nameLen); in haveExtension()
Degl_display.h41 bool findExtension(const char* exts, const char* name, size_t nameLen = 0);
88 bool haveExtension(const char* name, size_t nameLen = 0) const;
/frameworks/native/opengl/tests/lib/include/
DEGLUtils.h293 size_t nameLen = strlen(name); in hasExtension() local
295 for (const char* match = strstr(exts, name); match; match = strstr(match + nameLen, name)) { in hasExtension()
296 if (match[nameLen] == '\0' || match[nameLen] == ' ') { in hasExtension()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp119 int nameBufSize = round_up(file.nameLen); in read_snapshot_file()
125 snapshot->add(String8(filename, file.nameLen), file); in read_snapshot_file()
177 int nameLen = r.s.nameLen = name.length(); in write_snapshot_file() local
186 amt = write(fd, name.c_str(), nameLen); in write_snapshot_file()
187 if (amt != nameLen) { in write_snapshot_file()
191 int paddingLen = ROUND_UP[nameLen % 4]; in write_snapshot_file()
995 states[0].nameLen = -12; in backup_helper_test_four()
1005 states[1].nameLen = -1; in backup_helper_test_four()
1015 states[2].nameLen = 0; in backup_helper_test_four()
1025 states[3].nameLen = 0; in backup_helper_test_four()
[all …]
DAssetManager.cpp1101 int nameLen; in scanAndMergeDirLocked() local
1104 nameLen = strlen(name); in scanAndMergeDirLocked()
1105 if (nameLen > exclExtLen && in scanAndMergeDirLocked()
1106 strcmp(name + (nameLen - exclExtLen), kExcludeExtension) == 0) in scanAndMergeDirLocked()
1108 String8 match(name, nameLen - exclExtLen); in scanAndMergeDirLocked()
DResourceTypes.cpp4553 outName->name8 = UnpackOptionalString(entry.keyStr.string8(), &outName->nameLen); in getResourceName()
4566 outName->name = UnpackOptionalString(entry.keyStr.string16(), &outName->nameLen); in getResourceName()
5092 uint32_t ResTable::identifierForName(const char16_t* name, size_t nameLen, in identifierForName() argument
5110 if (len != nameLen) { in identifierForName()
5125 if (nameLen > 7) { in identifierForName()
5129 int index = atoi(String8(name + 7, nameLen - 7).c_str()); in identifierForName()
5154 const char16_t* const nameEnd = name+nameLen; in identifierForName()
5191 nameLen = nameEnd-name; in identifierForName()
5196 String8(name, nameLen).c_str(), in identifierForName()
5227 const uint32_t identifier = findEntry(group, *ti, name, nameLen, in identifierForName()
[all …]
/frameworks/base/libs/androidfw/tests/
DSplit_test.cpp150 EXPECT_EQ(String16(baseName.name, baseName.nameLen), in TEST_F()
151 String16(frName.name, frName.nameLen)); in TEST_F()
249 EXPECT_EQ(String16("test3"), String16(name.name, name.nameLen)); in TEST_F()
/frameworks/base/libs/androidfw/include/androidfw/
DBackupHelpers.h51 int nameLen; member
DResourceTypes.h1989 size_t nameLen; member
2159 uint32_t identifierForName(const char16_t* name, size_t nameLen,
2198 const char16_t* name, size_t nameLen,
2201 const char16_t* name, size_t nameLen,
2326 size_t nameLen, uint32_t* outTypeSpecFlags) const;
/frameworks/av/services/audioflinger/afutils/
DNBAIO_Tee.cpp142 const size_t nameLen = strlen(name); in isManagedFilename() local
145 if (nameLen < prefixLen + FILENAME_LEN_DATE + 4 /* .wav */ in isManagedFilename()
147 || strcmp(name + nameLen - 4, ".wav") != 0) { in isManagedFilename()
/frameworks/base/core/jni/
Dandroid_util_XmlBlock.cpp253 jsize nameLen = env->GetStringLength(name); in android_content_XmlBlock_nativeGetAttributeIndex() local
255 jint idx = static_cast<jint>(st->indexOfAttribute(ns16, nsLen, name16, nameLen)); in android_content_XmlBlock_nativeGetAttributeIndex()
/frameworks/wilhelm/tests/sandbox/
Dreverb.c150 unsigned nameLen = strlen(name); in printEnvNames() local
151 if (lineLen + (needSpace ? 1 : 0) + nameLen > 72) { in printEnvNames()
162 lineLen += nameLen; in printEnvNames()
/frameworks/base/media/java/android/media/
DTimedText.java612 int nameLen = parcel.readInt(); in readFont() local
615 final String name = new String(text, 0, nameLen); in readFont()
/frameworks/base/tools/aapt/
DImages.cpp1334 const size_t nameLen = file->getPath().length(); in read_png_protected() local
1335 if (nameLen > 6) { in read_png_protected()
1337 if (name[nameLen-5] == '9' && name[nameLen-6] == '.') { in read_png_protected()
DResourceTable.h284 const char16_t* name, size_t nameLen,
287 const char16_t* name, size_t nameLen,
DResourceTable.cpp154 size_t nameLen; member
239 if (strzcmp16(cur->name, cur->nameLen, str, div-str) == 0) { in parse_flags()
2508 uint32_t attrID, const char16_t* name, size_t nameLen, in getAttributeEnum() argument
2512 String16 nameStr(name, nameLen); in getAttributeEnum()
2528 uint32_t attrID, const char16_t* name, size_t nameLen, in getAttributeFlags() argument
2535 String16 nameStr(name, nameLen); in getAttributeFlags()
2540 const char16_t* end = name + nameLen; in getAttributeFlags()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java765 int nameLen = Integer.min(obj.getName().length(), 255); in getObjectInfo() local
766 obj.getName().getChars(0, nameLen, outName, 0); in getObjectInfo()
767 outName[nameLen] = 0; in getObjectInfo()
/frameworks/base/tools/aapt2/
DResourceUtils.cpp78 name_out.entry = android::util::Utf16ToUtf8(StringPiece16(name_in.name, name_in.nameLen)); in ToResourceName()
80 name_out.entry.assign(name_in.name8, name_in.nameLen); in ToResourceName()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp132 << StringPiece16(actual_name.name, actual_name.nameLen) << "'"; in Exists()