Lines Matching refs:res

87     status_t res = run("EmulatedQemuCamera3::QemuSensor",  in startUp()  local
90 if (res != OK) { in startUp()
91 ALOGE("Unable to start up sensor capture thread: %d", res); in startUp()
96 res = mCameraQemuClient.connectClient(connect_str); in startUp()
97 if (res != NO_ERROR) { in startUp()
98 return res; in startUp()
101 res = mCameraQemuClient.queryConnect(); in startUp()
102 if (res == NO_ERROR) { in startUp()
111 return res; in startUp()
117 status_t res = requestExitAndWait(); in shutDown() local
118 if (res != OK) { in shutDown()
119 ALOGE("Unable to shut down sensor capture thread: %d", res); in shutDown()
123 res = mCameraQemuClient.queryStop(); in shutDown()
124 if (res == NO_ERROR) { in shutDown()
133 return res; in shutDown()
153 int res; in waitForVSync() local
157 res = mVSync.waitRelative(mControlMutex, reltime); in waitForVSync()
158 if (res != OK && res != TIMED_OUT) { in waitForVSync()
159 ALOGE("%s: Error waiting for VSync signal: %d", __FUNCTION__, res); in waitForVSync()
168 int res; in waitForNewFrame() local
169 res = mReadoutAvailable.waitRelative(mReadoutMutex, reltime); in waitForNewFrame()
170 if (res == TIMED_OUT) { in waitForNewFrame()
172 } else if (res != OK || mCapturedBuffers == nullptr) { in waitForNewFrame()
173 ALOGE("Error waiting for sensor readout signal: %d", res); in waitForNewFrame()
397 status_t res; in captureRGBA() local
409 res = mCameraQemuClient.queryStop(); in captureRGBA()
410 if (res == NO_ERROR) { in captureRGBA()
426 res = mCameraQemuClient.queryStart(pixFmt, width, height); in captureRGBA()
427 if (res == NO_ERROR) { in captureRGBA()
464 status_t res; in captureRGBA() local
467 res = mCameraQemuClient.queryStart(); in captureRGBA()
468 if (res == NO_ERROR) { in captureRGBA()
508 status_t res; in captureYU12() local
519 res = mCameraQemuClient.queryStop(); in captureYU12()
520 if (res == NO_ERROR) { in captureYU12()
536 res = mCameraQemuClient.queryStart(pixFmt, width, height); in captureYU12()
537 if (res == NO_ERROR) { in captureYU12()
574 status_t res; in captureYU12() local
577 res = mCameraQemuClient.queryStart(); in captureYU12()
578 if (res == NO_ERROR) { in captureYU12()