Loading core/java/android/bluetooth/BluetoothAdapter.java +4 −2 Original line number Diff line number Diff line Loading @@ -1134,8 +1134,10 @@ public final class BluetoothAdapter { } /** * Sets the {@link BluetoothClass} Bluetooth Class of Device (CoD) of * the local Bluetooth adapter. * Sets the {@link BluetoothClass} Bluetooth Class of Device (CoD) of the local Bluetooth * adapter. * * <p>Note: This value persists across system reboot. * * @param bluetoothClass {@link BluetoothClass} to set the local Bluetooth adapter to. * @return true if successful, false if unsuccessful. Loading core/java/android/provider/Settings.java +7 −0 Original line number Diff line number Diff line Loading @@ -7402,6 +7402,13 @@ public final class Settings { */ public static final String AIRPLANE_MODE_TOGGLEABLE_RADIOS = "airplane_mode_toggleable_radios"; /** * An integer representing the Bluetooth Class of Device (CoD). * * @hide */ public static final String BLUETOOTH_CLASS_OF_DEVICE = "bluetooth_class_of_device"; /** * A Long representing a bitmap of profiles that should be disabled when bluetooth starts. * See {@link android.bluetooth.BluetoothProfile}. Loading Loading
core/java/android/bluetooth/BluetoothAdapter.java +4 −2 Original line number Diff line number Diff line Loading @@ -1134,8 +1134,10 @@ public final class BluetoothAdapter { } /** * Sets the {@link BluetoothClass} Bluetooth Class of Device (CoD) of * the local Bluetooth adapter. * Sets the {@link BluetoothClass} Bluetooth Class of Device (CoD) of the local Bluetooth * adapter. * * <p>Note: This value persists across system reboot. * * @param bluetoothClass {@link BluetoothClass} to set the local Bluetooth adapter to. * @return true if successful, false if unsuccessful. Loading
core/java/android/provider/Settings.java +7 −0 Original line number Diff line number Diff line Loading @@ -7402,6 +7402,13 @@ public final class Settings { */ public static final String AIRPLANE_MODE_TOGGLEABLE_RADIOS = "airplane_mode_toggleable_radios"; /** * An integer representing the Bluetooth Class of Device (CoD). * * @hide */ public static final String BLUETOOTH_CLASS_OF_DEVICE = "bluetooth_class_of_device"; /** * A Long representing a bitmap of profiles that should be disabled when bluetooth starts. * See {@link android.bluetooth.BluetoothProfile}. Loading