Loading packages/SystemUI/multivalentTests/src/com/android/keyguard/EmergencyButtonControllerTest.kt +3 −3 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ class EmergencyButtonControllerTest : SysuiTestCase() { fun testUpdateEmergencyButton() { Mockito.`when`(telecomManager.isInCall).thenReturn(true) Mockito.`when`(lockPatternUtils.isSecure(anyInt())).thenReturn(true) Mockito.`when`(packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) Mockito.`when`(packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CALLING)) .thenReturn(true) underTest.updateEmergencyCallButton() backgroundExecutor.runAllReady() Loading @@ -112,7 +112,7 @@ class EmergencyButtonControllerTest : SysuiTestCase() { /* isInCall= */ any(), /* hasTelephonyRadio= */ any(), /* simLocked= */ any(), /* isSecure= */ any() /* isSecure= */ any(), ) mainExecutor.runAllReady() verify(emergencyButton) Loading @@ -120,7 +120,7 @@ class EmergencyButtonControllerTest : SysuiTestCase() { /* isInCall= */ eq(true), /* hasTelephonyRadio= */ eq(true), /* simLocked= */ any(), /* isSecure= */ eq(true) /* isSecure= */ eq(true), ) } Loading packages/SystemUI/src/com/android/keyguard/EmergencyButtonController.java +1 −1 Original line number Diff line number Diff line Loading @@ -156,7 +156,7 @@ public class EmergencyButtonController extends ViewController<EmergencyButton> { mMainExecutor.execute(() -> mView.updateEmergencyCallButton( /* isInCall= */ isInCall, /* hasTelephonyRadio= */ getContext().getPackageManager() .hasSystemFeature(PackageManager.FEATURE_TELEPHONY), .hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CALLING), /* simLocked= */ mKeyguardUpdateMonitor.isSimPinVoiceSecure(), /* isSecure= */ isSecure)); }); Loading Loading
packages/SystemUI/multivalentTests/src/com/android/keyguard/EmergencyButtonControllerTest.kt +3 −3 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ class EmergencyButtonControllerTest : SysuiTestCase() { fun testUpdateEmergencyButton() { Mockito.`when`(telecomManager.isInCall).thenReturn(true) Mockito.`when`(lockPatternUtils.isSecure(anyInt())).thenReturn(true) Mockito.`when`(packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) Mockito.`when`(packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CALLING)) .thenReturn(true) underTest.updateEmergencyCallButton() backgroundExecutor.runAllReady() Loading @@ -112,7 +112,7 @@ class EmergencyButtonControllerTest : SysuiTestCase() { /* isInCall= */ any(), /* hasTelephonyRadio= */ any(), /* simLocked= */ any(), /* isSecure= */ any() /* isSecure= */ any(), ) mainExecutor.runAllReady() verify(emergencyButton) Loading @@ -120,7 +120,7 @@ class EmergencyButtonControllerTest : SysuiTestCase() { /* isInCall= */ eq(true), /* hasTelephonyRadio= */ eq(true), /* simLocked= */ any(), /* isSecure= */ eq(true) /* isSecure= */ eq(true), ) } Loading
packages/SystemUI/src/com/android/keyguard/EmergencyButtonController.java +1 −1 Original line number Diff line number Diff line Loading @@ -156,7 +156,7 @@ public class EmergencyButtonController extends ViewController<EmergencyButton> { mMainExecutor.execute(() -> mView.updateEmergencyCallButton( /* isInCall= */ isInCall, /* hasTelephonyRadio= */ getContext().getPackageManager() .hasSystemFeature(PackageManager.FEATURE_TELEPHONY), .hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CALLING), /* simLocked= */ mKeyguardUpdateMonitor.isSimPinVoiceSecure(), /* isSecure= */ isSecure)); }); Loading