Searched refs:mMockPhone (Results 1 – 6 of 6) sorted by relevance
49 Phone mMockPhone; field in CallFeaturesSettingTest62 doReturn(targetContext).when(mMockPhone).getContext(); in setUp()71 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in onResume_fdnIsAvailable_shouldShowFdnMenu()72 when(mMockPhone.getIccCard()).thenReturn(mMockIccCard); in onResume_fdnIsAvailable_shouldShowFdnMenu()74 getField("mPhone").set(mActivity, mMockPhone); in onResume_fdnIsAvailable_shouldShowFdnMenu()87 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in onResume_iccCardIsNull_shouldNotShowFdnMenu()88 when(mMockPhone.getIccCard()).thenReturn(null); in onResume_iccCardIsNull_shouldNotShowFdnMenu()89 getField("mPhone").set(mActivity, mMockPhone); in onResume_iccCardIsNull_shouldNotShowFdnMenu()102 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in onResume_fdnIsNotAvailable_shouldNotShowFdnMenu()103 when(mMockPhone.getIccCard()).thenReturn(mMockIccCard); in onResume_fdnIsNotAvailable_shouldNotShowFdnMenu()[all …]
50 private GsmCdmaPhone mMockPhone; field in PhoneUtilsTest64 when(mMockPhone.getSubId()).thenReturn(mPhoneAccountHandleIdInteger); in setUp()65 Phone[] mPhones = new Phone[] {mMockPhone}; in setUp()77 assertEquals(mMockPhone, PhoneUtils.getPhoneForPhoneAccountHandle( in testGetPhoneForPhoneAccountHandle()
102 private Phone mMockPhone; field in TestTelephonyConnection135 mMockPhone = mock(Phone.class); in TestTelephonyConnection()153 when(mMockPhone.getEmergencyNumberTracker()).thenReturn(mEmergencyNumberTracker); in TestTelephonyConnection()154 when(mMockPhone.getRingingCall()).thenReturn(mMockCall); in TestTelephonyConnection()155 when(mMockPhone.getContext()).thenReturn(mMockContext); in TestTelephonyConnection()156 when(mMockPhone.getCurrentSubscriberUris()).thenReturn(null); in TestTelephonyConnection()165 when(mMockPhone.getDefaultPhone()).thenReturn(mMockPhone); in TestTelephonyConnection()166 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_IMS); in TestTelephonyConnection()168 when(mMockCall.getPhone()).thenReturn(mMockPhone); in TestTelephonyConnection()169 when(mMockPhone.getDefaultPhone()).thenReturn(mMockPhone); in TestTelephonyConnection()[all …]
43 private Phone mMockPhone; field in TestTelephonyConnectionSimple56 mMockPhone = mock(Phone.class); in TestTelephonyConnectionSimple()60 when(mMockPhone.getSubId()).thenReturn(1); in TestTelephonyConnectionSimple()64 mMockPhone = newPhone; in setMockPhone()69 return mMockPhone; in getPhone()
65 private GsmCdmaPhone mMockPhone; field in DisconnectCauseUtilTest78 mMockPhone = mock(GsmCdmaPhone.class); in setUp()257 Phone[] mPhones = new Phone[]{mMockPhone}; in setSinglePhone()
135 private Phone mMockPhone; field in SatelliteAccessControllerTest225 mPhones = new Phone[]{mMockPhone, mMockPhone2}; in setUp()378 when(mMockPhone.isInEcm()).thenReturn(true); in testRequestIsSatelliteCommunicationAllowedForCurrentLocation()407 when(mMockPhone.isInEcm()).thenReturn(true); in testRequestIsSatelliteCommunicationAllowedForCurrentLocation()440 when(mMockPhone.isInEcm()).thenReturn(false); in testRequestIsSatelliteCommunicationAllowedForCurrentLocation()