/hardware/libhardware/ |
D | hardware.c | 76 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/ |
D | Storage.cpp | 58 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/ |
D | install | 13 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.2/vts/functional/ |
D | vendor_modules.cpp | 52 DrmHalVTSVendorModule* VendorModules::getModule(const string& path) { in getModule() argument 53 if (mOpenLibraries.find(path) == mOpenLibraries.end()) { in getModule() 54 auto library = std::make_unique<SharedLibrary>(String8(path.c_str())); in getModule() 56 ALOGE("failed to map shared library %s", path.c_str()); in getModule() 59 mOpenLibraries[path] = std::move(library); in getModule() 61 const unique_ptr<SharedLibrary>& library = mOpenLibraries[path]; in getModule() 65 "%s", path.c_str(), library->lastError()); in getModule()
|
/hardware/interfaces/drm/1.0/vts/functional/ |
D | vendor_modules.cpp | 52 DrmHalVTSVendorModule* VendorModules::getModule(const string& path) { in getModule() argument 53 if (mOpenLibraries.find(path) == mOpenLibraries.end()) { in getModule() 54 auto library = std::make_unique<SharedLibrary>(String8(path.c_str())); in getModule() 56 ALOGE("failed to map shared library %s", path.c_str()); in getModule() 59 mOpenLibraries[path] = std::move(library); in getModule() 61 const unique_ptr<SharedLibrary>& library = mOpenLibraries[path]; in getModule() 65 "%s", path.c_str(), library->lastError()); in getModule()
|
/hardware/google/pixel/health/ |
D | CycleCountBackupRestore.cpp | 92 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/ |
D | IMountService.h | 44 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/ |
D | PluginLoader.h | 50 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.0/default/ |
D | FactoryLoader.h | 61 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/interfaces/cas/1.1/default/ |
D | FactoryLoader.h | 59 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/libhardware/modules/input/evdev/ |
D | InputHub.cpp | 71 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 …]
|
D | InputHub.h | 135 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/ |
D | SysfsCollector.cpp | 62 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/ |
D | TestHelpers.cpp | 35 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/display/msm8909w_3100/sdm/libs/hwc/ |
D | cpuhint.cpp | 42 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/ |
D | cpuhint.cpp | 42 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/ |
D | cpuhint.cpp | 42 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/ |
D | cpuhint.cpp | 42 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/sdm845/display/sdm/libs/hwc2/ |
D | cpuhint.cpp | 42 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/ |
D | sndmonitor.c | 160 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/ |
D | types.hal | 90 * 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/ |
D | ese_config.cpp | 37 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/google/pixel/thermal/ |
D | thermal-helper.cpp | 153 std::string path = android::base::StringPrintf("%s/%s/%s", kThermalSensorsRoot.data(), in parseThermalPathMap() local 156 if (!android::base::ReadFileToString(path, &name)) { in parseThermalPathMap() 157 PLOG(ERROR) << "Failed to read from " << path; in parseThermalPathMap() 205 std::string path = in ThermalHelper() local 207 if (!path.empty()) in ThermalHelper() 208 return path; in ThermalHelper() 332 std::string path; in readTemperatureThreshold() local 397 std::string path = android::base::StringPrintf( in initializeSensorMap() local 399 if (!thermal_sensors_.addThermalFile(sensor_name, path)) { in initializeSensorMap() 416 std::string path = android::base::StringPrintf( in initializeCoolingDevices() local [all …]
|
/hardware/google/pixel/pixelstats/include/pixelstats/ |
D | SysfsCollector.h | 52 bool ReadFileToInt(const std::string &path, int *val); 53 bool ReadFileToInt(const char *path, int *val); 64 void reportSlowIoFromFile(const char *path, const SlowIo::IoOperation &operation_s);
|
/hardware/google/pixel/thermal/utils/ |
D | thermal_watcher.cpp | 43 for (const auto &path : cdev_to_watch) { in registerFilesToWatch() local 44 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), flags))); in registerFilesToWatch() 46 PLOG(ERROR) << "failed to watch: " << path; in registerFilesToWatch() 49 watch_to_file_path_map_.emplace(fd.get(), path); in registerFilesToWatch()
|