/frameworks/native/opengl/libs/EGL/ |
D | egl_display.cpp | 61 bool findExtension(const char* exts, const char* name, size_t nameLen) { in findExtension() argument 63 if (!nameLen) { in findExtension() 64 nameLen = strlen(name); in findExtension() 66 for (const char* match = strstr(exts, name); match; match = strstr(match + nameLen, name)) { in findExtension() 67 if (match[nameLen] == '\0' || match[nameLen] == ' ') { in findExtension() 533 bool egl_display_t::haveExtension(const char* name, size_t nameLen) const { in haveExtension() 534 if (!nameLen) { in haveExtension() 535 nameLen = strlen(name); in haveExtension() 537 return findExtension(mExtensionString.c_str(), name, nameLen); in haveExtension()
|
D | egl_display.h | 45 bool findExtension(const char* exts, const char* name, size_t nameLen = 0); 93 bool haveExtension(const char* name, size_t nameLen = 0) const;
|
/frameworks/native/libs/gralloc/types/fuzzer/ |
D | main.cpp | 55 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/ |
D | RenderScript.cpp | 145 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()
|
D | Element.cpp | 479 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/ |
D | StorageManager.cpp | 451 size_t nameLen = strlen(name); in deleteSuffixedFiles() local 453 if (suffixLen <= nameLen && strncmp(name + nameLen - suffixLen, suffix, suffixLen) == 0) { in deleteSuffixedFiles() 494 size_t nameLen = strlen(name); in hasConfigMetricsReport() local 496 if (suffixLen <= nameLen && in hasConfigMetricsReport() 497 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in hasConfigMetricsReport() 624 size_t nameLen = strlen(name); in readConfigFromDisk() local 627 if (suffixLen <= nameLen && in readConfigFromDisk() 628 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in readConfigFromDisk()
|
/frameworks/native/opengl/tests/lib/include/ |
D | EGLUtils.h | 293 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/ |
D | BackupHelpers.cpp | 115 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 …]
|
D | AssetManager.cpp | 1101 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()
|
D | ResourceTypes.cpp | 4309 outName->name8 = entry.keyStr.string8(&outName->nameLen); in getResourceName() 4322 outName->name = entry.keyStr.string16(&outName->nameLen); in getResourceName() 4853 uint32_t ResTable::identifierForName(const char16_t* name, size_t nameLen, in identifierForName() argument 4871 if (len != nameLen) { in identifierForName() 4886 if (nameLen > 7) { in identifierForName() 4890 int index = atoi(String8(name + 7, nameLen - 7).string()); in identifierForName() 4915 const char16_t* const nameEnd = name+nameLen; in identifierForName() 4952 nameLen = nameEnd-name; in identifierForName() 4957 String8(name, nameLen).string(), in identifierForName() 4990 const uint32_t identifier = findEntry(group, ti, name, nameLen, in identifierForName() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | Split_test.cpp | 150 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/av/services/audioflinger/ |
D | NBAIO_Tee.cpp | 141 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/ |
D | BackupHelpers.h | 51 int nameLen; member
|
D | ResourceTypes.h | 1868 size_t nameLen; member 2038 uint32_t identifierForName(const char16_t* name, size_t nameLen, 2076 const char16_t* name, size_t nameLen, 2079 const char16_t* name, size_t nameLen, 2204 size_t nameLen, uint32_t* outTypeSpecFlags) const;
|
/frameworks/base/core/jni/ |
D | android_util_XmlBlock.cpp | 277 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/ |
D | reverb.c | 150 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/ |
D | TimedText.java | 611 int nameLen = parcel.readInt(); in readFont() local 614 final String name = new String(text, 0, nameLen); in readFont()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpDatabase.java | 731 int nameLen = Integer.min(obj.getName().length(), 255); in getObjectInfo() local 732 obj.getName().getChars(0, nameLen, outName, 0); in getObjectInfo() 733 outName[nameLen] = 0; in getObjectInfo()
|
/frameworks/base/tools/aapt/ |
D | Images.cpp | 1333 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()
|
D | ResourceTable.h | 284 const char16_t* name, size_t nameLen, 287 const char16_t* name, size_t nameLen,
|
D | ResourceTable.cpp | 152 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/tools/aapt2/ |
D | ResourceUtils.cpp | 72 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/ |
D | TableFlattener_test.cpp | 132 << StringPiece16(actual_name.name, actual_name.nameLen) << "'"; in Exists()
|