Home
last modified time | relevance | path

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

/device/google/zuma/usb/usb/
DUsbDataSessionMonitor.cpp68 static int addEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in addEpollFile() argument
71 unique_fd fd(open(filePath.c_str(), O_RDONLY)); in addEpollFile()
74 ALOGI("Cannot open %s", filePath.c_str()); in addEpollFile()
87 ALOGI("epoll registered %s", filePath.c_str()); in addEpollFile()
91 static void removeEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in removeEpollFile() argument
95 ALOGI("epoll unregistered %s", filePath.c_str()); in removeEpollFile()
141 mDeviceState.filePath = deviceStatePath; in UsbDataSessionMonitor()
143 addEpollFile(epollFd.get(), mDeviceState.filePath, mDeviceState.fd); in UsbDataSessionMonitor()
145 mHost1State.filePath = host1StatePath; in UsbDataSessionMonitor()
147 addEpollFile(epollFd.get(), mHost1State.filePath, mHost1State.fd); in UsbDataSessionMonitor()
[all …]
DUsbDataSessionMonitor.h68 std::string filePath; member
/device/google/zumapro/usb/usb/
DUsbDataSessionMonitor.cpp68 static int addEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in addEpollFile() argument
71 unique_fd fd(open(filePath.c_str(), O_RDONLY)); in addEpollFile()
74 ALOGI("Cannot open %s", filePath.c_str()); in addEpollFile()
87 ALOGI("epoll registered %s", filePath.c_str()); in addEpollFile()
91 static void removeEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in removeEpollFile() argument
95 ALOGI("epoll unregistered %s", filePath.c_str()); in removeEpollFile()
141 mDeviceState.filePath = deviceStatePath; in UsbDataSessionMonitor()
143 addEpollFile(epollFd.get(), mDeviceState.filePath, mDeviceState.fd); in UsbDataSessionMonitor()
145 mHost1State.filePath = host1StatePath; in UsbDataSessionMonitor()
147 addEpollFile(epollFd.get(), mHost1State.filePath, mHost1State.fd); in UsbDataSessionMonitor()
[all …]
DUsbDataSessionMonitor.h68 std::string filePath; member
/device/google/gs201/usb/usb/
DUsbDataSessionMonitor.cpp68 static int addEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in addEpollFile() argument
71 unique_fd fd(open(filePath.c_str(), O_RDONLY)); in addEpollFile()
74 ALOGI("Cannot open %s", filePath.c_str()); in addEpollFile()
87 ALOGI("epoll registered %s", filePath.c_str()); in addEpollFile()
91 static void removeEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in removeEpollFile() argument
95 ALOGI("epoll unregistered %s", filePath.c_str()); in removeEpollFile()
141 mDeviceState.filePath = deviceStatePath; in UsbDataSessionMonitor()
143 addEpollFile(epollFd.get(), mDeviceState.filePath, mDeviceState.fd); in UsbDataSessionMonitor()
145 mHost1State.filePath = host1StatePath; in UsbDataSessionMonitor()
147 addEpollFile(epollFd.get(), mHost1State.filePath, mHost1State.fd); in UsbDataSessionMonitor()
[all …]
DUsbDataSessionMonitor.h68 std::string filePath; member
/device/google/gs101/usb/usb/
DUsbDataSessionMonitor.cpp68 static int addEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in addEpollFile() argument
71 unique_fd fd(open(filePath.c_str(), O_RDONLY)); in addEpollFile()
74 ALOGI("Cannot open %s", filePath.c_str()); in addEpollFile()
87 ALOGI("epoll registered %s", filePath.c_str()); in addEpollFile()
91 static void removeEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in removeEpollFile() argument
95 ALOGI("epoll unregistered %s", filePath.c_str()); in removeEpollFile()
141 mDeviceState.filePath = deviceStatePath; in UsbDataSessionMonitor()
143 addEpollFile(epollFd.get(), mDeviceState.filePath, mDeviceState.fd); in UsbDataSessionMonitor()
145 mHost1State.filePath = host1StatePath; in UsbDataSessionMonitor()
147 addEpollFile(epollFd.get(), mHost1State.filePath, mHost1State.fd); in UsbDataSessionMonitor()
[all …]
DUsbDataSessionMonitor.h68 std::string filePath; member
/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/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/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/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/cuttlefish/host/libs/location/
DKmlParser.cpp159 bool KmlParser::parseFile(const char* filePath, GpsFixArray* fixes, in parseFile() argument
165 xmlDocPtr doc = xmlReadFile(filePath, nullptr, 0); in parseFile()
DGpxParser.cpp203 bool GpxParser::parseFile(const char *filePath, GpsFixArray *fixes, in parseFile() argument
205 xmlDocPtr doc = xmlReadFile(filePath, nullptr, 0); in parseFile()
DGpxParser.h29 static bool parseFile(const char *filePath, GpsFixArray *fixes,
DKmlParser.h29 static bool parseFile(const char* filePath, GpsFixArray* fixes,