Home
last modified time | relevance | path

Searched refs:maxSize (Results 1 - 25 of 56) sorted by relevance

123

/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
H A Dhiappevent_clean.cpp60 bool IsStorageSpaceFull(const std::string& dir, uint64_t maxSize) in IsStorageSpaceFull() argument
62 return GetCurStorageSize(dir) > maxSize; in IsStorageSpaceFull()
65 bool ReleaseSomeStorageSpace(const std::string& dir, uint64_t maxSize) in ReleaseSomeStorageSpace() argument
72 curSize = (*it)->ClearSpace(curSize, maxSize); in ReleaseSomeStorageSpace()
73 if (curSize <= maxSize) { in ReleaseSomeStorageSpace()
77 return curSize <= maxSize; in ReleaseSomeStorageSpace()
100 auto maxSize = HiAppEventConfig::GetInstance().GetMaxStorageSize(); in CheckStorageSpace() local
101 if (!IsStorageSpaceFull(dir, maxSize)) { in CheckStorageSpace()
105 ReleaseSomeStorageSpace(dir, maxSize); in CheckStorageSpace()
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/
H A Dhilog_string.cpp24 HilogString::HilogString() : size(0), maxSize(0), str(nullptr) {} in HilogString()
29 maxSize = 0; in ~HilogString()
60 if (str->size + len + 1 >= str->maxSize) { in Puts()
61 str->maxSize = str->size + len + ORG_STRING_LEN; in Puts()
63 HilogRealloc::Realloc(str->str, sizeof(char) * str->maxSize, sizeof(char) * str->size)); in Puts()
70 if (memcpy_s(str->str + str->size, str->maxSize, src, len) != 0) { in Puts()
83 if (str->size + 1 >= str->maxSize) { in Putc()
84 str->maxSize = str->size + ORG_STRING_LEN; in Putc()
86 HilogRealloc::Realloc(str->str, sizeof(char) * str->maxSize, sizeof(char) * str->size)); in Putc()
H A Dhilog_vector.cpp25 HilogVector::HilogVector() : size(0), maxSize(0), str(nullptr), type(nullptr) {} in HilogVector()
75 if (vector->size == vector->maxSize) { in Push()
76 vector->maxSize == 0 ? vector->maxSize = ORG_VECTOR_SIZE : vector->maxSize = vector->maxSize << 1; in Push()
78 HilogRealloc::Realloc(vector->str, sizeof(char*) * vector->maxSize, sizeof(char*) * vector->size)); in Push()
81 vector->type, sizeof(ValueType) * vector->maxSize, sizeof(ValueType) * vector->size)); in Push()
/base/update/updater/services/script/script_interpreter/
H A Dscript_scanner.cpp22 int Scanner::LexerInput(char *buf, int maxSize) in LexerInput() argument
25 PkgBuffer data(maxSize); in LexerInput()
26 if (pkgStream_->Read(data, currPos, maxSize, readLen) != PKG_SUCCESS) { in LexerInput()
30 memcpy_s(reinterpret_cast<uint8_t*>(buf), maxSize, data.buffer, readLen); in LexerInput() local
/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Dfp_unwinder_test.cpp51 const size_t maxSize = 32; in HWTEST_F() local
52 uintptr_t pcs[maxSize] = {0}; in HWTEST_F()
53 auto unwSz = FpUnwinder::GetPtr()->Unwind(pc, fp, pcs, maxSize); in HWTEST_F()
83 const size_t maxSize = 32; in HWTEST_F() local
84 uintptr_t pcs[maxSize] = {0}; in HWTEST_F()
85 auto unwSz = FpUnwinder::GetPtr()->UnwindSafe(pc, fp, pcs, maxSize); in HWTEST_F()
/base/telephony/cellular_call/test/fuzztest/setpreviewwindow_fuzzer/
H A Dsetpreviewwindow_fuzzer.cpp59 int32_t maxSize = static_cast<int32_t>(size) + OFFSET_SIZE; in OnRemoteRequest() local
60 dataMessageParcel.WriteInt32(maxSize); in OnRemoteRequest()
75 int32_t maxSize = static_cast<int32_t>(size); in SetPreviewWindow() local
80 dataMessageParcel.WriteInt32(maxSize); in SetPreviewWindow()
113 int32_t maxSize = static_cast<int32_t>(size); in SetDisplayWindow() local
118 dataMessageParcel.WriteInt32(maxSize); in SetDisplayWindow()
151 int32_t maxSize = static_cast<int32_t>(size); in SetCameraZoom() local
154 dataMessageParcel.WriteInt32(maxSize); in SetCameraZoom()
167 int32_t maxSize = static_cast<int32_t>(size); in ControlCamera() local
172 dataMessageParcel.WriteInt32(maxSize); in ControlCamera()
187 int32_t maxSize = static_cast<int32_t>(size); SetPausePicture() local
207 int32_t maxSize = static_cast<int32_t>(size); SetDeviceDirection() local
227 int32_t maxSize = static_cast<int32_t>(size); SendUpdateCallMediaModeRequest() local
261 int32_t maxSize = static_cast<int32_t>(size); SendUpdateCallMediaModeResponse() local
323 int32_t maxSize = static_cast<int32_t>(size); StartDtmf() local
360 int32_t maxSize = static_cast<int32_t>(size); CancelCallUpgrade() local
378 int32_t maxSize = static_cast<int32_t>(size); RequestCameraCapabilities() local
[all...]
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/include/
H A Dhiappevent_clean.h25 bool IsStorageSpaceFull(const std::string& dir, uint64_t maxSize);
26 bool ReleaseSomeStorageSpace(const std::string& dir, uint64_t maxSize);
/base/hiviewdfx/faultloggerd/test/unittest/async_stack/
H A Dasync_stack_test.cpp110 const int32_t maxSize = 16; in HWTEST_F() local
111 uintptr_t pcs[maxSize] = {0}; in HWTEST_F()
113 std::thread (FpUnwinder::Unwind, pcs, maxSize, skipFrameNum).join(); in HWTEST_F()
114 int32_t ret = FpUnwinder::UnwindFallback(pcs, maxSize, skipFrameNum); in HWTEST_F()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/
H A Dasync_stack.cpp69 const int32_t maxSize = 16; in CollectAsyncStack() local
70 uintptr_t pcs[maxSize] = {0}; in CollectAsyncStack()
72 size_t sz = static_cast<size_t>(OHOS::HiviewDFX::FpUnwinder::Unwind(pcs, maxSize, skipFrameNum)); in CollectAsyncStack()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_memory.cpp60 uint64_t maxSize; in Read() local
61 if (val == nullptr || __builtin_add_overflow(tmpAddr, size, &maxSize)) { in Read()
149 bool DfxMemory::ReadString(uintptr_t& addr, std::string* str, size_t maxSize, bool incre) in ReadString() argument
157 for (size_t offset = 0; offset < maxSize; offset += size) { in ReadString()
158 size_t readn = std::min(sizeof(buf), maxSize - offset); in ReadString()
357 constexpr size_t maxSize = 64; in ReadProcMemByPid() local
358 struct iovec RemoteIovs[maxSize]; in ReadProcMemByPid()
382 if (iovecsIndex >= maxSize || size <= 0) { in ReadProcMemByPid()
388 if (iovecsIndex >= maxSize) { in ReadProcMemByPid()
389 iovecsIndex -= maxSize; in ReadProcMemByPid()
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Dfp_unwinder.h50 size_t Unwind(uintptr_t pc, uintptr_t fp, uintptr_t* pcs, size_t maxSize, size_t skipFrameNum = 0) in Unwind() argument
68 while ((index < maxSize) && (fp - firstFp < maxUnwindAddrRange_)) { in Unwind()
85 NO_SANITIZE size_t UnwindSafe(uintptr_t pc, uintptr_t fp, uintptr_t* pcs, size_t maxSize, size_t skipFrameNum = 0) in UnwindSafe() argument
97 while (index < maxSize) { in UnwindSafe()
/base/telephony/sms_mms/services/sms/
H A Dsms_base_message.cpp276 int maxSize = 0; in GetSegmentSize() local
278 maxSize = MAX_GSM_7BIT_DATA_LEN; in GetSegmentSize()
280 maxSize = MAX_UCS2_DATA_LEN; in GetSegmentSize()
292 if ((dataLen + headerSize) > maxSize) { in GetSegmentSize()
298 if ((dataLen + headerSize) > maxSize) { in GetSegmentSize()
318 int maxSize = 0; in GetMaxSegmentSize() local
320 maxSize = MAX_GSM_7BIT_DATA_LEN; in GetMaxSegmentSize()
322 maxSize = MAX_UCS2_DATA_LEN; in GetMaxSegmentSize()
335 if ((dataLen + headerSize) > maxSize) { in GetMaxSegmentSize()
339 segSize = maxSize in GetMaxSegmentSize()
[all...]
/base/hiviewdfx/hiview/adapter/service/common/src/
H A Dhiview_file_info.cpp37 const size_t maxSize = 1024; in GetData() local
38 if (size == 0 || size > maxSize) { in GetData()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cleaner/
H A Dapp_event_db_cleaner.cpp75 uint64_t AppEventDbCleaner::ClearSpace(uint64_t curSize, uint64_t maxSize) in ClearSpace() argument
78 if (curSize <= maxSize) { in ClearSpace()
H A Dapp_event_log_cleaner.cpp37 uint64_t AppEventLogCleaner::ClearSpace(uint64_t curSize, uint64_t maxSize) in ClearSpace() argument
47 while (!files.empty() && nowSize > maxSize) { in ClearSpace()
/base/telephony/cellular_call/test/fuzztest/getcallrestriction_fuzzer/
H A Dgetcallrestriction_fuzzer.cpp58 int32_t maxSize = static_cast<int32_t>(size) + OFFSET_SIZE; in OnRemoteRequest() local
59 dataMessageParcel.WriteInt32(maxSize); in OnRemoteRequest()
74 int32_t maxSize = static_cast<int32_t>(size); in UnRegisterCallManagerCallBack() local
76 dataMessageParcel.WriteInt32(maxSize); in UnRegisterCallManagerCallBack()
105 int32_t maxSize = static_cast<int32_t>(size); in HangUpAllConnection() local
107 dataMessageParcel.WriteInt32(maxSize); in HangUpAllConnection()
239 int32_t maxSize = static_cast<int32_t>(size); in Dial() local
261 dataMessageParcel.WriteInt32(maxSize); in Dial()
290 int32_t maxSize = static_cast<int32_t>(size); in KickOutFromConference() local
312 dataMessageParcel.WriteInt32(maxSize); in KickOutFromConference()
[all...]
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/include/
H A Dhilog_string.h35 size_t maxSize; member in OHOS::ACELite::HilogString
H A Dhilog_vector.h40 size_t maxSize; member in OHOS::ACELite::HilogVector
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cleaner/include/
H A Dapp_event_log_cleaner.h28 uint64_t ClearSpace(uint64_t curSize, uint64_t maxSize) override;
H A Dapp_event_db_cleaner.h28 uint64_t ClearSpace(uint64_t curSize, uint64_t maxSize) override;
H A Dapp_event_cleaner.h29 virtual uint64_t ClearSpace(uint64_t curSize, uint64_t maxSize) = 0;
/base/hiviewdfx/hiview/base/event_store/store/
H A Dsys_event_database.cpp210 uint64_t maxSize = GetMaxSize(it->first); in Clear() local
212 if (totalFileSize < (maxSize + maxSize * delPct)) { in Clear()
213 HIVIEW_LOGI("do not clear type=%{public}d, curSize=%{public}" PRIu64 ", maxSize=%{public}" PRIu64, in Clear()
214 it->first, totalFileSize, maxSize); in Clear()
220 while (totalFileSize >= maxSize) { in Clear()
240 HIVIEW_LOGI("end to clear type=%{public}d, curSize=%{public}" PRIu64 ", maxSize=%{public}" PRIu64, in Clear()
241 it->first, totalFileSize, maxSize); in Clear()
264 auto maxSize = EventStoreConfig::GetInstance().GetMaxSize(eventType) * NUM_OF_BYTES_IN_MB; in InitQuotaMap() local
266 quotaMap_.insert({eventType, {maxSize, maxFileNu in InitQuotaMap()
[all...]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include/
H A Dstringfilter.h30 bool IsValidName(const std::string &text, unsigned int maxSize);
/base/hiviewdfx/hiview/base/event_store/config/include/
H A Devent_store_config.h43 uint32_t maxSize; member
/base/powermgr/battery_statistics/test/unittest/include/servicetest/utils/
H A Dstring_filter.h30 bool IsValidName(const std::string &text, unsigned int maxSize);

Completed in 15 milliseconds

123