/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | AdapterServiceTest.java | 24 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/ |
D | NfcPreferenceControllerTest.java | 121 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/ |
D | BlockingBluetoothAdapter.kt | 25 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/ |
D | BluetoothRequestPermissionActivity.java | 118 case BluetoothAdapter.STATE_TURNING_OFF: in onCreate() 137 case BluetoothAdapter.STATE_TURNING_OFF: in onCreate() 154 case BluetoothAdapter.STATE_TURNING_OFF: in onCreate()
|
D | BluetoothDevicesGroupPreferenceController.java | 147 if (bluetoothState == BluetoothAdapter.STATE_TURNING_OFF) { in onBluetoothStateChanged()
|
D | BluetoothStateSwitchPreferenceController.java | 186 case BluetoothAdapter.STATE_TURNING_OFF: in handleStateChanged()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | NfcEnabler.java | 51 case NfcAdapter.STATE_TURNING_OFF: in handleNfcStateChanged()
|
D | SecureNfcEnabler.java | 57 case NfcAdapter.STATE_TURNING_OFF: in handleNfcStateChanged()
|
D | NfcPreferenceController.java | 192 || (nfcStateExtra == NfcAdapter.STATE_TURNING_OFF)) { in onReceive()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | BluetoothUtilsGetAdapterStateNameTest.java | 56 {BluetoothAdapter.STATE_TURNING_OFF, "turning off"}, in provideParams()
|
D | FastPairProviderTest.java | 444 sendAdapterStateChange(BluetoothAdapter.STATE_TURNING_OFF, BluetoothAdapter.STATE_ON); in testReceiveAdapterOff_stopGattServer() 445 sendAdapterStateChange(BluetoothAdapter.STATE_OFF, BluetoothAdapter.STATE_TURNING_OFF); in testReceiveAdapterOff_stopGattServer()
|
D | BluetoothDeviceConnectionPolicyTest.java | 302 sendAdapterStateChanged(BluetoothAdapter.STATE_TURNING_OFF); in testReceiveAdapterTurningOff_doNothing()
|
/packages/modules/Bluetooth/service/src/airplane/ |
D | ModeListener.kt | 21 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/ |
D | BluetoothManagerService.java | 24 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/ |
D | RequestPermissionActivity.java | 100 case BluetoothAdapter.STATE_TURNING_OFF: in onCreate() 127 case BluetoothAdapter.STATE_TURNING_OFF: in onCreate()
|
D | BluetoothEnabler.java | 163 case BluetoothAdapter.STATE_TURNING_OFF: in handleStateChanged()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcService.java | 1167 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/ |
D | BluetoothStateSwitchPreferenceControllerTest.java | 288 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/ |
D | BluetoothRequestPermissionTest.java | 164 case BluetoothAdapter.STATE_TURNING_OFF:
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | AdapterState.java | 337 return BluetoothAdapter.STATE_TURNING_OFF; in getStateValue()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothEnablerTest.java | 235 turningOff.putExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.STATE_TURNING_OFF); in bluetoothTurnsOff_switchTurnsOff()
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | BluetoothUtils.java | 92 sAdapterStates.put(BluetoothAdapter.STATE_TURNING_OFF, "Turning Off"); in sAdapterStates.put() argument
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/ |
D | UtilsTest.java | 215 assertThat(Utils.debugGetAdapterStateString(BluetoothAdapter.STATE_TURNING_OFF)) in debugGetAdapterStateString()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicesGroupPreferenceControllerTest.java | 207 mController.onBluetoothStateChanged(BluetoothAdapter.STATE_TURNING_OFF); in onBluetoothStateChanged_turningOff_clearsPreferences()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothAdapter.java | 185 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()
|