Searched refs:entries (Results 1 – 2 of 2) sorted by relevance
/bootable/recovery/applypatch/ |
D | freecache.c | 74 int FindExpendableFiles(char*** names, int* entries) { in FindExpendableFiles() argument 78 *entries = 0; in FindExpendableFiles() 108 if (*entries >= size) { in FindExpendableFiles() 112 (*names)[(*entries)++] = strdup(path); in FindExpendableFiles() 119 printf("%d regular files in deletable directories\n", *entries); in FindExpendableFiles() 121 if (EliminateOpenFiles(*names, *entries) < 0) { in FindExpendableFiles() 138 int entries; in MakeFreeSpaceOnCache() local 140 if (FindExpendableFiles(&names, &entries) < 0) { in MakeFreeSpaceOnCache() 144 if (entries == 0) { in MakeFreeSpaceOnCache() 157 for (i = 0; i < entries && free_now < bytes_needed; ++i) { in MakeFreeSpaceOnCache() [all …]
|
/bootable/recovery/ |
D | recovery.cpp | 700 char* entries[1 + KEEP_LOG_COUNT * 2 + 1]; in choose_recovery_file() local 701 memset(entries, 0, sizeof(entries)); in choose_recovery_file() 716 entries[n++] = log_file; in choose_recovery_file() 727 entries[n++] = kmsg_file; in choose_recovery_file() 731 entries[n++] = strdup("Back"); in choose_recovery_file() 736 int chosen_item = get_menu_selection(headers, entries, 1, 0, device); in choose_recovery_file() 737 if (strcmp(entries[chosen_item], "Back") == 0) break; in choose_recovery_file() 741 ui->ShowFile(entries[chosen_item]); in choose_recovery_file() 745 for (size_t i = 0; i < (sizeof(entries) / sizeof(*entries)); i++) { in choose_recovery_file() 746 free(entries[i]); in choose_recovery_file()
|