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

Commit 4d805b23 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make call screening service bind like a top app" into tm-qpr-dev

parents 40da40a9 4a690888
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -210,7 +210,8 @@ public class CallScreeningServiceHelper {
        if (context.bindServiceAsUser(
                intent,
                serviceConnection,
                Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE,
                Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE
                | Context.BIND_SCHEDULE_LIKE_TOP_APP,
                UserHandle.CURRENT)) {
            Log.d(TAG, "bindService, found service, waiting for it to connect");
            return true;
+2 −1
Original line number Diff line number Diff line
@@ -395,7 +395,8 @@ public class CallScreeningServiceFilterTest extends TelecomTestCase {
                .forClass(ServiceConnection.class);
        verify(mContext, timeout(CallScreeningServiceFilter.CALL_SCREENING_FILTER_TIMEOUT))
                .bindServiceAsUser(intentCaptor.capture(), serviceCaptor.capture(),
                eq(Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE),
                eq(Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE
                        | Context.BIND_SCHEDULE_LIKE_TOP_APP),
                eq(UserHandle.CURRENT));

        Intent capturedIntent = intentCaptor.getValue();