Home
last modified time | relevance | path

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

123

/frameworks/native/libs/binder/include/binder/
DTextOutput.h100 class HexDump
103 HexDump(const void *buf, size_t size, size_t bytesPerLine=16);
104 inline ~HexDump();
106 inline HexDump& setBytesPerLine(size_t bytesPerLine);
107 inline HexDump& setSingleLineCutoff(int32_t bytes);
108 inline HexDump& setAlignment(size_t alignment);
109 inline HexDump& setCArrayStyle(bool enabled);
127 TextOutput& operator<<(TextOutput& to, const HexDump& val);
185 inline HexDump::~HexDump() { } in ~HexDump()
187 inline HexDump& HexDump::setBytesPerLine(size_t bytesPerLine) { in setBytesPerLine()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
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 …]
/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");
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()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
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()
75 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
91 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
109 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUcs2()
124 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testMultipart()
133 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testMultipart()
[all …]
DInboundSmsTrackerTest.java26 import com.android.internal.util.HexDump;
58 mc.addRow(new Object[]{HexDump.toHexString(FAKE_PDU), in createFakeCursor()
62 mc.addRow(new Object[]{HexDump.toHexString(FAKE_PDU), in createFakeCursor()
/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/base/core/tests/coretests/src/com/android/internal/util/
DHexDumpTest.java23 assertEquals("abcdef", HexDump.toHexString( in testBytesToHexString()
25 assertEquals("ABCDEF", HexDump.toHexString( in testBytesToHexString()
29 assertEquals("(null)", HexDump.toHexString(null)); in testNullArray()
/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.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 <<()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
DCdmaSmsTest.java27 import com.android.internal.util.HexDump;
123 HexDump.hexStringToByteArray(pdu)); in testRecipientAddress()
130 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitGsm()
137 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitAscii()
144 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitAsciiTwo()
151 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserDataIa5()
317 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testMonolithicOne()
364 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testMonolithicTwo()
522 BearerData bd1 = BearerData.decode(HexDump.hexStringToByteArray(pdu1)); in testReplyOption()
529 BearerData bd2 = BearerData.decode(HexDump.hexStringToByteArray(pdu2)); in testReplyOption()
[all …]
/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()
DWatchlistSettings.java27 import com.android.internal.util.HexDump;
114 byte[] key = HexDump.hexStringToByteArray(parser.nextText()); in parseSecretKey()
153 out.text(HexDump.toHexString(mPrivacySecretKey)); in saveSettings()
DWatchlistConfig.java27 import com.android.internal.util.HexDump;
160 byte[] hash = HexDump.hexStringToByteArray(parser.nextText()); in parseHashes()
278 pw.println("Watchlist config hash: " + (hash != null ? HexDump.toHexString(hash) : null)); in dump()
/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()
/frameworks/native/libs/vr/libpdx_default_transport/
Dpdx_tool.cpp49 void HexDump(const void* pointer, size_t length);
83 HexDump(buffer.data(), status.get()); in Dump()
172 void HexDump(const void* pointer, size_t length) { in HexDump() function
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageSignaturesTest.java32 import com.android.internal.util.HexDump;
360 String signatureValue = HexDump.toHexString(signature.toByteArray(), false); in testReadXmlWithPastSignerWithNoCapabilities()
405 String signatureValue = HexDump.toHexString(signature.toByteArray(), false); in verifyReadXmlReturnsExpectedSignaturesAndLineage()
430 signatureString = HexDump.toHexString(signature.toByteArray(), false); in verifySignaturesContainExpectedValues()
/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanCredential.java21 import com.android.internal.util.HexDump;
93 sb.append(" MasterKey:").append(HexDump.toHexString(mMasterKey)); in toSensitiveString()
/frameworks/opt/telephony/
Djarjar-rules-shared.txt13 rule com.android.internal.util.HexDump* com.android.internal.telephony.HexDump@1
/frameworks/native/libs/binder/tests/
DbinderTextOutputTest.cpp107 android::HexDump val(buf, sizeof(buf)); in TEST()
113 android::HexDump val(buf, sizeof(buf), 4); in TEST()

123