Home
last modified time | relevance | path

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

/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeSessionParams.java298 private static void validateIkeOptionOrThrow(@IkeOption int ikeOption) { in validateIkeOptionOrThrow() argument
299 if (ikeOption < MIN_IKE_OPTION || ikeOption > MAX_IKE_OPTION) { in validateIkeOptionOrThrow()
300 throw new IllegalArgumentException("Invalid IKE Option: " + ikeOption); in validateIkeOptionOrThrow()
304 private static long getOptionBitValue(int ikeOption) { in getOptionBitValue() argument
305 return 1 << ikeOption; in getOptionBitValue()
571 private static boolean hasIkeOption(long ikeOptionsRecord, @IkeOption int ikeOption) { in hasIkeOption() argument
572 validateIkeOptionOrThrow(ikeOption); in hasIkeOption()
573 return (ikeOptionsRecord & getOptionBitValue(ikeOption)) != 0; in hasIkeOption()
577 public boolean hasIkeOption(@IkeOption int ikeOption) { in hasIkeOption() argument
578 return hasIkeOption(mIkeOptions, ikeOption); in hasIkeOption()
[all …]