Merge change 9684

* changes:
  Add a DISCONNECTING call state.
This commit is contained in:
Android (Google) Code Review
2009-08-04 16:28:13 -07:00
5 changed files with 7 additions and 2 deletions

View File

@@ -25,10 +25,10 @@ public abstract class Call {
/* Enums */
public enum State {
IDLE, ACTIVE, HOLDING, DIALING, ALERTING, INCOMING, WAITING, DISCONNECTED;
IDLE, ACTIVE, HOLDING, DIALING, ALERTING, INCOMING, WAITING, DISCONNECTED, DISCONNECTING;
public boolean isAlive() {
return !(this == IDLE || this == DISCONNECTED);
return !(this == IDLE || this == DISCONNECTED || this == DISCONNECTING);
}
public boolean isRinging() {

View File

@@ -24,6 +24,7 @@ import com.android.internal.telephony.CallStateException;
import com.android.internal.telephony.Connection;
import com.android.internal.telephony.DriverCall;
import com.android.internal.telephony.Phone;
import com.android.internal.telephony.Call.State;
/**
* {@hide}
@@ -186,6 +187,7 @@ public final class CdmaCall extends Call {
cn.onHangupLocal();
}
state = State.DISCONNECTING;
}
/**

View File

@@ -761,6 +761,7 @@ public final class CdmaCallTracker extends CallTracker {
}
call.onHangupLocal();
phone.notifyPreciseCallStateChanged();
}
/* package */

View File

@@ -185,6 +185,7 @@ class GsmCall extends Call {
cn.onHangupLocal();
}
state = State.DISCONNECTING;
}
/**

View File

@@ -738,6 +738,7 @@ public final class GsmCallTracker extends CallTracker {
}
call.onHangupLocal();
phone.notifyPreciseCallStateChanged();
}
/* package */