/frameworks/base/libs/androidfw/ |
D | ZipFileRO.cpp | 384 unsigned int nameLen = get2LE(ptr + kCDENameLen); in parseZipArchive() local 391 if (memchr(name, 0, nameLen) != NULL) { in parseZipArchive() 397 unsigned int hash = computeHash(name, nameLen); in parseZipArchive() 398 addToHash(name, nameLen, hash); in parseZipArchive() 401 ptr += kCDELen + nameLen + extraLen + commentLen; in parseZipArchive() 442 mHashTable[ent].nameLen = strLen; in addToHash() 460 int nameLen = strlen(fileName); in findEntryByName() local 461 unsigned int hash = computeHash(fileName, nameLen); in findEntryByName() 465 if (mHashTable[ent].nameLen == nameLen && in findEntryByName() 466 memcmp(mHashTable[ent].name, fileName, nameLen) == 0) in findEntryByName() [all …]
|
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.string(), nameLen); in write_snapshot_file() 187 if (amt != nameLen) { in write_snapshot_file() 191 int paddingLen = ROUND_UP[nameLen % 4]; in write_snapshot_file() 984 states[0].nameLen = -12; in backup_helper_test_four() 994 states[1].nameLen = -1; in backup_helper_test_four() 1004 states[2].nameLen = 0; in backup_helper_test_four() 1014 states[3].nameLen = 0; in backup_helper_test_four() [all …]
|
D | ResourceTypes.cpp | 3123 dtohl(entry->key.index), &outName->nameLen); in getResourceName() 3137 dtohl(entry->key.index), &outName->nameLen); in getResourceName() 3716 uint32_t ResTable::identifierForName(const char16_t* name, size_t nameLen, in identifierForName() argument 3732 if (len != nameLen) { in identifierForName() 3747 if (nameLen > 7) { in identifierForName() 3751 int index = atoi(String8(name + 7, nameLen - 7).string()); in identifierForName() 3776 const char16_t* const nameEnd = name+nameLen; in identifierForName() 3813 nameLen = nameEnd-name; in identifierForName() 3817 String8(name, nameLen).string(), in identifierForName() 3836 const ssize_t ei = group->basePackage->keyStrings.indexOfString(name, nameLen); in identifierForName() [all …]
|
D | AssetManager.cpp | 1349 int nameLen; in scanAndMergeDirLocked() local 1352 nameLen = strlen(name); in scanAndMergeDirLocked() 1353 if (nameLen > exclExtLen && in scanAndMergeDirLocked() 1354 strcmp(name + (nameLen - exclExtLen), kExcludeExtension) == 0) in scanAndMergeDirLocked() 1356 String8 match(name, nameLen - exclExtLen); in scanAndMergeDirLocked()
|
/frameworks/base/core/jni/ |
D | android_os_Debug.cpp | 221 int len, nameLen; in read_mapinfo() local 264 nameLen = strlen(name); in read_mapinfo() 308 } else if (nameLen > 3 && strcmp(name+nameLen-3, ".so") == 0) { in read_mapinfo() 311 } else if (nameLen > 4 && strcmp(name+nameLen-4, ".jar") == 0) { in read_mapinfo() 314 } else if (nameLen > 4 && strcmp(name+nameLen-4, ".apk") == 0) { in read_mapinfo() 317 } else if (nameLen > 4 && strcmp(name+nameLen-4, ".ttf") == 0) { in read_mapinfo() 320 } else if ((nameLen > 4 && strcmp(name+nameLen-4, ".dex") == 0) || in read_mapinfo() 321 (nameLen > 5 && strcmp(name+nameLen-5, ".odex") == 0)) { in read_mapinfo() 324 } else if (nameLen > 4 && strcmp(name+nameLen-4, ".oat") == 0) { in read_mapinfo() 327 } else if (nameLen > 4 && strcmp(name+nameLen-4, ".art") == 0) { in read_mapinfo() [all …]
|
D | android_util_XmlBlock.cpp | 272 jsize nameLen = env->GetStringLength(name); in android_content_XmlBlock_nativeGetAttributeIndex() local 274 jint idx = (jint)st->indexOfAttribute(ns16, nsLen, name16, nameLen); in android_content_XmlBlock_nativeGetAttributeIndex()
|
D | android_util_AssetManager.cpp | 614 str.append(String16(name.name8, name.nameLen)); in android_content_AssetManager_getResourceName() 616 str.append(name.name, name.nameLen); in android_content_AssetManager_getResourceName() 685 return env->NewString((const jchar*)name.name, name.nameLen); in android_content_AssetManager_getResourceEntryName()
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_display.cpp | 47 static bool findExtension(const char* exts, const char* name, size_t nameLen) { in findExtension() argument 50 if (match && (match[nameLen] == '\0' || match[nameLen] == ' ')) { in findExtension() 360 bool egl_display_t::haveExtension(const char* name, size_t nameLen) const { in haveExtension() 361 if (!nameLen) { in haveExtension() 362 nameLen = strlen(name); in haveExtension() 364 return findExtension(mExtensionString.string(), name, nameLen); in haveExtension()
|
D | trace.cpp | 184 int nameLen = strlen(name); in TraceGL() local 187 if (nameLen == 14 && strcmp(name, "glShaderSource") == 0) { in TraceGL() 203 if (nameLen == 12 && strncmp(name, "glUniform", 9) == 0 && name[11] == 'v') { in TraceGL() 219 if (nameLen == 18 && strncmp(name, "glUniformMatrix", 15) == 0 in TraceGL()
|
D | egl_display.h | 102 bool haveExtension(const char* name, size_t nameLen = 0) const;
|
/frameworks/base/include/androidfw/ |
D | ZipFileRO.h | 227 unsigned short nameLen; member
|
D | BackupHelpers.h | 49 int nameLen; member
|
D | ResourceTypes.h | 1305 size_t nameLen; member 1452 uint32_t identifierForName(const char16_t* name, size_t nameLen, 1488 const char16_t* name, size_t nameLen, 1491 const char16_t* name, size_t nameLen,
|
/frameworks/base/media/java/android/media/ |
D | TimedText.java | 599 int nameLen = parcel.readInt(); in readFont() local 602 final String name = new String(text, 0, nameLen); in readFont()
|
/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/native/cmds/installd/ |
D | utils.c | 445 size_t nameLen = strlen(name); in _add_cache_dir_t() local 446 cache_dir_t* dir = (cache_dir_t*)_cache_malloc(cache, sizeof(cache_dir_t)+nameLen+1); in _add_cache_dir_t() 479 size_t nameLen = strlen(name); in _add_cache_file_t() local 480 cache_file_t* file = (cache_file_t*)_cache_malloc(cache, sizeof(cache_file_t)+nameLen+1); in _add_cache_file_t()
|
/frameworks/base/tools/aapt/ |
D | Images.cpp | 1154 const size_t nameLen = file->getPath().length(); in preProcessImage() local 1181 if (nameLen > 6) { in preProcessImage() 1183 if (name[nameLen-5] == '9' && name[nameLen-6] == '.') { in preProcessImage()
|
D | ResourceTable.h | 243 const char16_t* name, size_t nameLen, 246 const char16_t* name, size_t nameLen,
|
D | ResourceTable.cpp | 105 size_t nameLen; member 190 if (strzcmp16(cur->name, cur->nameLen, str, div-str) == 0) { in parse_flags() 2339 uint32_t attrID, const char16_t* name, size_t nameLen, in getAttributeEnum() argument 2343 String16 nameStr(name, nameLen); in getAttributeEnum() 2359 uint32_t attrID, const char16_t* name, size_t nameLen, in getAttributeFlags() argument 2366 String16 nameStr(name, nameLen); in getAttributeFlags() 2371 const char16_t* end = name + nameLen; in getAttributeFlags()
|
/frameworks/av/services/audioflinger/ |
D | AudioFlinger.cpp | 2446 size_t nameLen = strlen(de.d_name); in dumpTee() local 2447 if (nameLen <= 4 || nameLen >= MAX_NAME || in dumpTee() 2448 strcmp(&de.d_name[nameLen - 4], ".wav")) { in dumpTee()
|