Home
last modified time | relevance | path

Searched refs:STATE_TURNING_OFF (Results 1 – 25 of 34) sorted by relevance

12

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java24 import static android.bluetooth.BluetoothAdapter.STATE_TURNING_OFF;
435 verifyStateChange(callback, STATE_ON, STATE_TURNING_OFF); in onToBleOn()
448 verifyStateChange(callback, STATE_TURNING_OFF, STATE_BLE_ON); in onToBleOn()
799 verifyStateChange(callback, STATE_ON, STATE_TURNING_OFF); in startBrDr_whenScanManagerRefactorFlagIsOn_startAndStopScanController()
810 verifyStateChange(callback, STATE_TURNING_OFF, STATE_BLE_ON); in startBrDr_whenScanManagerRefactorFlagIsOn_startAndStopScanController()
847 verifyStateChange(STATE_TURNING_ON, STATE_TURNING_OFF); in testProfileStartTimeout()
853 verifyStateChange(STATE_TURNING_OFF, STATE_BLE_ON); in testProfileStartTimeout()
866 verifyStateChange(STATE_ON, STATE_TURNING_OFF); in testProfileStopTimeout()
876 verifyStateChange(STATE_TURNING_OFF, STATE_BLE_TURNING_OFF); in testProfileStopTimeout()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcPreferenceControllerTest.java121 mShadowNfcAdapter.setAdapterState(NfcAdapter.STATE_TURNING_OFF); in isNfcEnable_nfcStateTurning_shouldReturnFalse()
144 mShadowNfcAdapter.setAdapterState(NfcAdapter.STATE_TURNING_OFF); in isNfcChecked_nfcStateOff_shouldReturnFalse()
221 triggerIntent.putExtra(NfcAdapter.EXTRA_ADAPTER_STATE, NfcAdapter.STATE_TURNING_OFF); in ncfSliceWorker_nfcBroadcast_turningOff_sliceDoesntUpdate()
/packages/modules/Bluetooth/framework/tests/util/src/
DBlockingBluetoothAdapter.kt25 import android.bluetooth.BluetoothAdapter.STATE_TURNING_OFF
207 STATE_TURNING_OFF -> "TURNING_OFF" in nameForState()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivity.java118 case BluetoothAdapter.STATE_TURNING_OFF: in onCreate()
137 case BluetoothAdapter.STATE_TURNING_OFF: in onCreate()
154 case BluetoothAdapter.STATE_TURNING_OFF: in onCreate()
DBluetoothDevicesGroupPreferenceController.java147 if (bluetoothState == BluetoothAdapter.STATE_TURNING_OFF) { in onBluetoothStateChanged()
DBluetoothStateSwitchPreferenceController.java186 case BluetoothAdapter.STATE_TURNING_OFF: in handleStateChanged()
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcEnabler.java51 case NfcAdapter.STATE_TURNING_OFF: in handleNfcStateChanged()
DSecureNfcEnabler.java57 case NfcAdapter.STATE_TURNING_OFF: in handleNfcStateChanged()
DNfcPreferenceController.java192 || (nfcStateExtra == NfcAdapter.STATE_TURNING_OFF)) { in onReceive()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothUtilsGetAdapterStateNameTest.java56 {BluetoothAdapter.STATE_TURNING_OFF, "turning off"}, in provideParams()
DFastPairProviderTest.java444 sendAdapterStateChange(BluetoothAdapter.STATE_TURNING_OFF, BluetoothAdapter.STATE_ON); in testReceiveAdapterOff_stopGattServer()
445 sendAdapterStateChange(BluetoothAdapter.STATE_OFF, BluetoothAdapter.STATE_TURNING_OFF); in testReceiveAdapterOff_stopGattServer()
DBluetoothDeviceConnectionPolicyTest.java302 sendAdapterStateChanged(BluetoothAdapter.STATE_TURNING_OFF); in testReceiveAdapterTurningOff_doNothing()
/packages/modules/Bluetooth/service/src/airplane/
DModeListener.kt21 import android.bluetooth.BluetoothAdapter.STATE_TURNING_OFF
95 val isBluetoothOn = state.oneOf(STATE_ON, STATE_TURNING_ON, STATE_TURNING_OFF) in initialize()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBluetoothManagerService.java24 import static android.bluetooth.BluetoothAdapter.STATE_TURNING_OFF;
310 || state == STATE_TURNING_OFF) { in onFactoryReset()
1037 STATE_TURNING_OFF, in enableBle()
1708 STATE_TURNING_OFF, in handleMessage()
1787 bluetoothStateChangeHandler(STATE_ON, STATE_TURNING_OFF); in handleMessage()
1788 mState.set(STATE_TURNING_OFF); in handleMessage()
1790 if (mState.oneOf(STATE_TURNING_OFF)) { in handleMessage()
1791 bluetoothStateChangeHandler(STATE_TURNING_OFF, STATE_OFF); in handleMessage()
1889 bluetoothStateChangeHandler(STATE_ON, STATE_TURNING_OFF); in restartForNewUser()
1893 bluetoothStateChangeHandler(STATE_TURNING_OFF, STATE_OFF); in restartForNewUser()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java100 case BluetoothAdapter.STATE_TURNING_OFF: in onCreate()
127 case BluetoothAdapter.STATE_TURNING_OFF: in onCreate()
DBluetoothEnabler.java163 case BluetoothAdapter.STATE_TURNING_OFF: in handleStateChanged()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java1167 case NfcAdapter.STATE_TURNING_OFF: in doInBackground()
1267 && mAlwaysOnState != NfcAdapter.STATE_TURNING_OFF)) { in enableInternal()
1278 || mAlwaysOnState == NfcAdapter.STATE_TURNING_OFF) { in enableInternal()
1344 && mAlwaysOnState != NfcAdapter.STATE_TURNING_OFF)) { in enableInternal()
1379 updateState(NfcAdapter.STATE_TURNING_OFF); in disableInternal()
1421 || (mAlwaysOnState == NfcAdapter.STATE_TURNING_OFF)) { in disableInternal()
1449 || mAlwaysOnState == NfcAdapter.STATE_TURNING_OFF) { in enableAlwaysOnInternal()
1481 || mAlwaysOnState == NfcAdapter.STATE_TURNING_OFF) { in disableAlwaysOnInternal()
1485 updateAlwaysOnState(NfcAdapter.STATE_TURNING_OFF); in disableAlwaysOnInternal()
1492 updateAlwaysOnState(NfcAdapter.STATE_TURNING_OFF); in disableAlwaysOnInternal()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothStateSwitchPreferenceControllerTest.java288 mPreferenceController.handleStateChanged(BluetoothAdapter.STATE_TURNING_OFF); in stateChanged_turningOff_setsSwitchUnchecked()
297 mPreferenceController.handleStateChanged(BluetoothAdapter.STATE_TURNING_OFF); in stateChanged_turningOff_setsSwitchDisabled()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/tests/
DBluetoothRequestPermissionTest.java164 case BluetoothAdapter.STATE_TURNING_OFF:
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterState.java337 return BluetoothAdapter.STATE_TURNING_OFF; in getStateValue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothEnablerTest.java235 turningOff.putExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.STATE_TURNING_OFF); in bluetoothTurnsOff_switchTurnsOff()
/packages/services/Car/service/src/com/android/car/bluetooth/
DBluetoothUtils.java92 sAdapterStates.put(BluetoothAdapter.STATE_TURNING_OFF, "Turning Off"); in sAdapterStates.put() argument
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/
DUtilsTest.java215 assertThat(Utils.debugGetAdapterStateString(BluetoothAdapter.STATE_TURNING_OFF)) in debugGetAdapterStateString()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDevicesGroupPreferenceControllerTest.java207 mController.onBluetoothStateChanged(BluetoothAdapter.STATE_TURNING_OFF); in onBluetoothStateChanged_turningOff_clearsPreferences()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothAdapter.java185 STATE_TURNING_OFF,
200 STATE_TURNING_OFF,
221 public static final int STATE_TURNING_OFF = 13; field in BluetoothAdapter
288 case STATE_TURNING_OFF: in nameForState()
1307 || state == BluetoothAdapter.STATE_TURNING_OFF); in isLeEnabled()

12