Lines Matching refs:getForegroundCall

144         assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
148 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
151 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
152 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
167 assertEquals(Call.State.DIALING, mGSMPhone.getForegroundCall().getState());
168 assertTrue(mGSMPhone.getForegroundCall().isDialingOrAlerting());
172 } while (mGSMPhone.getForegroundCall().getConnections().size() == 0);*/
175 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
180 mGSMPhone.getForegroundCall().getState());
183 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
184 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
186 cn = mGSMPhone.getForegroundCall().getConnections().get(0);
201 while (mGSMPhone.getForegroundCall().getState() != Call.State.ALERTING);
204 assertTrue(mGSMPhone.getForegroundCall().isDialingOrAlerting());
207 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
211 assertEquals(Call.State.ALERTING, mGSMPhone.getForegroundCall().getState());
214 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
215 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
217 cn = mGSMPhone.getForegroundCall().getConnections().get(0);
228 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
231 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
234 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
238 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
241 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
242 assertTrue(mGSMPhone.getForegroundCall().getEarliestConnectTime() > 0);
244 cn = mGSMPhone.getForegroundCall().getConnections().get(0);
250 mGSMPhone.getForegroundCall().hangup();
256 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
259 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
263 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
266 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
267 assertTrue(mGSMPhone.getForegroundCall().getEarliestConnectTime() > 0);
271 cn = mGSMPhone.getForegroundCall().getEarliestConnection();
280 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
283 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
287 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
290 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
291 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
315 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
319 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
325 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
326 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
345 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
350 mGSMPhone.getForegroundCall().getState());
353 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
354 assertTrue(mGSMPhone.getForegroundCall().getEarliestConnectTime() > 0);
356 cn = mGSMPhone.getForegroundCall().getConnections().get(0);
366 conn = mGSMPhone.getForegroundCall().getConnections().get(0);
377 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
381 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
386 mGSMPhone.getForegroundCall().getState());
389 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
390 assertTrue(mGSMPhone.getForegroundCall().getEarliestConnectTime() > 0);
392 cn = mGSMPhone.getForegroundCall().getEarliestConnection();
404 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
408 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
412 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
416 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
419 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
420 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
437 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
441 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
445 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
451 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
452 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
463 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
467 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
471 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
477 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
478 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
492 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
496 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
500 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
503 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
504 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
518 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
551 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
562 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
573 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
584 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
626 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
629 mGSMPhone.getForegroundCall().hangup();
637 } while (mGSMPhone.getForegroundCall().getState()
653 assertTrue(mGSMPhone.getForegroundCall().isDialingOrAlerting());
662 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
664 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
674 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
684 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
687 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
698 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
701 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
702 assertTrue(mGSMPhone.getForegroundCall().isMultiparty());
714 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
726 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
729 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
745 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
755 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
778 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
782 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
785 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
786 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
801 while (mGSMPhone.getForegroundCall().getState() != Call.State.DIALING);
803 cn = mGSMPhone.getForegroundCall().getEarliestConnection();
805 mGSMPhone.getForegroundCall().hangup();
811 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
826 while (mGSMPhone.getForegroundCall().getState() != Call.State.ALERTING);
828 cn = mGSMPhone.getForegroundCall().getEarliestConnection();
830 mGSMPhone.getForegroundCall().hangup();
837 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
855 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
858 mGSMPhone.getForegroundCall().getEarliestConnection().getDisconnectCause());
866 } while (mGSMPhone.getForegroundCall().getConnections().isEmpty());
873 } while (!mGSMPhone.getForegroundCall().getConnections().isEmpty());
885 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
887 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
900 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
914 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
925 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
937 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
950 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
952 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
967 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
982 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
984 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
993 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
1005 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1008 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1021 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1030 } while (mGSMPhone.getForegroundCall().getState() == Call.State.ACTIVE);
1035 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1047 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1057 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE ||
1060 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1081 } while (mGSMPhone.getForegroundCall().getState() == Call.State.ACTIVE);
1083 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1095 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1098 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1106 } while (mGSMPhone.getForegroundCall().getState() == Call.State.ACTIVE);
1108 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1121 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1123 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1136 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1154 mGSMPhone.getForegroundCall().getState());
1156 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1167 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1169 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1181 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1183 assertEquals(2, mGSMPhone.getForegroundCall().getConnections().size());
1206 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1208 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1221 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1223 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1232 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1234 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1244 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1246 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1248 mGSMPhone.getForegroundCall().getConnections().get(1).getAddress());
1261 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1263 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1276 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1278 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1291 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1295 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1297 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1310 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1321 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1323 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1332 } while (mGSMPhone.getForegroundCall().getState() == Call.State.ACTIVE);
1334 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1344 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1346 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1353 } while (mGSMPhone.getForegroundCall().getState() == Call.State.ACTIVE);
1355 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1527 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
1531 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1534 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
1535 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
1565 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
1570 mGSMPhone.getForegroundCall().getState());
1573 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
1574 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
1612 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
1616 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1619 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
1620 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());