Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/
DArpPacketTest.java165 assertEquals(packet.senderHwAddress, MacAddress.fromBytes(TEST_SENDER_MAC_ADDR)); in testParseArpProbePacket()
166 assertEquals(packet.targetHwAddress, MacAddress.fromBytes(TEST_TARGET_MAC_ADDR)); in testParseArpProbePacket()
176 assertEquals(packet.senderHwAddress, MacAddress.fromBytes(TEST_SENDER_MAC_ADDR)); in testParseArpAnnouncePacket()
177 assertEquals(packet.targetHwAddress, MacAddress.fromBytes(TEST_TARGET_MAC_ADDR)); in testParseArpAnnouncePacket()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/util/
DInterfaceParams.java76 this.macAddr = hasMacAddress ? macAddr : MacAddress.fromBytes(new byte[] { in InterfaceParams()
96 return MacAddress.fromBytes(netif.getHardwareAddress()); in getMacAddress()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseRepositoryTest.java77 private static final MacAddress TEST_MAC_1 = MacAddress.fromBytes(
79 private static final MacAddress TEST_MAC_2 = MacAddress.fromBytes(
81 private static final MacAddress TEST_MAC_3 = MacAddress.fromBytes(
137 MacAddress newMac = MacAddress.fromBytes(hwAddrBytes); in requestAddresses()
654 p.hwAddr == null ? null : MacAddress.fromBytes(p.hwAddr), in fromParcelable()
DDhcpServerTest.java102 private static final MacAddress TEST_CLIENT_MAC = MacAddress.fromBytes(TEST_CLIENT_MAC_BYTES);
472 assertEquals(TEST_CLIENT_MAC, MacAddress.fromBytes(packet.mClientMac)); in assertMatchesClient()
DDhcpLeaseTest.kt99 assertEquals(expected.hwAddr, MacAddress.fromBytes(p.hwAddr)) in assertParcelEquals()
/packages/modules/NetworkStack/src/com/android/networkstack/arp/
DArpPacket.java148 return new ArpPacket(opCode, MacAddress.fromBytes(senderHwAddress), in parseArpPacket()
150 MacAddress.fromBytes(targetHwAddress), in parseArpPacket()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DUtil.java45 static <T> T fromBytes(byte[] bytes) { in fromBytes() method in Util
DCredentialHelper.java158 ArrayList<byte[]> certs = Util.fromBytes(savedStates.getByteArray(CERTS_KEY)); in onRestoreStates()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DUriWallpaperInfo.java61 InputStreamProvider.fromBytes(imageBytes), a, 0, true); in onSave()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/
DIpNeighborMonitor.java169 return MacAddress.fromBytes(linkLayerAddress); in getMacAddress()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
DInputStreamProvider.java254 public static InputStreamProvider fromBytes(final byte[] bytes) {
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java1339 l2Packet.dstMacAddress = MacAddress.fromBytes(DhcpPacket.ETHER_BROADCAST); in sendPreconnectionPacket()
1527 final MacAddress hostMacAddress = MacAddress.fromBytes(mHwAddr); in hasIpAddressConflict()
DDhcpServer.java806 return MacAddress.fromBytes(packet.getClientMac()); in getMacAddr()