Lines Matching refs:mSensorPipe
284 if (mSensorPipe >=0) return; in init_sensor()
286 mSensorPipe = qemu_pipe_open_ns(NULL, FAKE_CAMERA_SENSOR, O_RDWR); in init_sensor()
287 if (mSensorPipe < 0) { in init_sensor()
295 if (mSensorPipe < 0) return; in read_sensor()
298 qemu_pipe_write_fully(mSensorPipe, &pipe_command_length, sizeof(pipe_command_length)); in read_sensor()
299 qemu_pipe_write_fully(mSensorPipe, get, pipe_command_length); in read_sensor()
300 qemu_pipe_read_fully(mSensorPipe, &pipe_command_length, sizeof(pipe_command_length)); in read_sensor()
301 qemu_pipe_read_fully(mSensorPipe, &mSensorValues, pipe_command_length); in read_sensor()
509 if (mSensorPipe >= 0) { in stopDevice()
510 close(mSensorPipe); in stopDevice()
511 mSensorPipe = -1; in stopDevice()