Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e63b1ace authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5339364 from b0e7e2ef to qt-release

Change-Id: I2a44b89bd5bcae2ccf43a3f36376817b0dd6d4ba
parents c5c4019f b0e7e2ef
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -47,18 +47,6 @@ public abstract class Call {
        }
    }

    public enum HoldingRequestState {
        NONE, STARTED, ENDED;

        public boolean isStarted() {
            return this == STARTED;
        }

        public boolean isFinished() {
            return this == ENDED;
        }
    }

    public static State
    stateFromDCState (DriverCall.State dcState) {
        switch (dcState) {
@@ -82,8 +70,6 @@ public abstract class Call {

    public ArrayList<Connection> mConnections = new ArrayList<Connection>();

    public HoldingRequestState mHoldingRequestState = HoldingRequestState.NONE;

    /* Instance Methods */

    /** Do not modify the List result!!! This list is not yours to keep
@@ -291,8 +277,4 @@ public abstract class Call {
    protected void setState(State newState) {
        mState = newState;
    }

    public void updateHoldingRequestState(HoldingRequestState state) {
        mHoldingRequestState = state;
    }
}
+4 −2
Original line number Diff line number Diff line
@@ -387,10 +387,12 @@ public class DefaultPhoneNotifier implements PhoneNotifier {
    }

    @Override
    public void notifyCallQualityChanged(Phone sender, CallQuality callQuality) {
    public void notifyCallQualityChanged(Phone sender, CallQuality callQuality,
            int callNetworkType) {
        try {
            if (mRegistry != null) {
                mRegistry.notifyCallQualityChanged(callQuality, sender.getPhoneId());
                mRegistry.notifyCallQualityChanged(callQuality, sender.getPhoneId(),
                        callNetworkType);
            }
        } catch (RemoteException ex) {
            // system process is dead
+1 −4
Original line number Diff line number Diff line
@@ -118,9 +118,6 @@ public class GsmCdmaCall extends Call {
        newState = stateFromDCState(dc.state);

        if (newState != mState) {
            if (mState == State.HOLDING) {
                updateHoldingRequestState(HoldingRequestState.ENDED);
            }
            mState = newState;
            changed = true;
        }
+0 −6
Original line number Diff line number Diff line
@@ -1283,12 +1283,6 @@ public class GsmCdmaCallTracker extends CallTracker {
                // Do not auto-answer ringing on CHUP, instead just end active calls
                log("hangup all conns in active/background call, without affecting ringing call");
                hangupAllConnections(call);
            } else if (call.mHoldingRequestState.isStarted()) {
                // Even if the progress of holding is not completed, lower layer expects to hang up
                // as background call because of being going to holding.
                log("hangup waiting or background call");
                logHangupEvent(call);
                hangupWaitingOrBackground();
            } else {
                logHangupEvent(call);
                hangupForegroundResumeBackground();
+1 −1
Original line number Diff line number Diff line
@@ -86,5 +86,5 @@ public interface PhoneNotifier {
    void notifyEmergencyNumberList();

    /** Notify of a change to the call quality of an active foreground call. */
    void notifyCallQualityChanged(Phone sender, CallQuality callQuality);
    void notifyCallQualityChanged(Phone sender, CallQuality callQuality, int callNetworkType);
}
Loading