Home
last modified time | relevance | path

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

1234

/frameworks/native/libs/binder/include/binder/
DTextOutput.h98 class LIBBINDER_EXPORTED HexDump {
100 HexDump(const void *buf, size_t size, size_t bytesPerLine=16);
101 inline ~HexDump();
103 inline HexDump& setBytesPerLine(size_t bytesPerLine);
104 inline HexDump& setSingleLineCutoff(int32_t bytes);
105 inline HexDump& setAlignment(size_t alignment);
106 inline HexDump& setCArrayStyle(bool enabled);
124 LIBBINDER_EXPORTED std::ostream& operator<<(std::ostream& to, const HexDump& val);
182 inline HexDump::~HexDump() { } in ~HexDump()
184 inline HexDump& HexDump::setBytesPerLine(size_t bytesPerLine) { in setBytesPerLine()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DHexDumpTest.java19 import static com.android.internal.util.HexDump.hexStringToByteArray;
20 import static com.android.internal.util.HexDump.toHexString;
39 assertEquals("abcdef", HexDump.toHexString( in testBytesToHexString()
41 assertEquals("ABCDEF", HexDump.toHexString( in testBytesToHexString()
49 () -> HexDump.toHexString(null)); in testNullByteArray()
67 assertEquals(expected, HexDump.toHexString(bytes)); in testBytesToHexString_allByteValues()
132 assertBytesEqual(new byte[0], HexDump.hexStringToByteArray("")); in testHexStringToByteArray_empty()
139 () -> HexDump.hexStringToByteArray((String) null)); in testHexStringToByteArray_null()
148 () -> HexDump.hexStringToByteArray("GG")); in testHexStringToByteArray_invalidCharacters()
151 () -> HexDump.hexStringToByteArray("\0\0")); in testHexStringToByteArray_invalidCharacters()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DBitwiseStreamsTest.java39 byte[] inBuf = HexDump.hexStringToByteArray("FFDD"); in testOne()
48 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testOne()
55 byte[] inBuf = HexDump.hexStringToByteArray("11d4f29c0e9ad3c36e72584e064d9b53"); in testTwo()
63 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testTwo()
70 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testThree()
78 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testThree()
85 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testFour()
96 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testFour()
128 byte[] inBuf = HexDump.hexStringToByteArray("00031040900112488ea794e0"); in testSix()
139 assertEquals(HexDump.toHexString(inBuf), HexDump.toHexString(inBufDup)); in testSix()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
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()
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");
DFileHashCacheTests.java37 import com.android.internal.util.HexDump;
114 assertEquals(APK_A_CONTENT_HASH, HexDump.toHexString(fileHashCache.getSha256Hash(apkA))); in testFileHashCache_generic()
116 assertEquals(APK_B_CONTENT_HASH, HexDump.toHexString(fileHashCache.getSha256Hash(apkB))); in testFileHashCache_generic()
118 HexDump.toHexString(fileHashCache.getSha256HashFromCache(apkA))); in testFileHashCache_generic()
120 HexDump.toHexString(fileHashCache.getSha256HashFromCache(apkB))); in testFileHashCache_generic()
125 HexDump.toHexString(fileHashCache.getSha256HashFromCache(apkA))); in testFileHashCache_generic()
127 HexDump.toHexString(fileHashCache.getSha256HashFromCache(apkB))); in testFileHashCache_generic()
138 HexDump.toHexString(fileHashCache.getSha256Hash(apkA))); in testFileHashCache_generic()
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()
DHarmfulCrcsTests.java25 import com.android.internal.util.HexDump;
41 private static final byte[] TEST_DIGEST = HexDump.hexStringToByteArray("AABBCCDD");
/frameworks/base/core/tests/coretests/src/android/util/
DCharsetUtilsTest.java26 import com.android.internal.util.HexDump;
55 assertEquals("0000000000000000", HexDump.toHexString(dest)); in testModifiedUtf8_Empty()
62 assertEquals("21C0802100000000", HexDump.toHexString(dest)); in testModifiedUtf8_Null()
69 assertEquals("6578616D706C6500", HexDump.toHexString(dest)); in testModifiedUtf8_Simple()
76 assertEquals("00000000E2988300", HexDump.toHexString(dest)); in testModifiedUtf8_Complex()
94 assertEquals("3F002E0021000000", HexDump.toHexString(dest)); in testModifiedUtf8_Overwrite()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
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()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmSmsTest.java27 import com.android.internal.util.HexDump;
42 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
49 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
55 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing()
62 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testRecipientAddress()
84 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
100 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
118 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUcs2()
133 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testMultipart()
142 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testMultipart()
[all …]
DInboundSmsTrackerTest.java28 import com.android.internal.util.HexDump;
70 mc.addRow(new Object[]{HexDump.toHexString(FAKE_PDU), in createFakeCursor()
74 mc.addRow(new Object[]{HexDump.toHexString(FAKE_PDU), in createFakeCursor()
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
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()
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()
DReceiverService.java25 import com.android.internal.util.HexDump;
54 Log.d(LOG_TAG, HexDump.dumpHexString(header)); in onStartCommand()
56 Log.d(LOG_TAG, HexDump.dumpHexString(body)); in onStartCommand()
DClientTest.java37 import com.android.internal.util.HexDump;
129 HexDump.hexStringToByteArray(pdu.getText().toString())); in onCreate()
131 HexDump.hexStringToByteArray(pdu.getText().toString())); in onCreate()
/frameworks/native/libs/binder/
DTextOutput.cpp50 HexDump::HexDump(const void *buf, size_t size, size_t bytesPerLine) in HexDump() function in android::HexDump
63 std::ostream& operator<<(std::ostream& to, const HexDump& val) { in operator <<()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
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()
DReportEncoder.java25 import com.android.internal.util.HexDump;
87 HexDump.toHexString(watchlistHash)); in serializeReport()
92 byte[] digest = HexDump.hexStringToByteArray(key); in serializeReport()
DHarmfulCrcs.java19 import com.android.internal.util.HexDump;
59 pw.println(HexDump.toHexString(crc)); in dump()
DWatchlistSettings.java27 import com.android.internal.util.HexDump;
115 byte[] key = HexDump.hexStringToByteArray(parser.nextText()); in parseSecretKey()
153 out.text(HexDump.toHexString(mPrivacySecretKey)); in saveSettings()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
DCdmaSmsTest.java28 import com.android.internal.util.HexDump;
124 HexDump.hexStringToByteArray(pdu)); in testRecipientAddress()
131 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitGsm()
138 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitAscii()
145 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitAsciiTwo()
152 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserDataIa5()
318 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testMonolithicOne()
365 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testMonolithicTwo()
523 BearerData bd1 = BearerData.decode(HexDump.hexStringToByteArray(pdu1)); in testReplyOption()
530 BearerData bd2 = BearerData.decode(HexDump.hexStringToByteArray(pdu2)); in testReplyOption()
[all …]
/frameworks/base/services/core/java/com/android/server/vcn/util/
DLogUtils.java22 import com.android.internal.util.HexDump;
37 return HexDump.toHexString(uuid.hashCode()); in getHashedSubscriptionGroup()
/frameworks/base/core/tests/companiontests/src/android/companion/
DSystemDataTransportTest.java27 import com.android.internal.util.HexDump;
113 assertEquals(HexDump.toHexString(expected), HexDump.toHexString(actual)); in testPingTrickle()
126 assertEquals(HexDump.toHexString(expected), HexDump.toHexString(actual)); in testPingDelay()
305 assertEquals(HexDump.toHexString(expected), HexDump.toHexString(actual)); in assertTransportBehavior()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DUserData.java23 import com.android.internal.util.HexDump;
179 builder.append(", payload='" + HexDump.toHexString(payload) + "'"); in toString()

1234