Home
last modified time | relevance | path

Searched refs:monitorFfs (Results 1 – 3 of 3) sorted by relevance

/hardware/google/pixel/usb/
DMonitorFfs.cpp116 MonitorFfs *monitorFfs = (MonitorFfs *)param; in startMonitorFd() local
123 for (int i = 0; i < static_cast<int>(monitorFfs->mEndpointList.size()); i++) { in startMonitorFd()
124 if (access(monitorFfs->mEndpointList.at(i).c_str(), R_OK)) { in startMonitorFd()
133 if (!!WriteStringToFile(monitorFfs->mGadgetName, PULLUP_PATH)) { in startMonitorFd()
134 lock_guard<mutex> lock(monitorFfs->mLock); in startMonitorFd()
135 monitorFfs->mCurrentUsbFunctionsApplied = true; in startMonitorFd()
136 monitorFfs->mCallback(monitorFfs->mCurrentUsbFunctionsApplied, monitorFfs->mPayload); in startMonitorFd()
140 monitorFfs->mCv.notify_all(); in startMonitorFd()
145 int nrEvents = epoll_wait(monitorFfs->mEpollFd, events, kEpollEvents, -1); in startMonitorFd()
155 if (events[i].data.fd == monitorFfs->mInotifyFd) { in startMonitorFd()
[all …]
DUsbGadgetUtils.cpp139 Status addGenericAndroidFunctions(MonitorFfs *monitorFfs, uint64_t functions, bool *ffsEnabled, in addGenericAndroidFunctions() argument
147 if (!monitorFfs->addInotifyFd("/dev/usb-ffs/mtp/")) in addGenericAndroidFunctions()
154 monitorFfs->addEndPoint("/dev/usb-ffs/mtp/ep1"); in addGenericAndroidFunctions()
155 monitorFfs->addEndPoint("/dev/usb-ffs/mtp/ep2"); in addGenericAndroidFunctions()
156 monitorFfs->addEndPoint("/dev/usb-ffs/mtp/ep3"); in addGenericAndroidFunctions()
163 if (!monitorFfs->addInotifyFd("/dev/usb-ffs/ptp/")) in addGenericAndroidFunctions()
170 monitorFfs->addEndPoint("/dev/usb-ffs/ptp/ep1"); in addGenericAndroidFunctions()
171 monitorFfs->addEndPoint("/dev/usb-ffs/ptp/ep2"); in addGenericAndroidFunctions()
172 monitorFfs->addEndPoint("/dev/usb-ffs/ptp/ep3"); in addGenericAndroidFunctions()
202 Status addAdb(MonitorFfs *monitorFfs, int *functionCount) { in addAdb() argument
[all …]
/hardware/google/pixel/usb/include/pixelusb/
DUsbGadgetCommon.h168 Status addAdb(MonitorFfs *monitorFfs, int *functionCount);
170 Status addGenericAndroidFunctions(MonitorFfs *monitorFfs, uint64_t functions,