/base/startup/hvb/libhvb/src/utils/ |
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/hiviewdfx/hisysevent/interfaces/rust/innerkits/src/ |
D | sys_event.rs | 180 let mut bytes = value_type.as_bytes(); in parse_type_len() localVariable 181 if bytes[0] == b'&' { in parse_type_len() 183 bytes = value_type.as_bytes(); in parse_type_len() 185 if bytes[0] != b'[' { in parse_type_len() 187 if bytes[0] == b'&' { in parse_type_len() 197 for (i, &item) in bytes.iter().enumerate() { in parse_type_len() 206 let array_len = value_type[len_start..(bytes.len() - 1)].parse::<usize>().unwrap(); in parse_type_len() 207 if bytes[1] == b'&' { in parse_type_len()
|
/base/update/update_app/common/src/main/ets/util/ |
D | FormatUtils.ts | 34 export function formatFileSize(bytes: number, decimalPoint = DECIMAL_POINT): string { 35 if (bytes <= 0) { 42 let data: number = Math.min(bytes, MAX_BYTES); 46 return parseFloat((bytes / Math.pow(ONE_KB, index)).toFixed(point)) + ' ' + sizes[index];
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/ |
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/ril_adapter/services/hril/src/ |
D | hril_base.cpp | 61 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()
|
D | hril_sms.cpp | 475 uint8_t *bytes = ConvertHexStringToBytes(response, responseLen); in SmsStatusReportNotify() local 476 if (bytes == nullptr) { in SmsStatusReportNotify() 483 uint8_t *temp = bytes; in SmsStatusReportNotify() 488 SafeFrees(bytes); in SmsStatusReportNotify() 513 uint8_t *bytes = ConvertHexStringToBytes(smsResponse->pdu, responseLen); in NewSmsNotify() local 514 if (bytes == nullptr) { in NewSmsNotify() 522 uint8_t *temp = bytes; in NewSmsNotify() 527 SafeFrees(bytes); in NewSmsNotify() 544 uint8_t *bytes = ConvertHexStringToBytes(message->pdu, strlen(message->pdu)); in NewCdmaSmsNotify() local 545 if (bytes == nullptr) { in NewCdmaSmsNotify() [all …]
|
/base/request/request/services/service/rust/src/ |
D | c_string_wrapper.rs | 36 let bytes = unsafe { slice::from_raw_parts(self.c_str as *const u8, self.len as usize) }; in to_string() localVariable 37 let str = unsafe { String::from_utf8_unchecked(bytes.to_vec()) }; in to_string()
|
/base/security/access_token/services/tokensyncmanager/include/remote/ |
D | soft_bus_channel.h | 38 unsigned char *bytes; member 79 void HandleDataReceived(int session, const unsigned char *bytes, int length) override; 136 std::string Decompress(const unsigned char *bytes, const int length); 147 int SendRequestBytes(const unsigned char *bytes, const int bytesLength); 159 int SendResponseBytes(int session, const unsigned char *bytes, const int bytesLength);
|
D | rpc_channel.h | 56 virtual void HandleDataReceived(int session, const unsigned char *bytes, int length) in HandleDataReceived() argument
|
/base/telephony/core_service/services/sim/src/ |
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()
|
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()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
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/frameworks/test/moduletest/mock/ |
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/ |
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/ril_adapter/interfaces/innerkits/include/ |
D | hril_sms_parcel.h | 248 unsigned char bytes[36] = { 0 }; member 255 unsigned char bytes[36] = { 0 }; member 266 unsigned char bytes[255] = { 0 }; member
|
D | hril_vendor_sms_defs.h | 172 unsigned char bytes[HRIL_MAX_CDMA_ADDRESS_LEN]; member 179 unsigned char bytes[HRIL_MAX_CDMA_ADDRESS_LEN]; member 189 unsigned char bytes[HRIL_MAX_CDMA_MESSAGE_LEN]; member
|
/base/security/access_token/services/tokensyncmanager/src/remote/ |
D | soft_bus_channel.cpp | 167 info.bytes = buf; in ExecuteCommand() 198 void SoftBusChannel::HandleDataReceived(int session, const unsigned char *bytes, int length) in HandleDataReceived() argument 208 std::string receiveData = Decompress(bytes, length); in HandleDataReceived() 248 return Compress(json, info.bytes, info.bytesLength); in PrepareBytes() 274 std::string SoftBusChannel::Decompress(const unsigned char *bytes, const int length) in Decompress() argument 284 int result = uncompress(buf, &len, const_cast<unsigned char *>(bytes), length); in Decompress() 298 int SoftBusChannel::SendRequestBytes(const unsigned char *bytes, const int bytesLength) in SendRequestBytes() argument 315 int result = ::SendBytes(session_, bytes, bytesLength); in SendRequestBytes() 372 info.bytes = sendbuf; in HandleRequest() 401 info.bytes = buf; in HandleRequest() [all …]
|
/base/telephony/core_service/services/sim/include/ |
D | sim_utils.h | 67 static std::string BytesConvertToHexString(const unsigned char *bytes, int byteLen); 77 static std::string Gsm7bitConvertToString(const unsigned char *bytes, int byteLen);
|
D | plmn_file.h | 33 PlmnFile(unsigned char *bytes, int offset);
|
/base/hiviewdfx/hitrace/test/unittest/common/native/ |
D | hitracechainc_test.cpp | 181 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));
|
D | hitracechaincpp_test.cpp | 154 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/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
D | hitrace_meter.cpp | 167 int bytes = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "[%llx,%llx,%llx]#", in AddTraceMarkerLarge() local 169 if (EXPECTANTLY(bytes > 0)) { in AddTraceMarkerLarge() 208 int bytes = 0; in AddHitraceMeterMarker() local 210 bytes = isHiTraceIdValid ? snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, in AddHitraceMeterMarker() 215 bytes = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, in AddHitraceMeterMarker() 219 bytes = isHiTraceIdValid ? snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, in AddHitraceMeterMarker() 225 WriteToTraceMarker(buf, bytes); in AddHitraceMeterMarker()
|
/base/security/device_security_level/oem_property/ohos/standard/ |
D | dslm_cred_tool.py | 129 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/update/packaging_tools/ |
D | create_hashdata.py | 74 self.hashinfo_value = bytes() 75 self.hashdata = bytes() 76 self.signdata = bytes()
|
/base/security/access_token/services/tokensyncmanager/test/mock/src/ |
D | soft_bus_session_mock.cpp | 152 void DecompressMock(const unsigned char *bytes, const int length) in DecompressMock() argument 162 int result = uncompress(buf, &len, const_cast<unsigned char *>(bytes), length); in DecompressMock()
|