Searched refs:desiredState (Results 1 – 7 of 7) sorted by relevance
247 State desiredState = OFF; in selectStateForCurrentConditions() local249 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() argument284 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()[all …]
84 bool configureEvsPipeline(State desiredState); // Only call from one thread!
153 private synchronized void waitForAdapterState(int desiredState) { in waitForAdapterState() argument154 logd("Waiting for adapter state " + Utils.getAdapterStateName(desiredState)); in waitForAdapterState()158 mDesiredState = desiredState; in waitForAdapterState()161 while (desiredState != mBluetoothAdapter.getState()) { in waitForAdapterState()165 + Utils.getAdapterStateName(desiredState)); in waitForAdapterState()170 logw("waitForAdapterState(" + Utils.getAdapterStateName(desiredState) in waitForAdapterState()175 assertTrue(mBluetoothAdapter.getState() == desiredState); in waitForAdapterState()202 private void forceAdapterState(int desiredState, boolean persistAcrossReboot) { in forceAdapterState() argument203 logd("Forcing adapter to be " + Utils.getAdapterStateName(desiredState)); in forceAdapterState()206 if (desiredState == BluetoothAdapter.STATE_ON) { in forceAdapterState()[all …]
326 int desiredState = BluetoothAdapter.STATE_ON; in onConfirmEnableBluetooth() local327 if (mLocalBluetoothAdapter.getState() == desiredState) { in onConfirmEnableBluetooth()331 mReceiver = new StateChangeReceiver(desiredState); in onConfirmEnableBluetooth()361 int desiredState = BluetoothAdapter.STATE_OFF; in onConfirmDisableBluetooth() local362 if (mLocalBluetoothAdapter.getState() == desiredState) { in onConfirmDisableBluetooth()366 mReceiver = new StateChangeReceiver(desiredState); in onConfirmDisableBluetooth()399 StateChangeReceiver(int desiredState) { in StateChangeReceiver() argument400 mDesiredState = desiredState; in StateChangeReceiver()
129 public void onSwitchChanged(Switch switchView, boolean desiredState) { in onSwitchChanged() argument132 if (desiredState) { in onSwitchChanged()138 mSwitchBar.setChecked(desiredState); in onSwitchChanged()
36 public void onCheckedChanged(CompoundButton buttonView, boolean desiredState) {37 changeIndex(desiredState ? 1 : 0);