Lines Matching refs:videoDevice

815         if (device->videoDevice && device->videoDevice->getFd() == fd) {  in getDeviceByFdLocked()
933 if (device->videoDevice && eventItem.data.fd == device->videoDevice->getFd()) { in getEvents()
935 size_t numFrames = device->videoDevice->readAndQueueFrames(); in getEvents()
938 device->videoDevice->getName().c_str()); in getEvents()
943 device->videoDevice->getName().c_str()); in getEvents()
944 unregisterVideoDeviceFromEpollLocked(*device->videoDevice); in getEvents()
945 device->videoDevice = nullptr; in getEvents()
948 device->videoDevice->getName().c_str()); in getEvents()
1072 if (!device || !device->videoDevice) { in getVideoFrames()
1075 return device->videoDevice->consumeFrames(); in getVideoFrames()
1161 if (device->videoDevice) { in registerDeviceForEpollLocked()
1162 registerVideoDeviceForEpollLocked(*device->videoDevice); in registerDeviceForEpollLocked()
1167 void EventHub::registerVideoDeviceForEpollLocked(const TouchVideoDevice& videoDevice) { in registerVideoDeviceForEpollLocked() argument
1168 status_t result = registerFdForEpoll(videoDevice.getFd()); in registerVideoDeviceForEpollLocked()
1170 ALOGE("Could not add video device %s to epoll", videoDevice.getName().c_str()); in registerVideoDeviceForEpollLocked()
1182 if (device->videoDevice) { in unregisterDeviceFromEpollLocked()
1183 unregisterVideoDeviceFromEpollLocked(*device->videoDevice); in unregisterDeviceFromEpollLocked()
1188 void EventHub::unregisterVideoDeviceFromEpollLocked(const TouchVideoDevice& videoDevice) { in unregisterVideoDeviceFromEpollLocked() argument
1189 if (videoDevice.hasValidFd()) { in unregisterVideoDeviceFromEpollLocked()
1190 status_t result = unregisterFdFromEpoll(videoDevice.getFd()); in unregisterVideoDeviceFromEpollLocked()
1193 videoDevice.getName().c_str()); in unregisterVideoDeviceFromEpollLocked()
1453 for (std::unique_ptr<TouchVideoDevice>& videoDevice : mUnattachedVideoDevices) { in openDeviceLocked()
1454 if (device->identifier.name == videoDevice->getName()) { in openDeviceLocked()
1455 device->videoDevice = std::move(videoDevice); in openDeviceLocked()
1461 [](const std::unique_ptr<TouchVideoDevice>& videoDevice) { in openDeviceLocked() argument
1462 return videoDevice == nullptr; in openDeviceLocked()
1518 std::unique_ptr<TouchVideoDevice> videoDevice = TouchVideoDevice::create(devicePath); in openVideoDeviceLocked() local
1519 if (!videoDevice) { in openVideoDeviceLocked()
1526 if (videoDevice->getName() == device->identifier.name) { in openVideoDeviceLocked()
1527 device->videoDevice = std::move(videoDevice); in openVideoDeviceLocked()
1529 registerVideoDeviceForEpollLocked(*device->videoDevice); in openVideoDeviceLocked()
1538 videoDevice->getName().c_str()); in openVideoDeviceLocked()
1539 mUnattachedVideoDevices.push_back(std::move(videoDevice)); in openVideoDeviceLocked()
1740 if (device->videoDevice && device->videoDevice->getPath() == devicePath) { in closeVideoDeviceByPathLocked()
1741 unregisterVideoDeviceFromEpollLocked(*device->videoDevice); in closeVideoDeviceByPathLocked()
1742 device->videoDevice = nullptr; in closeVideoDeviceByPathLocked()
1749 const std::unique_ptr<TouchVideoDevice>& videoDevice) { in closeVideoDeviceByPathLocked() argument
1750 return videoDevice->getPath() == devicePath; in closeVideoDeviceByPathLocked()
1773 if (device->videoDevice) { in closeDeviceLocked()
1775 mUnattachedVideoDevices.push_back(std::move(device->videoDevice)); in closeDeviceLocked()
1950 if (device->videoDevice) { in dump()
1951 dump += device->videoDevice->dump() + "\n"; in dump()
1958 for (const std::unique_ptr<TouchVideoDevice>& videoDevice : mUnattachedVideoDevices) { in dump() local
1959 dump += INDENT2 + videoDevice->dump() + "\n"; in dump()