/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/ |
D | iio_utils.h | 139 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type() 140 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type() 142 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type() 224 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float() 225 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float() 227 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float() 303 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 306 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array() 334 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 338 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/ |
D | iio_utils.h | 139 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type() 140 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type() 142 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type() 224 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float() 225 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float() 227 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float() 303 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 306 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array() 334 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 338 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
D | iio_utils.h | 137 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type() 138 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type() 140 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type() 222 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float() 223 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float() 225 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float() 302 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 305 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array() 333 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 337 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array() [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
D | ml_sysfs_helper.c | 74 if (strcmp(ent->d_name, ".") != 0 && in find_type_by_name() 75 strcmp(ent->d_name, "..") != 0 && in find_type_by_name() 76 strlen(ent->d_name) > strlen(type) && in find_type_by_name() 77 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_type_by_name() 78 numstrlen = sscanf(ent->d_name + strlen(type), in find_type_by_name() 82 if (strncmp(ent->d_name + strlen(type) + numstrlen, in find_type_by_name() 318 if (strcmp(ent->d_name, ".") != 0 && in find_name_by_sensor_type() 319 strcmp(ent->d_name, "..") != 0 && in find_name_by_sensor_type() 320 strlen(ent->d_name) > strlen(type) && in find_name_by_sensor_type() 321 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_name_by_sensor_type() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
D | ml_sysfs_helper.c | 82 if (strcmp(ent->d_name, ".") != 0 && in find_type_by_name() 83 strcmp(ent->d_name, "..") != 0 && in find_type_by_name() 84 strlen(ent->d_name) > strlen(type) && in find_type_by_name() 85 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_type_by_name() 86 numstrlen = sscanf(ent->d_name + strlen(type), in find_type_by_name() 90 if (strncmp(ent->d_name + strlen(type) + numstrlen, in find_type_by_name() 326 if (strcmp(ent->d_name, ".") != 0 && in find_name_by_sensor_type() 327 strcmp(ent->d_name, "..") != 0 && in find_name_by_sensor_type() 328 strlen(ent->d_name) > strlen(type) && in find_name_by_sensor_type() 329 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_name_by_sensor_type() [all …]
|
/hardware/libhardware/tests/input/evdev/ |
D | TestHelpers.cpp | 77 if (strcmp(entry->d_name, ".") == 0 || in ~TempDir() 78 strcmp(entry->d_name, "..") == 0) { in ~TempDir() 81 ALOGD("stale file %s, removing", entry->d_name); in ~TempDir() 82 unlink(entry->d_name); in ~TempDir()
|
/hardware/invensense/65xx/libsensors_iio/ |
D | SensorBase.cpp | 161 if(de->d_name[0] == '.' && in openInput() 162 (de->d_name[1] == '\0' || in openInput() 163 (de->d_name[1] == '.' && de->d_name[2] == '\0'))) in openInput() 165 strcpy(filename, de->d_name); in openInput()
|
D | MPLSupport.cpp | 298 LOGV_IF(0,"file name %s", ep->d_name); in read_sysfs_dir() 299 if(!strcmp(ep->d_name, ".") || !strcmp(ep->d_name, "..") || in read_sysfs_dir() 300 !strcmp(ep->d_name, "uevent") || !strcmp(ep->d_name, "dev") || in read_sysfs_dir() 301 !strcmp(ep->d_name, "self_test")) in read_sysfs_dir() 303 sprintf(full_path, "%s%s%s", sysfs_path, "/", ep->d_name); in read_sysfs_dir()
|
/hardware/invensense/6515/libsensors_iio/ |
D | SensorBase.cpp | 164 if(de->d_name[0] == '.' && in openInput() 165 (de->d_name[1] == '\0' || in openInput() 166 (de->d_name[1] == '.' && de->d_name[2] == '\0'))) in openInput() 168 strcpy(filename, de->d_name); in openInput()
|
D | MPLSupport.cpp | 301 LOGV_IF(0,"file name %s", ep->d_name); in read_sysfs_dir() 302 if(!strcmp(ep->d_name, ".") || !strcmp(ep->d_name, "..") || in read_sysfs_dir() 303 !strcmp(ep->d_name, "uevent") || !strcmp(ep->d_name, "dev") || in read_sysfs_dir() 304 !strcmp(ep->d_name, "self_test")) in read_sysfs_dir() 306 sprintf(full_path, "%s%s%s", sysfs_path, "/", ep->d_name); in read_sysfs_dir()
|
/hardware/qcom/sdm845/thermal/ |
D | thermal_common.c | 158 if (strncmp(tdirent->d_name, TZ_DIR_NAME, in get_tzn() 162 tzdir = opendir(tdirent->d_name); in get_tzn() 166 if (strcmp(tzdirent->d_name, "type")) in get_tzn() 169 tdirent->d_name); in get_tzn() 173 __func__, tdirent->d_name); in get_tzn() 192 sscanf(tdirent->d_name, TZ_DIR_FMT, &tzn); in get_tzn()
|
/hardware/libhardware/modules/camera/3_4/ |
D | v4l2_camera_hal.cpp | 69 if (strncmp(desired.c_str(), ent->d_name, len) == 0) { in V4L2CameraHAL() 70 if (strlen(ent->d_name) > len && isdigit(ent->d_name[len])) { in V4L2CameraHAL() 72 nodes.push_back(std::string("/dev/") + ent->d_name); in V4L2CameraHAL()
|
/hardware/interfaces/drm/1.2/vts/functional/ |
D | vendor_modules.cpp | 42 ALOGD("checking file %s", entry->d_name); in scanModules() 43 string fullpath = directory + "/" + entry->d_name; in scanModules()
|
/hardware/interfaces/drm/1.0/vts/functional/ |
D | vendor_modules.cpp | 42 ALOGD("checking file %s", entry->d_name); in scanModules() 43 string fullpath = directory + "/" + entry->d_name; in scanModules()
|
/hardware/interfaces/drm/1.0/default/include/ |
D | PluginLoader.h | 48 String8 file(pEntry->d_name); in PluginLoader() 50 String8 path = pluginDir + "/" + pEntry->d_name; in PluginLoader()
|
/hardware/qcom/wlan/qcwcn/wcnss-service/ |
D | wcnss_service.c | 247 rc = lstat(dr->d_name, &st); in find_full_path() 253 if ((strcmp(dr->d_name, ".")) && in find_full_path() 254 (strcmp(dr->d_name, ".."))) { in find_full_path() 255 find_full_path(dr->d_name, in find_full_path() 258 } else if (!strcmp(file_to_find, dr->d_name)) { in find_full_path()
|
/hardware/interfaces/camera/provider/2.4/default/ |
D | ExternalCameraProviderImpl_2_4.cpp | 286 if (!strncmp(kPrefix, de->d_name, kPrefixLen)) { in threadLoop() 289 std::string deviceId(de->d_name + kPrefixLen); in threadLoop() 291 ALOGV("Non-internal v4l device %s found", de->d_name); in threadLoop() 294 "%s%s", kDevicePath, de->d_name); in threadLoop()
|
/hardware/interfaces/power/stats/1.0/default/ |
D | PowerStats.cpp | 59 if (strcmp(ent->d_name, ".") != 0 && strcmp(ent->d_name, "..") != 0 && in findIioPowerMonitorNodes() 60 strlen(ent->d_name) > strlen(kDeviceType) && in findIioPowerMonitorNodes() 61 strncmp(ent->d_name, kDeviceType, strlen(kDeviceType)) == 0) { in findIioPowerMonitorNodes() 62 snprintf(filePath, MAX_FILE_PATH_LEN, "%s/%s", ent->d_name, "name"); in findIioPowerMonitorNodes() 75 snprintf(filePath, MAX_FILE_PATH_LEN, "%s/%s", kIioDirRoot, ent->d_name); in findIioPowerMonitorNodes()
|
/hardware/libhardware/modules/thermal/ |
D | thermal.c | 57 if (!strncmp(de->d_name, THERMAL_DIR, strlen(THERMAL_DIR))) { in get_temperatures() 58 snprintf(file_name, MAX_LENGTH, "%s/%s/temp", TEMPERATURE_DIR, de->d_name); in get_temperatures()
|
/hardware/qcom/audio/hal/audio_extn/ |
D | sndmonitor.c | 295 static int add_new_dev_event(char * d_name, int fd) in add_new_dev_event() argument 302 d->dev = strdup(d_name); in add_new_dev_event() 324 if (!strstr(in_file->d_name, "qc_")) in enum_dev_events() 328 events_dir, in_file->d_name); in enum_dev_events() 335 if (!add_new_dev_event(in_file->d_name, fd)) in enum_dev_events()
|
/hardware/google/pixel/usb/ |
D | UsbGadgetUtils.cpp | 39 if ((strstr(function->d_name, FUNCTION_NAME) == NULL)) in unlinkFunctions() 42 sprintf(filepath, "%s/%s", path, function->d_name); in unlinkFunctions()
|
/hardware/interfaces/cas/1.0/default/ |
D | FactoryLoader.h | 105 String8 pluginPath = dirPath + "/" + pEntry->d_name; in findFactoryForScheme() 142 String8 pluginPath = dirPath + "/" + pEntry->d_name; in enumeratePlugins()
|
/hardware/interfaces/cas/1.1/default/ |
D | FactoryLoader.h | 98 String8 pluginPath = dirPath + "/" + pEntry->d_name; in findFactoryForScheme() 133 String8 pluginPath = dirPath + "/" + pEntry->d_name; in enumeratePlugins()
|
/hardware/broadcom/libbt/src/ |
D | hardware.c | 468 if ((hw_strncmp(dp->d_name, p_chip_id_str, strlen(p_chip_id_str)) \ in hw_config_findpatch() 472 filenamelen = strlen(dp->d_name); in hw_config_findpatch() 475 &dp->d_name[filenamelen-FW_PATCHFILE_EXTENSION_LEN], \ in hw_config_findpatch() 481 fw_patchfile_path, dp->d_name); in hw_config_findpatch() 500 strcat(p_chip_id_str, dp->d_name); in hw_config_findpatch()
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | ConnectionDetector.cpp | 153 const std::string name(dp->d_name); in processExistingFiles()
|