Home
last modified time | relevance | path

Searched refs:hexString (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/native/libs/binder/tests/parcel_fuzzer/
Dutil.cpp24 std::string hexString(const void* bytes, size_t len) { in hexString() function
39 std::string hexString(const std::vector<uint8_t>& bytes) { in hexString() function
40 return hexString(bytes.data(), bytes.size()); in hexString()
Dutil.h53 std::string hexString(const void* bytes, size_t len);
54 std::string hexString(const std::vector<uint8_t>& bytes);
Dmain.cpp79 FUZZ_LOG() << "input: " << hexString(p.data(), p.dataSize()); in doFuzz()
80 FUZZ_LOG() << "instructions: " << hexString(instructions); in doFuzz()
Dhwbinder.cpp73 FUZZ_LOG() << "read status: " << status << " data: " << hexString(data.data(), data.size()); in __anon2ab79a190302()
79 FUZZ_LOG() << "read status: " << hexString(inplace, length); in __anon2ab79a190402()
103 FUZZ_LOG() << "readString16Inplace: " << hexString(str, sizeof(char16_t) * outSize); in __anon2ab79a190602()
Dbinder.cpp127 FUZZ_LOG() << "readInplace done. pointer: " << r << " bytes: " << hexString(r, len); in __anon9dbf283a0502()
152 std::string bytes = hexString(str, sizeof(char) * (outLen + 1)); in __anon9dbf283a0702()
162 std::string bytes = hexString(str, sizeof(char16_t) * (outLen + 1)); in __anon9dbf283a0802()
/frameworks/native/libs/gralloc/types/fuzzer/
Dutil.cpp24 std::string hexString(const void* bytes, size_t len) { in hexString() function
39 std::string hexString(const std::vector<uint8_t>& bytes) { in hexString() function
40 return hexString(bytes.data(), bytes.size()); in hexString()
Dutil.h52 std::string hexString(const void* bytes, size_t len);
53 std::string hexString(const std::vector<uint8_t>& bytes);
Dmain.cpp118 FUZZ_LOG() << "input: " << hexString(input); in LLVMFuzzerTestOneInput()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRulesTest.java73 private void testHelper(String hexString) { in testHelper() argument
89 IccIoResult iir = new IccIoResult(0x90, 0x00, IccUtils.hexStringToBytes(hexString)); in testHelper()
123 final String hexString = in testParseRule_Normal() local
127 testHelper(hexString); in testParseRule_Normal()
152 final String hexString = "FF4034E232E11E4F06FFFFFFFFFFFFC114B61BE34AD2C20D7AFED84" in testParseRule_With4FD0D1() local
155 testHelper(hexString); in testParseRule_With4FD0D1()
174 final String hexString = "FF4031E22FE11E4F06FFFFFFFFFFFFC114B61BE34AD2C20D7AFED8493C313A" in testParseRule_With4FD0() local
177 testHelper(hexString); in testParseRule_With4FD0()
204 final String hexString = in testParseRule_TwoMessages() local
209 testHelper(hexString); in testParseRule_TwoMessages()
[all …]
/frameworks/libs/net/common/device/com/android/net/module/util/
DHexDump.java211 public static byte[] hexStringToByteArray(String hexString) { in hexStringToByteArray() argument
212 int length = hexString.length(); in hexStringToByteArray()
217 (byte) ((toByte(hexString.charAt(i)) << 4) | toByte(hexString.charAt(i + 1))); in hexStringToByteArray()
/frameworks/base/core/java/com/android/internal/util/
DHexDump.java173 public static byte[] hexStringToByteArray(String hexString) in hexStringToByteArray() argument
175 int length = hexString.length(); in hexStringToByteArray()
180 … buffer[i / 2] = (byte)((toByte(hexString.charAt(i)) << 4) | toByte(hexString.charAt(i+1))); in hexStringToByteArray()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccIoResult.java194 public IccIoResult(int sw1, int sw2, String hexString) { in IccIoResult() argument
195 this(sw1, sw2, IccUtils.hexStringToBytes(hexString)); in IccIoResult()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DHexDumpTest.java72 String hexString = "0123456789ABCDEF72f9a3438934c378d34f32a8b932"; in testRoundTrip_fromString() local
73 for (int length = 0; length < hexString.length(); length += 2) { in testRoundTrip_fromString()
74 String original = hexString.substring(0, length); in testRoundTrip_fromString()
/frameworks/native/libs/binder/tests/
DbinderClearBufTest.cpp33 std::string hexString(const void* bytes, size_t len) { in hexString() function
86 *outBuffer = hexString(lastReply, lastReplySize); in RepeatString()
/frameworks/base/errorprone/tests/res/com/android/internal/util/
DHexDump.java24 public static byte[] hexStringToByteArray(String hexString) { in hexStringToByteArray() argument
/frameworks/native/libs/binder/
DDebug.h26 std::string hexString(const void* data, size_t size);
DRpcAddress.cpp76 return hexString(mRawAddr.get(), sizeof(RpcWireAddress)); in toString()
DDebug.cpp29 std::string hexString(const void* bytes, size_t len) { in hexString() function
DRpcState.cpp207 LOG_RPC_DETAIL("Sending %s on fd %d: %s", what, fd.get(), hexString(data, size).c_str()); in rpcSend()
249 LOG_RPC_DETAIL("Received %s on fd %d: %s", what, fd.get(), hexString(data, size).c_str()); in rpcRec()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCatService.java626 String hexString = IccUtils.bytesToHexString(rawData); in sendTerminalResponse() local
628 CatLog.d(this, "TERMINAL RESPONSE: " + hexString); in sendTerminalResponse()
631 mCmdIf.sendTerminalResponse(hexString, null); in sendTerminalResponse()
724 String hexString = IccUtils.bytesToHexString(rawData); in sendMenuSelection() local
726 mCmdIf.sendEnvelope(hexString, null); in sendMenuSelection()
796 String hexString = IccUtils.bytesToHexString(rawData); in eventDownload() local
798 CatLog.d(this, "ENVELOPE COMMAND: " + hexString); in eventDownload()
800 mCmdIf.sendEnvelope(hexString, null); in eventDownload()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DInboundSmsHandler.java2079 protected byte[] decodeHexString(String hexString) { in decodeHexString() argument
2080 if (hexString == null || hexString.length() % 2 == 1) { in decodeHexString()
2083 byte[] bytes = new byte[hexString.length() / 2]; in decodeHexString()
2084 for (int i = 0; i < hexString.length(); i += 2) { in decodeHexString()
2085 bytes[i / 2] = hexToByte(hexString.substring(i, i + 2)); in decodeHexString()
2090 private byte hexToByte(String hexString) { in hexToByte() argument
2091 int firstDigit = toDigit(hexString.charAt(0)); in hexToByte()
2092 int secondDigit = toDigit(hexString.charAt(1)); in hexToByte()
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DStructTest.java85 private <T> T doParsingMessageTest(final String hexString, final Class<T> clazz, in doParsingMessageTest() argument
87 final ByteBuffer buf = toByteBuffer(hexString); in doParsingMessageTest()
678 private ByteBuffer toByteBuffer(final String hexString) { in toByteBuffer() argument
679 return ByteBuffer.wrap(HexDump.hexStringToByteArray(hexString)); in toByteBuffer()
739 final String hexString = ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN) in testStructToByteArray() local
741 assertArrayEquals(toByteBuffer(hexString).array(), msg.writeToBytes()); in testStructToByteArray()
/frameworks/native/cmds/lshal/
DTableEntry.cpp107 static const std::string unreleased = Hash::hexString(Hash::kEmptyHash); in isReleased()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierPrivilegesTrackerTest.java609 private static String getHash(String hexString) throws Exception { in getHash() argument
611 byte[] result = sha1.digest(IccUtils.hexStringToBytes(hexString)); in getHash()
/frameworks/base/core/java/android/content/res/
DResources.java1805 private String getResourceNameFromHexString(String hexString) { in getResourceNameFromHexString() argument
1806 return getResourceName(Integer.parseInt(hexString, 16)); in getResourceNameFromHexString()

12