From 76f14ca88895d791423c2e132c737b941dd7d658 Mon Sep 17 00:00:00 2001 From: bkchoi Date: Wed, 15 Sep 2021 13:32:30 -0700 Subject: Specify the flags parameter for registerReceiver() calls. Bug: 197675710 Test: atest CarServiceTest CarServiceUnitTest \ AndroidCarApiTest CarSecurityPermissionTest Change-Id: I7dccc2635613b9014921f6779e6e5a4d635766c8 --- .../src/com/android/car/user/CarUserNoticeServiceTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java') diff --git a/tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java b/tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java index 412e2b187f..710b64d05d 100644 --- a/tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java +++ b/tests/carservice_unit_test/src/com/android/car/user/CarUserNoticeServiceTest.java @@ -138,7 +138,7 @@ public class CarUserNoticeServiceTest extends AbstractExtendedMockitoCarServiceT verify(mMockCarUserService).addUserLifecycleListener( mUserLifecycleListenerArgumentCaptor.capture()); verify(mMockContext).registerReceiver(mDisplayBroadcastReceiver.capture(), - any(IntentFilter.class)); + any(IntentFilter.class), anyInt()); verify(mCarPowerManager).setListener(mPowerStateListener.capture()); when(mMockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); doAnswer(invocation -> mIsKeyguardLocked) @@ -154,7 +154,7 @@ public class CarUserNoticeServiceTest extends AbstractExtendedMockitoCarServiceT CarUserNoticeService otherService = new CarUserNoticeService(mOtherMockContext); otherService.init(); - verify(mOtherMockContext, never()).registerReceiver(any(), any()); + verify(mOtherMockContext, never()).registerReceiver(any(), any(), anyInt()); } @Test -- cgit v1.2.3