Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DObbFile.cpp205 size_t packageNameLen = get4LE((unsigned char*)scanBuf + kPackageNameLenOffset); in parseObbFile() local
206 if (packageNameLen == 0 in parseObbFile()
207 || packageNameLen > (footerSize - kPackageNameOffset)) { in parseObbFile()
209 packageNameLen, footerSize - kPackageNameOffset); in parseObbFile()
215 mPackageName = String8(const_cast<char*>(packageName), packageNameLen); in parseObbFile()
284 size_t packageNameLen = mPackageName.size(); in writeTo() local
285 put4LE(intBuf, packageNameLen); in writeTo()
291 if (write(fd, mPackageName.string(), packageNameLen) != (ssize_t)packageNameLen) { in writeTo()
296 put4LE(intBuf, kPackageNameOffset + packageNameLen); in writeTo()