/base/startup/hvb/libhvb/src/utils/ |
H A D | hvb_util.c | 77 uint8_t bytes[8]; in hvb_htobe64() member 80 ret.bytes[0] = (data >> 56) & 0xff; in hvb_htobe64() 81 ret.bytes[1] = (data >> 48) & 0xff; in hvb_htobe64() 82 ret.bytes[2] = (data >> 40) & 0xff; in hvb_htobe64() 83 ret.bytes[3] = (data >> 32) & 0xff; in hvb_htobe64() 84 ret.bytes[4] = (data >> 24) & 0xff; in hvb_htobe64() 85 ret.bytes[5] = (data >> 16) & 0xff; in hvb_htobe64() 86 ret.bytes[6] = (data >> 8) & 0xff; in hvb_htobe64() 87 ret.bytes[7] = data & 0xff; in hvb_htobe64()
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/ |
H A D | mock_blob.cpp | 76 Blob::Blob(const std::vector<uint8_t> &bytes) : blob_(bytes) in Blob() argument 79 Blob::Blob(std::vector<uint8_t> &&bytes) : blob_(std::move(bytes)) in Blob() argument
|
/base/telephony/core_service/utils/codec/src/ |
H A D | asn1_utils.cpp | 43 // For swap adjacent bytes 58 TELEPHONY_LOGE("failed to transform uint data to bytes."); in IsConstructedTag() 105 // convert bytes array to string 112 void Asn1Utils::BcdToBytes(const std::string &bcd, std::vector<uint8_t> &bytes) in BcdToBytes() argument 115 bytes = HexStrToBytes(hexStr); in BcdToBytes() 118 std::string Asn1Utils::BytesToHexStr(const std::vector<uint8_t> &bytes) in BytesToHexStr() argument 120 if (bytes.size() > MAX_UINT16) { in BytesToHexStr() 124 for (size_t i = 0; i < bytes.size(); i++) { in BytesToHexStr() 125 oss << std::hex << std::uppercase << std::setw(BYTE_TO_HEX_LEN) << std::setfill('0') << (bytes[i] & MAX_UINT8); in BytesToHexStr() 169 uint32_t Asn1Utils::UintToBytes(const uint32_t value, std::vector<uint8_t> &bytes) in UintToBytes() argument 199 std::vector<uint8_t> bytes = {}; StrToHexStr() local 210 std::vector<uint8_t> bytes = HexStrToBytes(inputHexStr); HexStrToString() local [all...] |
/base/security/access_token/services/tokensyncmanager/include/remote/ |
H A D | soft_bus_channel.h | 38 unsigned char *bytes;
member 74 * @param bytes Data sent from the peer device.
79 void HandleDataReceived(int socket, const unsigned char *bytes, int length) override;
105 * @param bytes transfer data array
130 * @param bytes compressed data array
136 std::string Decompress(const unsigned char *bytes, const int length);
141 * @param bytes data array to transfer
147 int SendRequestBytes(const unsigned char *bytes, const int bytesLength);
153 * @param bytes data array to transfer
159 int SendResponseBytes(int socket, const unsigned char *bytes, cons [all...] |
H A D | rpc_channel.h | 51 * @param bytes Data sent from the peer device.
56 virtual void HandleDataReceived(int session, const unsigned char *bytes, int length)
in HandleDataReceived() argument
|
/base/telephony/ril_adapter/services/hril/src/ |
H A D | hril_base.cpp | 69 uint8_t *bytes = (uint8_t *)calloc(bytesLen, sizeof(uint8_t)); in ConvertHexStringToBytes() local 70 if (bytes == nullptr) { in ConvertHexStringToBytes() 71 TELEPHONY_LOGE("ConvertHexStringToBytes: cannot allocate memory for bytes string"); in ConvertHexStringToBytes() 81 free(bytes); in ConvertHexStringToBytes() 84 bytes[i / SIZE_VALUE] = ((hexCh1 << BIT_NUM) | hexCh2); in ConvertHexStringToBytes() 87 return bytes; in ConvertHexStringToBytes()
|
/base/telephony/core_service/utils/codec/include/ |
H A D | asn1_utils.h | 33 static void BcdToBytes(const std::string &bcd, std::vector<uint8_t> &bytes); 34 static std::string BytesToHexStr(const std::vector<uint8_t> &bytes); 36 static uint32_t UintToBytes(const uint32_t value, std::vector<uint8_t> &bytes);
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
H A D | blob.cpp | 80 Blob::Blob(const std::vector<uint8_t> &bytes) in Blob() argument 81 : blob_(bytes) in Blob() 85 Blob::Blob(std::vector<uint8_t> &&bytes) in Blob() argument 86 : blob_(std::move(bytes)) in Blob()
|
/base/notification/distributed_notification_service/services/test/moduletest/mock/ |
H A D | blob.cpp | 80 Blob::Blob(const std::vector<uint8_t> &bytes) in Blob() argument 81 : blob_(bytes) in Blob() 85 Blob::Blob(std::vector<uint8_t> &&bytes) in Blob() argument 86 : blob_(std::move(bytes)) in Blob()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
H A D | blob.cpp | 80 Blob::Blob(const std::vector<uint8_t> &bytes) in Blob() argument 81 : blob_(bytes) in Blob() 85 Blob::Blob(std::vector<uint8_t> &&bytes) in Blob() argument 86 : blob_(std::move(bytes)) in Blob()
|
/base/telephony/core_service/services/sim/src/ |
H A D | plmn_file.cpp | 19 PlmnFile::PlmnFile(unsigned char *bytes, int offset) in PlmnFile() argument 22 const char *plmnData = reinterpret_cast<const char *>(bytes); in PlmnFile()
|
H A D | sim_utils.cpp | 63 std::string SIMUtils::BytesConvertToHexString(const unsigned char *bytes, int byteLen) in BytesConvertToHexString() argument 65 if (bytes == nullptr) { in BytesConvertToHexString() 71 b = 0x0f & (bytes[i] >> HALF_BYTE_LEN); in BytesConvertToHexString() 73 b = 0x0f & bytes[i]; in BytesConvertToHexString() 159 std::string SIMUtils::Gsm7bitConvertToString(const unsigned char *bytes, int byteLen) in Gsm7bitConvertToString() argument 173 str.push_back(bytes[pos] & (~(0xFF << (CHAR_GSM_7BIT)))); in Gsm7bitConvertToString() 176 str.push_back((bytes[pos] & (0xFF << (BYTE_LENGTH - left))) >> (BYTE_LENGTH - left)); in Gsm7bitConvertToString() 180 low = (bytes[pos] & (unsigned char)(0xFF << (BYTE_LENGTH - left))) >> (BYTE_LENGTH - left); in Gsm7bitConvertToString() 181 high = (bytes[pos + 1] & (unsigned char)(~(0xFF << (CHAR_GSM_7BIT - left)))) << left; in Gsm7bitConvertToString()
|
/base/security/access_token/services/tokensyncmanager/src/remote/ |
H A D | soft_bus_channel.cpp | 181 info.bytes = buf; in ExecuteCommand() 212 void SoftBusChannel::HandleDataReceived(int socket, const unsigned char *bytes, int length) in HandleDataReceived() argument 222 std::string receiveData = Decompress(bytes, length); in HandleDataReceived() 224 ACCESSTOKEN_LOG_ERROR(LABEL, "Invalid parameter bytes"); in HandleDataReceived() 269 return Compress(json, info.bytes, info.bytesLength); in PrepareBytes() 289 ACCESSTOKEN_LOG_DEBUG(LABEL, "Compress complete. compress %{public}d bytes to %{public}d", compressedLength, in Compress() 295 std::string SoftBusChannel::Decompress(const unsigned char *bytes, const int length) in Decompress() argument 305 int result = uncompress(buf, &len, const_cast<unsigned char *>(bytes), length); in Decompress() 319 int SoftBusChannel::SendRequestBytes(const unsigned char *bytes, const int bytesLength) in SendRequestBytes() argument 336 int result = ::SendBytes(socketFd_, bytes, bytesLengt in SendRequestBytes() 444 SendResponseBytes(int socket, const unsigned char *bytes, const int bytesLength) SendResponseBytes() argument [all...] |
/base/telephony/core_service/utils/vcard/src/contact_data/ |
H A D | vcard_photo_data.cpp | 70 void VCardPhotoData::SetBytes(const std::string &bytes) in SetBytes() argument 72 bytes_ = bytes; in SetBytes()
|
/base/telephony/core_service/interfaces/innerkits/include/ |
H A D | tel_ril_sms_parcel.h | 178 /** Number of PDU bytes. */ 249 unsigned char bytes[36] = { 0 }; member 256 unsigned char bytes[36] = { 0 }; member 267 unsigned char bytes[255] = { 0 }; member
|
/base/telephony/ril_adapter/interfaces/innerkits/include/ |
H A D | hril_vendor_sms_defs.h | 164 * Number of PDU bytes 179 unsigned char bytes[HRIL_MAX_CDMA_ADDRESS_LEN]; member 186 unsigned char bytes[HRIL_MAX_CDMA_ADDRESS_LEN]; member 196 unsigned char bytes[HRIL_MAX_CDMA_MESSAGE_LEN]; member
|
/base/telephony/core_service/utils/vcard/src/ |
H A D | vcard_utils.cpp | 509 std::string VCardUtils::GetImageType(std::string bytes) in GetImageType() argument 511 if (bytes.empty()) { in GetImageType() 514 int32_t length = static_cast<int32_t>(bytes.length()); in GetImageType() 516 if (length >= gifTypeLength && bytes[VALUE_INDEX_ZERO] == 'G' && bytes[1] == 'I' && bytes[VALUE_INDEX_TWO] == 'F') { in GetImageType() 520 if (length >= pngTypeLength && bytes[VALUE_INDEX_ZERO] == static_cast<char>(0x89) && in GetImageType() 521 bytes[VALUE_INDEX_ONE] == 'P' && bytes[VALUE_INDEX_TWO] == 'N' && bytes[VALUE_INDEX_THRE in GetImageType() [all...] |
/base/security/asset/test/unittest/inner_kits_rust/src/ |
H A D | add.rs | 82 let bytes = res[0].get_bytes_attr(&Tag::Secret).unwrap(); in add_english_secret() 83 assert_eq!(func_name, String::from_utf8(bytes.to_owned()).unwrap()); in add_english_secret() 99 let bytes = res[0].get_bytes_attr(&Tag::Secret).unwrap(); in add_chinese_secret() 100 assert_eq!(secret, String::from_utf8(bytes.to_owned()).unwrap()); in add_chinese_secret() 101 let bytes = res[0].get_bytes_attr(&Tag::Alias).unwrap(); in add_chinese_secret() 102 assert_eq!(alias, String::from_utf8(bytes.to_owned()).unwrap()); in add_chinese_secret()
|
/base/customization/enterprise_device_management/services/edm_plugin/src/network/rule/ |
H A D | chain_rule.cpp | 30 uint64_t bytes = 0; in ChainRule() local 31 iss >> bytes; in ChainRule() local
|
/base/security/access_token/services/tokensyncmanager/test/mock/src/ |
H A D | soft_bus_socket_mock.cpp | 50 void DecompressMock(const unsigned char *bytes, const int length) in DecompressMock() argument 60 int result = uncompress(buf, &len, const_cast<unsigned char *>(bytes), length); in DecompressMock() 98 ACCESSTOKEN_LOG_DEBUG(LABEL, "compress complete. compress %{public}d bytes to %{public}d", compressedLength, in CompressMock()
|
/base/telephony/core_service/services/sim/include/ |
H A D | sim_utils.h | 75 static std::string BytesConvertToHexString(const unsigned char *bytes, int byteLen); 85 static std::string Gsm7bitConvertToString(const unsigned char *bytes, int byteLen);
|
/base/notification/distributed_notification_service/services/ans/src/common/ |
H A D | aes_gcm_helper.cpp | 45 std::string AesGcmHelper::Byte2Hex(const std::string &bytes) in Byte2Hex() argument 48 for (const unsigned char byte : bytes) { in Byte2Hex() 74 std::string bytes; in Hex2Byte() local 78 bytes.push_back(static_cast<char>((high << OFFSET) | low)); in Hex2Byte() 80 return bytes; in Hex2Byte()
|
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
H A D | hitrace_meter.cpp | 254 int bytes = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "[%llx,%llx,%llx]#", in AddTraceMarkerLarge() local 256 if (EXPECTANTLY(bytes > 0)) { in AddTraceMarkerLarge() 488 int bytes = 0; in SetAppTraceBuffer() local 490 bytes = snprintf_s(buf, len, len - 1, " %s [%03d] .... %lu.%06lu: tracing_mark_write: B|%s|H:%s \n", in SetAppTraceBuffer() 494 bytes = snprintf_s(buf, len, len - 1, " %s [%03d] .... %lu.%06lu: tracing_mark_write: E|%s|\n", in SetAppTraceBuffer() 499 bytes = snprintf_s(buf, len, len - 1, " %s [%03d] .... %lu.%06lu: tracing_mark_write: %c|%s|H:%s %lld\n", in SetAppTraceBuffer() 504 return bytes; in SetAppTraceBuffer() 515 int bytes = SetAppTraceBuffer(buf, len, type, name, value); in SetAppTrace() local 516 if (bytes > 0) { in SetAppTrace() 518 g_writeOffset += bytes; in SetAppTrace() 537 int bytes = SetAppTraceBuffer(buffer.get(), len, type, name, value); WriteAppTraceLong() local 620 int bytes = 0; AddHitraceMeterMarker() local [all...] |
/base/hiviewdfx/hitrace/frameworks/include/ |
H A D | dynamic_buffer.h | 29 int bytes = 0;
member
|
/base/hiviewdfx/hitrace/frameworks/native/ |
H A D | dynamic_buffer.cpp | 55 if ((line.find("bytes: ")) != std::string::npos) {
in GetPerCpuStatsInfo() 56 traceStats.bytes = std::stod(line.substr(bytesPos));
in GetPerCpuStatsInfo() 82 traceStats.averageTrace = traceStats.bytes / duration;
in UpdateTraceLoad()
|