Lines Matching refs:desiredState
247 State desiredState = OFF; in selectStateForCurrentConditions() local
249 desiredState = REVERSE; in selectStateForCurrentConditions()
251 desiredState = RIGHT; in selectStateForCurrentConditions()
253 desiredState = LEFT; in selectStateForCurrentConditions()
255 desiredState = PARKING; in selectStateForCurrentConditions()
259 return configureEvsPipeline(desiredState); in selectStateForCurrentConditions()
281 bool EvsStateControl::configureEvsPipeline(State desiredState) { in configureEvsPipeline() argument
284 if (mCurrentState == desiredState) { in configureEvsPipeline()
289 ALOGD("Switching to state %d.", desiredState); in configureEvsPipeline()
292 ALOGD(" Desired state %d has %zu cameras", desiredState, in configureEvsPipeline()
293 mCameraList[desiredState].size()); in configureEvsPipeline()
297 if (mCameraList[desiredState].size() >= 1) { in configureEvsPipeline()
299 mCameraList[desiredState][0]); in configureEvsPipeline()
306 desiredState, static_cast<unsigned int>(mCameraList[desiredState].size())); in configureEvsPipeline()
312 if (mCameraList[desiredState].size() == 1) { in configureEvsPipeline()
315 mCameraList[desiredState][0]); in configureEvsPipeline()
320 } else if (mCameraList[desiredState].size() > 1 || desiredState == PARKING) { in configureEvsPipeline()
322 mCameraList[desiredState], in configureEvsPipeline()
330 desiredState, static_cast<unsigned int>(mCameraList[desiredState].size())); in configureEvsPipeline()
367 ALOGI("Activated state %d.", desiredState); in configureEvsPipeline()
368 mCurrentState = desiredState; in configureEvsPipeline()