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

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

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

Change-Id: I070e50da30a3388516c8cabbff611e033e041188
parents f40db618 fe141b35
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;