Lines Matching refs:callId
153 public void abort(String callId) {
154 mHandler.obtainMessage(MSG_ABORT, callId).sendToTarget();
158 public void answerVideo(String callId, int videoState) {
160 args.arg1 = callId;
166 public void answer(String callId) {
167 mHandler.obtainMessage(MSG_ANSWER, callId).sendToTarget();
171 public void reject(String callId) {
172 mHandler.obtainMessage(MSG_REJECT, callId).sendToTarget();
176 public void rejectWithMessage(String callId, String message) {
178 args.arg1 = callId;
184 public void silence(String callId) {
185 mHandler.obtainMessage(MSG_SILENCE, callId).sendToTarget();
189 public void disconnect(String callId) {
190 mHandler.obtainMessage(MSG_DISCONNECT, callId).sendToTarget();
194 public void hold(String callId) {
195 mHandler.obtainMessage(MSG_HOLD, callId).sendToTarget();
199 public void unhold(String callId) {
200 mHandler.obtainMessage(MSG_UNHOLD, callId).sendToTarget();
204 public void onCallAudioStateChanged(String callId, CallAudioState callAudioState) {
206 args.arg1 = callId;
212 public void playDtmfTone(String callId, char digit) {
213 mHandler.obtainMessage(MSG_PLAY_DTMF_TONE, digit, 0, callId).sendToTarget();
217 public void stopDtmfTone(String callId) {
218 mHandler.obtainMessage(MSG_STOP_DTMF_TONE, callId).sendToTarget();
230 public void splitFromConference(String callId) {
231 mHandler.obtainMessage(MSG_SPLIT_FROM_CONFERENCE, callId).sendToTarget();
235 public void mergeConference(String callId) {
236 mHandler.obtainMessage(MSG_MERGE_CONFERENCE, callId).sendToTarget();
240 public void swapConference(String callId) {
241 mHandler.obtainMessage(MSG_SWAP_CONFERENCE, callId).sendToTarget();
245 public void onPostDialContinue(String callId, boolean proceed) {
247 args.arg1 = callId;
253 public void pullExternalCall(String callId) {
254 mHandler.obtainMessage(MSG_PULL_EXTERNAL_CALL, callId).sendToTarget();
258 public void sendCallEvent(String callId, String event, Bundle extras) {
260 args.arg1 = callId;
267 public void onExtrasChanged(String callId, Bundle extras) {
269 args.arg1 = callId;
330 String callId = (String) args.arg1;
332 answerVideo(callId, videoState);
365 String callId = (String) args.arg1;
367 onCallAudioStateChanged(callId, new CallAudioState(audioState));
402 String callId = (String) args.arg1;
404 onPostDialContinue(callId, proceed);
417 String callId = (String) args.arg1;
420 sendCallEvent(callId, event, extras);
429 String callId = (String) args.arg1;
431 handleExtrasChanged(callId, extras);
739 final String callId, in createConnection() argument
744 "isIncoming: %b, isUnknown: %b", callManagerAccount, callId, request, in createConnection()
757 connection.setTelecomCallId(callId); in createConnection()
759 addConnection(callId, connection); in createConnection()
770 Log.d(this, "createConnection, calling handleCreateConnectionSuccessful %s", callId); in createConnection()
772 callId, in createConnection()
799 private void abort(String callId) { in abort() argument
800 Log.d(this, "abort %s", callId); in abort()
801 findConnectionForAction(callId, "abort").onAbort(); in abort()
804 private void answerVideo(String callId, int videoState) { in answerVideo() argument
805 Log.d(this, "answerVideo %s", callId); in answerVideo()
806 findConnectionForAction(callId, "answer").onAnswer(videoState); in answerVideo()
809 private void answer(String callId) { in answer() argument
810 Log.d(this, "answer %s", callId); in answer()
811 findConnectionForAction(callId, "answer").onAnswer(); in answer()
814 private void reject(String callId) { in reject() argument
815 Log.d(this, "reject %s", callId); in reject()
816 findConnectionForAction(callId, "reject").onReject(); in reject()
819 private void reject(String callId, String rejectWithMessage) { in reject() argument
820 Log.d(this, "reject %s with message", callId); in reject()
821 findConnectionForAction(callId, "reject").onReject(rejectWithMessage); in reject()
824 private void silence(String callId) { in silence() argument
825 Log.d(this, "silence %s", callId); in silence()
826 findConnectionForAction(callId, "silence").onSilence(); in silence()
829 private void disconnect(String callId) { in disconnect() argument
830 Log.d(this, "disconnect %s", callId); in disconnect()
831 if (mConnectionById.containsKey(callId)) { in disconnect()
832 findConnectionForAction(callId, "disconnect").onDisconnect(); in disconnect()
834 findConferenceForAction(callId, "disconnect").onDisconnect(); in disconnect()
838 private void hold(String callId) { in hold() argument
839 Log.d(this, "hold %s", callId); in hold()
840 if (mConnectionById.containsKey(callId)) { in hold()
841 findConnectionForAction(callId, "hold").onHold(); in hold()
843 findConferenceForAction(callId, "hold").onHold(); in hold()
847 private void unhold(String callId) { in unhold() argument
848 Log.d(this, "unhold %s", callId); in unhold()
849 if (mConnectionById.containsKey(callId)) { in unhold()
850 findConnectionForAction(callId, "unhold").onUnhold(); in unhold()
852 findConferenceForAction(callId, "unhold").onUnhold(); in unhold()
856 private void onCallAudioStateChanged(String callId, CallAudioState callAudioState) { in onCallAudioStateChanged() argument
857 Log.d(this, "onAudioStateChanged %s %s", callId, callAudioState); in onCallAudioStateChanged()
858 if (mConnectionById.containsKey(callId)) { in onCallAudioStateChanged()
859 findConnectionForAction(callId, "onCallAudioStateChanged").setCallAudioState( in onCallAudioStateChanged()
862 findConferenceForAction(callId, "onCallAudioStateChanged").setCallAudioState( in onCallAudioStateChanged()
867 private void playDtmfTone(String callId, char digit) { in playDtmfTone() argument
868 Log.d(this, "playDtmfTone %s %c", callId, digit); in playDtmfTone()
869 if (mConnectionById.containsKey(callId)) { in playDtmfTone()
870 findConnectionForAction(callId, "playDtmfTone").onPlayDtmfTone(digit); in playDtmfTone()
872 findConferenceForAction(callId, "playDtmfTone").onPlayDtmfTone(digit); in playDtmfTone()
876 private void stopDtmfTone(String callId) { in stopDtmfTone() argument
877 Log.d(this, "stopDtmfTone %s", callId); in stopDtmfTone()
878 if (mConnectionById.containsKey(callId)) { in stopDtmfTone()
879 findConnectionForAction(callId, "stopDtmfTone").onStopDtmfTone(); in stopDtmfTone()
881 findConferenceForAction(callId, "stopDtmfTone").onStopDtmfTone(); in stopDtmfTone()
932 private void splitFromConference(String callId) { in splitFromConference() argument
933 Log.d(this, "splitFromConference(%s)", callId); in splitFromConference()
935 Connection connection = findConnectionForAction(callId, "splitFromConference"); in splitFromConference()
937 Log.w(this, "Connection missing in conference request %s.", callId); in splitFromConference()
947 private void mergeConference(String callId) { in mergeConference() argument
948 Log.d(this, "mergeConference(%s)", callId); in mergeConference()
949 Conference conference = findConferenceForAction(callId, "mergeConference"); in mergeConference()
955 private void swapConference(String callId) { in swapConference() argument
956 Log.d(this, "swapConference(%s)", callId); in swapConference()
957 Conference conference = findConferenceForAction(callId, "swapConference"); in swapConference()
970 private void pullExternalCall(String callId) { in pullExternalCall() argument
971 Log.d(this, "pullExternalCall(%s)", callId); in pullExternalCall()
972 Connection connection = findConnectionForAction(callId, "pullExternalCall"); in pullExternalCall()
987 private void sendCallEvent(String callId, String event, Bundle extras) { in sendCallEvent() argument
988 Log.d(this, "sendCallEvent(%s, %s)", callId, event); in sendCallEvent()
989 Connection connection = findConnectionForAction(callId, "sendCallEvent"); in sendCallEvent()
1008 private void handleExtrasChanged(String callId, Bundle extras) { in handleExtrasChanged() argument
1009 Log.d(this, "handleExtrasChanged(%s, %s)", callId, extras); in handleExtrasChanged()
1010 if (mConnectionById.containsKey(callId)) { in handleExtrasChanged()
1011 findConnectionForAction(callId, "handleExtrasChanged").handleExtrasChanged(extras); in handleExtrasChanged()
1012 } else if (mConferenceById.containsKey(callId)) { in handleExtrasChanged()
1013 findConferenceForAction(callId, "handleExtrasChanged").handleExtrasChanged(extras); in handleExtrasChanged()
1017 private void onPostDialContinue(String callId, boolean proceed) { in onPostDialContinue() argument
1018 Log.d(this, "onPostDialContinue(%s)", callId); in onPostDialContinue()
1019 findConnectionForAction(callId, "stopDtmfTone").onPostDialContinue(proceed); in onPostDialContinue()
1371 private void addConnection(String callId, Connection connection) { in addConnection() argument
1372 connection.setTelecomCallId(callId); in addConnection()
1373 mConnectionById.put(callId, connection); in addConnection()
1374 mIdByConnection.put(connection, callId); in addConnection()
1427 private Connection findConnectionForAction(String callId, String action) { in findConnectionForAction() argument
1428 if (mConnectionById.containsKey(callId)) { in findConnectionForAction()
1429 return mConnectionById.get(callId); in findConnectionForAction()
1431 Log.w(this, "%s - Cannot find Connection %s", action, callId); in findConnectionForAction()