Searched refs:mDeviceFd (Results 1 – 4 of 4) sorted by relevance
/aosp12/packages/services/Car/cpp/evs/sampleDriver/ |
H A D | VideoCapture.cpp | 41 mDeviceFd = ::open(deviceName, O_RDWR, 0); in open() 42 if (mDeviceFd < 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() 142 ::close(mDeviceFd); in close() 143 mDeviceFd = -1; in close() 194 mDeviceFd, in startStream() 215 if (ioctl(mDeviceFd, VIDIOC_STREAMON, &type) < 0) { in startStream() 266 ioctl(mDeviceFd, VIDIOC_REQBUFS, &bufrequest); in stopStream() 307 if (ioctl(mDeviceFd, VIDIOC_DQBUF, &buf) < 0) { in collectFrames() [all …]
|
H A D | VideoCapture.h | 58 bool isOpen() { return mDeviceFd >= 0; } in isOpen() 68 int mDeviceFd = -1; variable
|
/aosp12/frameworks/native/services/inputflinger/tests/ |
H A D | UinputDevice.cpp | 28 if (ioctl(mDeviceFd, UI_DEV_DESTROY)) { in ~UinputDevice() 31 mDeviceFd.reset(); in ~UinputDevice() 35 mDeviceFd = android::base::unique_fd(open("/dev/uinput", O_WRONLY | O_NONBLOCK)); in init() 36 if (mDeviceFd < 0) { in init() 47 ASSERT_NO_FATAL_FAILURE(configureDevice(mDeviceFd, &device)); in init() 49 if (write(mDeviceFd, &device, sizeof(device)) < 0) { in init() 54 if (ioctl(mDeviceFd, UI_DEV_CREATE)) { in init() 66 if (write(mDeviceFd, &event, sizeof(input_event)) < 0) { in injectEvent()
|
H A D | UinputDevice.h | 65 base::unique_fd mDeviceFd;
|