/frameworks/native/opengl/libs/EGL/ |
D | egl_display.cpp | 60 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()
|
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/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 | 350 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/ |
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 | 4306 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/ |
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()
|
D | Idmap_test.cpp | 105 EXPECT_EQ(String8("integerArray1"), String8(res_name.name8, res_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 | 1778 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/ |
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/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/cmds/idmap/ |
D | inspect.cpp | 163 *name = String8(String16(data.name, data.nameLen)); in resource_metadata()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpDatabase.java | 769 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/ |
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 | 130 << StringPiece16(actual_name.name, actual_name.nameLen) << "'"; in Exists()
|