Home
last modified time | relevance | path

Searched refs:desiredState (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/evs/app/
DEvsStateControl.cpp247 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()
[all …]
DEvsStateControl.h84 bool configureEvsPipeline(State desiredState); // Only call from one thread!
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DBluetoothAdapterHelper.java153 private synchronized void waitForAdapterState(int desiredState) { in waitForAdapterState() argument
154 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() argument
203 logd("Forcing adapter to be " + Utils.getAdapterStateName(desiredState)); in forceAdapterState()
206 if (desiredState == BluetoothAdapter.STATE_ON) { in forceAdapterState()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivity.java326 int desiredState = BluetoothAdapter.STATE_ON; in onConfirmEnableBluetooth() local
327 if (mLocalBluetoothAdapter.getState() == desiredState) { in onConfirmEnableBluetooth()
331 mReceiver = new StateChangeReceiver(desiredState); in onConfirmEnableBluetooth()
361 int desiredState = BluetoothAdapter.STATE_OFF; in onConfirmDisableBluetooth() local
362 if (mLocalBluetoothAdapter.getState() == desiredState) { in onConfirmDisableBluetooth()
366 mReceiver = new StateChangeReceiver(desiredState); in onConfirmDisableBluetooth()
399 StateChangeReceiver(int desiredState) { in StateChangeReceiver() argument
400 mDesiredState = desiredState; in StateChangeReceiver()
/packages/apps/Settings/src/com/android/settings/nfc/
DAndroidBeam.java129 public void onSwitchChanged(Switch switchView, boolean desiredState) { in onSwitchChanged() argument
132 if (desiredState) { in onSwitchChanged()
138 mSwitchBar.setChecked(desiredState); in onSwitchChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/
DAndroidBeam.java129 public void onSwitchChanged(Switch switchView, boolean desiredState) { in onSwitchChanged() argument
132 if (desiredState) { in onSwitchChanged()
138 mSwitchBar.setChecked(desiredState); in onSwitchChanged()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DInLineSettingSwitch.java36 public void onCheckedChanged(CompoundButton buttonView, boolean desiredState) {
37 changeIndex(desiredState ? 1 : 0);