Home
last modified time | relevance | path

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

12

/frameworks/native/libs/binder/include/binder/
DTextOutput.h94 class HexDump
97 HexDump(const void *buf, size_t size, size_t bytesPerLine=16);
98 inline ~HexDump();
100 inline HexDump& setBytesPerLine(size_t bytesPerLine);
101 inline HexDump& setSingleLineCutoff(int32_t bytes);
102 inline HexDump& setAlignment(size_t alignment);
103 inline HexDump& setCArrayStyle(bool enabled);
121 TextOutput& operator<<(TextOutput& to, const HexDump& val);
179 inline HexDump::~HexDump() { } in ~HexDump()
181 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/tests/net/java/android/net/dhcp/
DDhcpPacketTest.java25 import com.android.internal.util.HexDump;
286 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer1()
316 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer2()
348 final byte[] packet = HexDump.hexStringToByteArray( in testBadIpPacket()
363 final byte[] packet = HexDump.hexStringToByteArray( in testBadDhcpPacket()
382 final byte[] packet = HexDump.hexStringToByteArray( in testBadTruncatedOffer()
411 final byte[] packet = HexDump.hexStringToByteArray( in testBadOfferWithoutACookie()
442 final byte[] packet = HexDump.hexStringToByteArray( in testOfferWithBadCookie()
478 final byte[] packet = HexDump.hexStringToByteArray( in testTruncatedOfferPackets()
521 fail("bad packet: " + HexDump.toHexString(packet)); in testRandomPackets()
[all …]
/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()
54 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
70 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh()
88 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUcs2()
103 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testMultipart()
112 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testMultipart()
122 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testCPHSVoiceMail()
133 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testCPHSVoiceMail()
[all …]
DInboundSmsTrackerTest.java22 import com.android.internal.util.HexDump;
54 mc.addRow(new Object[]{HexDump.toHexString(FAKE_PDU), in createFakeCursor()
58 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()
DDataVerify.java25 import com.android.internal.util.HexDump;
/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.java26 import com.android.internal.util.HexDump;
120 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitGsm()
127 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitAscii()
134 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserData7bitAsciiTwo()
141 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testUserDataIa5()
269 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testMonolithicOne()
316 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); in testMonolithicTwo()
474 BearerData bd1 = BearerData.decode(HexDump.hexStringToByteArray(pdu1)); in testReplyOption()
481 BearerData bd2 = BearerData.decode(HexDump.hexStringToByteArray(pdu2)); in testReplyOption()
488 BearerData bd3 = BearerData.decode(HexDump.hexStringToByteArray(pdu3)); in testReplyOption()
[all …]
/frameworks/base/services/net/java/android/net/netlink/
DNetlinkConstants.java20 import com.android.internal.util.HexDump;
59 return HexDump.toHexString(bytes); in hexify()
64 return HexDump.toHexString( in hexify()
/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()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DUserData.java22 import com.android.internal.util.HexDump;
167 builder.append(", payload='" + HexDump.toHexString(payload) + "'"); in toString()
DCdmaSmsAddress.java23 import com.android.internal.util.HexDump;
106 builder.append(", origBytes=" + HexDump.toHexString(origBytes)); in toString()
/frameworks/native/libs/vr/libpdx_default_transport/
Dservicetool.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/opt/telephony/src/java/com/android/internal/telephony/
DInboundSmsTracker.java23 import com.android.internal.util.HexDump;
175 mPdu = HexDump.hexStringToByteArray(cursor.getString(InboundSmsHandler.PDU_COLUMN)); in InboundSmsTracker()
229 values.put("pdu", HexDump.toHexString(mPdu)); in getContentValues()
/frameworks/native/libs/binder/tests/
DbinderTextOutputTest.cpp114 android::HexDump val(buf, sizeof(buf)); in TEST()
120 android::HexDump val(buf, sizeof(buf), 4); in TEST()
/frameworks/base/services/core/java/com/android/server/updates/
DCertificateTransparencyLogInstallReceiver.java19 import com.android.internal.util.HexDump;
154 return HexDump.toHexString(id, false); in getLogFileName()
DConfigUpdateInstallReceiver.java20 import com.android.internal.util.HexDump;
159 return HexDump.toHexString(fingerprint, false); in getCurrentHash()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandler.java39 import com.android.internal.util.HexDump;
307 segment, totalSegments, true, HexDump.toHexString(userData)); in processCdmaWapPdu()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandlerTest.java37 import com.android.internal.util.HexDump;
124 mInboundSmsTrackerCV.put("pdu", HexDump.toHexString(smsPdu)); in setUp()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsHeader.java20 import com.android.internal.util.HexDump;
307 builder.append(", data=" + HexDump.toHexString(miscElt.data)); in toString()
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java19 import com.android.internal.util.HexDump;
133 return HexDump.toHexString(fingerprint, false); in getCurrentHash()

12