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

Commit 268cad2c authored by Svet Ganov's avatar Svet Ganov
Browse files

Runtime permission attribution improvements

This change updates some of the code due to fw changes.

bug:158792096
bug:180647319

Test:atest com.android.server.telecom.tests.BasicCallTests

Change-Id: I6f49a56f14feddcb70b1eaaf9aa9f4b8ed644e00
parent 70decc1a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -827,8 +827,7 @@ public class BasicCallTests extends TelecomSystemTest {

    private void blockNumberWithAnswer(String phoneNumber, Answer answer) throws Exception {
        when(getBlockedNumberProvider().call(
                anyString(),
                nullable(String.class),
                any(),
                anyString(),
                eq(BlockedNumberContract.SystemContract.METHOD_SHOULD_SYSTEM_BLOCK_NUMBER),
                eq(phoneNumber),
+2 −2
Original line number Diff line number Diff line
@@ -458,7 +458,7 @@ public class MissedCallNotifierImplTest extends TelecomTestCase {
                        CallLog.Calls.PRESENTATION_ALLOWED, CALL_TIMESTAMP)
                .build();

        when(cp.query(anyString(), nullable(String.class), eq(queryUri), nullable(String[].class),
        when(cp.query(any(), eq(queryUri), nullable(String[].class),
                nullable(Bundle.class), nullable(ICancellationSignal.class)))
                .thenReturn(mockMissedCallsCursor);

@@ -528,7 +528,7 @@ public class MissedCallNotifierImplTest extends TelecomTestCase {
                PRIMARY_USER.getIdentifier());
        IContentProvider cp = getContentProviderForUser(PRIMARY_USER.getIdentifier());

        when(cp.query(anyString(), nullable(String.class), eq(queryUri), nullable(String[].class),
        when(cp.query(any(), eq(queryUri), nullable(String[].class),
                nullable(Bundle.class), nullable(ICancellationSignal.class)))
                .thenReturn(mockMissedCallsCursor);