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.java46 private static final int MAC_LENGTH = 6; field in NativeUtil
48 private static final int MAC_STR_LENGTH = MAC_LENGTH * 2 + 5;
129 if (cleanMac.length() != MAC_LENGTH * 2) { in macAddressToByteArray()
163 if (macArray.length != MAC_LENGTH) { in macAddressFromByteArray()
202 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.java654 public static final int MAC_LENGTH = 4 * LENGTH_SCALING; field in EapSimAkaAttribute.AtMac
666 mac = new byte[MAC_LENGTH]; in AtMac()
673 this(new byte[MAC_LENGTH]); in AtMac()
684 if (mac.length != MAC_LENGTH) { in AtMac()
704 return new AtMac(reservedBytes, new byte[MAC_LENGTH]); in getAtMacWithMacCleared()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachine.java450 return Arrays.copyOfRange(mac, 0, AtMac.MAC_LENGTH); in getMac()