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.java201 private static void validateIkeOptionOrThrow(@IkeOption int ikeOption) { in validateIkeOptionOrThrow() argument
202 if (ikeOption < MIN_IKE_OPTION || ikeOption > MAX_IKE_OPTION) { in validateIkeOptionOrThrow()
203 throw new IllegalArgumentException("Invalid IKE Option: " + ikeOption); in validateIkeOptionOrThrow()
207 private static long getOptionBitValue(int ikeOption) { in getOptionBitValue() argument
208 return 1 << ikeOption; in getOptionBitValue()
294 public boolean hasIkeOption(@IkeOption int ikeOption) { in hasIkeOption() argument
295 validateIkeOptionOrThrow(ikeOption); in hasIkeOption()
296 return (mIkeOptions & getOptionBitValue(ikeOption)) != 0; in hasIkeOption()
903 public Builder addIkeOption(@IkeOption int ikeOption) { in addIkeOption() argument
904 validateIkeOptionOrThrow(ikeOption); in addIkeOption()
[all …]