/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/ |
D | ProcfsParsingUtilsTest.kt | 21 import com.android.internal.util.HexDump 51 HexDump.hexStringToByteArray("2a0012e2abcddee459123738456e134a") in testParseAnycast6Address() 54 HexDump.hexStringToByteArray("2a0079e10abc15391ba735397a2e311f") in testParseAnycast6Address() 82 MacAddress.fromBytes(HexDump.hexStringToByteArray("01005e000001")), in testParseEtherMulticastAddress() 83 MacAddress.fromBytes(HexDump.hexStringToByteArray("333300000001")), in testParseEtherMulticastAddress() 84 MacAddress.fromBytes(HexDump.hexStringToByteArray("3333ff8a3667")), in testParseEtherMulticastAddress() 85 MacAddress.fromBytes(HexDump.hexStringToByteArray("3333ff59c632")), in testParseEtherMulticastAddress() 86 MacAddress.fromBytes(HexDump.hexStringToByteArray("3333ff574870")) in testParseEtherMulticastAddress() 117 HexDump.hexStringToByteArray("ff0200000000000000000001ff574870") in testParseIpv6MulticastAddress() 120 HexDump.hexStringToByteArray("ff0200000000000000000001ff59c632") in testParseIpv6MulticastAddress() [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | HexDumpTest.java | 33 assertEquals("abcdef", HexDump.toHexString( in testBytesToHexString() 35 assertEquals("ABCDEF", HexDump.toHexString( in testBytesToHexString() 41 assertEquals("(null)", HexDump.dumpHexString(null)); in testNullArray() 47 HexDump.hexStringToByteArray("abcdef")); in testHexStringToByteArray() 49 HexDump.hexStringToByteArray("ABCDEF")); in testHexStringToByteArray() 55 HexDump.toByteArray((int) 0xff000004)); in testIntegerToByteArray() 60 assertArrayEquals(new byte[]{(byte) 0x7f}, HexDump.toByteArray((byte) 0x7f)); in testByteToByteArray() 65 assertEquals("FF000004", HexDump.toHexString((int) 0xff000004)); in testIntegerToHexString() 70 assertEquals("7F", HexDump.toHexString((byte) 0x7f)); in testByteToHexString()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp6/ |
D | Dhcp6PacketTest.kt | 21 import com.android.net.module.util.HexDump 44 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket() 62 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket_incorrectOptionLength() 81 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket_lastTruncatedOption() 100 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket_middleTruncatedOption() 121 val bytes = HexDump.hexStringToByteArray(advertiseHex) in testDecodeDhcp6AdvertisePacket() 143 val bytes = HexDump.hexStringToByteArray(advertiseHex) in testDecodeDhcp6SolicitPacket_unsupportedOption() 172 val bytes = HexDump.hexStringToByteArray(replyHex) in testDecodeDhcp6ReplyPacket() 202 val bytes = HexDump.hexStringToByteArray(replyHex) in testGetMinimalPreferredValidLifetime() 230 val bytes = HexDump.hexStringToByteArray(replyHex) in testStatusCodeOptionWithStatusMessage() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsRecordTests.java | 33 import com.android.net.module.util.HexDump; 63 final byte[] dataIn = HexDump.hexStringToByteArray( in testInet4AddressRecord() 66 String dataInText = HexDump.dumpHexString(dataIn, 0, dataIn.length); in testInet4AddressRecord() 94 final byte[] dataIn = HexDump.hexStringToByteArray( in testTypeAAAInet6AddressRecord() 100 String dataInText = HexDump.dumpHexString(dataIn, 0, dataIn.length); in testTypeAAAInet6AddressRecord() 131 final byte[] dataIn = HexDump.hexStringToByteArray( in testTypeAAAInet4AddressRecord() 137 HexDump.dumpHexString(dataIn, 0, dataIn.length); in testTypeAAAInet4AddressRecord() 164 HexDump.hexStringToByteArray("047465737400001C000100001194000410203040"); in testTypeAAAInet4AddressRecord() 166 String expectedDataInText = HexDump.dumpHexString(expectedDataIn, 0, expectedDataIn.length); in testTypeAAAInet4AddressRecord() 173 final byte[] dataIn = HexDump.hexStringToByteArray( in testPointerRecord() [all …]
|
D | MdnsResponseDecoderTests.java | 37 import com.android.net.module.util.HexDump; 62 private static final byte[] data = HexDump.hexStringToByteArray( 104 private static final byte[] data6 = HexDump.hexStringToByteArray( 124 private static final byte[] matterDuplicateHostname = HexDump.hexStringToByteArray( 162 private static final byte[] DATAIN_IPV4_1 = HexDump.hexStringToByteArray( 166 private static final byte[] DATAIN_IPV4_2 = HexDump.hexStringToByteArray( 170 private static final byte[] DATAIN_IPV6_1 = HexDump.hexStringToByteArray( 174 private static final byte[] DATAIN_IPV6_2 = HexDump.hexStringToByteArray( 177 private static final byte[] DATAIN_PTR_1 = HexDump.hexStringToByteArray( 180 private static final byte[] DATAIN_PTR_2 = HexDump.hexStringToByteArray( [all …]
|
D | MdnsPacketTest.kt | 20 import com.android.net.module.util.HexDump 44 val bytes = HexDump.hexStringToByteArray(packetHex) in makeFlags() 81 val bytes = HexDump.hexStringToByteArray(packetWithErrorHex) in testParseQueryWithLabelLoop_ThrowsParseException()
|
D | MdnsResponseTests.java | 34 import com.android.net.module.util.HexDump; 52 private static final byte[] DATAIN_IPV4 = HexDump.hexStringToByteArray( 55 private static final byte[] DATAIN_IPV6 = HexDump.hexStringToByteArray( 58 private static final byte[] DATAIN_PTR = HexDump.hexStringToByteArray( 61 private static final byte[] DATAIN_SERVICE = HexDump.hexStringToByteArray( 69 private static final byte[] DATAIN_TEXT = HexDump.hexStringToByteArray(
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 56 import com.android.internal.util.HexDump; 347 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer1() 380 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer2() 415 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in runCapportOptionTest() 460 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testCapportOption_Invalid() 497 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in runIPv6OnlyPreferredOption() 544 final byte[] packet = HexDump.hexStringToByteArray( in testBadIpPacket() 560 final byte[] packet = HexDump.hexStringToByteArray( in testBadDhcpPacket() 579 final byte[] packet = HexDump.hexStringToByteArray( in testBadTruncatedOffer() 608 final byte[] packet = HexDump.hexStringToByteArray( in testBadOfferWithoutACookie() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/ |
D | Ike3gppN1ModeUtilsTest.java | 25 import com.android.internal.util.HexDump; 31 private static final byte[] N1_MODE_CAPABILITY_PAYLOAD = HexDump.hexStringToByteArray("0101"); 33 private static final byte[] SNSSAI = HexDump.hexStringToByteArray("11223344"); 35 HexDump.hexStringToByteArray("0411223344"); 37 HexDump.hexStringToByteArray("0511223344");
|
D | Ike3gppBackoffTimerUtilsTest.java | 23 import com.android.internal.util.HexDump; 28 private static final byte[] BACKOFF_TIMER_DATA = HexDump.hexStringToByteArray("01AF"); 30 private static final byte[] BACKOFF_TIMER_LONG_DATA = HexDump.hexStringToByteArray("010203"); 31 private static final byte[] BACKOFF_TIMER_INVALID_LENGTH = HexDump.hexStringToByteArray("02AF");
|
D | Ike3gppDeviceIdentityUtilsTest.java | 25 import com.android.internal.util.HexDump; 32 HexDump.hexStringToByteArray("0009022143658719325476"); 35 HexDump.hexStringToByteArray("00090121436587193254F6");
|
D | Ike3gppExtensionExchangeTest.java | 38 import com.android.internal.util.HexDump; 50 private static final byte[] N1_MODE_CAPABILITY_DATA = HexDump.hexStringToByteArray("0101"); 53 HexDump.hexStringToByteArray("0411223344"); 54 private static final byte[] BACKOFF_TIMER_DATA = HexDump.hexStringToByteArray("01AF"); 57 HexDump.hexStringToByteArray("00090121436587193254F6");
|
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/le/ |
D | ScanRecordTest.java | 25 import com.android.internal.util.HexDump; 73 found.add(HexDump.toHexString(v)); in testMatchesAnyField_Eddystone_Parser() 76 ScanRecord.parseFromBytes(HexDump.hexStringToByteArray(RECORD_URL)) in testMatchesAnyField_Eddystone_Parser() 115 found.add(HexDump.toHexString(v)); in testMatchesAnyField_iBeacon_Parser() 118 ScanRecord.parseFromBytes(HexDump.hexStringToByteArray(RECORD_IBEACON)) in testMatchesAnyField_iBeacon_Parser() 269 ScanRecord.parseFromBytes(HexDump.hexStringToByteArray(record)) in assertMatchesAnyField() 276 ScanRecord.parseFromBytes(HexDump.hexStringToByteArray(record)) in assertNotMatchesAnyField()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | ApfTestUtils.java | 42 import com.android.internal.util.HexDump; 91 + " apf_run --program " + HexDump.toHexString(program) in assertVerdict() 92 + " --packet " + HexDump.toHexString(packet) in assertVerdict() 151 throw new AssertionError("\nexpected: " + HexDump.toHexString(expected) + "\nactual: " in assertProgramEquals() 152 + HexDump.toHexString(program)); in assertProgramEquals() 177 throw new Exception("\nprogram: " + HexDump.toHexString(program) + "\ndata memory: " in assertDataMemoryContents() 178 + HexDump.toHexString(data) + "\nexpected: " + HexDump.toHexString( in assertDataMemoryContents() 199 + " apf_run --program " + HexDump.toHexString(program) in assertVerdict() 200 + " --packet " + HexDump.toHexString(packet) in assertVerdict() 201 + (data != null ? " --data " + HexDump.toHexString(data) : "") in assertVerdict()
|
D | ApfNewTest.kt | 63 import com.android.net.module.util.HexDump 953 .addDataCopy(HexDump.hexStringToByteArray("112233445566")) in testCopyContentToTxBuffer() 954 .addDataCopy(HexDump.hexStringToByteArray("223344")) in testCopyContentToTxBuffer() 955 .addDataCopy(HexDump.hexStringToByteArray("778899")) in testCopyContentToTxBuffer() 956 .addDataCopy(HexDump.hexStringToByteArray("112233445566")) in testCopyContentToTxBuffer() 970 val transmitPkt = HexDump.toHexString(ApfJniUtils.getTransmittedPacket()) in testCopyContentToTxBuffer() 1366 verifyProgramRun(APF_VERSION_6, program, HexDump.hexStringToByteArray(mdnsPkt), PASSED_IPV4) in doTestEtherTypeAllowListFilter() 1378 HexDump.hexStringToByteArray(raPkt), in doTestEtherTypeAllowListFilter() 1388 HexDump.hexStringToByteArray(ethPkt), in doTestEtherTypeAllowListFilter() 1812 HexDump.hexStringToByteArray(mdnsPkt), in testIPv4PacketFilterOnV6OnlyNetwork() [all …]
|
D | ApfStandaloneTest.kt | 36 import com.android.net.module.util.HexDump 63 HexDump.toHexString(program) in runApfTest() 77 HexDump.hexStringToByteArray("ffffffffffff047bcb463fb588a201") in runApfTest() 137 val dhcpRequestPkt = HexDump.hexStringToByteArray( in runApfTest() 175 val rsPkt = HexDump.hexStringToByteArray( in runApfTest() 215 val pingRequestPkt = HexDump.hexStringToByteArray( in runApfTest()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | IpSecXfrmControllerTestHex.java | 19 import com.android.net.module.util.HexDump; 75 HexDump.hexStringToByteArray(XFRM_NEW_SA_HEX_STRING); 82 public static final byte[] XFRM_ESRCH_HEX = HexDump.hexStringToByteArray(XFRM_ESRCH_HEX_STRING);
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/utils/ |
D | IkeCertUtilsTest.java | 21 import com.android.internal.util.HexDump; 72 byte[] certBytes = HexDump.hexStringToByteArray(CERTIFICATE_HEX); in testCreateCertificateFromByteArray() 80 byte[] keyBytes = HexDump.hexStringToByteArray(PRIVATE_KEY_HEX); in testCreatePrivateKeyFromByteArray()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/ |
D | AesXCbcImpl.java | 19 import com.android.internal.util.HexDump; 71 byte[] key1 = encryptAesBlock(keyBytes, HexDump.hexStringToByteArray(KEY1_SEED_HEX_STRING)); in mac() 72 byte[] key2 = encryptAesBlock(keyBytes, HexDump.hexStringToByteArray(KEY2_SEED_HEX_STRING)); in mac() 73 byte[] key3 = encryptAesBlock(keyBytes, HexDump.hexStringToByteArray(KEY3_SEED_HEX_STRING)); in mac()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/testmode/ |
D | DeterministicSecureRandom.java | 20 import com.android.internal.util.HexDump; 63 byte[] byteSignerKey = HexDump.hexStringToByteArray(MAC_SHA256_KEY_HEX); in DeterministicSecureRandom() 70 mBytesToSign = HexDump.hexStringToByteArray(INITIAL_BYTE_TO_SIGN_HEX); in DeterministicSecureRandom()
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ProcfsParsingUtils.java | 23 import com.android.internal.util.HexDump; 112 final byte[] addr = HexDump.hexStringToByteArray(fields[2]); in parseAnycast6Addresses() 139 final byte[] addr = HexDump.hexStringToByteArray(fields[4]); in parseEtherMulticastAddresses() 165 final byte[] addr = HexDump.hexStringToByteArray(fields[2]); in parseIPv6MulticastAddresses()
|
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/ |
D | DataStallDetectionStats.java | 26 import com.android.internal.util.HexDump; 133 .append(HexDump.toHexString(mWifiInfo)) in toString() 135 .append(HexDump.toHexString(mCellularInfo)) in toString() 137 .append(HexDump.toHexString(mDns)) in toString()
|
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ike3gpp/ |
D | Ike3gppN1ModeInformationTest.java | 22 import com.android.internal.util.HexDump; 27 private static final byte[] SNSSAI = HexDump.hexStringToByteArray("1122334455");
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | IpSecTransformState.java | 29 import com.android.net.module.util.HexDump; 87 mReplayBitmap = HexDump.hexStringToByteArray(in.readString()); in IpSecTransformState() 106 out.writeString(HexDump.toHexString(mReplayBitmap)); in writeToParcel()
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ike3gpp/ |
D | Ike3gppN1ModeInformationTest.java | 22 import com.android.internal.util.HexDump; 28 private static final byte[] SNSSAI = HexDump.hexStringToByteArray("1122334455");
|