Searched refs:autoKi (Results 1 – 2 of 2) sorted by relevance
411 public void handleMaybeResumeKeepalive(@NonNull AutomaticOnOffKeepalive autoKi) { in handleMaybeResumeKeepalive() argument412 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 …]
466 private void doPauseKeepalive(AutomaticOnOffKeepalive autoKi) throws Exception { in doPauseKeepalive() argument470 () -> mAOOKeepaliveTracker.handleMonitorAutomaticKeepalive(autoKi, TEST_NETID)); in doPauseKeepalive()473 private void doResumeKeepalive(AutomaticOnOffKeepalive autoKi) throws Exception { in doResumeKeepalive() argument477 () -> mAOOKeepaliveTracker.handleMonitorAutomaticKeepalive(autoKi, TEST_NETID)); in doResumeKeepalive()480 private void doStopKeepalive(AutomaticOnOffKeepalive autoKi) throws Exception { in doStopKeepalive() argument483 () -> mAOOKeepaliveTracker.handleStopKeepalive(autoKi, SocketKeepalive.SUCCESS)); in doStopKeepalive()593 final AutomaticOnOffKeepalive autoKi = getAutoKiForBinder(testInfo.binder); in testStartNattKeepalive_valid() local594 assertNotNull(autoKi); in testStartNattKeepalive_valid()595 assertEquals(testInfo.socketKeepaliveCallback, autoKi.getCallback()); in testStartNattKeepalive_valid()