Lines Matching refs:InCallState
173 private InCallState mInCallState = InCallState.NO_CALLS;
299 public InCallState getInCallState() {
453 if (mInCallState == InCallState.NO_CALLS) {
685 InCallState newState = getPotentialStateFromCallList(callList);
686 InCallState oldState = mInCallState;
695 if (newState == InCallState.INCOMING
724 InCallState newState = startOrFinishUi(InCallState.INCOMING);
725 InCallState oldState = mInCallState;
743 && mInCallState == InCallPresenter.InCallState.INCOMING) {
805 public InCallState getPotentialStateFromCallList(CallList callList) {
807 InCallState newState = InCallState.NO_CALLS;
813 newState = InCallState.INCOMING;
815 newState = InCallState.WAITING_FOR_ACCOUNT;
817 newState = InCallState.PENDING_OUTGOING;
819 newState = InCallState.OUTGOING;
824 newState = InCallState.INCALL;
827 if (newState == InCallState.NO_CALLS) {
829 return InCallState.OUTGOING;
844 if (isBound && mInCallState == InCallState.NO_CALLS) {
845 mInCallState = InCallState.OUTGOING;
1055 if (!isShowingInCallUi() && mInCallState != InCallState.NO_CALLS) {
1138 if (mInCallState == InCallState.NO_CALLS) {
1220 private InCallState startOrFinishUi(InCallState newState) {
1238 // 2) InCallPresenter - Gets announcement and calculates that the new InCallState
1242 // 4) StatusBarNotifier - Listens to InCallState changes. InCallPresenter calls
1256 final boolean startIncomingCallSequence = (InCallState.INCOMING == newState);
1259 final boolean showAccountPicker = (InCallState.WAITING_FOR_ACCOUNT == newState);
1275 boolean showCallUi = InCallState.OUTGOING == newState && mainUiNotVisible;
1280 (InCallState.PENDING_OUTGOING == mInCallState
1281 && InCallState.INCALL == newState
1293 InCallState.PENDING_OUTGOING == newState
1311 if ((newState == InCallState.INCOMING || newState == InCallState.PENDING_OUTGOING)
1324 } else if (newState == InCallState.NO_CALLS) {
1366 return mInCallActivity == null && !mServiceConnected && mInCallState == InCallState.NO_CALLS;
1628 public enum InCallState {
1661 void onStateChange(InCallState oldState, InCallState newState, CallList callList);
1666 void onIncomingCall(InCallState oldState, InCallState newState, DialerCall call);