Loading android/app/src/com/android/bluetooth/btservice/AdapterService.java +10 −6 Original line number Diff line number Diff line Loading @@ -2020,12 +2020,6 @@ public class AdapterService extends Service { return deviceProp.getBatteryLevel(); } int getMaxConnectedAudioDevices() { enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); return mAdapterProperties.getMaxConnectedAudioDevices(); } boolean setPin(BluetoothDevice device, boolean accept, int len, byte[] pinCode) { enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission"); DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties(device); Loading Loading @@ -2235,6 +2229,16 @@ public class AdapterService extends Service { return mAdapterProperties.getLeMaximumAdvertisingDataLength(); } /** * Get the maximum number of connected audio devices. * * @return the maximum number of connected audio devices */ public int getMaxConnectedAudioDevices() { enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); return mAdapterProperties.getMaxConnectedAudioDevices(); } private BluetoothActivityEnergyInfo reportActivityInfo() { enforceCallingOrSelfPermission(BLUETOOTH_PRIVILEGED, "Need BLUETOOTH permission"); if (mAdapterProperties.getState() != BluetoothAdapter.STATE_ON Loading Loading
android/app/src/com/android/bluetooth/btservice/AdapterService.java +10 −6 Original line number Diff line number Diff line Loading @@ -2020,12 +2020,6 @@ public class AdapterService extends Service { return deviceProp.getBatteryLevel(); } int getMaxConnectedAudioDevices() { enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); return mAdapterProperties.getMaxConnectedAudioDevices(); } boolean setPin(BluetoothDevice device, boolean accept, int len, byte[] pinCode) { enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission"); DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties(device); Loading Loading @@ -2235,6 +2229,16 @@ public class AdapterService extends Service { return mAdapterProperties.getLeMaximumAdvertisingDataLength(); } /** * Get the maximum number of connected audio devices. * * @return the maximum number of connected audio devices */ public int getMaxConnectedAudioDevices() { enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); return mAdapterProperties.getMaxConnectedAudioDevices(); } private BluetoothActivityEnergyInfo reportActivityInfo() { enforceCallingOrSelfPermission(BLUETOOTH_PRIVILEGED, "Need BLUETOOTH permission"); if (mAdapterProperties.getState() != BluetoothAdapter.STATE_ON Loading