Home | History | Annotate | Download | only in libhardware

Lines Matching defs:path

30 /** Base path of the hal modules */
69 const char *path,
81 handle = dlopen(path, RTLD_NOW);
84 ALOGE("load: module=%s\n%s", path, err_str?err_str:"unknown");
118 ALOGV("loaded HAL id=%s path=%s hmi=%p handle=%p",
119 id, path, *pHmi, handle);
129 * otherwise return negative. On success path will contain the path to the HAL.
131 static int hw_module_exists(char *path, size_t path_len, const char *name,
134 snprintf(path, path_len, "%s/%s.%s.so",
136 if (access(path, R_OK) == 0)
139 snprintf(path, path_len, "%s/%s.%s.so",
141 if (access(path, R_OK) == 0)
144 snprintf(path, path_len, "%s/%s.%s.so",
146 if (access(path, R_OK) == 0)
157 char path[PATH_MAX] = {0};
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) {
202 return load(class_id, path, module);