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

/frameworks/base/libs/androidfw/
H A DObbFile.cpp173 char* scanBuf = (char*)malloc(footerSize); local
174 if (scanBuf == NULL) {
175 ALOGW("couldn't allocate scanBuf: %s\n", strerror(errno));
179 actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, footerSize));
183 free(scanBuf);
189 ALOGI("char: 0x%02x\n", scanBuf[i]);
193 uint32_t sigVersion = get4LE((unsigned char*)scanBuf);
196 free(scanBuf);
200 mVersion = (int32_t) get4LE((unsigned char*)scanBuf + kPackageVersionOffset);
201 mFlags = (int32_t) get4LE((unsigned char*)scanBuf
[all...]
/frameworks/native/libs/utils/
H A DZipFileRO.cpp195 unsigned char* scanBuf = (unsigned char*) malloc(readAmount); local
196 if (scanBuf == NULL) {
197 ALOGW("couldn't allocate scanBuf: %s", strerror(errno));
198 free(scanBuf);
207 free(scanBuf);
211 ssize_t actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, sizeof(int32_t)));
214 free(scanBuf);
219 unsigned int header = get4LE(scanBuf);
222 free(scanBuf);
226 free(scanBuf);
[all...]

Completed in 1317 milliseconds