Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 231) sorted by relevance

12345678910

/hardware/libhardware/
Dhardware.c76 const char *path, in load() argument
94 strncmp(path, HAL_LIBRARY_PATH1, strlen(HAL_LIBRARY_PATH1)) == 0) { in load()
98 handle = dlopen(path, RTLD_NOW); in load()
101 handle = dlopen(path, RTLD_NOW); in load()
103 handle = android_load_sphal_library(path, RTLD_NOW); in load()
108 ALOGE("load: module=%s\n%s", path, err_str?err_str:"unknown"); in load()
143 id, path, hmi, handle); in load()
154 static bool path_in_path(const char *path, const char *in_path) { in path_in_path() argument
156 if (realpath(path, real_path) == NULL) return false; in path_in_path()
174 static int hw_module_exists(char *path, size_t path_len, const char *name, in hw_module_exists() argument
[all …]
/hardware/interfaces/health/storage/1.0/default/
DStorage.cpp58 std::string path = getGarbageCollectPath(); in garbageCollect() local
60 if (path.empty()) { in garbageCollect()
65 LOG(INFO) << "Start Dev GC on " << path; in garbageCollect()
68 if (!ReadFileToString(path, &require)) { in garbageCollect()
69 PLOG(WARNING) << "Reading manual_gc failed in " << path; in garbageCollect()
78 LOG(DEBUG) << "Trigger Dev GC on " << path; in garbageCollect()
79 if (!WriteStringToFile("1", path)) { in garbageCollect()
80 PLOG(WARNING) << "Start Dev GC failed on " << path; in garbageCollect()
91 LOG(INFO) << "Stop Dev GC on " << path; in garbageCollect()
92 if (!WriteStringToFile("0", path)) { in garbageCollect()
[all …]
/hardware/google/av/hooks/
Dinstall13 import os, os.path
14 TOP = os.path.realpath(".")
15 HOOKS = os.path.realpath(".git/hooks")
16 src = os.path.join(TOP, "hooks", "install")
21 if os.path.isfile(tgt) and os.access(tgt, os.X_OK):
22 if os.path.realpath(tgt) != src:
25 if os.path.lexists(tgt):
27 …os.symlink(os.path.relpath(os.path.realpath("hooks/install"), os.path.realpath(".git/hooks/")), tg…
/hardware/interfaces/drm/1.0/vts/functional/
Dvendor_modules.cpp53 DrmHalVTSVendorModule* VendorModules::getModule(const string& path) { in getModule() argument
54 if (mOpenLibraries.find(path) == mOpenLibraries.end()) { in getModule()
55 auto library = std::make_unique<SharedLibrary>(String8(path.c_str())); in getModule()
57 ALOGE("failed to map shared library %s", path.c_str()); in getModule()
60 mOpenLibraries[path] = std::move(library); in getModule()
62 const unique_ptr<SharedLibrary>& library = mOpenLibraries[path]; in getModule()
66 "%s", path.c_str(), library->lastError()); in getModule()
75 for (const auto &path : mPathList) { in getModuleByName() local
76 auto module = getModule(path); in getModuleByName()
/hardware/google/pixel/health/
DCycleCountBackupRestore.cpp92 void CycleCountBackupRestore::Read(const std::string &path, int *bins) { in Read() argument
95 if (!android::base::ReadFileToString(path, &buffer)) { in Read()
96 LOG(ERROR) << "Failed to read " << path; in Read()
103 LOG(ERROR) << "data format \"" << buffer << "\" is wrong in " << path; in Read()
105 LOG(INFO) << "Read: \"" << buffer << "\" from " << path; in Read()
112 void CycleCountBackupRestore::Write(int *bins, const std::string &path) { in Write() argument
122 LOG(INFO) << "Write: \"" << str_data << "\" to " << path; in Write()
123 if (!android::base::WriteStringToFile(str_data, path)) in Write()
124 LOG(ERROR) << "Write to " << path << " error: " << strerror(errno); in Write()
/hardware/libhardware_legacy/include/hardware_legacy/
DIMountService.h44 virtual int shareVolume(String16 path, String16 method) = 0;
45 virtual int unshareVolume(String16 path, String16 method) = 0;
46 virtual bool getVolumeShared(String16 path, String16 method) = 0;
47 virtual int mountVolume(String16 path) = 0;
48 virtual int unmountVolume(String16 path) = 0;
49 virtual int formatVolume(String16 path) = 0;
/hardware/interfaces/drm/1.0/default/include/
DPluginLoader.h50 String8 path = pluginDir + "/" + pEntry->d_name; in PluginLoader() local
51 T *plugin = loadOne(path, entry); in PluginLoader()
74 T* loadOne(const char *path, const char *entry) { in loadOne() argument
75 sp<SharedLibrary> library = new SharedLibrary(String8(path)); in loadOne()
77 ALOGE("Failed to open plugin library %s: %s", path, in loadOne()
84 ALOGV("Found plugin factory entry %s in %s", entry, path); in loadOne()
90 entry, path, library->lastError()); in loadOne()
/hardware/interfaces/cas/1.1/default/
DFactoryLoader.h59 bool loadFactoryForSchemeFromPath(const String8& path, int32_t CA_system_id,
62 bool queryPluginsFromPath(const String8& path, vector<HidlCasPluginDescriptor>* results);
64 bool openFactory(const String8& path);
142 bool FactoryLoader<T>::loadFactoryForSchemeFromPath(const String8& path, int32_t CA_system_id, in loadFactoryForSchemeFromPath() argument
146 if (!openFactory(path) || !mFactory->isSystemIdSupported(CA_system_id)) { in loadFactoryForSchemeFromPath()
161 bool FactoryLoader<T>::queryPluginsFromPath(const String8& path, in queryPluginsFromPath() argument
166 if (!openFactory(path) || mFactory->queryPlugins(&descriptors) != OK) { in queryPluginsFromPath()
179 bool FactoryLoader<T>::openFactory(const String8& path) { in openFactory() argument
181 ssize_t index = mLibraryPathToOpenLibraryMap.indexOfKey(path); in openFactory()
185 index = mLibraryPathToOpenLibraryMap.add(path, NULL); in openFactory()
[all …]
/hardware/interfaces/cas/1.2/default/
DFactoryLoader.h59 bool loadFactoryForSchemeFromPath(const String8& path, int32_t CA_system_id,
62 bool queryPluginsFromPath(const String8& path, vector<HidlCasPluginDescriptor>* results);
64 bool openFactory(const String8& path);
142 bool FactoryLoader<T>::loadFactoryForSchemeFromPath(const String8& path, int32_t CA_system_id, in loadFactoryForSchemeFromPath() argument
146 if (!openFactory(path) || !mFactory->isSystemIdSupported(CA_system_id)) { in loadFactoryForSchemeFromPath()
161 bool FactoryLoader<T>::queryPluginsFromPath(const String8& path, in queryPluginsFromPath() argument
166 if (!openFactory(path) || mFactory->queryPlugins(&descriptors) != OK) { in queryPluginsFromPath()
179 bool FactoryLoader<T>::openFactory(const String8& path) { in openFactory() argument
181 ssize_t index = mLibraryPathToOpenLibraryMap.indexOfKey(path); in openFactory()
185 index = mLibraryPathToOpenLibraryMap.add(path, NULL); in openFactory()
[all …]
/hardware/interfaces/cas/1.0/default/
DFactoryLoader.h61 const String8 &path,
67 const String8 &path,
70 bool openFactory(const String8 &path);
152 const String8 &path, int32_t CA_system_id, in loadFactoryForSchemeFromPath() argument
156 if (!openFactory(path) || !mFactory->isSystemIdSupported(CA_system_id)) { in loadFactoryForSchemeFromPath()
172 const String8 &path, vector<HidlCasPluginDescriptor>* results) { in queryPluginsFromPath() argument
176 if (!openFactory(path) || mFactory->queryPlugins(&descriptors) != OK) { in queryPluginsFromPath()
190 bool FactoryLoader<T>::openFactory(const String8 &path) { in openFactory() argument
192 ssize_t index = mLibraryPathToOpenLibraryMap.indexOfKey(path); in openFactory()
196 index = mLibraryPathToOpenLibraryMap.add(path, NULL); in openFactory()
[all …]
/hardware/libhardware/modules/input/evdev/
DInputHub.cpp71 static EvdevDeviceNode* openDeviceNode(const std::string& path);
110 EvdevDeviceNode(const std::string& path, int fd) : in EvdevDeviceNode() argument
111 mFd(fd), mPath(path) {} in EvdevDeviceNode()
142 EvdevDeviceNode* EvdevDeviceNode::openDeviceNode(const std::string& path) { in openDeviceNode() argument
143 auto fd = TEMP_FAILURE_RETRY(::open(path.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC)); in openDeviceNode()
145 ALOGE("could not open evdev device %s. err=%d", path.c_str(), errno); in openDeviceNode()
160 auto node = new EvdevDeviceNode(path, fd); in openDeviceNode()
164 path.c_str(), ret); in openDeviceNode()
484 status_t InputHub::registerDevicePath(const std::string& path) { in registerDevicePath() argument
485 ALOGV("registering device path %s", path.c_str()); in registerDevicePath()
[all …]
DInputHub.h135 virtual status_t registerDevicePath(const std::string& path) = 0;
136 virtual status_t unregisterDevicePath(const std::string& path) = 0;
161 virtual status_t registerDevicePath(const std::string& path) override;
162 virtual status_t unregisterDevicePath(const std::string& path) override;
171 status_t scanDir(const std::string& path);
172 std::shared_ptr<InputDeviceNode> openNode(const std::string& path);
175 std::shared_ptr<InputDeviceNode> findNodeByPath(const std::string& path);
/hardware/google/pixel/pixelstats/
DSysfsCollector.cpp62 bool SysfsCollector::ReadFileToInt(const std::string &path, int *val) { in ReadFileToInt() argument
63 return ReadFileToInt(path.c_str(), val); in ReadFileToInt()
66 bool SysfsCollector::ReadFileToInt(const char *const path, int *val) { in ReadFileToInt() argument
69 if (!ReadFileToString(path, &file_contents)) { in ReadFileToInt()
70 ALOGE("Unable to read %s - %s", path, strerror(errno)); in ReadFileToInt()
73 ALOGE("Unable to convert %s to int - %s", path, strerror(errno)); in ReadFileToInt()
155 void SysfsCollector::reportSlowIoFromFile(const char *path, in reportSlowIoFromFile() argument
158 if (path == nullptr || strlen(path) == 0) { in reportSlowIoFromFile()
162 if (!ReadFileToString(path, &file_contents)) { in reportSlowIoFromFile()
163 ALOGE("Unable to read slowio %s - %s", path, strerror(errno)); in reportSlowIoFromFile()
[all …]
/hardware/libhardware/tests/input/evdev/
DTestHelpers.cpp35 TempFile::TempFile(const char* path) { in TempFile() argument
36 bool needTrailingSlash = path[strlen(path) - 1] != '/'; in TempFile()
38 size_t nameLen = strlen(path) + 6 + 1; in TempFile()
42 strcpy(mName, path); in TempFile()
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dcpuhint.cpp42 char path[PROPERTY_VALUE_MAX]; in Init() local
43 if (debug_handler->GetProperty("ro.vendor.extension_library", path) != kErrorNone) { in Init()
58 if (vendor_ext_lib_.Open(path)) { in Init()
67 DLOGW("Failed to open %s : %s", path, vendor_ext_lib_.Error()); in Init()
/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dcpuhint.cpp42 char path[PROPERTY_VALUE_MAX]; in Init() local
43 if (debug_handler->GetProperty("ro.vendor.extension_library", path) != kErrorNone) { in Init()
58 if (vendor_ext_lib_.Open(path)) { in Init()
67 DLOGW("Failed to open %s : %s", path, vendor_ext_lib_.Error()); in Init()
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/
Dcpuhint.cpp42 char path[PROPERTY_VALUE_MAX]; in Init() local
43 if (debug_handler->GetProperty("ro.vendor.extension_library", path) != kErrorNone) { in Init()
58 if (vendor_ext_lib_.Open(path)) { in Init()
67 DLOGW("Failed to open %s : %s", path, vendor_ext_lib_.Error()); in Init()
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dcpuhint.cpp42 char path[PROPERTY_VALUE_MAX]; in Init() local
43 if (debug_handler->GetProperty("ro.vendor.extension_library", path) != kErrorNone) { in Init()
58 if (vendor_ext_lib_.Open(path)) { in Init()
67 DLOGW("Failed to open %s : %s", path, vendor_ext_lib_.Error()); in Init()
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dcpuhint.cpp42 char path[PROPERTY_VALUE_MAX]; in Init() local
43 if (debug_handler->GetProperty("ro.vendor.extension_library", path) != kErrorNone) { in Init()
58 if (vendor_ext_lib_.Open(path)) { in Init()
67 DLOGW("Failed to open %s : %s", path, vendor_ext_lib_.Error()); in Init()
/hardware/qcom/display/msm8909/sdm/libs/hwc/
Dcpuhint.cpp42 char path[PROPERTY_VALUE_MAX]; in Init() local
43 if (debug_handler->GetProperty("ro.vendor.extension_library", path) != kErrorNone) { in Init()
58 if (vendor_ext_lib_.Open(path)) { in Init()
67 DLOGW("Failed to open %s : %s", path, vendor_ext_lib_.Error()); in Init()
/hardware/qcom/audio/hal/audio_extn/
Dsndmonitor.c160 char path[128] = {0}; in enum_sndcards() local
203 snprintf(path, sizeof(path), "/proc/asound/card%s/state", ptr); in enum_sndcards()
204 ALOGV("Opening sound card state : %s", path); in enum_sndcards()
206 fd = open(path, O_RDONLY); in enum_sndcards()
208 ALOGE("Open %s failed : %s", path, strerror(errno)); in enum_sndcards()
222 snprintf(path, sizeof(path), "/proc/asound/card%s/cpe0_state", ptr); in enum_sndcards()
224 if (access(path, R_OK) < 0) { in enum_sndcards()
225 ALOGW("access %s failed w/ err %s", path, strerror(errno)); in enum_sndcards()
229 ALOGV("Open cpe state card state %s", path); in enum_sndcards()
231 if ((fd = open(path, O_RDONLY)) < 0) { in enum_sndcards()
[all …]
/hardware/interfaces/health/1.0/
Dtypes.hal90 * batteryStatusPath - file path to read battery charging status.
97 * batteryHealthPath - file path to read battery health.
103 * batteryPresentPath - file path to read battery present status.
110 * batteryCapacityPath - file path to read remaining battery capacity.
116 * batteryVoltagePath - file path to read battery voltage.
122 * batteryTemperaturePath - file path to read battery temperature in tenths
128 * batteryTechnologyPath - file path to read battery technology.
134 * batteryCurrentNowPath - file path to read battery instantaneous current.
140 * batteryCurrentAvgPath - file path to read battery average current.
146 * batteryChargeCounterPath - file path to read battery accumulated charge.
[all …]
/hardware/nxp/secure_element/libese-spi/p73/utils/
Dese_config.cpp37 for (string path : search_path) { in findConfigPath() local
38 path.append(file_name); in findConfigPath()
40 if (stat(path.c_str(), &file_stat) != 0) continue; in findConfigPath()
41 if (S_ISREG(file_stat.st_mode)) return path; in findConfigPath()
/hardware/st/secure_element/ese-spi-driver/utils-lib/
Dese_config.cc39 for (string path : search_path) { in findConfigPath() local
40 path.append(file_name); in findConfigPath()
42 if (stat(path.c_str(), &file_stat) != 0) continue; in findConfigPath()
43 if (S_ISREG(file_stat.st_mode)) return path; in findConfigPath()
/hardware/interfaces/compatibility_matrices/build/
Dvintf_compatibility_matrix.go98 func (g *vintfCompatibilityMatrixRule) timestampFilePath(ctx android.ModuleContext, path android.Pa…
99 return android.GenPathWithExt(ctx, "vintf-xmllint", path, "ts")
102 func (g *vintfCompatibilityMatrixRule) generateValidateBuildAction(ctx android.ModuleContext, path
103 timestamp := g.timestampFilePath(ctx, path)
107 Input: path,
187 for _, path := range g.additionalDependencies {
188 fmt.Fprintln(w, "LOCAL_ADDITIONAL_DEPENDENCIES +=", path.String())

12345678910