Searched refs:fromBytes (Results 1 – 13 of 13) sorted by relevance
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/ |
D | ArpPacketTest.java | 165 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/ |
D | InterfaceParams.java | 76 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/ |
D | DhcpLeaseRepositoryTest.java | 77 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()
|
D | DhcpServerTest.java | 102 private static final MacAddress TEST_CLIENT_MAC = MacAddress.fromBytes(TEST_CLIENT_MAC_BYTES); 472 assertEquals(TEST_CLIENT_MAC, MacAddress.fromBytes(packet.mClientMac)); in assertMatchesClient()
|
D | DhcpLeaseTest.kt | 99 assertEquals(expected.hwAddr, MacAddress.fromBytes(p.hwAddr)) in assertParcelEquals()
|
/packages/modules/NetworkStack/src/com/android/networkstack/arp/ |
D | ArpPacket.java | 148 return new ArpPacket(opCode, MacAddress.fromBytes(senderHwAddress), in parseArpPacket() 150 MacAddress.fromBytes(targetHwAddress), in parseArpPacket()
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | Util.java | 45 static <T> T fromBytes(byte[] bytes) { in fromBytes() method in Util
|
D | CredentialHelper.java | 158 ArrayList<byte[]> certs = Util.fromBytes(savedStates.getByteArray(CERTS_KEY)); in onRestoreStates()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
D | UriWallpaperInfo.java | 61 InputStreamProvider.fromBytes(imageBytes), a, 0, true); in onSave()
|
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/ |
D | IpNeighborMonitor.java | 169 return MacAddress.fromBytes(linkLayerAddress); in getMacAddress()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
D | InputStreamProvider.java | 254 public static InputStreamProvider fromBytes(final byte[] bytes) {
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 1339 l2Packet.dstMacAddress = MacAddress.fromBytes(DhcpPacket.ETHER_BROADCAST); in sendPreconnectionPacket() 1527 final MacAddress hostMacAddress = MacAddress.fromBytes(mHwAddr); in hasIpAddressConflict()
|
D | DhcpServer.java | 806 return MacAddress.fromBytes(packet.getClientMac()); in getMacAddr()
|