/system/extras/tests/audio/alsa/ |
H A D | pcmtest.cpp | 59 struct dirent *de; local 65 while ((de = readdir(d)) != NULL) { 66 if (de->d_name[0] == '.') 68 if (strstr(de->d_name, PCM_PREFIX)) 78 struct dirent *de; local 88 while ((de = readdir(d)) != NULL) { 89 if (de->d_name[0] == '.') 91 /* printf("%s\n", de->d_name); */ 92 if (strstr(de->d_name, PCM_PREFIX)) { 98 sscanf(de [all...] |
/system/netd/server/ |
H A D | PppController.cpp | 144 struct dirent *de; local 145 while ((de = readdir(d))) { 146 if (de->d_name[0] == '.') 148 if ((!strncmp(de->d_name, "tty", 3)) && (strlen(de->d_name) > 3)) { 149 mTtys->push_back(strdup(de->d_name));
|
H A D | CommandListener.cpp | 273 struct dirent *de; local 280 while((de = readdir(d))) { 281 if (de->d_name[0] == '.') 283 cli->sendMsg(ResponseCode::InterfaceListResult, de->d_name, false);
|
/system/core/toolbox/ |
H A D | ls.c | 196 struct dirent *de; local 202 while ((de = readdir(d)) != 0) { 203 if (strcmp(de->d_name, ".") == 0 || strcmp(de->d_name, "..") == 0) 205 if (de->d_name[0] == '.' && (flags & LIST_ALL) == 0) 209 snprintf(tmp, sizeof(tmp), "/%s", de->d_name); 211 snprintf(tmp, sizeof(tmp), "%s/%s", dirname, de->d_name); 436 struct dirent *de; local 449 while((de = readdir(d)) != 0){ 450 if (!strcmp(de [all...] |
H A D | lsof.c | 150 struct dirent* de; local 151 while ((de = readdir(dir))) { 152 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..")) 155 print_type(de->d_name, info); 237 struct dirent* de; local 238 while ((de = readdir(dir))) { 239 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..")) 243 pid = strtol(de [all...] |
H A D | ps.c | 247 struct dirent *de; local 253 while((de = readdir(d)) != 0){ 254 if(isdigit(de->d_name[0])){ 255 int tid = atoi(de->d_name); 266 struct dirent *de; local 314 while((de = readdir(d)) != 0){ 315 if(isdigit(de->d_name[0])){ 316 int pid = atoi(de->d_name);
|
H A D | getevent.c | 284 struct dirent *de; local 294 while((de = readdir(dir))) { 295 if (strstr(de->d_name, prefix) == de->d_name) { 296 snprintf(filename, sizeof(filename), "%s/%s/rdesc", dirname, de->d_name); 300 printf(" HID descriptor: %s\n\n", de->d_name); 479 struct dirent *de; local 486 while((de = readdir(dir))) { 487 if(de->d_name[0] == '.' && 488 (de [all...] |
H A D | newfs_msdos.c | 145 struct de { struct 258 struct de *de; local 518 bpb.bps / sizeof(struct de)) + 525 howmany(DEFRDE, bpb.bps / sizeof(struct de)) + 572 rds = howmany(bpb.rde, bpb.bps / sizeof(struct de)); 725 de = (struct de *)img; 726 mklabel(de->namext, opt_L); 727 mk1(de [all...] |
/system/vold/ |
H A D | Process.cpp | 98 struct dirent* de; local 99 while ((de = readdir(dir))) { 100 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..") 101 || strlen(de->d_name) + parent_length + 1 >= PATH_MAX) 106 strcat(path, de->d_name); 183 struct dirent* de; local 190 while ((de = readdir(dir))) { 191 int pid = getPid(de->d_name);
|
H A D | main.cpp | 168 struct dirent *de; local 179 while((de = readdir(d))) { 182 if (de->d_name[0] == '.') 185 if (de->d_type != DT_DIR && lvl > 0) 188 fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY);
|
H A D | Utils.cpp | 462 struct dirent *de; local 470 while ((de = readdir(d))) { 471 const char *name = de->d_name; 475 if (de->d_type == DT_DIR) {
|
H A D | VolumeManager.cpp | 518 struct dirent* de; local 539 while ((de = readdir(dir))) { 543 pidFd = openat(dirfd(dir), de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); 548 PLOG(WARNING) << "Failed to stat " << de->d_name; 556 LOG(DEBUG) << "Found matching PID " << de->d_name; 558 PLOG(WARNING) << "Failed to read namespace for " << de->d_name; 569 PLOG(WARNING) << "Failed to open namespace for " << de->d_name; 575 PLOG(ERROR) << "Failed to setns for " << de->d_name; 595 << de->d_name; 605 << de [all...] |
H A D | CommandListener.cpp | 304 struct dirent *de; local 315 while ((de = readdir(dir))) { 316 int pid = Process::getPid(de->d_name);
|
/system/core/debuggerd/ |
H A D | backtrace.cpp | 126 struct dirent* de = NULL; local 127 while ((de = readdir(d)) != NULL) { 128 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..")) { 133 pid_t new_tid = strtoul(de->d_name, &end, 10);
|
H A D | getevent.cpp | 147 struct dirent* de; local 154 while ((de = readdir(dir))) { 155 if ((de->d_name[0] == '.' && de->d_name[1] == '\0') || 156 (de->d_name[1] == '.' && de->d_name[2] == '\0')) 158 strcpy(filename, de->d_name);
|
H A D | tombstone.cpp | 435 struct dirent* de; local 436 while ((de = readdir(d)) != NULL) { 438 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..")) { 444 pid_t new_tid = strtoul(de->d_name, &end, 10);
|
/system/core/cpio/ |
H A D | mkbootfs.c | 161 struct dirent *de; local 179 while((de = readdir(d)) != 0){ 181 if(de->d_name[0] == '.') continue; 184 if(!strcmp(de->d_name, "root")) continue; 195 names[entries] = strdup(de->d_name); 198 de->d_name);
|
/system/core/fastboot/ |
H A D | usb_linux.c | 316 struct dirent *de; local 323 while((de = readdir(busdir)) && (usb == 0)) { 324 if(badname(de->d_name)) continue; 326 if(!convert_to_devfs_name(de->d_name, devname, sizeof(devname))) { 341 if(filter_usb_device(de->d_name, desc, n, writable, callback,
|
/system/core/libusbhost/ |
H A D | usbhost.c | 100 struct dirent *de; local 106 while ((de = readdir(devdir)) && !done) { 107 if(badname(de->d_name)) continue; 109 snprintf(devname, sizeof(devname), "%s/%s", busname, de->d_name); 123 struct dirent *de; local 129 while ((de = readdir(busdir)) != 0 && !done) { 130 if(badname(de->d_name)) continue; 132 snprintf(busname, sizeof(busname), USB_FS_DIR "/%s", de->d_name);
|
/system/core/adb/ |
H A D | file_sync_service.cpp | 103 struct dirent *de; local 121 while((de = readdir(d))) { 122 int len = strlen(de->d_name); 128 strcpy(fname, de->d_name); 136 !WriteFdExactly(s, de->d_name, len)) {
|
H A D | usb_linux.cpp | 132 struct dirent *de; local 138 while((de = readdir(busdir)) != 0) { 139 if(badname(de->d_name)) continue; 141 snprintf(busname, sizeof busname, "%s/%s", base, de->d_name); 146 while((de = readdir(devdir))) { 158 if(badname(de->d_name)) continue; 159 snprintf(devname, sizeof devname, "%s/%s", busname, de->d_name);
|
H A D | file_sync_client.cpp | 603 struct dirent *de; local 614 while((de = readdir(d))) { 616 char *name = de->d_name; 627 if (strlen(lpath) + strlen(de->d_name) + 1 > sizeof(stat_path)) 630 strcat(stat_path, de->d_name);
|
/system/core/init/ |
H A D | devices.cpp | 935 struct dirent *de; local 947 while((de = readdir(d))) { 950 if(de->d_type != DT_DIR || de->d_name[0] == '.') 953 fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY);
|
/system/core/sdcard/ |
H A D | sdcard.c | 1379 struct dirent *de; local 1388 de = readdir(h->d); 1389 if (!de) { 1395 fde->type = de->d_type; 1396 fde->namelen = strlen(de->d_name); 1397 memcpy(fde->name, de->d_name, fde->namelen + 1);
|