• Home
  • Raw
  • Download

Lines Matching refs:videoDevice

805         if (device->videoDevice && device->videoDevice->getFd() == fd) {  in getDeviceByFdLocked()
924 if (device->videoDevice && eventItem.data.fd == device->videoDevice->getFd()) { in getEvents()
926 size_t numFrames = device->videoDevice->readAndQueueFrames(); in getEvents()
929 device->videoDevice->getName().c_str()); in getEvents()
934 device->videoDevice->getName().c_str()); in getEvents()
935 unregisterVideoDeviceFromEpollLocked(*device->videoDevice); in getEvents()
936 device->videoDevice = nullptr; in getEvents()
939 eventItem.events, device->videoDevice->getName().c_str()); in getEvents()
1063 if (!device || !device->videoDevice) { in getVideoFrames()
1066 return device->videoDevice->consumeFrames(); in getVideoFrames()
1152 if (device->videoDevice) { in registerDeviceForEpollLocked()
1153 registerVideoDeviceForEpollLocked(*device->videoDevice); in registerDeviceForEpollLocked()
1158 void EventHub::registerVideoDeviceForEpollLocked(const TouchVideoDevice& videoDevice) { in registerVideoDeviceForEpollLocked() argument
1159 status_t result = registerFdForEpoll(videoDevice.getFd()); in registerVideoDeviceForEpollLocked()
1161 ALOGE("Could not add video device %s to epoll", videoDevice.getName().c_str()); in registerVideoDeviceForEpollLocked()
1173 if (device->videoDevice) { in unregisterDeviceFromEpollLocked()
1174 unregisterVideoDeviceFromEpollLocked(*device->videoDevice); in unregisterDeviceFromEpollLocked()
1179 void EventHub::unregisterVideoDeviceFromEpollLocked(const TouchVideoDevice& videoDevice) { in unregisterVideoDeviceFromEpollLocked() argument
1180 if (videoDevice.hasValidFd()) { in unregisterVideoDeviceFromEpollLocked()
1181 status_t result = unregisterFdFromEpoll(videoDevice.getFd()); in unregisterVideoDeviceFromEpollLocked()
1184 videoDevice.getName().c_str()); in unregisterVideoDeviceFromEpollLocked()
1448 for (std::unique_ptr<TouchVideoDevice>& videoDevice : mUnattachedVideoDevices) { in openDeviceLocked()
1449 if (device->identifier.name == videoDevice->getName()) { in openDeviceLocked()
1450 device->videoDevice = std::move(videoDevice); in openDeviceLocked()
1456 [](const std::unique_ptr<TouchVideoDevice>& videoDevice){ in openDeviceLocked() argument
1457 return videoDevice == nullptr; }), mUnattachedVideoDevices.end()); in openDeviceLocked()
1515 std::unique_ptr<TouchVideoDevice> videoDevice = TouchVideoDevice::create(devicePath); in openVideoDeviceLocked() local
1516 if (!videoDevice) { in openVideoDeviceLocked()
1523 if (videoDevice->getName() == device->identifier.name) { in openVideoDeviceLocked()
1524 device->videoDevice = std::move(videoDevice); in openVideoDeviceLocked()
1526 registerVideoDeviceForEpollLocked(*device->videoDevice); in openVideoDeviceLocked()
1535 videoDevice->getName().c_str()); in openVideoDeviceLocked()
1536 mUnattachedVideoDevices.push_back(std::move(videoDevice)); in openVideoDeviceLocked()
1739 if (device->videoDevice && device->videoDevice->getPath() == devicePath) { in closeVideoDeviceByPathLocked()
1740 unregisterVideoDeviceFromEpollLocked(*device->videoDevice); in closeVideoDeviceByPathLocked()
1741 device->videoDevice = nullptr; in closeVideoDeviceByPathLocked()
1747 const std::unique_ptr<TouchVideoDevice>& videoDevice) { in closeVideoDeviceByPathLocked() argument
1748 return videoDevice->getPath() == devicePath; }), mUnattachedVideoDevices.end()); in closeVideoDeviceByPathLocked()
1770 if (device->videoDevice) { in closeDeviceLocked()
1772 mUnattachedVideoDevices.push_back(std::move(device->videoDevice)); in closeDeviceLocked()
1954 if (device->videoDevice) { in dump()
1955 dump += device->videoDevice->dump() + "\n"; in dump()
1962 for (const std::unique_ptr<TouchVideoDevice>& videoDevice : mUnattachedVideoDevices) { in dump() local
1963 dump += INDENT2 + videoDevice->dump() + "\n"; in dump()