コード例 #1
0
 @Override
 public void conference(String callId1, String callId2) {
   SomeArgs args = SomeArgs.obtain();
   args.arg1 = callId1;
   args.arg2 = callId2;
   mHandler.obtainMessage(MSG_CONFERENCE, args).sendToTarget();
 }
コード例 #2
0
 @Override
 public void onAudioStateChanged(String callId, AudioState audioState) {
   SomeArgs args = SomeArgs.obtain();
   args.arg1 = callId;
   args.arg2 = audioState;
   mHandler.obtainMessage(MSG_ON_AUDIO_STATE_CHANGED, args).sendToTarget();
 }
コード例 #3
0
 @Override
 public void rejectWithMessage(String callId, String message) {
   SomeArgs args = SomeArgs.obtain();
   args.arg1 = callId;
   args.arg2 = message;
   mHandler.obtainMessage(MSG_REJECT_WITH_MESSAGE, args).sendToTarget();
 }
コード例 #4
0
 @Override
 public void createConnection(
     PhoneAccountHandle connectionManagerPhoneAccount,
     String id,
     ConnectionRequest request,
     boolean isIncoming,
     boolean isUnknown) {
   SomeArgs args = SomeArgs.obtain();
   args.arg1 = connectionManagerPhoneAccount;
   args.arg2 = id;
   args.arg3 = request;
   args.argi1 = isIncoming ? 1 : 0;
   args.argi2 = isUnknown ? 1 : 0;
   mHandler.obtainMessage(MSG_CREATE_CONNECTION, args).sendToTarget();
 }