Home
last modified time | relevance | path

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

/bootable/recovery/minzip/
DSysUtil.c32 static void* sysCreateAnonShmem(size_t length) in sysCreateAnonShmem() argument
36 ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, in sysCreateAnonShmem()
39 LOGW("mmap(%d, RW, SHARED|ANON) failed: %s\n", (int) length, in sysCreateAnonShmem()
50 size_t length; in getFileStartAndLength() local
64 length = end - start; in getFileStartAndLength()
65 if (length == 0) { in getFileStartAndLength()
71 *length_ = length; in getFileStartAndLength()
86 size_t length, actual; in sysLoadFileInShmem() local
91 if (getFileStartAndLength(fd, &start, &length) < 0) in sysLoadFileInShmem()
94 memPtr = sysCreateAnonShmem(length); in sysLoadFileInShmem()
[all …]
DBits.h223 unsigned int length = read4BE(ppSrc); in skipUtf8String() local
225 (*ppSrc) += length; in skipUtf8String()
235 unsigned int length = read4BE(ppSrc); in readUtf8String() local
236 size_t copyLen = (length < bufLen) ? length : bufLen-1; in readUtf8String()
241 (*ppSrc) += length; in readUtf8String()
242 return length; in readUtf8String()
253 unsigned int length = read4BE(ppSrc); in readNewUtf8String() local
256 buf = (char*) malloc(length+1); in readNewUtf8String()
258 memcpy(buf, *ppSrc, length); in readNewUtf8String()
259 buf[length] = '\0'; in readNewUtf8String()
[all …]
DSysUtil.h18 size_t length; /* length of data */ member
51 int sysMapFileSegmentInShmem(int fd, off_t start, long length,
DZip.c212 ptr = pMap->addr + pMap->length - ENDHDR; in parseZipArchive()
233 if (numEntries == 0 || cdOffset >= pMap->length) { in parseZipArchive()
235 numEntries, cdOffset, pMap->length); in parseZipArchive()
255 if (ptr + CENHDR > (const unsigned char*)pMap->addr + pMap->length) { in parseZipArchive()
269 if (fileName + fileNameLen > (const char*)pMap->addr + pMap->length) { in parseZipArchive()
363 (uintptr_t)pMap->addr + pMap->length) { in parseZipArchive()
377 if ((size_t)pEntry->offset + pEntry->compLen > pMap->length) { in parseZipArchive()
453 if (map.length < ENDHDR) { in mzOpenZipArchive()
455 LOGV("File '%s' too small to be zip (%zd)\n", fileName, map.length); in mzOpenZipArchive()
/bootable/recovery/minui/
Dgraphics.c92 vi.red.length = 8; in get_framebuffer()
94 vi.green.length = 8; in get_framebuffer()
96 vi.blue.length = 8; in get_framebuffer()
98 vi.transp.length = 8; in get_framebuffer()
101 vi.red.length = 8; in get_framebuffer()
103 vi.green.length = 8; in get_framebuffer()
105 vi.blue.length = 8; in get_framebuffer()
107 vi.transp.length = 8; in get_framebuffer()
110 vi.red.length = 5; in get_framebuffer()
112 vi.green.length = 6; in get_framebuffer()
[all …]
/bootable/recovery/
Droots.cpp60 v->blk_device, v->length); in load_volume_table()
194 int result = make_ext4fs(v->blk_device, v->length, volume, sehandle); in format_volume()
/bootable/recovery/edify/
Dexpr.c77 int length = 0; in ConcatFn() local
83 length += strlen(strings[i]); in ConcatFn()
86 result = malloc(length+1); in ConcatFn()
/bootable/recovery/mtdutils/
Dmtdutils.c430 erase_info.length = size; in write_block()
536 erase_info.length = ctx->partition->erase_size; in mtd_erase_blocks()