Home
last modified time | relevance | path

Searched refs:mMockPhone (Results 1 – 6 of 6) sorted by relevance

/packages/services/Telephony/tests/src/com/android/phone/
DCallFeaturesSettingTest.java49 Phone mMockPhone; field in CallFeaturesSettingTest
62 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 …]
DPhoneUtilsTest.java50 private GsmCdmaPhone mMockPhone; field in PhoneUtilsTest
64 when(mMockPhone.getSubId()).thenReturn(mPhoneAccountHandleIdInteger); in setUp()
65 Phone[] mPhones = new Phone[] {mMockPhone}; in setUp()
77 assertEquals(mMockPhone, PhoneUtils.getPhoneForPhoneAccountHandle( in testGetPhoneForPhoneAccountHandle()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTestTelephonyConnection.java102 private Phone mMockPhone; field in TestTelephonyConnection
135 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 …]
DTestTelephonyConnectionSimple.java43 private Phone mMockPhone; field in TestTelephonyConnectionSimple
56 mMockPhone = mock(Phone.class); in TestTelephonyConnectionSimple()
60 when(mMockPhone.getSubId()).thenReturn(1); in TestTelephonyConnectionSimple()
64 mMockPhone = newPhone; in setMockPhone()
69 return mMockPhone; in getPhone()
DDisconnectCauseUtilTest.java65 private GsmCdmaPhone mMockPhone; field in DisconnectCauseUtilTest
78 mMockPhone = mock(GsmCdmaPhone.class); in setUp()
257 Phone[] mPhones = new Phone[]{mMockPhone}; in setSinglePhone()
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/
DSatelliteAccessControllerTest.java135 private Phone mMockPhone; field in SatelliteAccessControllerTest
225 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()