/packages/modules/Bluetooth/tools/pdl/src/backends/rust_no_allocation/ |
D | test_preamble.rs | 24 fn hex_to_word(hex: u8) -> u8 { in hex_to_word() 25 if b'0' <= hex && hex <= b'9' { in hex_to_word() 26 hex - b'0' in hex_to_word() 27 } else if b'A' <= hex && hex <= b'F' { in hex_to_word() 28 hex - b'A' + 0xa in hex_to_word() 30 hex - b'a' + 0xa in hex_to_word() 34 fn hex_str_to_byte_vector(hex: &str) -> Vec<u8> { in hex_str_to_byte_vector() 35 hex.as_bytes() in hex_str_to_byte_vector()
|
/packages/modules/Bluetooth/tools/rootcanal/scripts/ |
D | link_layer_socket.py | 111 print('Rx: type_byte ' + hex(header[4])) 112 …print('Rx: from ' + hex(header[5]) + ':' + hex(header[6]) + ':' + hex(header[7]) + ':' + hex(heade… 113 ':' + hex(header[9]) + ':' + hex(header[10])) 114 …print('Rx: to ' + hex(header[11]) + ':' + hex(header[12]) + ':' + hex(header[13]) + ':' + hex(head… 115 ':' + hex(header[15]) + ':' + hex(header[16]))
|
/packages/modules/Uwb/service/java/com/android/server/uwb/util/ |
D | DataTypeConversionUtil.java | 37 public static byte[] hexStringToByteArray(String hex) { in hexStringToByteArray() argument 39 hex = hex.replaceAll("\\s", ""); in hexStringToByteArray() 41 int len = hex.length(); in hexStringToByteArray() 44 hex = String.format("0%s", hex); in hexStringToByteArray() 50 (byte) ((Character.digit(hex.charAt(i), 16) << 4) in hexStringToByteArray() 51 | Character.digit(hex.charAt(i + 1), 16)); in hexStringToByteArray() 72 char[] hex = new char[(endIndex - startIndex) * 2]; in byteArrayToHexString() local 76 hex[i * 2] = HEX_ARRAY[v >> 4]; in byteArrayToHexString() 77 hex[i * 2 + 1] = HEX_ARRAY[v & 0x0F]; in byteArrayToHexString() 79 return new String(hex); in byteArrayToHexString()
|
/packages/services/Car/cpp/evs/sampleDriver/hidl/ |
D | VideoCapture.cpp | 62 LOG(INFO) << " All Caps: " << std::hex << std::setw(8) << caps.capabilities; in open() 63 LOG(INFO) << " Dev Caps: " << std::hex << caps.device_caps; in open() 73 << std::hex << std::setw(8) << formatDescriptions.pixelformat << " " in open() 74 << std::hex << formatDescriptions.flags; in open() 97 << ((char*)&format.fmt.pix.pixelformat)[3] << "(" << std::hex << std::setw(8) in open() 113 << "fmt=0x" << std::hex << format.fmt.pix.pixelformat << ", " << std::dec in open() 179 LOG(INFO) << " flags : " << std::hex << mBufferInfos[i].flags; in startStream() 313 << "id = " << std::hex << control.id; in setParameter() 323 << " fd = " << std::hex << mDeviceFd << " id = " << control.id; in getParameter()
|
D | EvsEnumerator.cpp | 210 LOG(INFO) << "Display " << std::hex << id << " is detected on the port, " << port; in enumerateDisplays() 583 LOG(INFO) << "Format: 0x" << std::hex << formatDescription.pixelformat << " Type: 0x" in qualifyCaptureDevice() 584 << std::hex << formatDescription.type in qualifyCaptureDevice() 585 << " Desc: " << formatDescription.description << " Flags: 0x" << std::hex in qualifyCaptureDevice() 612 LOG(WARNING) << "Unsupported, " << std::hex << formatDescription.pixelformat; in qualifyCaptureDevice()
|
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/ |
D | VideoCapture.cpp | 61 LOG(DEBUG) << " All Caps: " << std::hex << std::setw(8) << caps.capabilities; in open() 62 LOG(DEBUG) << " Dev Caps: " << std::hex << caps.device_caps; in open() 72 << std::hex << std::setw(8) << formatDescriptions.pixelformat << " " in open() 73 << std::hex << formatDescriptions.flags; in open() 96 << ((char*)&format.fmt.pix.pixelformat)[3] << "(" << std::hex << std::setw(8) in open() 112 << "fmt=0x" << std::hex << format.fmt.pix.pixelformat << ", " << std::dec in open() 178 LOG(DEBUG) << " flags : " << std::hex << mBufferInfos[i].flags; in startStream() 312 << "id = " << std::hex << control.id; in setParameter() 322 << " fd = " << std::hex << mDeviceFd << " id = " << control.id; in getParameter()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/ |
D | MsrpUtils.java | 54 String hex = ""; in generateRandomId() local 56 hex = hex + String.format("%02x", b); in generateRandomId() 58 return hex; in generateRandomId()
|
/packages/modules/adb/client/ |
D | usb_osx.cpp | 170 LOG(ERROR) << "Unable to create an interface plug-in (" << std::hex << kr << ")"; in AndroidInterfaceAdded() 181 LOG(ERROR) << "Couldn't query the interface (" << std::hex << result << ")"; in AndroidInterfaceAdded() 201 LOG(ERROR) << "Couldn't grab device from interface (" << std::hex << kr << ")"; in AndroidInterfaceAdded() 216 LOG(ERROR) << "Unable to create a device plug-in (" << std::hex << kr << ")"; in AndroidInterfaceAdded() 226 LOG(ERROR) << "Couldn't create a device interface (" << std::hex << result << ")"; in AndroidInterfaceAdded() 348 LOG(ERROR) << "Could not clear pipe stall both ends: " << std::hex << rc; in ClearPipeStallBothEnds() 367 LOG(ERROR) << "Could not open interface: " << std::hex << kr; in CheckInterface() 374 LOG(ERROR) << "Unable to get number of endpoints: " << std::hex << kr; in CheckInterface() 430 << std::hex << kr; in CheckInterface() 554 LOG(ERROR) << "usb_write failed with status: " << std::hex << result; in usb_write() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/dialpadview/ |
D | SpecialCharSequenceMgr.java | 376 String hex = deviceId.length() == 15 ? deviceId.substring(0, 14) : deviceId; in addDeviceIdRow() local 380 if (hex.length() == 14 && showDecimal) { in addDeviceIdRow() 381 ((TextView) row.findViewById(R.id.deviceid_hex)).setText(hex); in addDeviceIdRow() 382 ((TextView) row.findViewById(R.id.deviceid_dec)).setText(getDecimalFromHex(hex)); in addDeviceIdRow() 401 generateBarcode(hex, barcode.getWidth(), barcode.getHeight()); in addDeviceIdRow() 412 private static String getDecimalFromHex(String hex) { in getDecimalFromHex() argument 413 final String part1 = hex.substring(0, 8); in getDecimalFromHex() 414 final String part2 = hex.substring(8); in getDecimalFromHex() 453 private static Bitmap generateBarcode(String hex, int width, int height) { in generateBarcode() argument 455 String data = Uri.encode(hex); in generateBarcode()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | ServiceProviderVerifierTest.java | 230 private byte[] hexToBytes(String hex) { in hexToBytes() argument 231 byte[] output = new byte[hex.length() / 2]; in hexToBytes() 232 for (int i = 0, j = 0; i + 1 < hex.length(); i += 2, j++) { in hexToBytes() 233 output[j] = (byte) (charToByte(hex.charAt(i)) << 4 | charToByte(hex.charAt(i + 1))); in hexToBytes()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/util/ |
D | Hex.java | 69 public static byte[] stringToBytes(String hex) throws IllegalArgumentException { in stringToBytes() argument 70 int length = hex.length(); in stringToBytes() 78 out[i / 2] = (byte) Integer.parseInt(hex.substring(i, i + 2), 16); in stringToBytes()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | Log.java | 129 StringBuffer hex = new StringBuffer(bytes.length * 2); in encodeHex() local 134 hex.append("0"); in encodeHex() 136 hex.append(Integer.toString(byteIntValue, 16)); in encodeHex() 139 return hex.toString(); in encodeHex()
|
/packages/modules/Bluetooth/system/gd/common/ |
D | strings.h | 54 …tmp << "0x" << std::internal << std::hex << std::setfill('0') << std::setw(sizeof(T) * 2) << (unsi… in ToHexString() 65 …tmp << "0x" << std::internal << std::hex << std::setfill('0') << std::setw(sizeof(signed long) * 2) 73 …tmp << "0x" << std::internal << std::hex << std::setfill('0') << std::setw(sizeof(unsigned int) * … 86 ss << std::hex << std::setw(2) << std::setfill('0') << +(*it); in ToHexString()
|
/packages/modules/DnsResolver/ |
D | DnsTlsSocket.cpp | 275 LOG(DEBUG) << " Calling SSL_connect with mark 0x" << std::hex << mMark; in sslConnect() 277 LOG(DEBUG) << " SSL_connect returned " << ret << " with mark 0x" << std::hex << mMark; in sslConnect() 287 PLOG(WARNING) << "SSL_connect read error " << err << ", mark 0x" << std::hex in sslConnect() 296 PLOG(WARNING) << "SSL_connect write error " << err << ", mark 0x" << std::hex in sslConnect() 302 PLOG(WARNING) << "SSL_connect ssl error =" << ssl_err << ", mark 0x" << std::hex in sslConnect() 320 LOG(DEBUG) << " Calling SSL_connect with mark 0x" << std::hex << mMark; in sslConnectV2() 322 LOG(DEBUG) << " SSL_connect returned " << ret << " with mark 0x" << std::hex << mMark; in sslConnectV2() 340 PLOG(WARNING) << "SSL_connect ssl error =" << ssl_err << ", mark 0x" << std::hex in sslConnectV2()
|
/packages/modules/Bluetooth/system/gd/l2cap/le/internal/ |
D | fixed_channel_impl.h | 70 ss << "Device " << device_ << " Cid 0x" << std::hex << cid_; in ToString() 76 ss << "Device " << device_.ToStringForLogging() << " Cid 0x" << std::hex << cid_; in ToStringForLogging() 82 ss << "Device " << device_.ToRedactedStringForLogging() << " Cid 0x" << std::hex << cid_; in ToRedactedStringForLogging()
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/ |
D | WifiP2pServiceResponse.java | 270 private static byte[] hexStr2Bin(String hex) { in hexStr2Bin() argument 271 int sz = hex.length()/2; in hexStr2Bin() 272 byte[] b = new byte[hex.length()/2]; in hexStr2Bin() 276 b[i] = (byte)Integer.parseInt(hex.substring(i*2, i*2+2), 16); in hexStr2Bin()
|
/packages/modules/Bluetooth/system/gd/packet/parser/fields/ |
D | scalar_field.cc | 88 s << "extracted_value &= 0x" << std::hex << mask << std::dec << ";"; in GenExtractor() 207 s << GetName() << " & 0x" << std::hex << mask << std::dec << ";"; in GenRustGetter() 242 s << GetName() << " & 0x" << std::hex << mask << std::dec << ";"; in GenRustWriter() 254 …< start_offset.bytes() + access_offset << "] as " << GetRustParseDataType() << ") & 0x" << std::hex in GenRustWriter()
|
/packages/modules/Virtualization/libs/apkverify/src/ |
D | v4.rs | 327 assert_eq!("", hex::encode(hi.salt.as_ref())); in parse_idsig_file() 330 hex::encode(hi.raw_root_hash.as_ref()) in parse_idsig_file() 336 hex::encode(si.apk_digest.as_ref()) in parse_idsig_file() 338 assert_eq!("", hex::encode(si.additional_data.as_ref())); in parse_idsig_file() 342 hex::encode(si.signature.as_ref()) in parse_idsig_file()
|
/packages/modules/Bluetooth/tools/pdl/src/bin/ |
D | generate-canonical-tests.rs | 39 fn hexadecimal_to_vec(hex: &str) -> proc_macro2::TokenStream { in hexadecimal_to_vec() 40 assert!(hex.len() % 2 == 0, "Expects an even number of hex digits"); in hexadecimal_to_vec() 41 let bytes = hex.as_bytes().chunks_exact(2).map(|chunk| { in hexadecimal_to_vec()
|
/packages/services/Car/service/jni/evs/ |
D | StreamHandler.cpp | 294 LOG(DEBUG) << "Camera parameter 0x" << std::hex << event.payload[0] << " is set to 0x" in notify() 295 << std::hex << event.payload[1]; in notify() 303 LOG(INFO) << "Event 0x" << std::hex << static_cast<int32_t>(event.aType) in notify() 308 LOG(ERROR) << "Unknown event id 0x" << std::hex << static_cast<int32_t>(event.aType); in notify()
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/ |
D | NfcRoutingTableParseTest.java | 251 char[] hex = hexStr.toCharArray(); in hexStrToByteArray() local 255 int high = Character.digit(hex[i * 2], 16); in hexStrToByteArray() 256 int low = Character.digit(hex[i * 2 + 1], 16); in hexStrToByteArray()
|
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/ |
D | fixed_channel_impl.h | 63 ss << "Device " << device_.ToStringForLogging() << " Cid 0x" << std::hex << cid_; in ToStringForLogging() 69 ss << "Device " << device_.ToRedactedStringForLogging() << " Cid 0x" << std::hex << cid_; in ToRedactedStringForLogging()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pNative.java | 420 public boolean setWfdDeviceInfo(String hex) { in setWfdDeviceInfo() argument 421 return mSupplicantP2pIfaceHal.setWfdDeviceInfo(hex); in setWfdDeviceInfo() 887 public boolean setWfdR2DeviceInfo(String hex) { in setWfdR2DeviceInfo() argument 888 return mSupplicantP2pIfaceHal.setWfdR2DeviceInfo(hex); in setWfdR2DeviceInfo()
|
/packages/modules/Bluetooth/system/gd/packet/parser/ |
D | enum_gen.cc | 31 stream << pair.second << " = 0x" << std::hex << pair.first << std::dec << ","; in GenDefinition() 68 …stream << util::ConstantCaseToCamelCase(pair.second) << " = 0x" << std::hex << pair.first << std::… in GenRustDef()
|
/packages/services/Car/tools/telemetry/lua-interpreter/ |
D | json.lua | 212 local hex = str:match("^[dD][89aAbB]%x%x\\u%x%x%x%x", j + 1) 215 res = res .. parse_unicode_escape(hex) 216 j = j + #hex
|