Home
last modified time | relevance | path

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

/packages/services/Telephony/tests/src/com/android/services/telephony/
DRadioOnStateListenerTest.java57 @Mock Phone mMockPhone; field in RadioOnStateListenerTest
87 mMockPhone.mCi = mMockCi; in testRegisterForCallback()
88 mListener.waitForRadioOn(mMockPhone, mCallback, false, false); in testRegisterForCallback()
92 verify(mMockPhone).unregisterForServiceStateChanged(any(Handler.class)); in testRegisterForCallback()
93 verify(mMockPhone).registerForServiceStateChanged(any(Handler.class), in testRegisterForCallback()
110 when(mMockPhone.getServiceState()).thenReturn(state); in testPhoneChangeState_OkToCallTrue()
111 when(mMockPhone.getState()).thenReturn(PhoneConstants.State.IDLE); in testPhoneChangeState_OkToCallTrue()
112 when(mCallback.isOkToCall(eq(mMockPhone), anyInt())).thenReturn(true); in testPhoneChangeState_OkToCallTrue()
113 mMockPhone.mCi = mMockCi; in testPhoneChangeState_OkToCallTrue()
114 mListener.waitForRadioOn(mMockPhone, mCallback, false, false); in testPhoneChangeState_OkToCallTrue()
[all …]
DTestTelephonyConnection.java66 private Phone mMockPhone; field in TestTelephonyConnection
85 mMockPhone = mock(Phone.class); in TestTelephonyConnection()
99 when(mMockPhone.getEmergencyNumberTracker()).thenReturn(mEmergencyNumberTracker); in TestTelephonyConnection()
100 when(mMockPhone.getRingingCall()).thenReturn(mMockCall); in TestTelephonyConnection()
101 when(mMockPhone.getContext()).thenReturn(mMockContext); in TestTelephonyConnection()
102 when(mMockPhone.getCurrentSubscriberUris()).thenReturn(null); in TestTelephonyConnection()
105 when(mMockPhone.getDefaultPhone()).thenReturn(mMockPhone); in TestTelephonyConnection()
106 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_IMS); in TestTelephonyConnection()
108 when(mMockCall.getPhone()).thenReturn(mMockPhone); in TestTelephonyConnection()
122 mMockPhone = newPhone; in setMockPhone()
[all …]
/packages/services/Telephony/tests/src/com/android/phone/
DCallFeaturesSettingTest.java48 Phone mMockPhone; field in CallFeaturesSettingTest
61 doReturn(targetContext).when(mMockPhone).getContext(); in setUp()
69 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in onResume_fdnIsAvailable_shouldShowFdnMenu()
70 when(mMockPhone.getIccCard()).thenReturn(mMockIccCard); in onResume_fdnIsAvailable_shouldShowFdnMenu()
72 getField("mPhone").set(mActivity, mMockPhone); in onResume_fdnIsAvailable_shouldShowFdnMenu()
84 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in onResume_iccCardIsNull_shouldNotShowFdnMenu()
85 when(mMockPhone.getIccCard()).thenReturn(null); in onResume_iccCardIsNull_shouldNotShowFdnMenu()
86 getField("mPhone").set(mActivity, mMockPhone); in onResume_iccCardIsNull_shouldNotShowFdnMenu()
98 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in onResume_fdnIsNotAvailable_shouldNotShowFdnMenu()
99 when(mMockPhone.getIccCard()).thenReturn(mMockIccCard); in onResume_fdnIsNotAvailable_shouldNotShowFdnMenu()
[all …]