Lines Matching refs:mPhone

72             registerForPhone(mPhone);
93 private void registerForPhone(Phone mPhone) {
94 CallManager.getInstance().registerPhone(mPhone);
104 doReturn(mBgCall).when(mPhone).getBackgroundCall();
105 doReturn(mFgCall).when(mPhone).getForegroundCall();
106 doReturn(mRingingCall).when(mPhone).getRingingCall();
107 doReturn(mPhone).when(mBgCall).getPhone();
108 doReturn(mPhone).when(mFgCall).getPhone();
109 doReturn(mPhone).when(mRingingCall).getPhone();
124 CallManager.getInstance().unregisterPhone(mPhone);
131 assertEquals(mPhone, CallManager.getInstance().getDefaultPhone());
136 assertEquals(mPhone, CallManager.getInstance().getRingingPhone());
137 assertEquals(mPhone, CallManager.getInstance().getBgPhone());
138 assertEquals(mPhone, CallManager.getInstance().getFgPhone());
144 CallManager.getInstance().dial(mPhone,
148 verify(mPhone, times(1)).dial(mCaptorString.capture(), mCaptorInt.capture());
157 verify(mPhone, times(1)).acceptCall(anyInt());
164 verify(mPhone, times(1)).rejectCall();
170 verify(mPhone, times(0)).sendDtmf(eq('a'));
176 verify(mPhone, times(1)).sendDtmf(eq('a'));
183 verify(mPhone, times(0)).startDtmf(anyChar());
189 verify(mPhone, times(1)).startDtmf('a');
196 verify(mPhone, times(0)).stopDtmf();
200 assertEquals(mPhone, CallManager.getInstance().getFgPhone());
202 verify(mPhone, times(1)).stopDtmf();
209 verify(mPhone, times(0)).sendBurstDtmf(anyString(), anyInt(), anyInt(), (Message) any());
214 verify(mPhone, times(1)).sendBurstDtmf("12*#", 0, 0, null);
220 verify(mPhone, times(0)).setMute(anyBoolean());
225 verify(mPhone, times(1)).setMute(false);
228 verify(mPhone, times(1)).setMute(true);
236 verify(mPhone, times(1)).switchHoldingAndActive();
240 verify(mPhone, times(2)).switchHoldingAndActive();
244 verify(mPhone, times(3)).switchHoldingAndActive();
249 verify(mPhone, times(4)).switchHoldingAndActive();
257 verify(mPhone, times(0)).switchHoldingAndActive();
264 verify(mPhone, times(0)).switchHoldingAndActive();
273 verify(mPhone, times(1)).switchHoldingAndActive();
283 assertTrue(CallManager.getInstance().hasActiveFgCall(mPhone.getSubId()));
286 CallManager.getInstance().dial(mPhone,
291 verify(mPhone, times(1)).dial(mCaptorString.capture(), mCaptorInt.capture());
302 verify(mPhone, times(1)).registerForCallWaiting(isA(Handler.class),
308 verify(mPhone, times(1)).registerForPreciseCallStateChanged(isA(Handler.class),
314 verify(mPhone, times(1)).registerForRingbackTone(isA(Handler.class),
331 // mPhone: STATE_IN_SERVICE > mPhoneSecond: state STATE_OUT_OF_SERVICE
335 // mPhone: STATE_IN_SERVICE > mPhoneSecond: state STATE_EMERGENCY_ONLY
339 // mPhone: STATE_IN_SERVICE > mPhoneSecond: state STATE_POWER_OFF
343 // mPhone: STATE_EMERGENCY_ONLY < mPhoneSecond: state STATE_OUT_OF_SERVICE
349 // mPhone: STATE_POWER_OFF < mPhoneSecond: state STATE_OUT_OF_SERVICE
354 /* mPhone: STATE_POWER_OFF < mPhoneSecond: state STATE_EMERGENCY_ONLY