Lines Matching refs:mDeviceFd
39 mDeviceFd = ::open(deviceName, O_RDWR, 0); in open()
40 if (mDeviceFd < 0) { in open()
47 int result = ioctl(mDeviceFd, VIDIOC_QUERYCAP, &caps); in open()
55 ALOGI("Open Device: %s (fd=%d)", deviceName, mDeviceFd); in open()
71 if (ioctl(mDeviceFd, VIDIOC_ENUM_FMT, &formatDescriptions) == 0) { in open()
104 if (ioctl(mDeviceFd, VIDIOC_S_FMT, &format) < 0) { in open()
110 if (ioctl(mDeviceFd, VIDIOC_G_FMT, &format) == 0) { in open()
143 ALOGD("closing video device file handled %d", mDeviceFd); in close()
144 ::close(mDeviceFd); in close()
145 mDeviceFd = -1; in close()
164 if (ioctl(mDeviceFd, VIDIOC_REQBUFS, &bufrequest) < 0) { in startStream()
174 if (ioctl(mDeviceFd, VIDIOC_QUERYBUF, &mBufferInfo) < 0) { in startStream()
189 mDeviceFd, in startStream()
200 if (ioctl(mDeviceFd, VIDIOC_QBUF, &mBufferInfo) < 0) { in startStream()
207 if (ioctl(mDeviceFd, VIDIOC_STREAMON, &type) < 0) { in startStream()
240 if (ioctl(mDeviceFd, VIDIOC_STREAMOFF, &type) < 0) { in stopStream()
255 ioctl(mDeviceFd, VIDIOC_REQBUFS, &bufrequest); in stopStream()
272 if (ioctl(mDeviceFd, VIDIOC_QBUF, &mBufferInfo) < 0) { in returnFrame()
286 if (ioctl(mDeviceFd, VIDIOC_DQBUF, &mBufferInfo) < 0) { in collectFrames()