Home
last modified time | relevance | path

Searched refs:mSensorPipe (Results 1 – 2 of 2) sorted by relevance

/device/generic/goldfish/camera/
DEmulatedFakeRotatingCameraDevice.cpp285 if (mSensorPipe >=0) return; in init_sensor()
287 mSensorPipe = qemu_pipe_open_ns(NULL, FAKE_CAMERA_SENSOR, O_RDWR); in init_sensor()
288 if (mSensorPipe < 0) { in init_sensor()
296 if (mSensorPipe < 0) return; in read_sensor()
299 qemu_pipe_write_fully(mSensorPipe, &pipe_command_length, sizeof(pipe_command_length)); in read_sensor()
300 qemu_pipe_write_fully(mSensorPipe, get, pipe_command_length); in read_sensor()
301 qemu_pipe_read_fully(mSensorPipe, &pipe_command_length, sizeof(pipe_command_length)); in read_sensor()
302 qemu_pipe_read_fully(mSensorPipe, &mSensorValues, pipe_command_length); in read_sensor()
507 if (mSensorPipe >= 0) { in stopDevice()
508 close(mSensorPipe); in stopDevice()
[all …]
DEmulatedFakeRotatingCameraDevice.h102 int mSensorPipe = -1; variable