/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/ |
H A D | hks_sa_interface.cpp | 38 void HksStub::SendAsyncReply(uint32_t errCode, std::unique_ptr<uint8_t[]> &certChain, uint32_t sz) in SendAsyncReply() argument 43 mSize = sz; in SendAsyncReply() 59 uint32_t sz = 0; in ProcessAttestKeyAsyncReply() local 60 if (!data.ReadUint32(sz) || sz == 0 || sz > MAX_OUT_BLOB_SIZE) { in ProcessAttestKeyAsyncReply() 61 HKS_LOG_E("invalid sz %" LOG_PUBLIC "u", sz); in ProcessAttestKeyAsyncReply() 64 const uint8_t *ptr = data.ReadBuffer(sz); in ProcessAttestKeyAsyncReply() 66 HKS_LOG_E("ReadBuffer %" LOG_PUBLIC "u size ptr is nullptr", sz); in ProcessAttestKeyAsyncReply() 127 SendAsyncReply(uint32_t errCode, std::unique_ptr<uint8_t[]> &certChain, uint32_t sz) SendAsyncReply() argument [all...] |
H A D | hks_sa_interface.h | 30 virtual void SendAsyncReply(uint32_t errCode, std::unique_ptr<uint8_t[]> &certChain, uint32_t sz) = 0; 35 void SendAsyncReply(uint32_t errCode, std::unique_ptr<uint8_t[]> &certChain, uint32_t sz) override; 53 void SendAsyncReply(uint32_t errCode, std::unique_ptr<uint8_t[]> &certChain, uint32_t sz) override;
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cert_manager_status.c | 128 uint32_t sz = 3 * sizeof(uint32_t) + strlen(cs->fileName) + 1; in EncodeStatus() local 132 *size = sz; in EncodeStatus() 136 if (*size < sz) { in EncodeStatus() 168 *size = sz; in EncodeStatus() 242 uint32_t sz = 0; in ReadFile() local 247 sz = CertManagerFileSize(CERT_STATUS_DIR, file); in ReadFile() 248 if (sz == 0) { in ReadFile() 253 if (sz < HEADER_LEN) { in ReadFile() 259 buf = CMMalloc(sz); in ReadFile() 265 nb = CertManagerFileRead(CERT_STATUS_DIR, file, 0, buf, sz); in ReadFile() 282 LoadTreeStatus(struct RbTree *tree, pthread_rwlock_t *treeLock, uint8_t *buf, uint32_t sz) LoadTreeStatus() argument 327 uint32_t sz = 0; LoadStatus() local 359 uint32_t sz = 0; EncodeTree() local 411 uint32_t sz = 0; WriteStatus() local [all...] |
H A D | rbtree.c | 453 uint32_t sz = keySize + sizeof(uint32_t) + valueSize; in Encoder() local 454 if (sz > (UINT32_MAX - ctx->off)) { in Encoder() 461 if (ctx->off + sz > ctx->len) { in Encoder() 484 ctx->off += sz; in Encoder() 542 uint32_t sz = headerSize + valueSize; in RbTreeDecode() local 543 if (remaining < sz) { in RbTreeDecode() 558 off += sz; in RbTreeDecode()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/ |
H A D | fp_unwinder.h | 37 static int32_t Unwind(uintptr_t* pcs, int32_t sz, int32_t skipFrameNum); 39 static int32_t UnwindFallback(uintptr_t* pcs, int32_t sz, int32_t skipFrameNum);
|
H A D | fp_unwinder.cpp | 33 int32_t FpUnwinder::Unwind(uintptr_t* pcs, int32_t sz, int32_t skipFrameNum) in Unwind() argument 54 while ((index < sz - 1) && (fp - firstFp < MAX_UNWIND_ADDR_RANGE)) { in Unwind() 72 int32_t FpUnwinder::UnwindFallback(uintptr_t* pcs, int32_t sz, int32_t skipFrameNum) in UnwindFallback() argument 82 while ((index < sz - 1) && (fp - firstFp < MAX_UNWIND_ADDR_RANGE)) { in UnwindFallback()
|
H A D | async_stack.cpp | 72 size_t sz = static_cast<size_t>(OHOS::HiviewDFX::FpUnwinder::Unwind(pcs, maxSize, skipFrameNum)); in CollectAsyncStack() local 75 OHOS::HiviewDFX::UniqueStackTable::Instance()->PutPcsInTable(stackIdPtr, pcs, sz); in CollectAsyncStack()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/ |
H A D | cert_manager_uri.h | 39 #define ASSERT_MALLOC(p, sz) do { (p) = MALLOC(sz); if ( (p) == NULL) { \ 40 CM_LOG_E("Failed to allocate memory of size: %u\n", (uint32_t) (sz)); return CMR_ERROR_MALLOC_FAIL; } } while (0)
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | cppcrash_reporter.cpp | 120 size_t sz = cppCrashInfo_.size(); in WriteCppCrashInfoByPipe() local 121 if (sz > MAX_PIPE_SIZE) { in WriteCppCrashInfoByPipe() 130 if (fcntl(pipeFd[PIPE_READ], F_SETPIPE_SZ, sz) < 0 || in WriteCppCrashInfoByPipe() 131 fcntl(pipeFd[PIPE_WRITE], F_SETPIPE_SZ, sz) < 0) { in WriteCppCrashInfoByPipe() 147 realWriteSize = OHOS_TEMP_FAILURE_RETRY(write(pipeFd[PIPE_WRITE], cppCrashInfo_.c_str(), sz)); in WriteCppCrashInfoByPipe() 150 DFXLOGE("Failed to write pipe. realWriteSize %{public}zd, json size %{public}zd", realWriteSize, sz); in WriteCppCrashInfoByPipe()
|
/base/telephony/sms_mms/utils/ |
H A D | string_utils.cpp | 107 int sz = static_cast<int>(str.length()); in HexToByteVector() local 108 if (sz <= 0) { in HexToByteVector() 111 for (int i = 0; i < (sz - 1); i += STEP_2BIT) { in HexToByteVector()
|
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/ |
H A D | thread_sampler_utils.cpp | 45 size_t sz = strftime(timeChars, FORMAT_TIME_LEN, "%Y-%m-%d-%H-%M-%S", localTime); in TimeFormat() local 46 if (sz == 0) { in TimeFormat()
|
/base/hiviewdfx/faultloggerd/services/ |
H A D | fault_logger_pipe.cpp | 88 bool FaultLoggerPipe::SetSize(long sz) in SetSize() argument 93 if (fcntl(fds_[PIPE_READ], F_SETPIPE_SZ, sz) < 0) { in SetSize() 96 if (fcntl(fds_[PIPE_WRITE], F_SETPIPE_SZ, sz) < 0) { in SetSize()
|
H A D | fault_logger_pipe.h | 37 bool SetSize(long sz);
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/gwp_asan/ |
H A D | gwpasan_collector.h | 28 void WriteGwpAsanLog(char* buf, size_t sz);
|
H A D | gwpasan_collector.cpp | 52 void WriteGwpAsanLog(char* buf, size_t sz) in WriteGwpAsanLog() argument 54 if (buf == nullptr || sz == 0) { in WriteGwpAsanLog() 60 for (size_t i = 0; i < sz; i++) { in WriteGwpAsanLog()
|
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_kmsg.cpp | 102 ssize_t sz = LinuxReadOneKmsg(*parser); in LinuxReadAllKmsg() local 103 if (sz < 0) { in LinuxReadAllKmsg()
|
/base/location/services/location_gnss/gnss/source/ |
H A D | string_utils.cpp | 109 int sz = static_cast<int>(str.length()); in HexToByteVector() local 110 if (sz <= 0) { in HexToByteVector() 113 for (int i = 0; i < (sz - 1); i += STEP_2BIT) { in HexToByteVector()
|
/base/msdp/device_status/utils/common/src/ |
H A D | utility.cpp | 141 ssize_t sz { 0 }; in GetFileSize() 145 sz = buf.st_size; in GetFileSize() 152 return sz; in GetFileSize()
|
/base/telephony/core_service/services/sim/src/ |
H A D | sim_utils.cpp | 40 int sz = static_cast<int>(s.length()); in HexStringConvertToBytes() local 41 if (sz % HALF_LEN != 0) { in HexStringConvertToBytes() 44 int outlen = sz / HALF_LEN; in HexStringConvertToBytes() 56 for (int i = 0; i < sz; i += HALF_LEN) { in HexStringConvertToBytes()
|
H A D | sim_file.cpp | 1303 int sz = static_cast<int>(imsi.size()); in OnMccMncLoaded() local 1304 bool cond = sz >= lenNum; in OnMccMncLoaded()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | unwinder.h | 90 bool GetLockInfo(int32_t tid, char* buf, size_t sz);
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_map.cpp | 153 AT_ALWAYS_INLINE bool PermsToProtsAndFlag(const char* permChs, const size_t sz, uint32_t& prots, uint32_t& flag) in PermsToProtsAndFlag() argument 155 if (permChs == nullptr || sz < 4) { // 4 : min perms size in PermsToProtsAndFlag()
|
H A D | unwinder.cpp | 195 bool GetLockInfo(int32_t tid, char* buf, size_t sz); 444 bool Unwinder::GetLockInfo(int32_t tid, char* buf, size_t sz) in GetLockInfo() argument 446 return impl_->GetLockInfo(tid, buf, sz); in GetLockInfo() 1111 uintptr_t sz = 0x4; in DoPcAdjust() local 1117 sz = 0x2; in DoPcAdjust() 1121 sz = 0x1; in DoPcAdjust() 1123 pc -= sz; in DoPcAdjust() 1293 bool Unwinder::Impl::GetLockInfo(int32_t tid, char* buf, size_t sz) in GetLockInfo() argument 1313 size_t rsize = DfxMemory::ReadProcMemByPid(tid, lockAddr, buf, sz); in GetLockInfo() 1314 if (rsize != sz) { in GetLockInfo() [all...] |