Home
last modified time | relevance | path

Searched refs:autoKi (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DAutomaticOnOffKeepaliveTracker.java411 public void handleMaybeResumeKeepalive(@NonNull AutomaticOnOffKeepalive autoKi) { in handleMaybeResumeKeepalive() argument
412 mEventLog.log("Resume keepalive " + autoKi.mCallback + " on " + autoKi.getNetwork()); in handleMaybeResumeKeepalive()
414 if (!mAutomaticOnOffKeepalives.contains(autoKi)) return; in handleMaybeResumeKeepalive()
415 if (STATE_ALWAYS_ON == autoKi.mAutomaticOnOffState) { in handleMaybeResumeKeepalive()
418 if (autoKi.mAutomaticOnOffState == STATE_ENABLED) return; in handleMaybeResumeKeepalive()
423 newKi = autoKi.mKi.withFd(autoKi.mFd); in handleMaybeResumeKeepalive()
426 mKeepaliveTracker.notifyErrorCallback(autoKi.mCallback, ERROR_INVALID_SOCKET); in handleMaybeResumeKeepalive()
429 autoKi.mAutomaticOnOffState = STATE_ENABLED; in handleMaybeResumeKeepalive()
433 cleanupAutoOnOffKeepalive(autoKi); in handleMaybeResumeKeepalive()
458 final AutomaticOnOffKeepalive autoKi = in handleEventSocketKeepalive()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DAutomaticOnOffKeepaliveTrackerTest.java466 private void doPauseKeepalive(AutomaticOnOffKeepalive autoKi) throws Exception { in doPauseKeepalive() argument
470 () -> mAOOKeepaliveTracker.handleMonitorAutomaticKeepalive(autoKi, TEST_NETID)); in doPauseKeepalive()
473 private void doResumeKeepalive(AutomaticOnOffKeepalive autoKi) throws Exception { in doResumeKeepalive() argument
477 () -> mAOOKeepaliveTracker.handleMonitorAutomaticKeepalive(autoKi, TEST_NETID)); in doResumeKeepalive()
480 private void doStopKeepalive(AutomaticOnOffKeepalive autoKi) throws Exception { in doStopKeepalive() argument
483 () -> mAOOKeepaliveTracker.handleStopKeepalive(autoKi, SocketKeepalive.SUCCESS)); in doStopKeepalive()
593 final AutomaticOnOffKeepalive autoKi = getAutoKiForBinder(testInfo.binder); in testStartNattKeepalive_valid() local
594 assertNotNull(autoKi); in testStartNattKeepalive_valid()
595 assertEquals(testInfo.socketKeepaliveCallback, autoKi.getCallback()); in testStartNattKeepalive_valid()