Searched defs:hex (Results 1 - 16 of 16) sorted by relevance

/system/keymaster/tests/
H A Dckdf_test.cpp73 template <class Blob> Blob hex2span(const char* hex) { argument
74 string bytes = hex2str(hex);
79 KeymasterKeyBlob hex2key(const char* hex) { argument
80 return hex2span<KeymasterKeyBlob>(hex);
83 KeymasterBlob hex2blob(const char* hex) { argument
84 return hex2span<KeymasterBlob>(hex);
/system/tpm/attestation/common/
H A Dcrypto_utility_impl_test.cc48 std::string HexDecode(const std::string hex) { argument
50 CHECK(base::HexStringToBytes(hex, &output));
/system/extras/ext4_utils/
H A Dext4_crypt.cpp100 static void policy_to_hex(const char* policy, char* hex) { argument
102 hex[j++] = HEX_LOOKUP[(policy[i] & 0xF0) >> 4];
103 hex[j++] = HEX_LOOKUP[policy[i] & 0x0F];
105 hex[EXT4_KEY_DESCRIPTOR_SIZE_HEX - 1] = '\0';
/system/extras/libfec/
H A Dfec_read.cpp34 char hex[bytes_per_line * 3 + 1]; local
45 memset(hex, 0, sizeof(hex));
50 ptrdiff_t offset = &hex[m * 3] - hex;
51 snprintf(hex + offset, sizeof(hex) - offset, "%02x ",
60 strcpy(&hex[m * 3], " ");
64 warn(" %04zu %s %s", n, hex, prn);
/system/netd/server/
H A DNetlinkHandler.cpp163 const char *hex = evt->findParam("HEX"); local
164 notifyStrictCleartext(uid, hex);
261 void NetlinkHandler::notifyStrictCleartext(const char* uid, const char* hex) { argument
262 notify(ResponseCode::StrictCleartext, "%s %s", uid, hex);
/system/tpm/attestation/server/
H A Dpkcs11_key_store_test.cc93 std::string HexDecode(const std::string hex) { argument
95 CHECK(base::HexStringToBytes(hex, &output));
/system/core/fs_mgr/
H A Dfs_mgr_avb.cpp63 static bool hex_to_bytes(uint8_t* bytes, size_t bytes_len, const std::string& hex) { argument
66 if (hex.size() % 2 != 0) {
69 if (hex.size() / 2 > bytes_len) {
72 for (size_t i = 0, j = 0, n = hex.size(); i < n; i += 2, ++j) {
74 if (!nibble_value(hex[i], &high)) {
78 if (!nibble_value(hex[i + 1], &low)) {
90 std::string hex; local
93 hex.push_back(hex_digits[(bytes[i] & 0xF0) >> 4]);
94 hex.push_back(hex_digits[bytes[i] & 0x0F]);
96 return hex;
[all...]
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp304 char* hex = (char*) calloc(1, 5 + (len * 2)); local
305 strcpy(hex, "HEX=");
307 hex[4 + (i * 2)] = "0123456789abcdef"[(raw[i] >> 4) & 0xf];
308 hex[5 + (i * 2)] = "0123456789abcdef"[raw[i] & 0xf];
312 mParams[1] = hex;
/system/netd/tests/dns_responder/
H A Ddns_responder.cpp54 static const char* hex = "0123456789ABCDEF"; local
56 str[i*2] = hex[c >> 4];
57 str[i*2 + 1] = hex[c & 0x0F];
/system/core/init/
H A Dproperty_service.cpp750 std::string hex = bytes_to_hex(reinterpret_cast<uint8_t*>(hdr.id), sizeof(hdr.id)); local
751 property_set("ro.recovery_id", hex);
/system/vold/
H A DExt4Crypt.cpp493 static bool parse_hex(const std::string& hex, std::string* result) { argument
494 if (hex == "!") {
498 if (android::vold::HexToStr(hex, *result) != 0) {
499 LOG(ERROR) << "Invalid FBE hex string"; // Don't log the string for security reasons
H A DUtils.cpp411 status_t HexToStr(const std::string& hex, std::string& str) { argument
415 for (size_t i = 0; i < hex.size(); i++) {
417 switch (hex[i]) {
452 status_t StrToHex(const std::string& str, std::string& hex) { argument
453 hex.clear();
455 hex.push_back(kLookup[(str[i] & 0xF0) >> 4]);
456 hex.push_back(kLookup[str[i] & 0x0F]);
461 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex) { argument
462 hex.clear();
464 hex
[all...]
H A DVoldNativeService.cpp138 binder::Status checkArgumentHex(const std::string& hex) { argument
139 // Empty hex strings are allowed
140 for (const char& c : hex) {
143 StringPrintf("Hex %s is malformed", hex.c_str()));
170 #define CHECK_ARGUMENT_HEX(hex) { \
171 binder::Status status = checkArgumentHex((hex)); \
/system/extras/simpleperf/demo/SimpleperfExampleOfKotlin/gradle/wrapper/
H A Dgradle-wrapper.jar ... io.File) throws java.lang.Exception String hex int i java.io.File file java. ...
/system/extras/simpleperf/demo/SimpleperfExamplePureJava/gradle/wrapper/
H A Dgradle-wrapper.jar ... io.File) throws java.lang.Exception String hex int i java.io.File file java. ...
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/gradle/wrapper/
H A Dgradle-wrapper.jar ... io.File) throws java.lang.Exception String hex int i java.io.File file java. ...

Completed in 250 milliseconds