Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java41 private static final int MAC_LENGTH = 6; field in NativeUtil
43 private static final int MAC_STR_LENGTH = MAC_LENGTH * 2 + 5;
124 if (cleanMac.length() != MAC_LENGTH * 2) { in macAddressToByteArray()
141 if (macArray.length != MAC_LENGTH) { in macAddressFromByteArray()
180 if (macArray.length != MAC_LENGTH) { in macAddressToLong()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtMacTest.java43 private static final int MAC_LENGTH = 16; field in AtMacTest
60 assertArrayEquals(new byte[MAC_LENGTH], atMac.mac); in testConstructor()
118 assertArrayEquals(new byte[MAC_LENGTH], clearedMac.mac); in testGetAtMacWithMacCleared()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttribute.java641 public static final int MAC_LENGTH = 4 * LENGTH_SCALING; field in EapSimAkaAttribute.AtMac
653 mac = new byte[MAC_LENGTH]; in AtMac()
660 this(new byte[MAC_LENGTH]); in AtMac()
671 if (mac.length != MAC_LENGTH) { in AtMac()
691 return new AtMac(reservedBytes, new byte[MAC_LENGTH]); in getAtMacWithMacCleared()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachine.java263 return Arrays.copyOfRange(mac, 0, AtMac.MAC_LENGTH); in getMac()