Loading framework/java/android/bluetooth/le/AdvertisingSet.java +1 −1 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ public final class AdvertisingSet { * * @param enable whether the periodic advertising should be enabled (true), or disabled (false). */ public void setPeriodicAdvertisingEnable(boolean enable) { public void setPeriodicAdvertisingEnabled(boolean enable) { try { gatt.setPeriodicAdvertisingEnable(this.advertiserId, enable); } catch (RemoteException e) { Loading framework/java/android/bluetooth/le/AdvertisingSetCallback.java +1 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ public abstract class AdvertisingSetCallback { int status) {} /** * Callback triggered in response to {@link AdvertisingSet#setPeriodicAdvertisingEnable} * Callback triggered in response to {@link AdvertisingSet#setPeriodicAdvertisingEnabled} * indicating result of the operation. * * @param advertisingSet The advertising set. Loading framework/java/android/bluetooth/le/AdvertisingSetParameters.java +7 −6 Original line number Diff line number Diff line Loading @@ -242,7 +242,7 @@ public final class AdvertisingSetParameters implements Parcelable { * non-connectable. * Legacy advertisements can be both connectable and scannable. Non-legacy * advertisements can be only scannable or only connectable. * @param connectable Controls whether the advertisment type will be * @param connectable Controls whether the advertisement type will be * connectable (true) or non-connectable (false). */ public Builder setConnectable(boolean connectable) { Loading @@ -254,7 +254,7 @@ public final class AdvertisingSetParameters implements Parcelable { * Set whether the advertisement type should be scannable. * Legacy advertisements can be both connectable and scannable. Non-legacy * advertisements can be only scannable or only connectable. * @param scannable Controls whether the advertisment type will be * @param scannable Controls whether the advertisement type will be * scannable (true) or non-scannable (false). */ public Builder setScannable(boolean scannable) { Loading Loading @@ -386,6 +386,7 @@ public final class AdvertisingSetParameters implements Parcelable { /** * Build the {@link AdvertisingSetParameters} object. * @throws IllegalStateException if invalid combination of parameters is used. */ public AdvertisingSetParameters build() { if (isLegacy) { Loading @@ -394,22 +395,22 @@ public final class AdvertisingSetParameters implements Parcelable { } if (connectable == true && scannable == false) { throw new IllegalArgumentException( throw new IllegalStateException( "Legacy advertisement can't be connectable and non-scannable"); } if (includeTxPower) { throw new IllegalArgumentException( throw new IllegalStateException( "Legacy advertising can't include TX power level in header"); } } else { if (connectable && scannable) { throw new IllegalArgumentException( throw new IllegalStateException( "Advertising can't be both connectable and scannable"); } if (isAnonymous && connectable) { throw new IllegalArgumentException( throw new IllegalStateException( "Advertising can't be both connectable and anonymous"); } } Loading Loading
framework/java/android/bluetooth/le/AdvertisingSet.java +1 −1 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ public final class AdvertisingSet { * * @param enable whether the periodic advertising should be enabled (true), or disabled (false). */ public void setPeriodicAdvertisingEnable(boolean enable) { public void setPeriodicAdvertisingEnabled(boolean enable) { try { gatt.setPeriodicAdvertisingEnable(this.advertiserId, enable); } catch (RemoteException e) { Loading
framework/java/android/bluetooth/le/AdvertisingSetCallback.java +1 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ public abstract class AdvertisingSetCallback { int status) {} /** * Callback triggered in response to {@link AdvertisingSet#setPeriodicAdvertisingEnable} * Callback triggered in response to {@link AdvertisingSet#setPeriodicAdvertisingEnabled} * indicating result of the operation. * * @param advertisingSet The advertising set. Loading
framework/java/android/bluetooth/le/AdvertisingSetParameters.java +7 −6 Original line number Diff line number Diff line Loading @@ -242,7 +242,7 @@ public final class AdvertisingSetParameters implements Parcelable { * non-connectable. * Legacy advertisements can be both connectable and scannable. Non-legacy * advertisements can be only scannable or only connectable. * @param connectable Controls whether the advertisment type will be * @param connectable Controls whether the advertisement type will be * connectable (true) or non-connectable (false). */ public Builder setConnectable(boolean connectable) { Loading @@ -254,7 +254,7 @@ public final class AdvertisingSetParameters implements Parcelable { * Set whether the advertisement type should be scannable. * Legacy advertisements can be both connectable and scannable. Non-legacy * advertisements can be only scannable or only connectable. * @param scannable Controls whether the advertisment type will be * @param scannable Controls whether the advertisement type will be * scannable (true) or non-scannable (false). */ public Builder setScannable(boolean scannable) { Loading Loading @@ -386,6 +386,7 @@ public final class AdvertisingSetParameters implements Parcelable { /** * Build the {@link AdvertisingSetParameters} object. * @throws IllegalStateException if invalid combination of parameters is used. */ public AdvertisingSetParameters build() { if (isLegacy) { Loading @@ -394,22 +395,22 @@ public final class AdvertisingSetParameters implements Parcelable { } if (connectable == true && scannable == false) { throw new IllegalArgumentException( throw new IllegalStateException( "Legacy advertisement can't be connectable and non-scannable"); } if (includeTxPower) { throw new IllegalArgumentException( throw new IllegalStateException( "Legacy advertising can't include TX power level in header"); } } else { if (connectable && scannable) { throw new IllegalArgumentException( throw new IllegalStateException( "Advertising can't be both connectable and scannable"); } if (isAnonymous && connectable) { throw new IllegalArgumentException( throw new IllegalStateException( "Advertising can't be both connectable and anonymous"); } } Loading