Loading android/app/src/com/android/bluetooth/sdp/SdpManager.java +2 −3 Original line number Diff line number Diff line Loading @@ -183,6 +183,7 @@ public class SdpManager { SdpSearchInstance getSearchInstance(byte[] address, byte[] uuidBytes) { String addressString = Utils.getAddressStringFromByte(address); addressString = sAdapterService.getIdentityAddress(addressString); ParcelUuid uuid = Utils.byteArrayToUuid(uuidBytes)[0]; for (SdpSearchInstance inst : mList) { if (inst.getDevice().getAddress().equals(addressString) && inst.getUuid() Loading @@ -208,8 +209,6 @@ public class SdpManager { private SdpManager(AdapterService adapterService) { sSdpSearchTracker = new SdpSearchTracker(); /* This is only needed until intents are no longer used */ sAdapterService = adapterService; initializeNative(); sNativeAvailable = true; Loading Loading @@ -464,7 +463,7 @@ public class SdpManager { inst.startSearch(); // Trigger timeout message sdpSearchNative(Utils.getBytesFromAddress(inst.getDevice().getAddress()), sdpSearchNative(sAdapterService.getByteIdentityAddress(inst.getDevice()), Utils.uuidToByteArray(inst.getUuid())); } else { // Else queue is empty. if (D) { Loading android/app/tests/unit/src/com/android/bluetooth/sdp/DipTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.bluetooth.sdp; import static com.google.common.truth.Truth.assertThat; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.verify; import android.bluetooth.BluetoothAdapter; Loading Loading @@ -73,6 +74,7 @@ public class DipTest { MockitoAnnotations.initMocks(this); TestUtils.setAdapterService(mAdapterService); doReturn("00:01:02:03:04:05").when(mAdapterService).getIdentityAddress("00:01:02:03:04:05"); if (Looper.myLooper() == null) { Looper.prepare(); Loading Loading
android/app/src/com/android/bluetooth/sdp/SdpManager.java +2 −3 Original line number Diff line number Diff line Loading @@ -183,6 +183,7 @@ public class SdpManager { SdpSearchInstance getSearchInstance(byte[] address, byte[] uuidBytes) { String addressString = Utils.getAddressStringFromByte(address); addressString = sAdapterService.getIdentityAddress(addressString); ParcelUuid uuid = Utils.byteArrayToUuid(uuidBytes)[0]; for (SdpSearchInstance inst : mList) { if (inst.getDevice().getAddress().equals(addressString) && inst.getUuid() Loading @@ -208,8 +209,6 @@ public class SdpManager { private SdpManager(AdapterService adapterService) { sSdpSearchTracker = new SdpSearchTracker(); /* This is only needed until intents are no longer used */ sAdapterService = adapterService; initializeNative(); sNativeAvailable = true; Loading Loading @@ -464,7 +463,7 @@ public class SdpManager { inst.startSearch(); // Trigger timeout message sdpSearchNative(Utils.getBytesFromAddress(inst.getDevice().getAddress()), sdpSearchNative(sAdapterService.getByteIdentityAddress(inst.getDevice()), Utils.uuidToByteArray(inst.getUuid())); } else { // Else queue is empty. if (D) { Loading
android/app/tests/unit/src/com/android/bluetooth/sdp/DipTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.bluetooth.sdp; import static com.google.common.truth.Truth.assertThat; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.verify; import android.bluetooth.BluetoothAdapter; Loading Loading @@ -73,6 +74,7 @@ public class DipTest { MockitoAnnotations.initMocks(this); TestUtils.setAdapterService(mAdapterService); doReturn("00:01:02:03:04:05").when(mAdapterService).getIdentityAddress("00:01:02:03:04:05"); if (Looper.myLooper() == null) { Looper.prepare(); Loading