Home
last modified time | relevance | path

Searched refs:hex (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/tests/CoreTests/android/core/
DSha1Test.java57 StringBuffer hex = new StringBuffer(bytes.length * 2); in encodeHex() local
61 hex.append("0"); in encodeHex()
63 hex.append(Integer.toString((int) bytes[i] & 0xff, 16)); in encodeHex()
66 return hex.toString(); in encodeHex()
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceResponse.java278 private static byte[] hexStr2Bin(String hex) { in hexStr2Bin() argument
279 int sz = hex.length()/2; in hexStr2Bin()
280 byte[] b = new byte[hex.length()/2]; in hexStr2Bin()
284 b[i] = (byte)Integer.parseInt(hex.substring(i*2, i*2+2), 16); in hexStr2Bin()
/frameworks/base/telecomm/java/android/telecom/
DLog.java152 StringBuffer hex = new StringBuffer(bytes.length * 2); in encodeHex() local
157 hex.append("0"); in encodeHex()
159 hex.append(Integer.toString(byteIntValue, 16)); in encodeHex()
162 return hex.toString(); in encodeHex()
/frameworks/base/tools/aapt2/
DResourceValues.cpp202 out << "(integer) " << std::hex << value.data << std::dec; in print()
211 out << "(color) #" << std::hex << value.data << std::dec; in print()
214 out << "(unknown 0x" << std::hex << (int) value.dataType << ") 0x" in print()
215 << std::hex << value.data << std::dec; in print()
DDebug.cpp94 std::cout << " id=" << std::hex << table->getPackageId() << std::dec; in printTable()
101 std::cout << " id=" << std::hex << type->typeId << std::dec; in printTable()
DXmlFlattener_test.cpp151 << "type " << std::hex in attributeNameAndValueEquals()
153 << ". Expected reference (" << std::hex in attributeNameAndValueEquals()
DResourceTable.cpp207 << std::hex << type->typeId << std::dec in addResourceImpl()
306 << std::hex << type->typeId << std::dec in markPublicImpl()
DResource.h193 << std::hex << resId.id;
DBinaryResourceParser.cpp349 << std::hex << packageHeader->id << std::dec in parsePackage()
351 << std::hex << mTable->getPackageId() << std::dec in parsePackage()
DTableFlattener.cpp533 << std::hex << table.getPackageId() << std::dec in flatten()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDebuggingManager.java292 String hex = "0123456789ABCDEF"; in getFingerprints() local
316 sb.append(hex.charAt((digest[i] >> 4) & 0xf)); in getFingerprints()
317 sb.append(hex.charAt(digest[i] & 0xf)); in getFingerprints()
/frameworks/compile/mclinker/lib/LD/
DRelocator.cpp65 ss << "0x" << std::hex << undef_sym_pos; in issueUndefRef()
/frameworks/base/libs/common_time/
Dcommon_time_server.cpp629 char hex[256]; in handlePacket() local
632 hexDumpToString(buf, static_cast<size_t>(recvBytes), hex, sizeof(hex)); in handlePacket()
636 recvBytes, srcEPStr, hex); in handlePacket()
/frameworks/rs/api/
DUtilities.cpp131 stream << "0x" << std::hex << hash << "l"; in hashString()
/frameworks/base/core/java/android/text/method/
DQwertyKeyListener.java152 String hex = TextUtils.substring(content, start, selEnd); in onKeyDown() local
153 ch = Integer.parseInt(hex, 16); in onKeyDown()
/frameworks/base/core/java/android/util/
DJsonReader.java1023 String hex = stringPool.get(buffer, pos, 4); in readEscapeCharacter() local
1025 return (char) Integer.parseInt(hex, 16); in readEscapeCharacter()
/frameworks/av/services/audiopolicy/utilities/convert/
Dconvert.h133 ss >> std::hex >> result;
/frameworks/base/docs/html/
Dlegal.jd37 in marketing communications. Our standard color value for print is PMS 376C. Our online hex color is
/frameworks/rs/cpu_ref/
DrsCpuScriptGroup2.cpp397 ss << std::hex << checksum; in compile()
DrsCpuScript.cpp387 ss << std::hex << mBuildChecksum; in init()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNative.java855 public boolean setWfdDeviceInfo(String hex) { in setWfdDeviceInfo() argument
856 return doBooleanCommand("WFD_SUBELEM_SET 0 " + hex); in setWfdDeviceInfo()
DWifiStateMachine.java9697 private byte[] parseHex(String hex) { in parseHex() argument
9699 if (hex == null) { in parseHex()
9703 if (hex.length() % 2 != 0) { in parseHex()
9704 throw new NumberFormatException(hex + " is not a valid hex string"); in parseHex()
9707 byte[] result = new byte[(hex.length())/2 + 1]; in parseHex()
9708 result[0] = (byte) ((hex.length())/2); in parseHex()
9709 for (int i = 0, j = 1; i < hex.length(); i += 2, j++) { in parseHex()
9710 int val = parseHex(hex.charAt(i)) * 16 + parseHex(hex.charAt(i+1)); in parseHex()
/frameworks/native/libs/gui/tests/
DCpuConsumer_test.cpp53 << ::std::hex << p.format << "]"; in operator <<()
/frameworks/base/docs/html/distribute/tools/promote/
Dbrand.jd79 communications. The color value for print is PMS 376C and the online hex
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DUsimDataDownloadCommands.java.broken139 // Add spaces between hex bytes for readability

12