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

Commit b5b08950 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Use sendSocketKeepaliveEvent instead of onSocketKeepaliveEvent for...

Merge "Use sendSocketKeepaliveEvent instead of onSocketKeepaliveEvent for Mainline" am: fe141b35 am: dee59678

Change-Id: I04d9bdfd7e61776b421d43a17bd660daadb78e01
parents 652dc7be dee59678
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1678,7 +1678,7 @@ public class DataConnection extends StateMachine {
                case EVENT_KEEPALIVE_START_REQUEST:
                case EVENT_KEEPALIVE_STOP_REQUEST:
                    if (mNetworkAgent != null) {
                        mNetworkAgent.onSocketKeepaliveEvent(
                        mNetworkAgent.sendSocketKeepaliveEvent(
                                msg.arg1, SocketKeepalive.ERROR_INVALID_NETWORK);
                    }
                    break;
@@ -2326,7 +2326,7 @@ public class DataConnection extends StateMachine {
                        // so that keepalive requests can be handled (if supported) by the
                        // underlying transport.
                        if (mNetworkAgent != null) {
                            mNetworkAgent.onSocketKeepaliveEvent(
                            mNetworkAgent.sendSocketKeepaliveEvent(
                                    msg.arg1, SocketKeepalive.ERROR_INVALID_NETWORK);
                        }
                    }
@@ -2338,7 +2338,8 @@ public class DataConnection extends StateMachine {
                    int handle = mNetworkAgent.keepaliveTracker.getHandleForSlot(slotId);
                    if (handle < 0) {
                        loge("No slot found for stopSocketKeepalive! " + slotId);
                        mNetworkAgent.onSocketKeepaliveEvent(slotId, SocketKeepalive.NO_KEEPALIVE);
                        mNetworkAgent.sendSocketKeepaliveEvent(
                                slotId, SocketKeepalive.NO_KEEPALIVE);
                        retVal = HANDLED;
                        break;
                    } else {
@@ -2357,7 +2358,7 @@ public class DataConnection extends StateMachine {
                    if (ar.exception != null || ar.result == null) {
                        loge("EVENT_KEEPALIVE_STARTED: error starting keepalive, e="
                                + ar.exception);
                        mNetworkAgent.onSocketKeepaliveEvent(
                        mNetworkAgent.sendSocketKeepaliveEvent(
                                slot, SocketKeepalive.ERROR_HARDWARE_ERROR);
                    } else {
                        KeepaliveStatus ks = (KeepaliveStatus) ar.result;