/system/bt/vendor_libs/test_vendor_lib/scripts/ |
D | link_layer_socket.py | 112 print('Rx: type_byte ' + hex(header[4])) 113 print('Rx: from ' + hex(header[5]) + ':' + hex(header[6]) + ':' + 114 hex(header[7]) + ':' + hex(header[8]) + ':' + hex(header[9]) + 115 ':' + hex(header[10])) 116 print('Rx: to ' + hex(header[11]) + ':' + hex(header[12]) + ':' + 117 hex(header[13]) + ':' + hex(header[14]) + ':' + 118 hex(header[15]) + ':' + hex(header[16]))
|
/system/core/fs_mgr/libfs_avb/ |
D | util.cpp | 52 bool HexToBytes(uint8_t* bytes, size_t bytes_len, const std::string& hex) { in HexToBytes() argument 55 if (hex.size() % 2 != 0) { in HexToBytes() 58 if (hex.size() / 2 > bytes_len) { in HexToBytes() 61 for (size_t i = 0, j = 0, n = hex.size(); i < n; i += 2, ++j) { in HexToBytes() 63 if (!NibbleValue(hex[i], &high)) { in HexToBytes() 67 if (!NibbleValue(hex[i + 1], &low)) { in HexToBytes() 79 std::string hex; in BytesToHex() local 82 hex.push_back(hex_digits[(bytes[i] & 0xF0) >> 4]); in BytesToHex() 83 hex.push_back(hex_digits[bytes[i] & 0x0F]); in BytesToHex() 85 return hex; in BytesToHex()
|
/system/keymaster/tests/ |
D | ckdf_test.cpp | 73 template <class Blob> Blob hex2span(const char* hex) { in hex2span() argument 74 string bytes = hex2str(hex); in hex2span() 79 KeymasterKeyBlob hex2key(const char* hex) { in hex2key() argument 80 return hex2span<KeymasterKeyBlob>(hex); in hex2key() 83 KeymasterBlob hex2blob(const char* hex) { in hex2blob() argument 84 return hex2span<KeymasterBlob>(hex); in hex2blob()
|
/system/incremental_delivery/incfs/incfsdump/ |
D | dump.cpp | 211 out() << "header: " << hex(header.fh_magic) << ", " << header.fh_version << ", " in run() 212 << hex(header.fh_data_block_size) << ", " << header.fh_header_size << ", " in run() 215 err() << "bad magic, expected: " << hex(INCFS_MAGIC_NUMBER); in run() 221 err() << "bad data block size, expected: " << hex(INCFS_DATA_FILE_BLOCK_SIZE); in run() 227 auto ostream = out() << "flags: " << hex(header.fh_file_header_flags); in run() 233 out() << "first metadata block offset: " << hex(header.fh_first_md_offset); in run() 288 auto ostream = out() << i << " @ " << hex(mIn.tellg()) << ": [ "; in dumpBlockmap() 294 ostream << block.me_data_size << " @ " << hex(blockOffset); in dumpBlockmap() 321 out() << "record crc: " << hex(md.h_record_crc); in dumpMd() 322 out() << "next md offset: " << hex(md.h_next_md_offset); in dumpMd() [all …]
|
/system/apex/apexd/ |
D | apexd_verity.cpp | 49 std::vector<uint8_t> HexToBin(const std::string& hex) { in HexToBin() argument 51 bin.reserve(hex.size() / 2); in HexToBin() 52 for (size_t i = 0; i + 1 < hex.size(); i += 2) { in HexToBin() 53 uint8_t c = (HexToBin(hex[i]) << 4) + HexToBin(hex[i + 1]); in HexToBin()
|
/system/core/adb/client/ |
D | usb_osx.cpp | 161 LOG(ERROR) << "Unable to create an interface plug-in (" << std::hex << kr << ")"; in AndroidInterfaceAdded() 172 LOG(ERROR) << "Couldn't query the interface (" << std::hex << result << ")"; in AndroidInterfaceAdded() 193 LOG(ERROR) << "Couldn't grab device from interface (" << std::hex << kr << ")"; in AndroidInterfaceAdded() 208 LOG(ERROR) << "Unable to create a device plug-in (" << std::hex << kr << ")"; in AndroidInterfaceAdded() 218 LOG(ERROR) << "Couldn't create a device interface (" << std::hex << result << ")"; in AndroidInterfaceAdded() 323 LOG(ERROR) << "Could not clear pipe stall both ends: " << std::hex << rc; in ClearPipeStallBothEnds() 342 LOG(ERROR) << "Could not open interface: " << std::hex << kr; in CheckInterface() 349 LOG(ERROR) << "Unable to get number of endpoints: " << std::hex << kr; in CheckInterface() 390 << std::hex << kr; in CheckInterface() 506 LOG(ERROR) << "usb_write failed with status: " << std::hex << result; in usb_write() [all …]
|
/system/netd/libnetdutils/ |
D | Netlink.cpp | 63 return os << std::hex << "nlmsghdr[" in operator <<() 70 return os << std::hex << "nlattr[" in operator <<() 75 return os << std::hex << "sockaddr_nl[" in operator <<()
|
D | Netfilter.cpp | 26 return os << std::hex << "nfgenmsg[" in operator <<()
|
D | Slice.cpp | 55 return os << std::hex << "Slice[base: " << reinterpret_cast<void*>(slice.base()) in operator <<()
|
/system/core/fs_mgr/libfs_avb/tests/ |
D | util_test.cpp | 107 std::string hex = "000102030405060708090A0B0C0D0E0F"; in TEST() local 110 EXPECT_TRUE(HexToBytes((uint8_t*)bytes, sizeof(bytes), hex)); in TEST() 117 std::string hex = "101112131415161718191A1B1C1D1E1F"; in TEST() local 120 EXPECT_TRUE(HexToBytes((uint8_t*)bytes, sizeof(bytes), hex)); in TEST() 140 std::string hex = "12345"; in TEST() local 143 EXPECT_FALSE(HexToBytes((uint8_t*)bytes, sizeof(bytes), hex)); in TEST() 147 std::string hex = "101112131415161718191A1B1C1D1E1F"; in TEST() local 150 EXPECT_FALSE(HexToBytes((uint8_t*)bytes, sizeof(bytes), hex)); in TEST()
|
/system/vold/ |
D | VoldNativeServiceValidation.cpp | 97 binder::Status CheckArgumentHex(const std::string& hex) { in CheckArgumentHex() argument 99 for (const char& c : hex) { in CheckArgumentHex() 102 StringPrintf("Hex %s is malformed", hex.c_str())); in CheckArgumentHex()
|
D | VoldNativeServiceValidation.h | 35 binder::Status CheckArgumentHex(const std::string& hex);
|
D | Utils.h | 121 status_t HexToStr(const std::string& hex, std::string& str); 123 status_t StrToHex(const std::string& str, std::string& hex); 125 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex);
|
/system/extras/libfec/ |
D | fec_read.cpp | 34 char hex[bytes_per_line * 3 + 1]; in dump() local 45 memset(hex, 0, sizeof(hex)); in dump() 50 ptrdiff_t offset = &hex[m * 3] - hex; in dump() 51 snprintf(hex + offset, sizeof(hex) - offset, "%02x ", in dump() 60 strcpy(&hex[m * 3], " "); in dump() 64 warn(" %04zu %s %s", n, hex, prn); in dump()
|
/system/bt/gd/l2cap/internal/ |
D | dynamic_channel_impl.cc | 81 ss << "Device " << device_ << "Psm 0x" << std::hex << psm_ << " Cid 0x" << std::hex << cid_; in ToString()
|
/system/netd/server/ |
D | NetlinkHandler.cpp | 203 const char *hex = evt->findParam("HEX"); in onEvent() local 204 if (uid && hex) { in onEvent() 205 notifyStrictCleartext(strtol(uid, nullptr, 10), hex); in onEvent() 281 void NetlinkHandler::notifyStrictCleartext(uid_t uid, const std::string& hex) { in notifyStrictCleartext() argument 282 LOG_EVENT_FUNC(BINDER_RETRY, onStrictCleartextDetected, uid, hex); in notifyStrictCleartext()
|
/system/extras/libfscrypt/ |
D | fscrypt.cpp | 118 void BytesToHex(const std::string& bytes, std::string* hex) { in BytesToHex() argument 119 hex->clear(); in BytesToHex() 121 *hex += HEX_LOOKUP[(c & 0xF0) >> 4]; in BytesToHex() 122 *hex += HEX_LOOKUP[c & 0x0F]; in BytesToHex() 278 ss << std::hex << " flags 0x" << policy.options.flags; in PolicyDebugString()
|
/system/connectivity/wificond/ |
D | logging_utils.cpp | 34 ss << std::hex << std::setfill('0') << std::setw(2) << static_cast<int>(b); in GetMacString()
|
/system/netd/server/binder/android/net/ |
D | INetdUnsolicitedEventListener.aidl | 144 void onStrictCleartextDetected(int uid, @utf8InCpp String hex); in onStrictCleartextDetected() argument
|
/system/core/libunwindstack/tests/ |
D | DwarfOpTest.cpp | 1369 << "Op: 0x" << std::hex << static_cast<uint32_t>(expected[i]) << " failed"; in TYPED_TEST_P() 1412 ASSERT_TRUE(this->op_->Eval(i, i + 1)) << "Failed op: 0x" << std::hex << op; in TYPED_TEST_P() 1414 ASSERT_EQ(1U, this->op_->StackSize()) << "Failed op: 0x" << std::hex << op; in TYPED_TEST_P() 1415 ASSERT_EQ(op - 0x30U, this->op_->StackAt(0)) << "Failed op: 0x" << std::hex << op; in TYPED_TEST_P() 1430 ASSERT_TRUE(this->op_->Eval(i, i + 1)) << "Failed op: 0x" << std::hex << op; in TYPED_TEST_P() 1432 ASSERT_TRUE(this->op_->is_register()) << "Failed op: 0x" << std::hex << op; in TYPED_TEST_P() 1433 ASSERT_EQ(1U, this->op_->StackSize()) << "Failed op: 0x" << std::hex << op; in TYPED_TEST_P() 1434 ASSERT_EQ(op - 0x50U, this->op_->StackAt(0)) << "Failed op: 0x" << std::hex << op; in TYPED_TEST_P() 1481 ASSERT_TRUE(this->op_->Eval(offset, offset + 2)) << "Failed op: 0x" << std::hex << op; in TYPED_TEST_P() 1483 ASSERT_EQ(1U, this->op_->StackSize()) << "Failed op: 0x" << std::hex << op; in TYPED_TEST_P() [all …]
|
/system/netd/tests/ |
D | TestUnsolService.cpp | 143 binder::Status TestUnsolService::onStrictCleartextDetected(int uid, const std::string& hex) { in onStrictCleartextDetected() argument 144 events_.push_back(StringPrintf("onStrictCleartextDetected %d %s", uid, hex.c_str())); in onStrictCleartextDetected()
|
/system/netd/server/aidl_api/netd_aidl_interface/current/android/net/ |
D | INetdUnsolicitedEventListener.aidl | 31 oneway void onStrictCleartextDetected(int uid, @utf8InCpp String hex); in onStrictCleartextDetected() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/3/android/net/ |
D | INetdUnsolicitedEventListener.aidl | 31 oneway void onStrictCleartextDetected(int uid, @utf8InCpp String hex); in onStrictCleartextDetected() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/4/android/net/ |
D | INetdUnsolicitedEventListener.aidl | 31 oneway void onStrictCleartextDetected(int uid, @utf8InCpp String hex); in onStrictCleartextDetected() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/1/android/net/ |
D | INetdUnsolicitedEventListener.aidl | 13 oneway void onStrictCleartextDetected(int uid, @utf8InCpp String hex); in onStrictCleartextDetected() argument
|