Home
last modified time | relevance | path

Searched refs:KeepaliveInfo (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DKeepaliveTracker.java96 private final HashMap <NetworkAgentInfo, HashMap<Integer, KeepaliveInfo>> mKeepalives =
144 public class KeepaliveInfo implements IBinder.DeathRecipient { class in KeepaliveTracker
178 KeepaliveInfo(@NonNull ISocketKeepaliveCallback callback, in KeepaliveInfo() method in KeepaliveTracker.KeepaliveInfo
188 KeepaliveInfo(@NonNull ISocketKeepaliveCallback callback, in KeepaliveInfo() method in KeepaliveTracker.KeepaliveInfo
324 final HashMap<Integer, KeepaliveInfo> networkKeepalives = mKeepalives.get(mNai); in checkPermission()
335 for (final KeepaliveInfo ki : networkKeepalives.values()) { in checkPermission()
344 for (final HashMap<Integer, KeepaliveInfo> kaForNetwork : mKeepalives.values()) { in checkPermission()
345 for (final KeepaliveInfo ki : kaForNetwork.values()) { in checkPermission()
358 final HashMap<Integer, KeepaliveInfo> networkKeepalives = mKeepalives.get(mNai); in checkLimit()
491 public KeepaliveInfo withFd(@NonNull FileDescriptor fd) throws InvalidSocketException { in withFd()
[all …]
DAutomaticOnOffKeepaliveTracker.java198 private final KeepaliveTracker.KeepaliveInfo mKi;
210 AutomaticOnOffKeepalive(@NonNull final KeepaliveTracker.KeepaliveInfo ki, in AutomaticOnOffKeepalive()
300 public AutomaticOnOffKeepalive withKeepaliveInfo(KeepaliveTracker.KeepaliveInfo ki) in withKeepaliveInfo()
419 KeepaliveTracker.KeepaliveInfo newKi; in handleMaybeResumeKeepalive()
494 final Pair<Integer, KeepaliveTracker.KeepaliveInfo> res = in handleStartKeepalive()
540 private int handleResumeKeepalive(@NonNull final KeepaliveTracker.KeepaliveInfo ki) { in handleResumeKeepalive()
541 final Pair<Integer, KeepaliveTracker.KeepaliveInfo> res = in handleResumeKeepalive()
543 final KeepaliveTracker.KeepaliveInfo startedKi = res.second; in handleResumeKeepalive()
558 private void handlePauseKeepalive(@NonNull final KeepaliveTracker.KeepaliveInfo ki) { in handlePauseKeepalive()
573 final KeepaliveTracker.KeepaliveInfo ki = autoKi.mKi; in handleStopKeepalive()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DAutomaticOnOffKeepaliveTrackerTest.java78 import com.android.server.connectivity.KeepaliveTracker.KeepaliveInfo;
260 private KeepaliveInfo mKi;
267 public void setReturnedKeepaliveInfo(@NonNull final KeepaliveInfo ki) { in setReturnedKeepaliveInfo()
273 public KeepaliveInfo makeNattKeepaliveInfo(@Nullable final NetworkAgentInfo nai, in makeNattKeepaliveInfo()
286 public KeepaliveInfo makeTcpKeepaliveInfo(@Nullable final NetworkAgentInfo nai, in makeTcpKeepaliveInfo()
448 final KeepaliveInfo ki = mKeepaliveTracker.new KeepaliveInfo( in doStartNattKeepalive()
450 KeepaliveInfo.TYPE_NATT, testInfo.fd); in doStartNattKeepalive()
635 final KeepaliveInfo ki = mKeepaliveTracker.new KeepaliveInfo( in doStartTcpKeepalive()
637 TEST_KEEPALIVE_INTERVAL_SEC, KeepaliveInfo.TYPE_TCP, testInfo.fd); in doStartTcpKeepalive()