Home | History | Annotate | Download | only in deviceinfo

Lines Matching refs:when

25 import static org.mockito.Mockito.when;
68 when(mScreen.findPreference(prefKey)).thenReturn(mPreference);
69 when(mScreen.getContext()).thenReturn(mContext);
70 doReturn(mSubscriptionInfo).when(mController).getSubscriptionInfo(anyInt());
71 doReturn(mSecondPreference).when(mController).createNewPreference(mContext);
72 when(mPreference.isVisible()).thenReturn(true);
77 when(mTelephonyManager.isVoiceCapable()).thenReturn(true);
84 when(mTelephonyManager.isVoiceCapable()).thenReturn(false);
91 when(mTelephonyManager.getPhoneCount()).thenReturn(2);
101 doReturn(phoneNumber).when(mController).getFormattedPhoneNumber(mSubscriptionInfo);
102 when(mTelephonyManager.getPhoneCount()).thenReturn(1);
114 doReturn(phoneNumber).when(mController).getFormattedPhoneNumber(mSubscriptionInfo);
115 when(mTelephonyManager.getPhoneCount()).thenReturn(2);