Home
last modified time | relevance | path

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

/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeSessionParams.java574 private static void validateIkeOptionOrThrow(@IkeOption int ikeOption) { in validateIkeOptionOrThrow() argument
575 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() argument
581 return 1 << ikeOption; in getOptionBitValue()
893 private static boolean hasIkeOption(long ikeOptionsRecord, @IkeOption int ikeOption) { in hasIkeOption() argument
894 validateIkeOptionOrThrow(ikeOption); in hasIkeOption()
895 return (ikeOptionsRecord & getOptionBitValue(ikeOption)) != 0; in hasIkeOption()
904 public boolean hasIkeOption(@IkeOption int ikeOption) { in hasIkeOption() argument
905 return hasIkeOption(mIkeOptions, ikeOption); in hasIkeOption()
[all …]
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeSessionParamsTest.java337 private void verifyAddIkeOption(int ikeOption) { in verifyAddIkeOption() argument
339 createIkeParamsBuilderMinimum().addIkeOption(ikeOption).build(); in verifyAddIkeOption()
342 assertTrue(sessionParams.hasIkeOption(ikeOption)); in verifyAddIkeOption()
351 private void verifyRemoveIkeOption(int ikeOption) { in verifyRemoveIkeOption() argument
354 .addIkeOption(ikeOption) in verifyRemoveIkeOption()
355 .removeIkeOption(ikeOption) in verifyRemoveIkeOption()
359 assertFalse(sessionParams.hasIkeOption(ikeOption)); in verifyRemoveIkeOption()