Loading framework/java/android/bluetooth/BluetoothAdapter.java +15 −11 Original line number Diff line number Diff line Loading @@ -410,6 +410,7 @@ public final class BluetoothAdapter { * Broadcast Action: The Bluetooth adapter state has changed in LE only mode. * @hide */ @SystemApi public static final String ACTION_BLE_STATE_CHANGED = "android.bluetooth.adapter.action.BLE_STATE_CHANGED"; Loading Loading @@ -620,6 +621,7 @@ public final class BluetoothAdapter { * @return true if the local Bluetooth LE adapter is turned on * @hide */ @SystemApi public boolean isLeEnabled() { final int state = getLeState(); if (state == BluetoothAdapter.STATE_ON) { Loading Loading @@ -680,6 +682,7 @@ public final class BluetoothAdapter { * immediate error * @hide */ @SystemApi public boolean disableBLE() { if (!isBleScanAlwaysAvailable()) return false; Loading Loading @@ -742,6 +745,7 @@ public final class BluetoothAdapter { * immediate error * @hide */ @SystemApi public boolean enableBLE() { if (!isBleScanAlwaysAvailable()) return false; Loading Loading
framework/java/android/bluetooth/BluetoothAdapter.java +15 −11 Original line number Diff line number Diff line Loading @@ -410,6 +410,7 @@ public final class BluetoothAdapter { * Broadcast Action: The Bluetooth adapter state has changed in LE only mode. * @hide */ @SystemApi public static final String ACTION_BLE_STATE_CHANGED = "android.bluetooth.adapter.action.BLE_STATE_CHANGED"; Loading Loading @@ -620,6 +621,7 @@ public final class BluetoothAdapter { * @return true if the local Bluetooth LE adapter is turned on * @hide */ @SystemApi public boolean isLeEnabled() { final int state = getLeState(); if (state == BluetoothAdapter.STATE_ON) { Loading Loading @@ -680,6 +682,7 @@ public final class BluetoothAdapter { * immediate error * @hide */ @SystemApi public boolean disableBLE() { if (!isBleScanAlwaysAvailable()) return false; Loading Loading @@ -742,6 +745,7 @@ public final class BluetoothAdapter { * immediate error * @hide */ @SystemApi public boolean enableBLE() { if (!isBleScanAlwaysAvailable()) return false; Loading