Searched refs:SocketKeepalive (Results 1 – 18 of 18) sorted by relevance
19 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 …]
22 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 …]
18 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;
41 import android.net.SocketKeepalive;81 protected SocketKeepalive mMockSocketKeepalive;115 mMockSocketKeepalive = mock(SocketKeepalive.class); in setUp()140 any(SocketKeepalive.Callback.class)); in resetMockConnectManager()
1121 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()
54 public abstract class SocketKeepalive implements AutoCloseable { class226 SocketKeepalive(@NonNull IConnectivityManager service, @NonNull Network network, in SocketKeepalive() method in SocketKeepalive
27 final class TcpSocketKeepalive extends SocketKeepalive {
28 public final class NattSocketKeepalive extends SocketKeepalive {
45 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()
128 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 …]
60 import android.net.SocketKeepalive in <lambda>()582 agent.sendSocketKeepaliveEvent(slot, SocketKeepalive.ERROR_UNSUPPORTED) in agent()584 .sendSocketKeepaliveEvent(slot, SocketKeepalive.ERROR_UNSUPPORTED) in agent()
47 import android.net.SocketKeepalive;75 private int mStartKeepaliveError = SocketKeepalive.ERROR_UNSUPPORTED;76 private int mStopKeepaliveError = SocketKeepalive.NO_KEEPALIVE;
69 …SocketKeepalive 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();
49 …SocketKeepalive createNattKeepalive(@NonNull android.net.Network, @NonNull android.os.ParcelFileDe…50 …SocketKeepalive createSocketKeepalive(@NonNull android.net.Network, @NonNull java.net.Socket, @Non…439 public abstract class SocketKeepalive implements java.lang.AutoCloseable {
255 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 …]
19 import static android.net.SocketKeepalive.ERROR_INVALID_IP_ADDRESS;
58 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);
170 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()