Home
last modified time | relevance | path

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

1234

/system/bt/vendor_libs/test_vendor_lib/scripts/
Dlink_layer_socket.py110 print('Rx: type_byte ' + hex(header[4]))
111 …nt('Rx: from ' + hex(header[5]) + ':' + hex(header[6]) + ':' + hex(header[7]) + ':' + hex(header[8…
112 …nt('Rx: to ' + hex(header[11]) + ':' + hex(header[12]) + ':' + hex(header[13]) + ':' + hex(header[…
/system/core/fs_mgr/libfs_avb/
Dutil.cpp49 bool HexToBytes(uint8_t* bytes, size_t bytes_len, const std::string& hex) { in HexToBytes() argument
52 if (hex.size() % 2 != 0) { in HexToBytes()
55 if (hex.size() / 2 > bytes_len) { in HexToBytes()
58 for (size_t i = 0, j = 0, n = hex.size(); i < n; i += 2, ++j) { in HexToBytes()
60 if (!NibbleValue(hex[i], &high)) { in HexToBytes()
64 if (!NibbleValue(hex[i + 1], &low)) { in HexToBytes()
76 std::string hex; in BytesToHex() local
79 hex.push_back(hex_digits[(bytes[i] & 0xF0) >> 4]); in BytesToHex()
80 hex.push_back(hex_digits[bytes[i] & 0x0F]); in BytesToHex()
82 return hex; in BytesToHex()
Dutil.h51 bool HexToBytes(uint8_t* bytes, size_t bytes_len, const std::string& hex);
/system/keymaster/tests/
Dckdf_test.cpp73 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/core/fs_mgr/libfs_avb/tests/
Dutil_test.cpp104 std::string hex = "000102030405060708090A0B0C0D0E0F"; in TEST() local
107 EXPECT_TRUE(HexToBytes((uint8_t*)bytes, sizeof(bytes), hex)); in TEST()
114 std::string hex = "101112131415161718191A1B1C1D1E1F"; in TEST() local
117 EXPECT_TRUE(HexToBytes((uint8_t*)bytes, sizeof(bytes), hex)); in TEST()
137 std::string hex = "12345"; in TEST() local
140 EXPECT_FALSE(HexToBytes((uint8_t*)bytes, sizeof(bytes), hex)); in TEST()
144 std::string hex = "101112131415161718191A1B1C1D1E1F"; in TEST() local
147 EXPECT_FALSE(HexToBytes((uint8_t*)bytes, sizeof(bytes), hex)); in TEST()
/system/core/adb/client/
Dusb_osx.cpp159 LOG(ERROR) << "Unable to create an interface plug-in (" << std::hex << kr << ")"; in AndroidInterfaceAdded()
170 LOG(ERROR) << "Couldn't query the interface (" << std::hex << result << ")"; in AndroidInterfaceAdded()
191 LOG(ERROR) << "Couldn't grab device from interface (" << std::hex << kr << ")"; in AndroidInterfaceAdded()
206 LOG(ERROR) << "Unable to create a device plug-in (" << std::hex << kr << ")"; in AndroidInterfaceAdded()
216 LOG(ERROR) << "Couldn't create a device interface (" << std::hex << result << ")"; in AndroidInterfaceAdded()
321 LOG(ERROR) << "Could not clear pipe stall both ends: " << std::hex << rc; in ClearPipeStallBothEnds()
340 LOG(ERROR) << "Could not open interface: " << std::hex << kr; in CheckInterface()
347 LOG(ERROR) << "Unable to get number of endpoints: " << std::hex << kr; in CheckInterface()
388 << std::hex << kr; in CheckInterface()
503 LOG(ERROR) << "usb_write failed with status: " << std::hex << result; in usb_write()
[all …]
/system/netd/libnetdutils/
DNetlink.cpp63 return os << std::hex << "nlmsghdr[" in operator <<()
70 return os << std::hex << "nlattr[" in operator <<()
75 return os << std::hex << "sockaddr_nl[" in operator <<()
DNetfilter.cpp26 return os << std::hex << "nfgenmsg[" in operator <<()
DSlice.cpp55 return os << std::hex << "Slice[base: " << reinterpret_cast<void*>(slice.base()) in operator <<()
/system/core/libkeyutils/
Dmini_keyctl_utils.cpp97 PLOG(ERROR) << "Failed to unlink key 0x" << std::hex << key << " from keyring " << keyring_id; in Unlink()
123 LOG(INFO) << "Key " << desc << " added to " << keyring << " with key id: 0x" << std::hex << key; in Add()
150 LOG(INFO) << "Key " << desc << " added to " << keyring << " with key id: 0x" << std::hex << key; in Padd()
175 PLOG(ERROR) << "Cannot get security context of key 0x" << std::hex << key; in RetrieveSecurityContext()
/system/extras/libfec/
Dfec_read.cpp34 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/extras/libfscrypt/
Dfscrypt.cpp83 static void policy_to_hex(const char* policy, char* hex) { in policy_to_hex() argument
85 hex[j++] = HEX_LOOKUP[(policy[i] & 0xF0) >> 4]; in policy_to_hex()
86 hex[j++] = HEX_LOOKUP[policy[i] & 0x0F]; in policy_to_hex()
88 hex[FS_KEY_DESCRIPTOR_SIZE_HEX - 1] = '\0'; in policy_to_hex()
/system/netd/server/
DNetlinkHandler.cpp203 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()
DClatdControllerTest.cpp164 << "Two consecutive random IIDs are the same: " << std::showbase << std::hex << iid in TEST_F()
178 << " and " << nat64PrefixStr.c_str() << std::showbase << std::hex in TEST_F()
DNetlinkHandler.h58 void notifyStrictCleartext(uid_t uid, const std::string& hex);
/system/vold/
DUtils.h96 status_t HexToStr(const std::string& hex, std::string& str);
98 status_t StrToHex(const std::string& str, std::string& hex);
100 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex);
DUtils.cpp451 status_t HexToStr(const std::string& hex, std::string& str) { in HexToStr() argument
455 for (size_t i = 0; i < hex.size(); i++) { in HexToStr()
457 switch (hex[i]) { in HexToStr()
494 status_t StrToHex(const std::string& str, std::string& hex) { in StrToHex() argument
495 hex.clear(); in StrToHex()
497 hex.push_back(kLookup[(str[i] & 0xF0) >> 4]); in StrToHex()
498 hex.push_back(kLookup[str[i] & 0x0F]); in StrToHex()
503 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex) { in StrToHex() argument
504 hex.clear(); in StrToHex()
506 hex.push_back(kLookup[(str.data()[i] & 0xF0) >> 4]); in StrToHex()
[all …]
/system/connectivity/wificond/
Dlogging_utils.cpp34 ss << std::hex << std::setfill('0') << std::setw(2) << static_cast<int>(b); in GetMacString()
/system/netd/server/binder/android/net/
DINetdUnsolicitedEventListener.aidl144 void onStrictCleartextDetected(int uid, @utf8InCpp String hex); in onStrictCleartextDetected() argument
/system/core/libunwindstack/tests/
DDwarfOpTest.cpp1369 << "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/
DTestUnsolService.cpp143 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/netd/1/android/net/
DINetdUnsolicitedEventListener.aidl13 oneway void onStrictCleartextDetected(int uid, @utf8InCpp String hex); in onStrictCleartextDetected() argument
/system/netd/server/aidl/netd/2/android/net/
DINetdUnsolicitedEventListener.aidl30 oneway void onStrictCleartextDetected(int uid, @utf8InCpp String hex); in onStrictCleartextDetected() argument
/system/core/libsysutils/src/
DNetlinkEvent.cpp304 char* hex = (char*) calloc(1, 5 + (len * 2)); in parseNfPacketMessage() local
305 strcpy(hex, "HEX="); in parseNfPacketMessage()
307 hex[4 + (i * 2)] = "0123456789abcdef"[(raw[i] >> 4) & 0xf]; in parseNfPacketMessage()
308 hex[5 + (i * 2)] = "0123456789abcdef"[raw[i] & 0xf]; in parseNfPacketMessage()
312 mParams[1] = hex; in parseNfPacketMessage()
/system/bt/btcore/test/
Ddevice_class_test.cc32 ss << std::showbase << std::hex << std::setw(8) << std::setfill('0') << m; in check_bitfield()
36 ss << std::showbase << std::hex << std::setw(8) << std::setfill('0') << n; in check_bitfield()

1234