Loading framework/java/android/bluetooth/BluetoothAdapter.java +21 −0 Original line number Diff line number Diff line Loading @@ -1674,6 +1674,27 @@ public final class BluetoothAdapter { return 0; } /** * Get the maximum number of connected audio devices. * * @return the maximum number of connected audio devices * @hide */ @RequiresPermission(Manifest.permission.BLUETOOTH) public int getMaxConnectedAudioDevices() { try { mServiceLock.readLock().lock(); if (mService != null) { return mService.getMaxConnectedAudioDevices(); } } catch (RemoteException e) { Log.e(TAG, "failed to get getMaxConnectedAudioDevices, error: ", e); } finally { mServiceLock.readLock().unlock(); } return 1; } /** * Return true if hardware has entries available for matching beacons * Loading Loading
framework/java/android/bluetooth/BluetoothAdapter.java +21 −0 Original line number Diff line number Diff line Loading @@ -1674,6 +1674,27 @@ public final class BluetoothAdapter { return 0; } /** * Get the maximum number of connected audio devices. * * @return the maximum number of connected audio devices * @hide */ @RequiresPermission(Manifest.permission.BLUETOOTH) public int getMaxConnectedAudioDevices() { try { mServiceLock.readLock().lock(); if (mService != null) { return mService.getMaxConnectedAudioDevices(); } } catch (RemoteException e) { Log.e(TAG, "failed to get getMaxConnectedAudioDevices, error: ", e); } finally { mServiceLock.readLock().unlock(); } return 1; } /** * Return true if hardware has entries available for matching beacons * Loading