Home
last modified time | relevance | path

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

/frameworks/native/opengl/libs/EGL/
Degl_display.cpp60 bool findExtension(const char* exts, const char* name, size_t nameLen) { in findExtension() argument
62 if (!nameLen) { in findExtension()
63 nameLen = strlen(name); in findExtension()
65 for (const char* match = strstr(exts, name); match; match = strstr(match + nameLen, name)) { in findExtension()
66 if (match[nameLen] == '\0' || match[nameLen] == ' ') { in findExtension()
581 bool egl_display_t::haveExtension(const char* name, size_t nameLen) const { in haveExtension()
582 if (!nameLen) { in haveExtension()
583 nameLen = strlen(name); in haveExtension()
585 return findExtension(mExtensionString.c_str(), name, nameLen); in haveExtension()
Degl_display.h45 bool findExtension(const char* exts, const char* name, size_t nameLen = 0);
93 bool haveExtension(const char* name, size_t nameLen = 0) const;
/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/base/cmds/statsd/src/storage/
DStorageManager.cpp350 size_t nameLen = strlen(name); in deleteSuffixedFiles() local
352 if (suffixLen <= nameLen && strncmp(name + nameLen - suffixLen, suffix, suffixLen) == 0) { in deleteSuffixedFiles()
393 size_t nameLen = strlen(name); in hasConfigMetricsReport() local
395 if (suffixLen <= nameLen && in hasConfigMetricsReport()
396 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in hasConfigMetricsReport()
523 size_t nameLen = strlen(name); in readConfigFromDisk() local
526 if (suffixLen <= nameLen && in readConfigFromDisk()
527 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in readConfigFromDisk()
/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.cpp115 int nameBufSize = round_up(file.nameLen); in read_snapshot_file()
121 snapshot->add(String8(filename, file.nameLen), file); in read_snapshot_file()
173 int nameLen = r.s.nameLen = name.length(); in write_snapshot_file() local
182 amt = write(fd, name.string(), nameLen); in write_snapshot_file()
183 if (amt != nameLen) { in write_snapshot_file()
187 int paddingLen = ROUND_UP[nameLen % 4]; in write_snapshot_file()
990 states[0].nameLen = -12; in backup_helper_test_four()
1000 states[1].nameLen = -1; in backup_helper_test_four()
1010 states[2].nameLen = 0; in backup_helper_test_four()
1020 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.cpp4306 outName->name8 = entry.keyStr.string8(&outName->nameLen); in getResourceName()
4319 outName->name = entry.keyStr.string16(&outName->nameLen); in getResourceName()
4850 uint32_t ResTable::identifierForName(const char16_t* name, size_t nameLen, in identifierForName() argument
4868 if (len != nameLen) { in identifierForName()
4883 if (nameLen > 7) { in identifierForName()
4887 int index = atoi(String8(name + 7, nameLen - 7).string()); in identifierForName()
4912 const char16_t* const nameEnd = name+nameLen; in identifierForName()
4949 nameLen = nameEnd-name; in identifierForName()
4954 String8(name, nameLen).string(), in identifierForName()
4987 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()
DIdmap_test.cpp105 EXPECT_EQ(String8("integerArray1"), String8(res_name.name8, res_name.nameLen)); in TEST_F()
/frameworks/av/services/audioflinger/
DNBAIO_Tee.cpp141 const size_t nameLen = strlen(name); in isManagedFilename() local
144 if (nameLen < prefixLen + FILENAME_LEN_DATE + 4 /* .wav */ in isManagedFilename()
146 || strcmp(name + nameLen - 4, ".wav") != 0) { in isManagedFilename()
/frameworks/base/libs/androidfw/include/androidfw/
DBackupHelpers.h51 int nameLen; member
DResourceTypes.h1778 size_t nameLen; member
1948 uint32_t identifierForName(const char16_t* name, size_t nameLen,
1986 const char16_t* name, size_t nameLen,
1989 const char16_t* name, size_t nameLen,
2114 size_t nameLen, uint32_t* outTypeSpecFlags) const;
/frameworks/base/core/jni/
Dandroid_util_XmlBlock.cpp277 jsize nameLen = env->GetStringLength(name); in android_content_XmlBlock_nativeGetAttributeIndex() local
279 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.java611 int nameLen = parcel.readInt(); in readFont() local
614 final String name = new String(text, 0, nameLen); in readFont()
/frameworks/base/tools/aapt/
DImages.cpp1333 const size_t nameLen = file->getPath().length(); in read_png_protected() local
1334 if (nameLen > 6) { in read_png_protected()
1336 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.cpp152 size_t nameLen; member
237 if (strzcmp16(cur->name, cur->nameLen, str, div-str) == 0) { in parse_flags()
2507 uint32_t attrID, const char16_t* name, size_t nameLen, in getAttributeEnum() argument
2511 String16 nameStr(name, nameLen); in getAttributeEnum()
2527 uint32_t attrID, const char16_t* name, size_t nameLen, in getAttributeFlags() argument
2534 String16 nameStr(name, nameLen); in getAttributeFlags()
2539 const char16_t* end = name + nameLen; in getAttributeFlags()
/frameworks/base/cmds/idmap/
Dinspect.cpp163 *name = String8(String16(data.name, data.nameLen)); in resource_metadata()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java769 int nameLen = Integer.min(obj.getName().length(), 255); in getObjectInfo() local
770 obj.getName().getChars(0, nameLen, outName, 0); in getObjectInfo()
771 outName[nameLen] = 0; in getObjectInfo()
/frameworks/base/tools/aapt2/
DResourceUtils.cpp72 util::Utf16ToUtf8(StringPiece16(name_in.name, name_in.nameLen)); in ToResourceName()
74 name_out.entry.assign(name_in.name8, name_in.nameLen); in ToResourceName()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp130 << StringPiece16(actual_name.name, actual_name.nameLen) << "'"; in Exists()