test_class.declarator: watchdog
test_class.modifier: private
test_class.original_string: private VpnWatchdog watchdog;
test_class.type: VpnWatchdog
test_class.var_name: watchdog
test_class.declarator: mockSocket
test_class.modifier: private
test_class.original_string: private DatagramSocket mockSocket;
test_class.type: DatagramSocket
test_class.var_name: mockSocket
test_class.file: app/src/test/java/org/jak_linux/dns66/vpn/VpnWatchdogTest.java
test_class.identifier: VpnWatchdogTest
test_case.body: @Test
      public void testGetTimeout() throws Exception {
          assertEquals(1000, watchdog.getPollTimeout());
          watchdog.lastPacketReceived = 1;
          watchdog.lastPacketSent = 2;
          assertEquals(7000, watchdog.getPollTimeout());
      }
test_case.class_method_signature: VpnWatchdogTest.testGetTimeout()
test_case.full_signature: @Test public void testGetTimeout()
test_case.identifier: testGetTimeout
test_case.invocations: assertEquals getPollTimeout assertEquals getPollTimeout
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetTimeout()
focal_class.declarator: TAG = "VpnWatchDog"
focal_class.modifier: private static final
focal_class.original_string: private static final String TAG = "VpnWatchDog";
focal_class.type: String
focal_class.var_name: TAG
focal_class.declarator: POLL_TIMEOUT_START = 1000
focal_class.modifier: private static final
focal_class.original_string: private static final int POLL_TIMEOUT_START = 1000;
focal_class.type: int
focal_class.var_name: POLL_TIMEOUT_START
focal_class.declarator: POLL_TIMEOUT_END = 4096000
focal_class.modifier: private static final
focal_class.original_string: private static final int POLL_TIMEOUT_END = 4096000;
focal_class.type: int
focal_class.var_name: POLL_TIMEOUT_END
focal_class.declarator: POLL_TIMEOUT_WAITING = 7000
focal_class.modifier: private static final
focal_class.original_string: private static final int POLL_TIMEOUT_WAITING = 7000;
focal_class.type: int
focal_class.var_name: POLL_TIMEOUT_WAITING
focal_class.declarator: POLL_TIMEOUT_GROW = 4
focal_class.modifier: private static final
focal_class.original_string: private static final int POLL_TIMEOUT_GROW = 4;
focal_class.type: int
focal_class.var_name: POLL_TIMEOUT_GROW
focal_class.declarator: INIT_PENALTY_START = 0
focal_class.modifier: private static final
focal_class.original_string: private static final int INIT_PENALTY_START = 0;
focal_class.type: int
focal_class.var_name: INIT_PENALTY_START
focal_class.declarator: INIT_PENALTY_END = 5000
focal_class.modifier: private static final
focal_class.original_string: private static final int INIT_PENALTY_END = 5000;
focal_class.type: int
focal_class.var_name: INIT_PENALTY_END
focal_class.declarator: INIT_PENALTY_INC = 200
focal_class.modifier: private static final
focal_class.original_string: private static final int INIT_PENALTY_INC = 200;
focal_class.type: int
focal_class.var_name: INIT_PENALTY_INC
focal_class.declarator: initPenalty = INIT_PENALTY_START
focal_class.original_string: int initPenalty = INIT_PENALTY_START;
focal_class.type: int
focal_class.var_name: initPenalty
focal_class.declarator: pollTimeout = POLL_TIMEOUT_START
focal_class.original_string: int pollTimeout = POLL_TIMEOUT_START;
focal_class.type: int
focal_class.var_name: pollTimeout
focal_class.declarator: lastPacketSent = 0
focal_class.original_string: long lastPacketSent = 0;
focal_class.type: long
focal_class.var_name: lastPacketSent
focal_class.declarator: lastPacketReceived = 0
focal_class.original_string: long lastPacketReceived = 0;
focal_class.type: long
focal_class.var_name: lastPacketReceived
focal_class.declarator: enabled = false
focal_class.modifier: private
focal_class.original_string: private boolean enabled = false;
focal_class.type: boolean
focal_class.var_name: enabled
focal_class.declarator: target
focal_class.modifier: private
focal_class.original_string: private InetAddress target;
focal_class.type: InetAddress
focal_class.var_name: target
focal_class.file: app/src/main/java/org/jak_linux/dns66/vpn/VpnWatchdog.java
focal_class.identifier: VpnWatchdog
focal_class.class_method_signature: VpnWatchdog.getPollTimeout()
focal_class.full_signature:  int getPollTimeout()
focal_class.identifier: getPollTimeout
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPollTimeout()
focal_class.class_method_signature: VpnWatchdog.setTarget(InetAddress target)
focal_class.full_signature:  void setTarget(InetAddress target)
focal_class.identifier: setTarget
focal_class.parameters: (InetAddress target)
focal_class.return: void
focal_class.signature: void setTarget(InetAddress target)
focal_class.class_method_signature: VpnWatchdog.initialize(boolean enabled)
focal_class.full_signature:  void initialize(boolean enabled)
focal_class.identifier: initialize
focal_class.parameters: (boolean enabled)
focal_class.return: void
focal_class.signature: void initialize(boolean enabled)
focal_class.class_method_signature: VpnWatchdog.handleTimeout()
focal_class.full_signature:  void handleTimeout()
focal_class.identifier: handleTimeout
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void handleTimeout()
focal_class.class_method_signature: VpnWatchdog.handlePacket(byte[] packetData)
focal_class.full_signature:  void handlePacket(byte[] packetData)
focal_class.identifier: handlePacket
focal_class.parameters: (byte[] packetData)
focal_class.return: void
focal_class.signature: void handlePacket(byte[] packetData)
focal_class.class_method_signature: VpnWatchdog.sendPacket()
focal_class.full_signature:  void sendPacket()
focal_class.identifier: sendPacket
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void sendPacket()
focal_class.class_method_signature: VpnWatchdog.newDatagramSocket()
focal_class.full_signature: @NonNull DatagramSocket newDatagramSocket()
focal_class.identifier: newDatagramSocket
focal_class.modifiers: @NonNull
focal_class.parameters: ()
focal_class.return: DatagramSocket
focal_class.signature: DatagramSocket newDatagramSocket()
focal_method.body: int getPollTimeout() {
          if (!enabled)
              return -1;
          if (lastPacketReceived < lastPacketSent)
              return POLL_TIMEOUT_WAITING;
          return pollTimeout;
      }
focal_method.class_method_signature: VpnWatchdog.getPollTimeout()
focal_method.full_signature:  int getPollTimeout()
focal_method.identifier: getPollTimeout
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int getPollTimeout()