Searched refs:ikeOption (Results 1 – 2 of 2) sorted by relevance
574 private static void validateIkeOptionOrThrow(@IkeOption int ikeOption) { in validateIkeOptionOrThrow() argument575 if (ikeOption < MIN_IKE_OPTION || ikeOption > MAX_IKE_OPTION) { in validateIkeOptionOrThrow()576 throw new IllegalArgumentException("Invalid IKE Option: " + ikeOption); in validateIkeOptionOrThrow()580 private static long getOptionBitValue(int ikeOption) { in getOptionBitValue() argument581 return 1 << ikeOption; in getOptionBitValue()893 private static boolean hasIkeOption(long ikeOptionsRecord, @IkeOption int ikeOption) { in hasIkeOption() argument894 validateIkeOptionOrThrow(ikeOption); in hasIkeOption()895 return (ikeOptionsRecord & getOptionBitValue(ikeOption)) != 0; in hasIkeOption()904 public boolean hasIkeOption(@IkeOption int ikeOption) { in hasIkeOption() argument905 return hasIkeOption(mIkeOptions, ikeOption); in hasIkeOption()[all …]
337 private void verifyAddIkeOption(int ikeOption) { in verifyAddIkeOption() argument339 createIkeParamsBuilderMinimum().addIkeOption(ikeOption).build(); in verifyAddIkeOption()342 assertTrue(sessionParams.hasIkeOption(ikeOption)); in verifyAddIkeOption()351 private void verifyRemoveIkeOption(int ikeOption) { in verifyRemoveIkeOption() argument354 .addIkeOption(ikeOption) in verifyRemoveIkeOption()355 .removeIkeOption(ikeOption) in verifyRemoveIkeOption()359 assertFalse(sessionParams.hasIkeOption(ikeOption)); in verifyRemoveIkeOption()