/device/google/cuttlefish/guest/hals/camera/ |
D | EmulatedCameraHotplugThread.cpp | 171 String8 filePath = getFilePath(cameraId); in threadLoop() local 177 int newStatus = readFile(filePath); in threadLoop() 211 String8 filePath = getFilePath(cameraId); in createFileIfNotExists() local 214 TEMP_FAILURE_RETRY(open(filePath.string(), O_WRONLY | O_CREAT | O_TRUNC, in createFileIfNotExists() 218 filePath.string(), strerror(errno), errno); in createFileIfNotExists() 225 __FUNCTION__, filePath.string(), strerror(errno), errno); in createFileIfNotExists() 233 int EmulatedCameraHotplugThread::getCameraId(String8 filePath) const { in getCameraId() 240 if (camPath == filePath) { in getCameraId() 314 int EmulatedCameraHotplugThread::readFile(String8 filePath) const { in readFile() 315 int fd = TEMP_FAILURE_RETRY(open(filePath.string(), O_RDONLY, /*mode*/ 0)); in readFile() [all …]
|
D | EmulatedCameraHotplugThread.h | 54 int getCameraId(String8 filePath) const; 58 int readFile(String8 filePath) const;
|
/device/generic/goldfish/camera/ |
D | EmulatedCameraHotplugThread.cpp | 174 String8 filePath = getFilePath(cameraId); in threadLoop() local 180 int newStatus = readFile(filePath); in threadLoop() 215 int EmulatedCameraHotplugThread::getCameraId(const String8& filePath) const { in getCameraId() 219 if (camPath == filePath) { in getCameraId() 300 int EmulatedCameraHotplugThread::readFile(const String8& filePath) const { in readFile() 303 open(filePath.string(), O_RDONLY, /*mode*/0)); in readFile() 306 __FUNCTION__, filePath.string(), strerror(errno), errno); in readFile() 319 __FUNCTION__, filePath.string(), length, buffer[0]); in readFile()
|
D | EmulatedCameraHotplugThread.h | 57 int getCameraId(const String8& filePath) const; 61 int readFile(const String8& filePath) const;
|
/device/google/trout/hal/vehicle/2.0/ |
D | PowerStateListener.cpp | 34 static bool ForwardSocketToFile(int sockfd, const std::string& filePath) { in ForwardSocketToFile() argument 41 auto tempFilePath = filePath + ".XXXXXX"; in ForwardSocketToFile() 63 LOG(INFO) << "move " << tempFilePath << " to " << filePath; in ForwardSocketToFile() 64 rename(tempFilePath.c_str(), filePath.c_str()); in ForwardSocketToFile()
|
/device/google/coral/powerstats/ |
D | RailDataProvider.cpp | 51 char filePath[MAX_FILE_PATH_LEN]; in findIioPowerMonitorNodes() local 63 snprintf(filePath, MAX_FILE_PATH_LEN, "%s/%s", ent->d_name, "name"); in findIioPowerMonitorNodes() 64 fd = openat(dirfd(iioDir), filePath, O_RDONLY); in findIioPowerMonitorNodes() 66 ALOGW("Failed to open directory: %s, error: %d", filePath, errno); in findIioPowerMonitorNodes() 71 filePath, fd); in findIioPowerMonitorNodes() 77 snprintf(filePath, MAX_FILE_PATH_LEN, "%s/%s", kIioDirRoot, ent->d_name); in findIioPowerMonitorNodes() 78 mOdpm.devicePaths.push_back(filePath); in findIioPowerMonitorNodes()
|
/device/google/redbull/powerstats/ |
D | RailDataProvider.cpp | 46 char filePath[MAX_FILE_PATH_LEN]; in findIioPowerMonitorNodes() local 57 snprintf(filePath, MAX_FILE_PATH_LEN, "%s/%s", ent->d_name, "name"); in findIioPowerMonitorNodes() 58 fd = openat(dirfd(iioDir), filePath, O_RDONLY); in findIioPowerMonitorNodes() 60 ALOGW("Failed to open directory: %s, error: %d", filePath, errno); in findIioPowerMonitorNodes() 65 filePath, fd); in findIioPowerMonitorNodes() 70 snprintf(filePath, MAX_FILE_PATH_LEN, "%s/%s", kIioDirRoot, ent->d_name); in findIioPowerMonitorNodes() 71 mOdpm.devicePaths.push_back(filePath); in findIioPowerMonitorNodes()
|
/device/google/sunfish/powerstats/ |
D | RailDataProvider.cpp | 51 char filePath[MAX_FILE_PATH_LEN]; in findIioPowerMonitorNodes() local 63 snprintf(filePath, MAX_FILE_PATH_LEN, "%s/%s", ent->d_name, "name"); in findIioPowerMonitorNodes() 64 fd = openat(dirfd(iioDir), filePath, O_RDONLY); in findIioPowerMonitorNodes() 66 ALOGW("Failed to open directory: %s, error: %d", filePath, errno); in findIioPowerMonitorNodes() 71 filePath, fd); in findIioPowerMonitorNodes() 77 snprintf(filePath, MAX_FILE_PATH_LEN, "%s/%s", kIioDirRoot, ent->d_name); in findIioPowerMonitorNodes() 78 mOdpm.devicePaths.push_back(filePath); in findIioPowerMonitorNodes()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_urllib.py | 228 def constructLocalFileUrl(self, filePath): argument 229 return "file://%s" % urllib.pathname2url(os.path.abspath(filePath))
|