Home
last modified time | relevance | path

Searched refs:filePath (Results 1 – 9 of 9) sorted by relevance

/device/google/cuttlefish/guest/hals/camera/
DEmulatedCameraHotplugThread.cpp171 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 …]
DEmulatedCameraHotplugThread.h54 int getCameraId(String8 filePath) const;
58 int readFile(String8 filePath) const;
/device/generic/goldfish/camera/
DEmulatedCameraHotplugThread.cpp174 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()
DEmulatedCameraHotplugThread.h57 int getCameraId(const String8& filePath) const;
61 int readFile(const String8& filePath) const;
/device/google/trout/hal/vehicle/2.0/
DPowerStateListener.cpp34 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/
DRailDataProvider.cpp51 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/
DRailDataProvider.cpp46 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/
DRailDataProvider.cpp51 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/
Dtest_urllib.py228 def constructLocalFileUrl(self, filePath): argument
229 return "file://%s" % urllib.pathname2url(os.path.abspath(filePath))