Home
last modified time | relevance | path

Searched refs:STATE_TURNING_ON (Results 1 – 25 of 38) sorted by relevance

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DFastPairProviderTest.java436 sendAdapterStateChange(BluetoothAdapter.STATE_TURNING_ON, BluetoothAdapter.STATE_OFF); in testReceiveAdapterOn_startGattService()
437 sendAdapterStateChange(BluetoothAdapter.STATE_ON, BluetoothAdapter.STATE_TURNING_ON); in testReceiveAdapterOn_startGattService()
473 sendAdapterStateChange(BluetoothAdapter.STATE_TURNING_ON, BluetoothAdapter.STATE_OFF); in testReceiveScanModeConnectableAdapterOn_advertiseAccountKeyFilter()
474 sendAdapterStateChange(BluetoothAdapter.STATE_ON, BluetoothAdapter.STATE_TURNING_ON); in testReceiveScanModeConnectableAdapterOn_advertiseAccountKeyFilter()
498 sendAdapterStateChange(BluetoothAdapter.STATE_TURNING_ON, BluetoothAdapter.STATE_OFF); in testReceiveScanModeNoneAdapterOn_advertisingAccountKeyFilter()
499 sendAdapterStateChange(BluetoothAdapter.STATE_ON, BluetoothAdapter.STATE_TURNING_ON); in testReceiveScanModeNoneAdapterOn_advertisingAccountKeyFilter()
DBluetoothUtilsGetAdapterStateNameTest.java55 {BluetoothAdapter.STATE_TURNING_ON, "turning on"}, in provideParams()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcPreferenceControllerTest.java117 mShadowNfcAdapter.setAdapterState(NfcAdapter.STATE_TURNING_ON); in isNfcEnable_nfcStateTurning_shouldReturnFalse()
133 mShadowNfcAdapter.setAdapterState(NfcAdapter.STATE_TURNING_ON); in isNfcChecked_nfcStateOn_shouldReturnTrue()
208 triggerIntent.putExtra(NfcAdapter.EXTRA_ADAPTER_STATE, NfcAdapter.STATE_TURNING_ON); in ncfSliceWorker_nfcBroadcast_turningOn_sliceDoesntUpdate()
/packages/modules/Bluetooth/service/tests/src/com/android/server/bluetooth/
DBluetoothManagerServiceTest.java22 import static android.bluetooth.BluetoothAdapter.STATE_TURNING_ON;
303 btCallback.onBluetoothStateChange(STATE_BLE_ON, STATE_TURNING_ON); in transition_offToOn()
306 btCallback.onBluetoothStateChange(STATE_TURNING_ON, STATE_ON); in transition_offToOn()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothStateSwitchPreferenceController.java91 || mBluetoothAdapter.getState() == BluetoothAdapter.STATE_TURNING_ON); in updateState()
178 case BluetoothAdapter.STATE_TURNING_ON: in handleStateChanged()
DBluetoothRequestPermissionActivity.java123 case BluetoothAdapter.STATE_TURNING_ON: in onCreate()
142 case BluetoothAdapter.STATE_TURNING_ON: in onCreate()
155 case BluetoothAdapter.STATE_TURNING_ON: in onCreate()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java25 import static android.bluetooth.BluetoothAdapter.STATE_TURNING_ON;
486 verifyStateChange(callback, STATE_BLE_ON, STATE_TURNING_ON); in doEnable()
504 verifyStateChange(callback, STATE_TURNING_ON, STATE_ON); in doEnable()
776 verifyStateChange(callback, STATE_BLE_ON, STATE_TURNING_ON); in startBrDr_whenScanManagerRefactorFlagIsOn_startAndStopScanController()
793 verifyStateChange(callback, STATE_TURNING_ON, STATE_ON); in startBrDr_whenScanManagerRefactorFlagIsOn_startAndStopScanController()
832 verifyStateChange(STATE_BLE_ON, STATE_TURNING_ON); in testProfileStartTimeout()
847 verifyStateChange(STATE_TURNING_ON, STATE_TURNING_OFF); in testProfileStartTimeout()
/packages/modules/Bluetooth/framework/tests/util/src/
DBlockingBluetoothAdapter.kt26 import android.bluetooth.BluetoothAdapter.STATE_TURNING_ON
205 STATE_TURNING_ON -> "TURNING_ON" in nameForState()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivityTest.java165 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_TURNING_ON); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_noDialog()
175 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_TURNING_ON); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_receiverRegistered()
185 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_TURNING_ON); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_enableDiscovery()
DBluetoothStateSwitchPreferenceControllerTest.java252 mPreferenceController.handleStateChanged(BluetoothAdapter.STATE_TURNING_ON); in stateChanged_turningOn_setsSwitchChecked()
261 mPreferenceController.handleStateChanged(BluetoothAdapter.STATE_TURNING_ON); in stateChanged_turningOn_setsSwitchDisabled()
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcEnabler.java47 case NfcAdapter.STATE_TURNING_ON: in handleNfcStateChanged()
DSecureNfcEnabler.java54 case NfcAdapter.STATE_TURNING_ON: in handleNfcStateChanged()
DNfcPreferenceController.java191 || (nfcStateExtra == NfcAdapter.STATE_TURNING_ON) in onReceive()
/packages/modules/Bluetooth/service/src/airplane/
DModeListener.kt22 import android.bluetooth.BluetoothAdapter.STATE_TURNING_ON
95 val isBluetoothOn = state.oneOf(STATE_ON, STATE_TURNING_ON, STATE_TURNING_OFF) in initialize()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java104 case BluetoothAdapter.STATE_TURNING_ON: in onCreate()
128 case BluetoothAdapter.STATE_TURNING_ON: in onCreate()
DBluetoothSliceBuilder.java128 || adapter.getState() == BluetoothAdapter.STATE_TURNING_ON; in isBluetoothEnabled()
DBluetoothEnabler.java156 case BluetoothAdapter.STATE_TURNING_ON: in handleStateChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothSummaryUpdaterTest.java175 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_TURNING_ON); in onBluetoothStateChanged_btEnabled_notConnected_shouldSendDisconnectedMessage()
203 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_TURNING_ON); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary()
DBluetoothEnablerTest.java259 turningOn.putExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.STATE_TURNING_ON); in bluetoothTurnsOn_switchTurnsOn()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DBluetoothSwitch.java106 || adapter.getState() == BluetoothAdapter.STATE_TURNING_ON; in isBluetoothOn()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBluetoothManagerService.java25 import static android.bluetooth.BluetoothAdapter.STATE_TURNING_ON;
309 || state == STATE_TURNING_ON in onFactoryReset()
1036 STATE_TURNING_ON, in enableBle()
1707 STATE_TURNING_ON, in handleMessage()
1733 if ((prevState == STATE_TURNING_ON) in handleMessage()
1786 if (mState.oneOf(STATE_TURNING_ON, STATE_ON)) { in handleMessage()
1957 case STATE_TURNING_ON: in handleEnableMessage()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/tests/
DBluetoothRequestPermissionTest.java158 case BluetoothAdapter.STATE_TURNING_ON:
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java1168 case NfcAdapter.STATE_TURNING_ON: in doInBackground()
1258 updateState(NfcAdapter.STATE_TURNING_ON); in enableInternal()
1343 || (mAlwaysOnState != NfcAdapter.STATE_TURNING_ON in enableInternal()
1448 } else if (mState == NfcAdapter.STATE_TURNING_ON in enableAlwaysOnInternal()
1453 updateAlwaysOnState(NfcAdapter.STATE_TURNING_ON); in enableAlwaysOnInternal()
1463 updateAlwaysOnState(NfcAdapter.STATE_TURNING_ON); in enableAlwaysOnInternal()
1480 } else if (mState == NfcAdapter.STATE_TURNING_ON in disableAlwaysOnInternal()
1509 if (mAlwaysOnState != NfcAdapter.STATE_TURNING_ON) { in updateState()
4492 case NfcAdapter.STATE_TURNING_ON: in stateToString()
4507 case NfcAdapter.STATE_TURNING_ON: in stateToProtoEnum()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/
DObexServerSockets.java157 if ((state != BluetoothAdapter.STATE_TURNING_ON) in create()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterState.java297 return BluetoothAdapter.STATE_TURNING_ON; in getStateValue()

12