/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/native/opengl/libs/EGL/ |
D | egl_display.cpp | 53 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()
|
D | egl_display.h | 41 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/ |
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 | 119 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 …]
|
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 | 4553 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/ |
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/base/libs/androidfw/include/androidfw/ |
D | BackupHelpers.h | 51 int nameLen; member
|
D | ResourceTypes.h | 1989 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/ |
D | NBAIO_Tee.cpp | 142 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/ |
D | android_util_XmlBlock.cpp | 253 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/ |
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 | 612 int nameLen = parcel.readInt(); in readFont() local 615 final String name = new String(text, 0, nameLen); in readFont()
|
/frameworks/base/tools/aapt/ |
D | Images.cpp | 1334 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()
|
D | ResourceTable.h | 284 const char16_t* name, size_t nameLen, 287 const char16_t* name, size_t nameLen,
|
D | ResourceTable.cpp | 154 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/ |
D | MtpDatabase.java | 765 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/ |
D | ResourceUtils.cpp | 78 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/ |
D | TableFlattener_test.cpp | 132 << StringPiece16(actual_name.name, actual_name.nameLen) << "'"; in Exists()
|