Home | History | Annotate | Download | only in libhardware

Lines Matching defs:name

128  * Check if a HAL with given name and subname exists, if so return 0, otherwise
131 static int hw_module_exists(char *path, size_t path_len, const char *name,
135 HAL_LIBRARY_PATH3, name, subname);
140 HAL_LIBRARY_PATH2, name, subname);
145 HAL_LIBRARY_PATH1, name, subname);
158 char name[PATH_MAX] = {0};
163 snprintf(name, PATH_MAX, "%s.%s", class_id, inst);
165 strlcpy(name, class_id, PATH_MAX);
175 snprintf(prop_name, sizeof(prop_name), "ro.hardware.%s", name);
177 if (hw_module_exists(path, sizeof(path), name, prop) == 0) {
187 if (hw_module_exists(path, sizeof(path), name, prop) == 0) {
193 if (hw_module_exists(path, sizeof(path), name, "default") == 0) {