Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -7122,6 +7122,7 @@ package android.bluetooth { method public android.bluetooth.le.BluetoothLeScanner getBluetoothLeScanner(); method public java.util.Set<android.bluetooth.BluetoothDevice> getBondedDevices(); method public static synchronized android.bluetooth.BluetoothAdapter getDefaultAdapter(); method public int getLeMaximumAdvertisingDataLength(); method public java.lang.String getName(); method public android.bluetooth.le.PeriodicAdvertisingManager getPeriodicAdvertisingManager(); method public int getProfileConnectionState(int); api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -7591,6 +7591,7 @@ package android.bluetooth { method public android.bluetooth.le.BluetoothLeScanner getBluetoothLeScanner(); method public java.util.Set<android.bluetooth.BluetoothDevice> getBondedDevices(); method public static synchronized android.bluetooth.BluetoothAdapter getDefaultAdapter(); method public int getLeMaximumAdvertisingDataLength(); method public java.lang.String getName(); method public android.bluetooth.le.PeriodicAdvertisingManager getPeriodicAdvertisingManager(); method public int getProfileConnectionState(int); api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -7149,6 +7149,7 @@ package android.bluetooth { method public android.bluetooth.le.BluetoothLeScanner getBluetoothLeScanner(); method public java.util.Set<android.bluetooth.BluetoothDevice> getBondedDevices(); method public static synchronized android.bluetooth.BluetoothAdapter getDefaultAdapter(); method public int getLeMaximumAdvertisingDataLength(); method public java.lang.String getName(); method public android.bluetooth.le.PeriodicAdvertisingManager getPeriodicAdvertisingManager(); method public int getProfileConnectionState(int); core/java/android/bluetooth/BluetoothAdapter.java +19 −0 Original line number Diff line number Diff line Loading @@ -1482,6 +1482,25 @@ public final class BluetoothAdapter { return false; } /** * Return the maximum LE advertising data length, * if LE Extended Advertising feature is supported. * * @return the maximum LE advertising data length. */ public int getLeMaximumAdvertisingDataLength() { if (!getLeAccess()) return 0; try { mServiceLock.readLock().lock(); if (mService != null) return mService.getLeMaximumAdvertisingDataLength(); } catch (RemoteException e) { Log.e(TAG, "failed to get getLeMaximumAdvertisingDataLength, error: ", e); } finally { mServiceLock.readLock().unlock(); } return 0; } /** * Return true if hardware has entries available for matching beacons * Loading core/java/android/bluetooth/IBluetooth.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -108,6 +108,7 @@ interface IBluetooth boolean isLeCodedPhySupported(); boolean isLeExtendedAdvertisingSupported(); boolean isLePeriodicAdvertisingSupported(); int getLeMaximumAdvertisingDataLength(); BluetoothActivityEnergyInfo reportActivityInfo(); /** Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -7122,6 +7122,7 @@ package android.bluetooth { method public android.bluetooth.le.BluetoothLeScanner getBluetoothLeScanner(); method public java.util.Set<android.bluetooth.BluetoothDevice> getBondedDevices(); method public static synchronized android.bluetooth.BluetoothAdapter getDefaultAdapter(); method public int getLeMaximumAdvertisingDataLength(); method public java.lang.String getName(); method public android.bluetooth.le.PeriodicAdvertisingManager getPeriodicAdvertisingManager(); method public int getProfileConnectionState(int);
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -7591,6 +7591,7 @@ package android.bluetooth { method public android.bluetooth.le.BluetoothLeScanner getBluetoothLeScanner(); method public java.util.Set<android.bluetooth.BluetoothDevice> getBondedDevices(); method public static synchronized android.bluetooth.BluetoothAdapter getDefaultAdapter(); method public int getLeMaximumAdvertisingDataLength(); method public java.lang.String getName(); method public android.bluetooth.le.PeriodicAdvertisingManager getPeriodicAdvertisingManager(); method public int getProfileConnectionState(int);
api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -7149,6 +7149,7 @@ package android.bluetooth { method public android.bluetooth.le.BluetoothLeScanner getBluetoothLeScanner(); method public java.util.Set<android.bluetooth.BluetoothDevice> getBondedDevices(); method public static synchronized android.bluetooth.BluetoothAdapter getDefaultAdapter(); method public int getLeMaximumAdvertisingDataLength(); method public java.lang.String getName(); method public android.bluetooth.le.PeriodicAdvertisingManager getPeriodicAdvertisingManager(); method public int getProfileConnectionState(int);
core/java/android/bluetooth/BluetoothAdapter.java +19 −0 Original line number Diff line number Diff line Loading @@ -1482,6 +1482,25 @@ public final class BluetoothAdapter { return false; } /** * Return the maximum LE advertising data length, * if LE Extended Advertising feature is supported. * * @return the maximum LE advertising data length. */ public int getLeMaximumAdvertisingDataLength() { if (!getLeAccess()) return 0; try { mServiceLock.readLock().lock(); if (mService != null) return mService.getLeMaximumAdvertisingDataLength(); } catch (RemoteException e) { Log.e(TAG, "failed to get getLeMaximumAdvertisingDataLength, error: ", e); } finally { mServiceLock.readLock().unlock(); } return 0; } /** * Return true if hardware has entries available for matching beacons * Loading
core/java/android/bluetooth/IBluetooth.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -108,6 +108,7 @@ interface IBluetooth boolean isLeCodedPhySupported(); boolean isLeExtendedAdvertisingSupported(); boolean isLePeriodicAdvertisingSupported(); int getLeMaximumAdvertisingDataLength(); BluetoothActivityEnergyInfo reportActivityInfo(); /** Loading