Loading framework/java/android/bluetooth/BluetoothAdapter.java +2 −2 Original line number Diff line number Diff line Loading @@ -2434,9 +2434,9 @@ public final class BluetoothAdapter { @RequiresNoPermission public boolean isBleScanAlwaysAvailable() { try { return mManagerService.isBleScanAlwaysAvailable(); return mManagerService.isBleScanAvailable(); } catch (RemoteException e) { Log.e(TAG, "remote exception when calling isBleScanAlwaysAvailable", e); Log.e(TAG, "remote exception when calling isBleScanAvailable", e); return false; } } Loading service/aidl/android/bluetooth/IBluetoothManager.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ interface IBluetoothManager boolean onFactoryReset(in AttributionSource attributionSource); @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission") boolean isBleScanAlwaysAvailable(); boolean isBleScanAvailable(); @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)") boolean enableBle(in AttributionSource attributionSource, IBinder b); @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)") Loading service/src/com/android/server/bluetooth/BluetoothManagerService.java +2 −2 Original line number Diff line number Diff line Loading @@ -875,7 +875,7 @@ class BluetoothManagerService { } } boolean isBleScanAlwaysAvailable() { boolean isBleScanAvailable() { if (Flags.airplaneModeXBleOn()) { if (AirplaneModeListener.isOn() && !mEnable) { return false; Loading Loading @@ -915,7 +915,7 @@ class BluetoothManagerService { new ContentObserver(new Handler(mLooper)) { @Override public void onChange(boolean selfChange) { if (isBleScanAlwaysAvailable()) { if (isBleScanAvailable()) { // Nothing to do return; } Loading service/src/com/android/server/bluetooth/BluetoothServiceBinder.java +2 −2 Original line number Diff line number Diff line Loading @@ -237,8 +237,8 @@ class BluetoothServiceBinder extends IBluetoothManager.Stub { } @Override public boolean isBleScanAlwaysAvailable() { return mBluetoothManagerService.isBleScanAlwaysAvailable(); public boolean isBleScanAvailable() { return mBluetoothManagerService.isBleScanAvailable(); } @Override Loading service/tests/src/com/android/server/bluetooth/BluetoothServiceBinderTest.java +3 −3 Original line number Diff line number Diff line Loading @@ -293,10 +293,10 @@ public class BluetoothServiceBinderTest { } @Test public void isBleScanAlwaysAvailable() { public void isBleScanAvailable() { // No permission needed for this call mBinder.isBleScanAlwaysAvailable(); verify(mManagerService).isBleScanAlwaysAvailable(); mBinder.isBleScanAvailable(); verify(mManagerService).isBleScanAvailable(); verifyMock(); } Loading Loading
framework/java/android/bluetooth/BluetoothAdapter.java +2 −2 Original line number Diff line number Diff line Loading @@ -2434,9 +2434,9 @@ public final class BluetoothAdapter { @RequiresNoPermission public boolean isBleScanAlwaysAvailable() { try { return mManagerService.isBleScanAlwaysAvailable(); return mManagerService.isBleScanAvailable(); } catch (RemoteException e) { Log.e(TAG, "remote exception when calling isBleScanAlwaysAvailable", e); Log.e(TAG, "remote exception when calling isBleScanAvailable", e); return false; } } Loading
service/aidl/android/bluetooth/IBluetoothManager.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ interface IBluetoothManager boolean onFactoryReset(in AttributionSource attributionSource); @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission") boolean isBleScanAlwaysAvailable(); boolean isBleScanAvailable(); @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)") boolean enableBle(in AttributionSource attributionSource, IBinder b); @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)") Loading
service/src/com/android/server/bluetooth/BluetoothManagerService.java +2 −2 Original line number Diff line number Diff line Loading @@ -875,7 +875,7 @@ class BluetoothManagerService { } } boolean isBleScanAlwaysAvailable() { boolean isBleScanAvailable() { if (Flags.airplaneModeXBleOn()) { if (AirplaneModeListener.isOn() && !mEnable) { return false; Loading Loading @@ -915,7 +915,7 @@ class BluetoothManagerService { new ContentObserver(new Handler(mLooper)) { @Override public void onChange(boolean selfChange) { if (isBleScanAlwaysAvailable()) { if (isBleScanAvailable()) { // Nothing to do return; } Loading
service/src/com/android/server/bluetooth/BluetoothServiceBinder.java +2 −2 Original line number Diff line number Diff line Loading @@ -237,8 +237,8 @@ class BluetoothServiceBinder extends IBluetoothManager.Stub { } @Override public boolean isBleScanAlwaysAvailable() { return mBluetoothManagerService.isBleScanAlwaysAvailable(); public boolean isBleScanAvailable() { return mBluetoothManagerService.isBleScanAvailable(); } @Override Loading
service/tests/src/com/android/server/bluetooth/BluetoothServiceBinderTest.java +3 −3 Original line number Diff line number Diff line Loading @@ -293,10 +293,10 @@ public class BluetoothServiceBinderTest { } @Test public void isBleScanAlwaysAvailable() { public void isBleScanAvailable() { // No permission needed for this call mBinder.isBleScanAlwaysAvailable(); verify(mManagerService).isBleScanAlwaysAvailable(); mBinder.isBleScanAvailable(); verify(mManagerService).isBleScanAvailable(); verifyMock(); } Loading