HomeSort by relevance Sort by last modified time
    Searched refs:scanBuf (Results 1 - 3 of 3) sorted by null

  /frameworks/base/libs/androidfw/
ObbFile.cpp 173 char* scanBuf = (char*)malloc(footerSize);
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 + kFlagsOffset)
    [all...]
ZipFileRO.cpp 188 unsigned char* scanBuf = (unsigned char*) malloc(readAmount);
189 if (scanBuf == NULL) {
190 ALOGW("couldn't allocate scanBuf: %s", strerror(errno));
191 free(scanBuf);
200 free(scanBuf);
204 ssize_t actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, sizeof(int32_t)));
207 free(scanBuf);
211 unsigned int header = get4LE(scanBuf);
214 free(scanBuf);
234 free(scanBuf);
    [all...]
  /dalvik/libdex/
ZipArchive.cpp 156 ZipArchive* pArchive, off64_t fileLength, size_t readAmount, u1* scanBuf)
166 ssize_t actual = TEMP_FAILURE_RETRY(read(pArchive->mFd, scanBuf, sizeof(int32_t)));
172 unsigned int header = get4LE(scanBuf);
196 actual = TEMP_FAILURE_RETRY(read(pArchive->mFd, scanBuf, readAmount));
212 if (scanBuf[i] == 0x50 && get4LE(&scanBuf[i]) == kEOCDSignature) {
223 const u1* eocdPtr = scanBuf + i;
316 u1* scanBuf = (u1*) malloc(readAmount);
317 if (scanBuf == NULL) {
322 fileLength, readAmount, scanBuf);
    [all...]

Completed in 122 milliseconds