Home
last modified time | relevance | path

Searched refs:dirs (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/applypatch/
Dfreecache.c85 const char* dirs[2] = {"/cache", "/cache/recovery/otatest"}; in FindExpendableFiles() local
88 for (i = 0; i < sizeof(dirs)/sizeof(dirs[0]); ++i) { in FindExpendableFiles()
89 d = opendir(dirs[i]); in FindExpendableFiles()
91 printf("error opening %s: %s\n", dirs[i], strerror(errno)); in FindExpendableFiles()
97 strcpy(path, dirs[i]); in FindExpendableFiles()
/bootable/recovery/
Drecovery.cpp570 char** dirs = (char**)malloc(d_alloc * sizeof(char*)); in browse_directory() local
588 dirs = (char**)realloc(dirs, d_alloc * sizeof(char*)); in browse_directory()
590 dirs[d_size] = (char*)malloc(name_len + 2); in browse_directory()
591 strcpy(dirs[d_size], de->d_name); in browse_directory()
592 dirs[d_size][name_len] = '/'; in browse_directory()
593 dirs[d_size][name_len+1] = '\0'; in browse_directory()
607 qsort(dirs, d_size, sizeof(char*), compare_string); in browse_directory()
615 memcpy(zips + z_size, dirs, d_size * sizeof(char*)); in browse_directory()
616 free(dirs); in browse_directory()