Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DObbFile.cpp173 char* scanBuf = (char*)malloc(footerSize); in parseObbFile() local
174 if (scanBuf == NULL) { in parseObbFile()
179 actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, footerSize)); in parseObbFile()
183 free(scanBuf); in parseObbFile()
189 ALOGI("char: 0x%02x\n", scanBuf[i]); in parseObbFile()
193 uint32_t sigVersion = get4LE((unsigned char*)scanBuf); in parseObbFile()
196 free(scanBuf); in parseObbFile()
200 mVersion = (int32_t) get4LE((unsigned char*)scanBuf + kPackageVersionOffset); in parseObbFile()
201 mFlags = (int32_t) get4LE((unsigned char*)scanBuf + kFlagsOffset); in parseObbFile()
203 memcpy(&mSalt, (unsigned char*)scanBuf + kSaltOffset, sizeof(mSalt)); in parseObbFile()
[all …]
/frameworks/native/libs/utils/
DZipFileRO.cpp195 unsigned char* scanBuf = (unsigned char*) malloc(readAmount); in mapCentralDirectory() local
196 if (scanBuf == NULL) { in mapCentralDirectory()
198 free(scanBuf); in mapCentralDirectory()
207 free(scanBuf); in mapCentralDirectory()
211 ssize_t actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, sizeof(int32_t))); in mapCentralDirectory()
214 free(scanBuf); in mapCentralDirectory()
219 unsigned int header = get4LE(scanBuf); in mapCentralDirectory()
222 free(scanBuf); in mapCentralDirectory()
226 free(scanBuf); in mapCentralDirectory()
247 free(scanBuf); in mapCentralDirectory()
[all …]