Loading android/app/src/com/android/bluetooth/gatt/GattService.java +330 −223 File changed.Preview size limit exceeded, changes collapsed. Show changes android/app/src/com/android/bluetooth/gatt/ScanManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -400,7 +400,7 @@ public class ScanManager { if (DBG) { Log.d(TAG, "app died, unregister scanner - " + client.scannerId); } mService.unregisterScanner(client.scannerId); mService.unregisterScanner(client.scannerId, mService.getAttributionSource()); } } Loading android/app/tests/unit/src/com/android/bluetooth/btservice/ProfileServiceTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -55,9 +55,9 @@ public class ProfileServiceTest { private void setProfileState(Class profile, int state) throws TimeoutException { if (state == BluetoothAdapter.STATE_ON) { when(mMockAdapterService.isStartedProfile(anyString())).thenReturn(true); doReturn(true).when(mMockAdapterService).isStartedProfile(eq(profile.getSimpleName())); } else if (state == BluetoothAdapter.STATE_OFF) { when(mMockAdapterService.isStartedProfile(anyString())).thenReturn(false); doReturn(false).when(mMockAdapterService).isStartedProfile(eq(profile.getSimpleName())); } Intent startIntent = new Intent(InstrumentationRegistry.getTargetContext(), profile); startIntent.putExtra(AdapterService.EXTRA_ACTION, Loading Loading
android/app/src/com/android/bluetooth/gatt/GattService.java +330 −223 File changed.Preview size limit exceeded, changes collapsed. Show changes
android/app/src/com/android/bluetooth/gatt/ScanManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -400,7 +400,7 @@ public class ScanManager { if (DBG) { Log.d(TAG, "app died, unregister scanner - " + client.scannerId); } mService.unregisterScanner(client.scannerId); mService.unregisterScanner(client.scannerId, mService.getAttributionSource()); } } Loading
android/app/tests/unit/src/com/android/bluetooth/btservice/ProfileServiceTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -55,9 +55,9 @@ public class ProfileServiceTest { private void setProfileState(Class profile, int state) throws TimeoutException { if (state == BluetoothAdapter.STATE_ON) { when(mMockAdapterService.isStartedProfile(anyString())).thenReturn(true); doReturn(true).when(mMockAdapterService).isStartedProfile(eq(profile.getSimpleName())); } else if (state == BluetoothAdapter.STATE_OFF) { when(mMockAdapterService.isStartedProfile(anyString())).thenReturn(false); doReturn(false).when(mMockAdapterService).isStartedProfile(eq(profile.getSimpleName())); } Intent startIntent = new Intent(InstrumentationRegistry.getTargetContext(), profile); startIntent.putExtra(AdapterService.EXTRA_ACTION, Loading