• Home
  • Raw
  • Download

Lines Matching refs:cm

136                     CallManager cm = (CallManager) ar.userObj;  in handleMessage()  local
144 for (Call fgCall : cm.getForegroundCalls()) { in handleMessage()
159 for (Call bgCall : cm.getBackgroundCalls()) { in handleMessage()
189 if (cm.getState() != Phone.State.IDLE) { in handleMessage()
192 setMuteInternal(cm.getFgPhone(), false); in handleMessage()
216 public static void initializeConnectionHandler(CallManager cm) { in initializeConnectionHandler() argument
222 cm.registerForPreciseCallStateChanged(mConnectionHandler, PHONE_STATE_CHANGED, cm); in initializeConnectionHandler()
225 cm.getDefaultPhone().getContext().bindService(intent, in initializeConnectionHandler()
351 static boolean hangup(CallManager cm) { in hangup() argument
353 Call ringing = cm.getFirstActiveRingingCall(); in hangup()
354 Call fg = cm.getActiveFgCall(); in hangup()
355 Call bg = cm.getFirstActiveBgCall(); in hangup()
466 CallManager cm = PhoneApp.getInstance().mCM; in hangup() local
468 if (call.getState() == Call.State.ACTIVE && cm.hasActiveBgCall()) { in hangup()
471 cm.hangupForegroundResumeBackground(cm.getFirstActiveBgCall()); in hangup()
499 static boolean answerAndEndHolding(CallManager cm, Call ringing) { in answerAndEndHolding() argument
501 if (!hangupHoldingCall(cm.getFirstActiveBgCall())) { in answerAndEndHolding()
524 /* package */ static boolean answerAndEndActive(CallManager cm, Call ringing) { in answerAndEndActive() argument
536 if (!hangupActiveCall(cm.getActiveFgCall())) { in answerAndEndActive()
792 CallManager cm = PhoneApp.getInstance().mCM; in switchHoldingAndActive() local
795 cm.switchHoldingAndActive(cm.getFgPhone().getBackgroundCall()); in switchHoldingAndActive()
798 cm.switchHoldingAndActive(heldCall); in switchHoldingAndActive()
800 setAudioMode(cm); in switchHoldingAndActive()
851 static void mergeCalls(CallManager cm) { in mergeCalls() argument
852 int phoneType = cm.getFgPhone().getPhoneType(); in mergeCalls()
867 switchHoldingAndActive(cm.getFirstActiveBgCall()); in mergeCalls()
872 cm.conference(cm.getFirstActiveBgCall()); in mergeCalls()
1833 /* package */ static boolean startNewCall(final CallManager cm) { in startNewCall() argument
1837 if (!okToAddCall(cm)) { in startNewCall()
1844 if (cm.hasActiveFgCall()) { in startNewCall()
1845 setMuteInternal(cm.getActiveFgCall().getPhone(), true); in startNewCall()
1988 CallManager cm = PhoneApp.getInstance().mCM; in setMute() local
1991 setMuteInternal(cm.getFgPhone(), muted); in setMute()
1995 for (Connection cn : cm.getActiveFgCall().getConnections()) { in setMute()
2048 /* package */ static void setAudioMode(CallManager cm) { in setAudioMode() argument
2049 if (DBG) Log.d(LOG_TAG, "setAudioMode()..." + cm.getState()); in setAudioMode()
2055 cm.setAudioMode(); in setAudioMode()
2209 /* package */ static boolean okToSwapCalls(CallManager cm) { in okToSwapCalls() argument
2210 int phoneType = cm.getDefaultPhone().getPhoneType(); in okToSwapCalls()
2224 return !cm.hasActiveRingingCall() in okToSwapCalls()
2225 && (cm.getActiveFgCall().getState() == Call.State.ACTIVE) in okToSwapCalls()
2226 && (cm.getFirstActiveBgCall().getState() == Call.State.HOLDING); in okToSwapCalls()
2236 /* package */ static boolean okToMergeCalls(CallManager cm) { in okToMergeCalls() argument
2237 int phoneType = cm.getFgPhone().getPhoneType(); in okToMergeCalls()
2249 return !cm.hasActiveRingingCall() && cm.hasActiveFgCall() in okToMergeCalls()
2250 && cm.hasActiveBgCall() in okToMergeCalls()
2251 && cm.canConference(cm.getFirstActiveBgCall()); in okToMergeCalls()
2259 /* package */ static boolean okToAddCall(CallManager cm) { in okToAddCall() argument
2260 Phone phone = cm.getActiveFgCall().getPhone(); in okToAddCall()
2268 final Call.State fgCallState = cm.getActiveFgCall().getState(); in okToAddCall()
2283 final boolean hasRingingCall = cm.hasActiveRingingCall(); in okToAddCall()
2284 final boolean hasActiveCall = cm.hasActiveFgCall(); in okToAddCall()
2285 final boolean hasHoldingCall = cm.hasActiveBgCall(); in okToAddCall()
2561 public static Phone pickPhoneBasedOnNumber(CallManager cm, in pickPhoneBasedOnNumber() argument
2571 Phone phone = getSipPhoneFromUri(cm, primarySipUri); in pickPhoneBasedOnNumber()
2574 return cm.getDefaultPhone(); in pickPhoneBasedOnNumber()
2577 public static Phone getSipPhoneFromUri(CallManager cm, String target) { in getSipPhoneFromUri() argument
2578 for (Phone phone : cm.getAllPhones()) { in getSipPhoneFromUri()
2735 CallManager cm = PhoneApp.getInstance().mCM; in dumpCallManager() local
2747 Log.d(LOG_TAG, "CallManager: state = " + cm.getState()); in dumpCallManager()
2749 call = cm.getActiveFgCall(); in dumpCallManager()
2750 b.append(" - FG call: ").append(cm.hasActiveFgCall()? "YES ": "NO "); in dumpCallManager()
2752 b.append( " State: ").append(cm.getActiveFgCallState()); in dumpCallManager()
2753 b.append( " Conn: ").append(cm.getFgCallConnections()); in dumpCallManager()
2756 call = cm.getFirstActiveBgCall(); in dumpCallManager()
2757 b.append(" - BG call: ").append(cm.hasActiveBgCall()? "YES ": "NO "); in dumpCallManager()
2759 b.append( " State: ").append(cm.getFirstActiveBgCall().getState()); in dumpCallManager()
2760 b.append( " Conn: ").append(cm.getBgCallConnections()); in dumpCallManager()
2763 call = cm.getFirstActiveRingingCall(); in dumpCallManager()
2764 b.append(" - RINGING call: ").append(cm.hasActiveRingingCall()? "YES ": "NO "); in dumpCallManager()
2766 b.append( " State: ").append(cm.getFirstActiveRingingCall().getState()); in dumpCallManager()