Home
last modified time | relevance | path

Searched refs:count (Results 1 – 14 of 14) sorted by relevance

/bootable/recovery/minadbd/
Dservices.c49 unsigned count = (unsigned) cookie; in sideload_service() local
61 while(count > 0) { in sideload_service()
62 unsigned xfer = (count > 4096) ? 4096 : count; in sideload_service()
65 count -= xfer; in sideload_service()
68 if(count == 0) { in sideload_service()
76 if (count == 0) { in sideload_service()
Dadb.c160 unsigned count; in print_packet() local
174 count = p->msg.data_length; in print_packet()
176 if(count > DUMPMAX) { in print_packet()
177 count = DUMPMAX; in print_packet()
182 while(count-- > 0){ in print_packet()
Dtransport.c216 unsigned count; in send_packet() local
220 count = p->msg.data_length; in send_packet()
223 while(count-- > 0){ in send_packet()
809 unsigned count, sum; in check_data() local
812 count = p->msg.data_length; in check_data()
815 while(count-- > 0) { in check_data()
/bootable/recovery/minzip/
DHash.c117 int i, count; in countTombStones() local
119 for (count = i = 0; i < pHashTable->tableSize; i++) { in countTombStones()
121 count++; in countTombStones()
123 return count; in countTombStones()
320 int count = 0; in countProbes() local
345 count++; in countProbes()
350 return count; in countProbes()
374 int count; in mzHashTableProbeCount() local
376 count = countProbes(pHashTable, (*calcFunc)(data), data, cmpFunc); in mzHashTableProbeCount()
380 if (count < minProbe) in mzHashTableProbeCount()
[all …]
DZip.c535 size_t count; in processStoredEntry() local
538 count = bytesLeft; in processStoredEntry()
539 if (count > sizeof(buf)) { in processStoredEntry()
540 count = sizeof(buf); in processStoredEntry()
542 n = read(pArchive->fd, buf, count); in processStoredEntry()
543 if (n < 0 || (size_t)n != count) { in processStoredEntry()
544 LOGE("Can't read %zu bytes from zip file: %ld\n", count, n); in processStoredEntry()
551 bytesLeft -= count; in processStoredEntry()
/bootable/recovery/tools/ota/
Dcheck-lost+found.c104 int count = 0; in main() local
108 ++count; in main()
111 if (count > 0) { in main()
112 fprintf(out, "OMGZ FOUND %d FILES IN %s\n", count, fn); in main()
/bootable/recovery/applypatch/
Dfreecache.c47 int count; in EliminateOpenFiles() local
48 count = readlink(fd_path, link, sizeof(link)-1); in EliminateOpenFiles()
49 if (count >= 0) { in EliminateOpenFiles()
50 link[count] = '\0'; in EliminateOpenFiles()
Dapplypatch.sh131 run_command dd if=/dev/urandom of=$WORK_DIR/old.file count=100 bs=1024 || fail
223 run_command dd if=/dev/urandom of=$WORK_DIR/old.file count=100 bs=1024 || fail
231 run_command dd if=/dev/urandom of=$CACHE_TEMP_SOURCE count=100 bs=1024 || fail
238 run_command dd if=/dev/urandom of=$WORK_DIR/new.file count=100 bs=1024 || fail
250 echo run_command dd if=/dev/zero of=$WORK_DIR/bloat.dat count=$((free_kb-512)) bs=1024 || fail
251 run_command dd if=/dev/zero of=$WORK_DIR/bloat.dat count=$((free_kb-512)) bs=1024 || fail
281 run_command dd if=/dev/zero of=/cache/bloat_small.dat count=128 bs=1024 || fail
282 run_command dd if=/dev/zero of=/cache/bloat_large.dat count=$((free_kb-640)) bs=1024 || fail
326 run_command dd if=/dev/urandom of=$WORK_DIR/old.file count=100 bs=1024 || fail
Dapplypatch.c836 int count = slash - target_filename; in GenerateTarget() local
837 strncpy(target_fs, target_filename, count); in GenerateTarget()
838 target_fs[count] = '\0'; in GenerateTarget()
/bootable/recovery/edify/
Dexpr.c327 Expr* Build(Function fn, YYLTYPE loc, int count, ...) { in Build() argument
329 va_start(v, count); in Build()
333 e->argc = count; in Build()
334 e->argv = malloc(count * sizeof(Expr*)); in Build()
336 for (i = 0; i < count; ++i) { in Build()
405 int ReadArgs(State* state, Expr* argv[], int count, ...) { in ReadArgs() argument
406 char** args = malloc(count * sizeof(char*)); in ReadArgs()
408 va_start(v, count); in ReadArgs()
410 for (i = 0; i < count; ++i) { in ReadArgs()
431 int ReadValueArgs(State* state, Expr* argv[], int count, ...) { in ReadValueArgs() argument
[all …]
Dexpr.h97 Expr* Build(Function fn, YYLTYPE loc, int count, ...);
138 int ReadArgs(State* state, Expr* argv[], int count, ...);
143 int ReadValueArgs(State* state, Expr* argv[], int count, ...);
/bootable/recovery/
Dbootloader.cpp172 int count = fread(&temp, sizeof(temp), 1, f); in get_bootloader_message_block() local
173 if (count != 1) { in get_bootloader_message_block()
193 int count = fwrite(in, sizeof(*in), 1, f); in set_bootloader_message_block() local
194 if (count != 1) { in set_bootloader_message_block()
Dscreen_ui.cpp244 for (int ty = gr_fb_height() - char_height, count = 0; in draw_screen_locked() local
245 ty > y+2 && count < text_rows; in draw_screen_locked()
246 ty -= char_height, ++count) { in draw_screen_locked()
Drecovery.cpp450 int count = 0; in prepend_title() local
452 for (p = title; *p; ++p, ++count); in prepend_title()
453 for (p = headers; *p; ++p, ++count); in prepend_title()
455 const char** new_headers = (const char**)malloc((count+1) * sizeof(char*)); in prepend_title()