Home
last modified time | relevance | path

Searched refs:HexDump (Results 1 – 25 of 121) sorted by relevance

12345

/aosp12/frameworks/native/libs/binder/include/binder/
H A DTextOutput.h99 class HexDump
103 inline ~HexDump();
106 inline HexDump& setSingleLineCutoff(int32_t bytes);
107 inline HexDump& setAlignment(size_t alignment);
108 inline HexDump& setCArrayStyle(bool enabled);
184 inline HexDump::~HexDump() { } in ~HexDump()
186 inline HexDump& HexDump::setBytesPerLine(size_t bytesPerLine) { in setBytesPerLine()
189 inline HexDump& HexDump::setSingleLineCutoff(int32_t bytes) { in setSingleLineCutoff()
192 inline HexDump& HexDump::setAlignment(size_t alignment) { in setAlignment()
195 inline HexDump& HexDump::setCArrayStyle(bool enabled) { in setCArrayStyle()
[all …]
/aosp12/system/libhwbinder/
H A DTextOutput.h89 class HexDump
93 inline ~HexDump();
96 inline HexDump& setSingleLineCutoff(int32_t bytes);
97 inline HexDump& setAlignment(size_t alignment);
98 inline HexDump& setCArrayStyle(bool enabled);
174 inline HexDump::~HexDump() { } in ~HexDump()
176 inline HexDump& HexDump::setBytesPerLine(size_t bytesPerLine) { in setBytesPerLine()
179 inline HexDump& HexDump::setSingleLineCutoff(int32_t bytes) { in setSingleLineCutoff()
182 inline HexDump& HexDump::setAlignment(size_t alignment) { in setAlignment()
185 inline HexDump& HexDump::setCArrayStyle(bool enabled) { in setCArrayStyle()
[all …]
H A DTextOutput.cpp52 HexDump::HexDump(const void *buf, size_t size, size_t bytesPerLine) in HexDump() function in android::hardware::HexDump
65 TextOutput& operator<<(TextOutput& to, const HexDump& val) in operator <<()
/aosp12/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
H A DHexDumpTest.java33 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()
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DHexDumpTest.java19 import static com.android.internal.util.HexDump.hexStringToByteArray;
20 import static com.android.internal.util.HexDump.toHexString;
31 assertEquals("abcdef", HexDump.toHexString( in testBytesToHexString()
33 assertEquals("ABCDEF", HexDump.toHexString( in testBytesToHexString()
40 () -> HexDump.toHexString(null)); in testNullByteArray()
57 assertEquals(expected, HexDump.toHexString(bytes)); in testBytesToHexString_allByteValues()
131 () -> HexDump.hexStringToByteArray("GG")); in testHexStringToByteArray_invalidCharacters()
134 () -> HexDump.hexStringToByteArray("\0\0")); in testHexStringToByteArray_invalidCharacters()
145 () -> HexDump.hexStringToByteArray("A")); in testHexStringToByteArray_oddLength()
148 () -> HexDump.hexStringToByteArray("123")); in testHexStringToByteArray_oddLength()
[all …]
/aosp12/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DBitwiseStreamsTest.java21 import com.android.internal.util.HexDump;
36 byte[] inBuf = HexDump.hexStringToByteArray("FFDD"); in testOne()
45 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testOne()
51 byte[] inBuf = HexDump.hexStringToByteArray("11d4f29c0e9ad3c36e72584e064d9b53"); in testTwo()
59 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testTwo()
65 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testThree()
73 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testThree()
79 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testFour()
90 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testFour()
120 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testSix()
[all …]
/aosp12/art/libartbase/base/
H A Dhex_dump_test.cc33 TEST(HexDump, OneLine) { in TEST() argument
36 oss << HexDump(test_text, strlen(test_text), false, ""); in TEST()
42 TEST(HexDump, MultiLine) { in TEST() argument
45 oss << HexDump(test_text, strlen(test_text), false, ""); in TEST()
54 TEST(HexDump, ShowActualAddresses) { in TEST() argument
57 oss << HexDump(&g16byte_aligned_number, 8, true, ""); in TEST()
63 TEST(HexDump, Prefix) { in TEST() argument
66 oss << HexDump(test_text, strlen(test_text), false, "test prefix: "); in TEST()
H A Dhex_dump.h30 class HexDump {
32 HexDump(const void* address, size_t byte_count, bool show_actual_addresses, const char* prefix) in HexDump() function
45 DISALLOW_COPY_AND_ASSIGN(HexDump);
48 inline std::ostream& operator<<(std::ostream& os, const HexDump& rhs) {
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
H A DWatchlistSettingsTests.java28 import com.android.internal.util.HexDump;
72 assertEquals(HARD_CODED_SECRET_KEY, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsing()
74 assertEquals(HARD_CODED_SECRET_KEY, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsing()
81 final String tmpKey1 = HexDump.toHexString(settings.getPrivacySecretKey()); in testWatchlistSettings_parsingWithoutKey()
85 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsingWithoutKey()
88 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsingWithoutKey()
94 final String tmpKey1 = HexDump.toHexString(settings.getPrivacySecretKey()); in testWatchlistSettings_noExistingXml()
98 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_noExistingXml()
101 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_noExistingXml()
105 final String tmpKey2 = HexDump.toHexString(settings.getPrivacySecretKey()); in testWatchlistSettings_noExistingXml()
H A DHarmfulDigestsTests.java25 import com.android.internal.util.HexDump;
41 private static final byte[] TEST_DIGEST_1 = HexDump.hexStringToByteArray("AAAAAA");
42 private static final byte[] TEST_DIGEST_2 = HexDump.hexStringToByteArray("BBBBBB");
43 private static final byte[] TEST_DIGEST_3 = HexDump.hexStringToByteArray("AAAABB");
44 private static final byte[] TEST_DIGEST_4 = HexDump.hexStringToByteArray("BBBBAA");
H A DWatchlistConfigTests.java30 import com.android.internal.util.HexDump;
65 private static final byte[] TEST_NEW_CC_DOMAIN_SHA256 = HexDump.hexStringToByteArray(
67 private static final byte[] TEST_NEW_CC_DOMAIN_CRC32 = HexDump.hexStringToByteArray("76795BD3");
70 private static final byte[] TEST_NEW_CC_IP_SHA256 = HexDump.hexStringToByteArray(
72 private static final byte[] TEST_NEW_CC_IP_CRC32 = HexDump.hexStringToByteArray("940B8BEE");
120 assertEquals(TEST_XML_1_HASH, HexDump.toHexString(config.getWatchlistConfigHash())); in testWatchlistConfig_getWatchlistConfigHash_hasConfig()
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
H A DDhcpPacketTest.java56 import com.android.internal.util.HexDump;
543 final byte[] packet = HexDump.hexStringToByteArray( in testBadIpPacket()
559 final byte[] packet = HexDump.hexStringToByteArray( in testBadDhcpPacket()
578 final byte[] packet = HexDump.hexStringToByteArray( in testBadTruncatedOffer()
607 final byte[] packet = HexDump.hexStringToByteArray( in testBadOfferWithoutACookie()
638 final byte[] packet = HexDump.hexStringToByteArray( in testOfferWithBadCookie()
674 final byte[] packet = HexDump.hexStringToByteArray( in testTruncatedOfferPackets()
730 return HexDump.hexStringToByteArray(hexString); in mtuBytes()
791 final byte[] packet = HexDump.hexStringToByteArray( in testExplicitClientId()
863 HexDump.toHexString(offerPacket.getClientMac())); in testBadHwaddrLength()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGsmSmsTest.java24 import com.android.internal.util.HexDump;
33 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
40 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
46 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
53 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testRecipientAddress()
91 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
133 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testMultipart()
154 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testCPHSVoiceMail()
162 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testCPHSVoiceMail()
183 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testCingularVoiceMail()
[all …]
/aosp12/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
H A DScanRecordTest.java23 import com.android.internal.util.HexDump;
51 found.add(HexDump.toHexString(v)); in testMatchesAnyField_Eddystone_Parser()
54 ScanRecord.parseFromBytes(HexDump.hexStringToByteArray(RECORD_URL)) in testMatchesAnyField_Eddystone_Parser()
78 found.add(HexDump.toHexString(v)); in testMatchesAnyField_iBeacon_Parser()
81 ScanRecord.parseFromBytes(HexDump.hexStringToByteArray(RECORD_IBEACON)) in testMatchesAnyField_iBeacon_Parser()
140 assertTrue(ScanRecord.parseFromBytes(HexDump.hexStringToByteArray(record)) in assertMatchesAnyField()
145 assertFalse(ScanRecord.parseFromBytes(HexDump.hexStringToByteArray(record)) in assertNotMatchesAnyField()
/aosp12/frameworks/base/core/tests/coretests/src/android/util/
H A DCharsetUtilsTest.java23 import com.android.internal.util.HexDump;
45 assertEquals("0000000000000000", HexDump.toHexString(dest)); in testModifiedUtf8_Empty()
52 assertEquals("21C0802100000000", HexDump.toHexString(dest)); in testModifiedUtf8_Null()
59 assertEquals("6578616D706C6500", HexDump.toHexString(dest)); in testModifiedUtf8_Simple()
66 assertEquals("00000000E2988300", HexDump.toHexString(dest)); in testModifiedUtf8_Complex()
84 assertEquals("3F002E0021000000", HexDump.toHexString(dest)); in testModifiedUtf8_Overwrite()
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ike3gpp/
H A DIke3gppN1ModeUtilsTest.java25 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");
H A DIke3gppBackoffTimerUtilsTest.java23 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");
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DSP800DeriveTests.java26 import com.android.internal.util.HexDump;
38 byte[] keyBytes = HexDump.hexStringToByteArray( in testFixedInput()
42 byte[] fixedInput = HexDump.hexStringToByteArray( in testFixedInput()
50 + "d8287b4fd537d5c1fffa956910e7c779").toUpperCase(), HexDump.toHexString(res)); in testFixedInput()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
H A DCdmaSmsTest.java27 import com.android.internal.util.HexDump;
123 HexDump.hexStringToByteArray(pdu)); in testRecipientAddress()
522 BearerData bd1 = BearerData.decode(HexDump.hexStringToByteArray(pdu1)); in testReplyOption()
529 BearerData bd2 = BearerData.decode(HexDump.hexStringToByteArray(pdu2)); in testReplyOption()
536 BearerData bd3 = BearerData.decode(HexDump.hexStringToByteArray(pdu3)); in testReplyOption()
543 BearerData bd4 = BearerData.decode(HexDump.hexStringToByteArray(pdu4)); in testReplyOption()
601 BearerData bd1 = BearerData.decode(HexDump.hexStringToByteArray(pdu1)); in testNumberOfMessages()
605 BearerData bd2 = BearerData.decode(HexDump.hexStringToByteArray(pdu2)); in testNumberOfMessages()
613 BearerData bd1 = BearerData.decode(HexDump.hexStringToByteArray(pdu1)); in testCallbackNum()
625 BearerData bd1 = BearerData.decode(HexDump.hexStringToByteArray(pdu1)); in testCallbackNumDtmf()
[all …]
/aosp12/frameworks/base/core/java/android/os/
H A DBytesMatcher.java26 import com.android.internal.util.HexDump;
79 builder.append(HexDump.toHexString(value)); in encode()
82 builder.append(HexDump.toHexString(mask)); in encode()
286 ruleValue = HexDump.hexStringToByteArray(value.substring(i + 1, nextMask)); in decode()
287 ruleMask = HexDump.hexStringToByteArray(value.substring(nextMask + 1, nextRule)); in decode()
289 ruleValue = HexDump.hexStringToByteArray(value.substring(i + 1, nextRule)); in decode()
/aosp12/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DDrmReceiver.java24 import com.android.internal.util.HexDump;
44 Log.d(LOG_TAG, HexDump.dumpHexString(header)); in onReceive()
46 Log.d(LOG_TAG, HexDump.dumpHexString(body)); in onReceive()
H A DReceiverActivity.java24 import com.android.internal.util.HexDump;
45 Log.d(LOG_TAG, HexDump.dumpHexString(header)); in onCreate()
47 Log.d(LOG_TAG, HexDump.dumpHexString(body)); in onCreate()
/aosp12/frameworks/native/libs/binder/
H A DTextOutput.cpp51 HexDump::HexDump(const void *buf, size_t size, size_t bytesPerLine) in HexDump() function in android::HexDump
64 TextOutput& operator<<(TextOutput& to, const HexDump& val) in operator <<()
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/utils/
H A DIkeCertUtilsTest.java21 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()
/aosp12/frameworks/base/services/core/java/com/android/server/net/watchlist/
H A DHarmfulDigests.java19 import com.android.internal.util.HexDump;
40 tmpDigestSet.add(HexDump.toHexString(digests.get(i))); in HarmfulDigests()
46 return mDigestSet.contains(HexDump.toHexString(digest)); in contains()

12345