• Home
  • Raw
  • Download

Lines Matching refs:videoDevice

1396         if (device->videoDevice && device->videoDevice->getFd() == fd) {  in getDeviceByFdLocked()
1520 std::unique_ptr<TouchVideoDevice>& videoDevice = *it; in getEvents() local
1521 if (tryAddVideoDeviceLocked(*device, videoDevice)) { in getEvents()
1584 if (device->videoDevice && eventItem.data.fd == device->videoDevice->getFd()) { in getEvents()
1586 size_t numFrames = device->videoDevice->readAndQueueFrames(); in getEvents()
1589 device->videoDevice->getName().c_str()); in getEvents()
1594 device->videoDevice->getName().c_str()); in getEvents()
1595 unregisterVideoDeviceFromEpollLocked(*device->videoDevice); in getEvents()
1596 device->videoDevice = nullptr; in getEvents()
1599 device->videoDevice->getName().c_str()); in getEvents()
1722 if (device == nullptr || !device->videoDevice) { in getVideoFrames()
1725 return device->videoDevice->consumeFrames(); in getVideoFrames()
1794 if (device.videoDevice) { in registerDeviceForEpollLocked()
1795 registerVideoDeviceForEpollLocked(*device.videoDevice); in registerDeviceForEpollLocked()
1800 void EventHub::registerVideoDeviceForEpollLocked(const TouchVideoDevice& videoDevice) { in registerVideoDeviceForEpollLocked() argument
1801 status_t result = registerFdForEpoll(videoDevice.getFd()); in registerVideoDeviceForEpollLocked()
1803 ALOGE("Could not add video device %s to epoll", videoDevice.getName().c_str()); in registerVideoDeviceForEpollLocked()
1815 if (device.videoDevice) { in unregisterDeviceFromEpollLocked()
1816 unregisterVideoDeviceFromEpollLocked(*device.videoDevice); in unregisterDeviceFromEpollLocked()
1821 void EventHub::unregisterVideoDeviceFromEpollLocked(const TouchVideoDevice& videoDevice) { in unregisterVideoDeviceFromEpollLocked() argument
1822 if (videoDevice.hasValidFd()) { in unregisterVideoDeviceFromEpollLocked()
1823 status_t result = unregisterFdFromEpoll(videoDevice.getFd()); in unregisterVideoDeviceFromEpollLocked()
1826 videoDevice.getName().c_str()); in unregisterVideoDeviceFromEpollLocked()
2163 std::unique_ptr<TouchVideoDevice> videoDevice = TouchVideoDevice::create(devicePath); in openVideoDeviceLocked() local
2164 if (!videoDevice) { in openVideoDeviceLocked()
2170 if (tryAddVideoDeviceLocked(*device, videoDevice)) { in openVideoDeviceLocked()
2178 videoDevice->getName().c_str()); in openVideoDeviceLocked()
2179 mUnattachedVideoDevices.push_back(std::move(videoDevice)); in openVideoDeviceLocked()
2183 std::unique_ptr<TouchVideoDevice>& videoDevice) { in tryAddVideoDeviceLocked() argument
2184 if (videoDevice->getName() != device.identifier.name) { in tryAddVideoDeviceLocked()
2187 device.videoDevice = std::move(videoDevice); in tryAddVideoDeviceLocked()
2189 registerVideoDeviceForEpollLocked(*device.videoDevice); in tryAddVideoDeviceLocked()
2296 if (device->videoDevice && device->videoDevice->getPath() == devicePath) { in closeVideoDeviceByPathLocked()
2297 unregisterVideoDeviceFromEpollLocked(*device->videoDevice); in closeVideoDeviceByPathLocked()
2298 device->videoDevice = nullptr; in closeVideoDeviceByPathLocked()
2305 const std::unique_ptr<TouchVideoDevice>& videoDevice) { in closeVideoDeviceByPathLocked() argument
2306 return videoDevice->getPath() == devicePath; in closeVideoDeviceByPathLocked()
2329 if (device.videoDevice) { in closeDeviceLocked()
2331 mUnattachedVideoDevices.push_back(std::move(device.videoDevice)); in closeDeviceLocked()
2452 if (device->videoDevice) { in dump()
2453 dump += device->videoDevice->dump() + "\n"; in dump()
2460 for (const std::unique_ptr<TouchVideoDevice>& videoDevice : mUnattachedVideoDevices) { in dump() local
2461 dump += INDENT2 + videoDevice->dump() + "\n"; in dump()