Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 37) sorted by relevance

12

/base/startup/hvb/libhvb/src/utils/
Dhvb_util.c77 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/
Dmock_blob.cpp76 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/ril_adapter/services/hril/src/
Dhril_base.cpp61 uint8_t *bytes = (uint8_t *)calloc(bytesLen, sizeof(uint8_t)); in ConvertHexStringToBytes() local
62 if (bytes == nullptr) { in ConvertHexStringToBytes()
73 free(bytes); in ConvertHexStringToBytes()
76 bytes[i / SIZE_VALUE] = ((hexCh1 << BIT_NUM) | hexCh2); in ConvertHexStringToBytes()
79 return bytes; in ConvertHexStringToBytes()
Dhril_sms.cpp470 uint8_t *bytes = ConvertHexStringToBytes(response, responseLen); in SmsStatusReportNotify() local
471 if (bytes == nullptr) { in SmsStatusReportNotify()
478 uint8_t *temp = bytes; in SmsStatusReportNotify()
483 SafeFrees(bytes); in SmsStatusReportNotify()
508 uint8_t *bytes = ConvertHexStringToBytes(smsResponse->pdu, responseLen); in NewSmsNotify() local
509 if (bytes == nullptr) { in NewSmsNotify()
517 uint8_t *temp = bytes; in NewSmsNotify()
522 SafeFrees(bytes); in NewSmsNotify()
539 uint8_t *bytes = ConvertHexStringToBytes(message->pdu, strlen(message->pdu)); in NewCdmaSmsNotify() local
540 if (bytes == nullptr) { in NewCdmaSmsNotify()
[all …]
/base/security/access_token/services/tokensyncmanager/include/remote/
Dsoft_bus_channel.h72 void HandleDataReceived(int session, const unsigned char *bytes, int length) override;
106 const std::string &jsonPayload, const unsigned char *bytes, int &bytesLength);
129 std::string Decompress(const unsigned char *bytes, const int length);
140 int SendRequestBytes(const unsigned char *bytes, const int bytesLength);
152 int SendResponseBytes(int session, const unsigned char *bytes, const int bytesLength);
Drpc_channel.h56 virtual void HandleDataReceived(int session, const unsigned char *bytes, int length) in HandleDataReceived() argument
/base/telephony/core_service/services/sim/src/
Dsim_utils.cpp63 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()
Dplmn_file.cpp19 PlmnFile::PlmnFile(unsigned char *bytes, int offset) in PlmnFile() argument
22 const char *plmnData = reinterpret_cast<const char *>(bytes); in PlmnFile()
/base/notification/distributed_notification_service/services/test/moduletest/mock/
Dblob.cpp80 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/
Dblob.cpp80 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/frameworks/test/moduletest/mock/
Dblob.cpp80 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/ril_adapter/interfaces/innerkits/include/
Dhril_vendor_sms_defs.h84 unsigned char bytes[HRIL_MAX_CDMA_ADDRESS_LEN]; member
91 unsigned char bytes[HRIL_MAX_CDMA_ADDRESS_LEN]; member
101 unsigned char bytes[HRIL_MAX_CDMA_MESSAGE_LEN]; member
Dhril_sms_parcel.h152 unsigned char bytes[36]; member
159 unsigned char bytes[36]; member
170 unsigned char bytes[255]; member
/base/telephony/core_service/services/sim/include/
Dsim_utils.h66 static std::string BytesConvertToHexString(const unsigned char *bytes, int byteLen);
76 static std::string Gsm7bitConvertToString(const unsigned char *bytes, int byteLen);
Dplmn_file.h33 PlmnFile(unsigned char *bytes, int offset);
/base/security/access_token/services/tokensyncmanager/src/remote/
Dsoft_bus_channel.cpp185 void SoftBusChannel::HandleDataReceived(int session, const unsigned char *bytes, int length) in HandleDataReceived() argument
195 std::string receiveData = Decompress(bytes, length); in HandleDataReceived()
231 const std::string &jsonPayload, const unsigned char *bytes, int &bytesLength) in PrepareBytes() argument
235 return Compress(json, bytes, bytesLength); in PrepareBytes()
261 std::string SoftBusChannel::Decompress(const unsigned char *bytes, const int length) in Decompress() argument
271 int result = uncompress(buf, &len, const_cast<unsigned char *>(bytes), length); in Decompress()
285 int SoftBusChannel::SendRequestBytes(const unsigned char *bytes, const int bytesLength) in SendRequestBytes() argument
302 int result = ::SendBytes(session_, bytes, bytesLength); in SendRequestBytes()
404 int SoftBusChannel::SendResponseBytes(int session, const unsigned char *bytes, const int bytesLengt… in SendResponseBytes() argument
407 int result = ::SendBytes(session, bytes, bytesLength); in SendResponseBytes()
/base/hiviewdfx/hitrace/test/unittest/common/native/
Dhitracechainc_test.cpp181 uint8_t bytes[idLen + 1]; variable
182 int len = HiTraceChainIdToBytes(&id, bytes, idLen - 1);
184 len = HiTraceChainIdToBytes(&id, bytes, idLen + 1);
186 len = HiTraceChainIdToBytes(&id, bytes, idLen);
188 PRINT_ID(reinterpret_cast<HiTraceIdStruct*>(bytes));
191 HiTraceIdStruct bytesToId = HiTraceChainBytesToId(bytes, idLen - 1);
193 bytesToId = HiTraceChainBytesToId(bytes, idLen + 1);
195 bytesToId = HiTraceChainBytesToId(bytes, idLen);
206 EXPECT_EQ(0, HiTraceChainIdToBytes(&invalidId, bytes, idLen));
Dhitracechaincpp_test.cpp154 uint8_t bytes[ID_LEN + 1]; variable
155 int len = initId.ToBytes(bytes, ID_LEN - 1);
157 len = initId.ToBytes(bytes, ID_LEN + 1);
159 len = initId.ToBytes(bytes, ID_LEN);
163 HiTraceId bytesToId = HiTraceId(bytes, ID_LEN - 1);
165 bytesToId = HiTraceId(bytes, ID_LEN + 1);
167 bytesToId = HiTraceId(bytes, ID_LEN);
176 EXPECT_EQ(0, invalidId.ToBytes(bytes, ID_LEN));
/base/security/device_security_level/oem_property/ohos/
Ddslm_cred_tool.py129 def get_ecc_public_key(self, key_alias: str) -> bytes:
151 def digest_sign(self, key_alias: str, content: bytes, digest: str = '-sha384') -> bytes: argument
165 …def digest_verify_with_key_alias(self, key_alias: str, content: bytes, sig: bytes, digest: str = '… argument
182 …def digest_verify_with_pub_key(self, pub_key: bytes, content: bytes, sig: bytes, digest: str = '-s… argument
/base/security/access_token/services/tokensyncmanager/test/mock/src/
Dsoft_bus_session_mock.cpp154 void DecompressMock(const unsigned char *bytes, const int length) in DecompressMock() argument
164 int result = uncompress(buf, &len, const_cast<unsigned char *>(bytes), length); in DecompressMock()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/python/ohos/global/i18n/
Dgenerate_dat.py168 total_locale_index2bts = bytes()
169 total_meta2bts = bytes()
/base/telephony/core_service/services/tel_ril/src/
Dtel_ril_sms.cpp221 uint8_t *bytes = (uint8_t *)malloc(len * sizeof(uint8_t)); in ConvertHexStringToBytes() local
222 if (bytes == nullptr) { in ConvertHexStringToBytes()
232 free(bytes); in ConvertHexStringToBytes()
235 bytes[i / HEX_NUM_PER_BYTE] = ((hexCh1 << BIT_NUM_PER_HEX) | hexCh2); in ConvertHexStringToBytes()
238 return bytes; in ConvertHexStringToBytes()
/base/security/access_token/services/tokensyncmanager/test/mock/include/
Dsession.h342 void DecompressMock(const unsigned char *bytes, const int length);
/base/update/updater/test/unittest/test_data/applypatch/
DTestGZipModeImagePatch.old.gz
/base/update/updater/utils/
Dutils.cpp422 size_t bytes; in CopyUpdaterLogs() local
423 while ((bytes = fread(buf, 1, sizeof(buf), sFp)) != 0) { in CopyUpdaterLogs()
424 if (fwrite(buf, 1, bytes, dFp) <= 0) { in CopyUpdaterLogs()

12