Home
last modified time | relevance | path

Searched refs:STATE_BLE_ON (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Bluetooth/framework/tests/util/src/
DBlockingBluetoothAdapter.kt22 import android.bluetooth.BluetoothAdapter.STATE_BLE_ON
94 return state.waitForStateWithTimeout(stateChangeTimeout, STATE_BLE_ON) in enableBLE()
100 if (!state.eq(STATE_BLE_ON)) { in disableBLE()
186 STATE_BLE_ON in get()
209 STATE_BLE_ON -> "BLE_ON" in nameForState()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java19 import static android.bluetooth.BluetoothAdapter.STATE_BLE_ON;
422 verifyStateChange(callback, STATE_BLE_TURNING_ON, STATE_BLE_ON); in offToBleOn()
423 assertThat(adapter.getState()).isEqualTo(STATE_BLE_ON); in offToBleOn()
448 verifyStateChange(callback, STATE_TURNING_OFF, STATE_BLE_ON); in onToBleOn()
450 assertThat(adapter.getState()).isEqualTo(STATE_BLE_ON); in onToBleOn()
486 verifyStateChange(callback, STATE_BLE_ON, STATE_TURNING_ON); in doEnable()
540 verifyStateChange(callback, STATE_BLE_ON, STATE_BLE_TURNING_OFF); in doDisable()
665 verifyStateChange(STATE_BLE_ON, STATE_BLE_TURNING_OFF, CONTEXT_SWITCH_MS); in testGattStopTimeout()
730 verifyStateChange(callback, STATE_BLE_ON, STATE_BLE_TURNING_OFF); in startBleOnly_whenScanManagerRefactorFlagIsOn_startAndStopScanController()
776 verifyStateChange(callback, STATE_BLE_ON, STATE_TURNING_ON); in startBrDr_whenScanManagerRefactorFlagIsOn_startAndStopScanController()
[all …]
/packages/modules/Bluetooth/service/tests/src/com/android/server/bluetooth/
DBluetoothManagerServiceTest.java19 import static android.bluetooth.BluetoothAdapter.STATE_BLE_ON;
288 btCallback.onBluetoothStateChange(STATE_BLE_TURNING_ON, STATE_BLE_ON); in transition_offToBleOn()
290 assertThat(mManagerService.getState()).isEqualTo(STATE_BLE_ON); in transition_offToBleOn()
303 btCallback.onBluetoothStateChange(STATE_BLE_ON, STATE_TURNING_ON); in transition_offToOn()
326 assertThat(mManagerService.getState()).isEqualTo(STATE_BLE_ON); in offToBleOn()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBluetoothManagerService.java19 import static android.bluetooth.BluetoothAdapter.STATE_BLE_ON;
311 if (!waitForState(STATE_BLE_ON, STATE_ON)) { in onFactoryReset()
324 if (state == STATE_BLE_ON) { in onFactoryReset()
342 if (state == STATE_BLE_ON && isBluetoothPersistedStateOn()) { in estimateBusyTime()
345 } else if (state != STATE_ON && state != STATE_OFF && state != STATE_BLE_ON) { in estimateBusyTime()
460 } else if (currentState == STATE_BLE_ON) { in forceToOffFromModeChange()
593 if (mAdapter != null && mState.oneOf(STATE_BLE_ON)) {
709 if (mState.oneOf(STATE_BLE_ON)) { in onBleScanDisabled()
1035 STATE_BLE_ON, in enableBle()
1070 if (mState.oneOf(STATE_BLE_ON) && !isBleAppPresent()) { in disableBle()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterState.java205 return BluetoothAdapter.STATE_BLE_ON; in getStateValue()
DRemoteDevices.java955 == BluetoothAdapter.STATE_BLE_ON) { in devicePropertyChangedCallback()
1155 } else if (state == BluetoothAdapter.STATE_BLE_ON in aclStateChangeCallback()
1186 } else if (state == BluetoothAdapter.STATE_BLE_ON in aclStateChangeCallback()
DAdapterService.java1245 } else if (newState == BluetoothAdapter.STATE_BLE_ON in updateAdapterState()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothAdapter.java187 STATE_BLE_ON,
235 @SystemApi public static final int STATE_BLE_ON = 15; field in BluetoothAdapter
292 case STATE_BLE_ON: in nameForState()
1305 || state == BluetoothAdapter.STATE_BLE_ON in isLeEnabled()
1473 if (state == BluetoothAdapter.STATE_BLE_ON in getState()
1522 } else if (getLeState() == STATE_BLE_ON) { in getLeAccess()
/packages/modules/Bluetooth/framework/api/
Dsystem-current.txt119 field public static final int STATE_BLE_ON = 15; // 0xf
/packages/modules/Bluetooth/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt122 Landroid/bluetooth/BluetoothAdapter;->STATE_BLE_ON:I