Lines Matching refs:getForegroundCall

146         assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
150 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
153 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
154 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
169 assertEquals(Call.State.DIALING, mGSMPhone.getForegroundCall().getState());
170 assertTrue(mGSMPhone.getForegroundCall().isDialingOrAlerting());
174 } while (mGSMPhone.getForegroundCall().getConnections().size() == 0);*/
177 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
182 mGSMPhone.getForegroundCall().getState());
185 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
186 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
188 cn = mGSMPhone.getForegroundCall().getConnections().get(0);
203 while (mGSMPhone.getForegroundCall().getState() != Call.State.ALERTING);
206 assertTrue(mGSMPhone.getForegroundCall().isDialingOrAlerting());
209 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
213 assertEquals(Call.State.ALERTING, mGSMPhone.getForegroundCall().getState());
216 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
217 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
219 cn = mGSMPhone.getForegroundCall().getConnections().get(0);
230 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
233 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
236 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
240 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
243 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
244 assertTrue(mGSMPhone.getForegroundCall().getEarliestConnectTime() > 0);
246 cn = mGSMPhone.getForegroundCall().getConnections().get(0);
252 mGSMPhone.getForegroundCall().hangup();
258 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
261 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
265 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
268 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
269 assertTrue(mGSMPhone.getForegroundCall().getEarliestConnectTime() > 0);
273 cn = mGSMPhone.getForegroundCall().getEarliestConnection();
282 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
285 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
289 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
292 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
293 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
317 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
321 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
327 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
328 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
347 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
352 mGSMPhone.getForegroundCall().getState());
355 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
356 assertTrue(mGSMPhone.getForegroundCall().getEarliestConnectTime() > 0);
358 cn = mGSMPhone.getForegroundCall().getConnections().get(0);
368 conn = mGSMPhone.getForegroundCall().getConnections().get(0);
379 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
383 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
388 mGSMPhone.getForegroundCall().getState());
391 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
392 assertTrue(mGSMPhone.getForegroundCall().getEarliestConnectTime() > 0);
394 cn = mGSMPhone.getForegroundCall().getEarliestConnection();
406 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
410 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
414 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
418 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
421 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
422 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
439 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
443 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
447 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
453 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
454 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
465 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
469 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
473 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
479 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
480 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
494 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
498 assertEquals(0, mGSMPhone.getForegroundCall().getConnections().size());
502 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
505 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestCreateTime());
506 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
520 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
553 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
564 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
575 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
586 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
628 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
631 mGSMPhone.getForegroundCall().hangup();
639 } while (mGSMPhone.getForegroundCall().getState()
655 assertTrue(mGSMPhone.getForegroundCall().isDialingOrAlerting());
664 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
666 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
676 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
686 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
689 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
700 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
703 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
704 assertTrue(mGSMPhone.getForegroundCall().isMultiparty());
716 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
728 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
731 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
747 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
757 assertFalse(mGSMPhone.getForegroundCall().isDialingOrAlerting());
780 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
784 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
787 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
788 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
803 while (mGSMPhone.getForegroundCall().getState() != Call.State.DIALING);
805 cn = mGSMPhone.getForegroundCall().getEarliestConnection();
807 mGSMPhone.getForegroundCall().hangup();
813 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
828 while (mGSMPhone.getForegroundCall().getState() != Call.State.ALERTING);
830 cn = mGSMPhone.getForegroundCall().getEarliestConnection();
832 mGSMPhone.getForegroundCall().hangup();
839 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
857 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
860 mGSMPhone.getForegroundCall().getEarliestConnection().getDisconnectCause());
868 } while (mGSMPhone.getForegroundCall().getConnections().isEmpty());
875 } while (!mGSMPhone.getForegroundCall().getConnections().isEmpty());
887 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
889 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
902 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
916 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
927 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
939 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
952 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
954 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
969 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
984 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
986 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
995 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
1007 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1010 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1023 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1032 } while (mGSMPhone.getForegroundCall().getState() == Call.State.ACTIVE);
1037 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1049 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1059 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE ||
1062 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1083 } while (mGSMPhone.getForegroundCall().getState() == Call.State.ACTIVE);
1085 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1097 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1100 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1108 } while (mGSMPhone.getForegroundCall().getState() == Call.State.ACTIVE);
1110 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1123 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1125 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1138 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1156 mGSMPhone.getForegroundCall().getState());
1158 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1169 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1171 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1183 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1185 assertEquals(2, mGSMPhone.getForegroundCall().getConnections().size());
1208 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1210 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1223 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1225 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1234 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1236 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1246 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1248 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1250 mGSMPhone.getForegroundCall().getConnections().get(1).getAddress());
1263 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1265 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1278 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1280 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1293 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1297 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1299 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1312 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1323 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1325 mGSMPhone.getForegroundCall().getConnections().get(0).getAddress());
1334 } while (mGSMPhone.getForegroundCall().getState() == Call.State.ACTIVE);
1336 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1346 } while (mGSMPhone.getForegroundCall().getState() != Call.State.ACTIVE);
1348 assertEquals(Call.State.ACTIVE, mGSMPhone.getForegroundCall().getState());
1355 } while (mGSMPhone.getForegroundCall().getState() == Call.State.ACTIVE);
1357 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1529 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
1533 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1536 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
1537 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
1567 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
1572 mGSMPhone.getForegroundCall().getState());
1575 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
1576 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());
1614 assertEquals(1, mGSMPhone.getForegroundCall().getConnections().size());
1618 assertEquals(Call.State.DISCONNECTED, mGSMPhone.getForegroundCall().getState());
1621 assertTrue(mGSMPhone.getForegroundCall().getEarliestCreateTime() > 0);
1622 assertEquals(0, mGSMPhone.getForegroundCall().getEarliestConnectTime());