Exemple #1
1
 private void handleDenyCall(Intent intent) {
   state = RedPhone.STATE_IDLE;
   incomingRinger.stop();
   CallLogger.logMissedCall(this, remoteNumber, System.currentTimeMillis());
   ((ResponderCallManager) this.currentCallManager).answer(false);
   this.terminate();
 }
Exemple #2
0
  private void handleOutgoingCall(Intent intent) {
    remoteNumber = extractRemoteNumber(intent);

    if (remoteNumber == null || remoteNumber.length() == 0) return;

    sendMessage(RedPhone.HANDLE_OUTGOING_CALL, remoteNumber);

    state = RedPhone.STATE_DIALING;
    lockManager.updatePhoneState(LockManager.PhoneState.INTERACTIVE);
    this.currentCallManager =
        new InitiatingCallManager(this, this, localNumber, password, remoteNumber, zid);
    this.currentCallManager.start();

    NotificationBarManager.setCallInProgress(this);

    currentCallRecord = CallLogger.logOutgoingCall(this, remoteNumber);
  }
Exemple #3
0
 private void handleAnswerCall(Intent intent) {
   state = RedPhone.STATE_ANSWERING;
   incomingRinger.stop();
   currentCallRecord = CallLogger.logIncomingCall(this, remoteNumber);
   ((ResponderCallManager) this.currentCallManager).answer(true);
 }
Exemple #4
0
 private void handleMissedCall(String remoteNumber) {
   CallLogger.logMissedCall(this, remoteNumber, System.currentTimeMillis());
   NotificationBarManager.notifyMissedCall(this, remoteNumber);
 }