Home
last modified time | relevance | path

Searched refs:SocketKeepalive (Results 1 – 18 of 18) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/keepalive/
DHardwareKeepaliveImpl.java19 import static android.net.SocketKeepalive.ERROR_HARDWARE_ERROR;
20 import static android.net.SocketKeepalive.ERROR_INSUFFICIENT_RESOURCES;
21 import static android.net.SocketKeepalive.ERROR_INVALID_INTERVAL;
22 import static android.net.SocketKeepalive.ERROR_INVALID_IP_ADDRESS;
23 import static android.net.SocketKeepalive.ERROR_INVALID_LENGTH;
24 import static android.net.SocketKeepalive.ERROR_INVALID_NETWORK;
25 import static android.net.SocketKeepalive.ERROR_INVALID_PORT;
26 import static android.net.SocketKeepalive.ERROR_INVALID_SOCKET;
27 import static android.net.SocketKeepalive.ERROR_SOCKET_NOT_IDLE;
28 import static android.net.SocketKeepalive.ERROR_UNSUPPORTED;
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DKeepaliveTracker.java22 import static android.net.SocketKeepalive.BINDER_DIED;
23 import static android.net.SocketKeepalive.DATA_RECEIVED;
24 import static android.net.SocketKeepalive.ERROR_INSUFFICIENT_RESOURCES;
25 import static android.net.SocketKeepalive.ERROR_INVALID_INTERVAL;
26 import static android.net.SocketKeepalive.ERROR_INVALID_IP_ADDRESS;
27 import static android.net.SocketKeepalive.ERROR_INVALID_NETWORK;
28 import static android.net.SocketKeepalive.ERROR_INVALID_SOCKET;
29 import static android.net.SocketKeepalive.ERROR_NO_SUCH_SLOT;
30 import static android.net.SocketKeepalive.ERROR_STOP_REASON_UNINITIALIZED;
31 import static android.net.SocketKeepalive.ERROR_UNSUPPORTED;
[all …]
DTcpKeepaliveController.java18 import static android.net.SocketKeepalive.DATA_RECEIVED;
19 import static android.net.SocketKeepalive.ERROR_INVALID_SOCKET;
20 import static android.net.SocketKeepalive.ERROR_SOCKET_NOT_IDLE;
21 import static android.net.SocketKeepalive.ERROR_UNSUPPORTED;
35 import android.net.SocketKeepalive.InvalidSocketException;
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionTestBase.java41 import android.net.SocketKeepalive;
81 protected SocketKeepalive mMockSocketKeepalive;
115 mMockSocketKeepalive = mock(SocketKeepalive.class); in setUp()
140 any(SocketKeepalive.Callback.class)); in resetMockConnectManager()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkAgent.java1121 if (intervalSeconds < SocketKeepalive.MIN_INTERVAL_SEC in onStartSocketKeepalive()
1122 || intervalSeconds > SocketKeepalive.MAX_INTERVAL_SEC) { in onStartSocketKeepalive()
1124 + SocketKeepalive.MIN_INTERVAL_SEC + " and " + SocketKeepalive.MAX_INTERVAL_SEC in onStartSocketKeepalive()
1134 onSocketKeepaliveEvent(msg.arg1, SocketKeepalive.ERROR_UNSUPPORTED); in startSocketKeepalive()
1149 onSocketKeepaliveEvent(msg.arg1, SocketKeepalive.ERROR_UNSUPPORTED); in stopSocketKeepalive()
1160 @SocketKeepalive.KeepaliveEvent int event) { in sendSocketKeepaliveEvent()
DSocketKeepalive.java54 public abstract class SocketKeepalive implements AutoCloseable { class
226 SocketKeepalive(@NonNull IConnectivityManager service, @NonNull Network network, in SocketKeepalive() method in SocketKeepalive
DTcpSocketKeepalive.java27 final class TcpSocketKeepalive extends SocketKeepalive {
DNattSocketKeepalive.java28 public final class NattSocketKeepalive extends SocketKeepalive {
DConnectivityManager.java45 import android.net.SocketKeepalive.Callback;
2098 public @NonNull SocketKeepalive createSocketKeepalive(@NonNull Network network, in createSocketKeepalive()
2141 public @NonNull SocketKeepalive createNattKeepalive(@NonNull Network network, in createNattKeepalive()
2181 public @NonNull SocketKeepalive createSocketKeepalive(@NonNull Network network, in createSocketKeepalive()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java128 import android.net.SocketKeepalive;
1247 private static class TestSocketKeepaliveCallback extends SocketKeepalive.Callback {
1468 try (SocketKeepalive sk = mCm.createSocketKeepalive(network, s, executor, callback)) { in testCreateTcpKeepalive()
1520 try (SocketKeepalive sk = mCm.createSocketKeepalive(network, s, executor, callback)) { in testCreateTcpKeepalive()
1522 callback.expectError(SocketKeepalive.ERROR_SOCKET_NOT_IDLE); in testCreateTcpKeepalive()
1529 private ArrayList<SocketKeepalive> createConcurrentKeepalivesOfType( in createConcurrentKeepalivesOfType()
1531 Supplier<SocketKeepalive> kaFactory) { in createConcurrentKeepalivesOfType()
1532 final ArrayList<SocketKeepalive> kalist = new ArrayList<>(); in createConcurrentKeepalivesOfType()
1538 final SocketKeepalive ka = kaFactory.get(); in createConcurrentKeepalivesOfType()
1543 if (kalist.size() == 0 && cv.error == SocketKeepalive.ERROR_UNSUPPORTED) { in createConcurrentKeepalivesOfType()
[all …]
DNetworkAgentTest.kt60 import android.net.SocketKeepalive in <lambda>()
582 agent.sendSocketKeepaliveEvent(slot, SocketKeepalive.ERROR_UNSUPPORTED) in agent()
584 .sendSocketKeepaliveEvent(slot, SocketKeepalive.ERROR_UNSUPPORTED) in agent()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DNetworkAgentWrapper.java47 import android.net.SocketKeepalive;
75 private int mStartKeepaliveError = SocketKeepalive.ERROR_UNSUPPORTED;
76 private int mStopKeepaliveError = SocketKeepalive.NO_KEEPALIVE;
/packages/modules/Connectivity/framework/api/
Dcurrent.txt69SocketKeepalive createSocketKeepalive(@NonNull android.net.Network, @NonNull android.net.IpSecMana…
448 public abstract class SocketKeepalive implements java.lang.AutoCloseable {
464 public static class SocketKeepalive.Callback {
465 ctor public SocketKeepalive.Callback();
Dsystem-current.txt49SocketKeepalive createNattKeepalive(@NonNull android.net.Network, @NonNull android.os.ParcelFileDe…
50SocketKeepalive createSocketKeepalive(@NonNull android.net.Network, @NonNull java.net.Socket, @Non…
439 public abstract class SocketKeepalive implements java.lang.AutoCloseable {
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java255 import android.net.SocketKeepalive;
5283 private static class TestSocketKeepaliveCallback extends SocketKeepalive.Callback {
5293 this.error = SocketKeepalive.SUCCESS; in CallbackValue()
5543 try (SocketKeepalive ka = mCm.createSocketKeepalive( in doTestNattSocketKeepalivesWithExecutor()
5546 callback.expectError(SocketKeepalive.ERROR_INVALID_NETWORK); in doTestNattSocketKeepalivesWithExecutor()
5550 try (SocketKeepalive ka = mCm.createSocketKeepalive( in doTestNattSocketKeepalivesWithExecutor()
5553 callback.expectError(SocketKeepalive.ERROR_INVALID_INTERVAL); in doTestNattSocketKeepalivesWithExecutor()
5557 try (SocketKeepalive ka = mCm.createSocketKeepalive( in doTestNattSocketKeepalivesWithExecutor()
5560 callback.expectError(SocketKeepalive.ERROR_INVALID_IP_ADDRESS); in doTestNattSocketKeepalivesWithExecutor()
5564 try (SocketKeepalive ka = mCm.createSocketKeepalive( in doTestNattSocketKeepalivesWithExecutor()
[all …]
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/util/
DKeepalivePacketDataUtil.java19 import static android.net.SocketKeepalive.ERROR_INVALID_IP_ADDRESS;
/packages/modules/Wifi/service/java/com/android/server/wifi/
DClientModeImpl.java58 import android.net.SocketKeepalive;
1300 return SocketKeepalive.ERROR_HARDWARE_ERROR; in startWifiIPPacketOffload()
1302 return SocketKeepalive.SUCCESS; in startWifiIPPacketOffload()
1310 return SocketKeepalive.ERROR_HARDWARE_ERROR; in stopWifiIPPacketOffload()
1312 return SocketKeepalive.SUCCESS; in stopWifiIPPacketOffload()
3769 SocketKeepalive.ERROR_INVALID_NETWORK);
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java170 import android.net.SocketKeepalive;
3855 mKeepaliveTracker.handleStopAllKeepalives(nai, SocketKeepalive.ERROR_INVALID_NETWORK); in disconnectAndDestroyNetwork()
8856 NetworkAgent.CMD_STOP_SOCKET_KEEPALIVE, slot, SocketKeepalive.SUCCESS, network)); in stopKeepalive()