Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff62b086 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Add AttributionSource to BT methods." into sc-dev

parents d8f549aa de3b1db4
Loading
Loading
Loading
Loading
+330 −223

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -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());
            }
        }

+2 −2
Original line number Diff line number Diff line
@@ -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,