Searched refs:size (Results 1 - 22 of 22) sorted by relevance

/bootable/recovery/tools/ota/
H A Dconvert-to-bmp.py25 "L" # file size
31 "L" # size of this struct
37 "L" # size of image data (0 if uncompressed)
50 im.size[0] * im.size[1] * 4),
56 im.size[0],
57 im.size[1],
71 for j in range(im.size[1]-1, -1, -1): # rows bottom-to-top
72 for i in range(j*im.size[0]*4, (j+1)*im.size[
[all...]
/bootable/recovery/
H A Dmake-overlay.py33 minmini = base.size[0]-1
35 minminj = base.size[1]-1
42 assert base.size == top.size
44 mini = base.size[0]-1
46 minj = base.size[1]-1
49 h, w = base.size
H A Dverifier.cpp48 // (2-byte signature start) $ff $ff (2-byte comment size)
155 size_t size = BUFFER_SIZE; local
156 if (signed_len - so_far < size) size = signed_len - so_far;
157 if (fread(buffer, 1, size, f) != size) {
162 SHA_update(&ctx, buffer, size);
163 so_far += size;
165 if (f > frac + 0.02 || size == so_far) {
H A Dbootloader.cpp86 const ssize_t size = write_size * MISC_PAGES; local
87 char data[size];
88 ssize_t r = mtd_read_data(read, data, size);
89 if (r != size) LOGE("Can't read %s\n(%s)\n", v->device, strerror(errno));
91 if (r != size) return -1;
112 ssize_t size = write_size * MISC_PAGES; local
113 char data[size];
114 ssize_t r = mtd_read_data(read, data, size);
115 if (r != size) LOGE("Can't read %s\n(%s)\n", v->device, strerror(errno));
117 if (r != size) retur
[all...]
/bootable/recovery/applypatch/
H A Dapplypatch.c69 file->size = file->st.st_size;
70 file->data = malloc(file->size);
80 ssize_t bytes_read = fread(file->data, 1, file->size, f);
81 if (bytes_read != file->size) {
83 filename, (long)bytes_read, (long)file->size);
95 if (retouch_mask_data(file->data, file->size,
104 SHA(file->data, file->size, file->sha1);
128 // sha1 hash will be loaded. It is acceptable for a size value to be
169 int pairs = (colons-1)/2; // # of (size,sha1) pairs in filename
171 size_t* size local
554 ssize_t size; member in struct:__anon1
[all...]
H A Dimgpatch.c44 if (patch->size < 12) {
62 if (pos + 4 > patch->size) {
72 if (pos > patch->size) {
86 if (pos > patch->size) {
93 if (pos + data_len > patch->size) {
108 if (pos > patch->size) {
127 // Note: expanded_len will include the bonus data size if
131 size_t bonus_size = (i == 1 && bonus_data != NULL) ? bonus_data->size : 0;
H A Dfreecache.c77 int size = 32; local
79 *names = malloc(size * sizeof(char*));
108 if (*entries >= size) {
109 size *= 2;
110 *names = realloc(*names, size * sizeof(char*));
H A Dmain.c82 (*patches)[i]->size = fc.size;
112 bonus->size = fc.size;
185 "usage: %s [-b <bonus-file>] <src-file> <tgt-file> <tgt-sha1> <tgt-size> "
H A Dbspatch.c84 int FillBuffer(unsigned char* buffer, int size, bz_stream* stream) { argument
86 stream->avail_out = size;
178 estream.avail_in = patch->size - (patch_offset + 32 + ctrl_len + data_len);
H A Dimgdiff_test.sh60 size() { function
88 echo "patch for $fn is $(size $tmpdir/patch) [of $(size $tmpdir/target)] ($(size $tmpdir/patch.bs) with bsdiff)"
89 echo "$fn $(size $tmpdir/patch) of $(size $tmpdir/target) bsdiff $(size $tmpdir/patch.bs)" >> /tmp/stats.txt
94 /data/local/tmp/target $(sha1 $tmpdir/target) $(size $tmpdir/target) \
H A Dapplypatch.h33 ssize_t size; member in struct:_FileContents
H A Dimgdiff.c76 * source expanded len (8) [size of uncompressed source]
77 * target expected len (8) [size of uncompressed target]
90 * source expanded len (8) [size of uncompressed source]
91 * target expected len (8) [size of uncompressed target]
104 * expanded len" is the size of the uncompressed source data. "target
105 * expected len" is the size of the uncompressed data after applying
119 * patch. This is used to reduce the size of recovery-from-boot
481 // The footer (that we just skipped over) contains the size of
483 // matches the size of the data we got when we actually did
487 printf("Error: footer size
607 MakePatch(ImageChunk* src, ImageChunk* tgt, size_t* size) argument
[all...]
/bootable/recovery/mtdutils/
H A Dmtdutils.c33 unsigned int size; member in struct:MtdPartition
121 * dev: size erasesize name
145 p->size = mtdsize;
251 if (total_size != NULL) *total_size = mtd_info.size;
298 ssize_t size = partition->erase_size; local
301 while (pos + size <= (int) partition->size) {
302 if (lseek64(fd, pos, SEEK_SET) != pos || read(fd, data, size) != size) {
415 ssize_t size
[all...]
/bootable/recovery/edify/
H A Dmain.c190 int size = fread(buffer, 1, 8191, f); local
192 buffer[size] = '\0';
196 yy_scan_bytes(buffer, size);
H A Dexpr.h48 #define VAL_STRING 1 // data will be NULL-terminated; size doesn't count null
53 ssize_t size; member in struct:__anon6
H A Dexpr.c56 v->size = strlen(str);
/bootable/recovery/minadbd/
H A Dtransport_usb.c80 unsigned size = p->msg.data_length; local
89 if(usb_write(t->usb, &p->data, size)) {
/bootable/recovery/updater/
H A Dinstall.c200 // if fs_size > 0, that is the size to use
425 v->size = -1;
437 v->size = mzGetZipEntryUncompLen(entry);
438 v->data = malloc(v->size);
441 name, (long)v->size, zip_path);
453 v->size = -1;
796 ssize_t wrote = mtd_write_data(ctx, contents->data, contents->size);
797 success = (wrote == contents->size);
948 int size = 0; local
951 size
[all...]
/bootable/diskinstaller/
H A Dinstaller.c78 int size = 0; local
83 /* compute the size for the command buffer */
84 size = strlen(cmd) + 1;
87 size += strlen(str) + 1; /* need room for the space separator */
91 if (!(outbuf = malloc(size + 1))) {
H A Dconfig.mk151 # $(5): size of the partition
/bootable/recovery/minzip/
H A DHash.h72 * table size may be adjusted upward.) If you know exactly how many
80 * Compute the capacity needed for a table to hold "size" elements. Use
85 size_t mzHashSize(size_t size);
105 * Get total size of hash table (for memory usage calculations).
H A DHash.c24 * Compute the capacity needed for a table to hold "size" elements.
26 size_t mzHashSize(size_t size) { argument
27 return (size * LOAD_DENOM) / LOAD_NUMER +1;
129 * size of the table beyond its comfy limit.

Completed in 283 milliseconds