Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 29) sorted by relevance

12

/base/security/appverify/interfaces/innerkits/appverify/src/common/
Dhap_byte_buffer.cpp27 HapByteBuffer::HapByteBuffer() : buffer(nullptr), position(0), limit(0), capacity(0) in HapByteBuffer()
31 HapByteBuffer::HapByteBuffer(int32_t bufferCapacity) : buffer(nullptr), position(0), limit(0), capa… in HapByteBuffer()
36 HapByteBuffer::HapByteBuffer(const HapByteBuffer& other) : buffer(nullptr), position(0), limit(0), … in HapByteBuffer()
45 limit = other.GetLimit(); in HapByteBuffer()
59 limit = bufferCapacity; in Init()
81 limit = other.GetLimit(); in operator =()
98 if (getDataLast > static_cast<long long>(limit)) { in CheckInputForGettingData()
100 position, index, limit); in CheckInputForGettingData()
204 if (buffer != nullptr && offset >= 0 && limit - offset >= static_cast<int32_t>(sizeof(value))) { in PutInt32()
205 if (memcpy_s((buffer.get() + offset), (limit - offset), &value, sizeof(value)) != EOK) { in PutInt32()
[all …]
/base/update/updater/services/diffpatch/diff/
Dimage_diff.h39 …ImageDiff(size_t limit, UpdateDiff::ImageParserPtr newParser, UpdateDiff::ImageParserPtr oldParser) in ImageDiff() argument
40 : limit_(limit), newParser_(newParser), oldParser_(oldParser) {} in ImageDiff()
66 CompressedImageDiff(size_t limit, in CompressedImageDiff() argument
68 : ImageDiff(limit, newParser, oldParser), type_(type) {} in CompressedImageDiff()
86 …ZipImageDiff(size_t limit, UpdateDiff::ImageParserPtr newParser, UpdateDiff::ImageParserPtr oldPar… in ZipImageDiff() argument
87 : CompressedImageDiff(limit, newParser, oldParser, BLOCK_DEFLATE) {} in ZipImageDiff()
105 …Lz4ImageDiff(size_t limit, UpdateDiff::ImageParserPtr newParser, UpdateDiff::ImageParserPtr oldPar… in Lz4ImageDiff() argument
106 : CompressedImageDiff(limit, newParser, oldParser, BLOCK_LZ4) {} in Lz4ImageDiff()
126 …GZipImageDiff(size_t limit, UpdateDiff::ImageParserPtr newParser, UpdateDiff::ImageParserPtr oldPa… in GZipImageDiff() argument
127 : ZipImageDiff(limit, newParser, oldParser) {} in GZipImageDiff()
Dupdate_diff.h54 …UpdateDiff(size_t limit, bool blockDiff) : limit_(limit * IGMDIFF_LIMIT_UNIT), blockDiff_(blockDif… in UpdateDiff() argument
59 static int32_t DiffImage(size_t limit, const std::string &oldFileName,
Dupdate_diff.cpp186 int32_t UpdateDiff::DiffImage(size_t limit, const std::string &oldFileName, in DiffImage() argument
189 auto updateDiff = std::make_unique<UpdateDiff>(limit, false); in DiffImage()
/base/web/webview/ohos_adapter/hiviewdfx_adapter/src/
Dhitrace_adapter_impl.cpp29 void HiTraceAdapterImpl::StartTrace(const std::string& value, float limit) in StartTrace() argument
31 ::StartTrace(HITRACE_TAG_NWEB, value, limit); in StartTrace()
39 void HiTraceAdapterImpl::StartAsyncTrace(const std::string& value, int32_t taskId, float limit) in StartAsyncTrace() argument
41 ::StartAsyncTrace(HITRACE_TAG_NWEB, value, taskId, limit); in StartAsyncTrace()
/base/update/updater/services/diffpatch/
Ddiff_main.cpp23 int limit; member
46 diffParams.limit = atoi(optarg); in main()
62 diffParams.limit, in main()
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/hitrace_meter_wrapper/src/
Dhitrace_meter_wrapper.cpp23 void HksTraceMeterStart(uint64_t label, const char *value, float limit) in HksTraceMeterStart() argument
26 StartTrace(label, valueString, limit); in HksTraceMeterStart()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
Drunning_status_log_util.h29 static void LogTooManyWatchers(const int limit);
31 static void LogTooManyEvents(const int limit);
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Drunning_status_log_util.cpp71 void RunningStatusLogUtil::LogTooManyWatchers(const int limit) in LogTooManyWatchers() argument
74 info.append(std::to_string(limit)); in LogTooManyWatchers()
78 void RunningStatusLogUtil::LogTooManyEvents(const int limit) in LogTooManyEvents() argument
81 info.append(std::to_string(limit)); in LogTooManyEvents()
/base/hiviewdfx/hiview/base/event_store/dao/
Dsys_event_query_wrapper.cpp56 void QueryStatusLogUtil::LogTooManyConcurrentQueries(const int limit, bool innerQuery) in LogTooManyConcurrentQueries() argument
60 info.append(std::to_string(limit)); in LogTooManyConcurrentQueries()
101 ResultSet SysEventQueryWrapper::Execute(int limit, DbQueryTag tag, QueryProcessInfo callerInfo, in Execute() argument
107 if (!IsQueryCntLimitValid(tag, limit, queryCallback) || in Execute()
115 resultSet = SysEventQuery::Execute(limit, tag, callerInfo, queryCallback); in Execute()
138 bool SysEventQueryWrapper::IsQueryCntLimitValid(const DbQueryTag& tag, const int limit, in IsQueryCntLimitValid() argument
142 if (limit > queryLimit) { in IsQueryCntLimitValid()
143 QueryStatusLogUtil::LogQueryCountOverLimit(limit, this->ToString(), tag.isInnerQuery); in IsQueryCntLimitValid()
Dsys_event_query.cpp484 ResultSet SysEventQuery::Execute(int limit, DbQueryTag tag, QueryProcessInfo callerInfo, in Execute() argument
487 limit_ = limit; in Execute()
504 if (resultNum > limit && tag.isInnerQuery) { in Execute()
505 resultNum = limit; in Execute()
/base/web/webview/ohos_adapter/interfaces/
Dhitrace_adapter.h24 virtual void StartTrace(const std::string& value, float limit = -1) = 0;
28 virtual void StartAsyncTrace(const std::string& value, int32_t taskId, float limit = -1) = 0;
/base/web/webview/ohos_adapter/hiviewdfx_adapter/include/
Dhitrace_adapter_impl.h28 void StartTrace(const std::string& value, float limit = -1) override;
32 void StartAsyncTrace(const std::string& value, int32_t taskId, float limit = -1) override;
/base/hiviewdfx/hiview/base/event_store/include/
Dsys_event_query_wrapper.h37 static void LogTooManyConcurrentQueries(const int limit, bool innerQuery = true);
57 virtual ResultSet Execute(int limit, DbQueryTag tag, QueryProcessInfo callerInfo,
62 …bool IsQueryCntLimitValid(const DbQueryTag& tag, const int limit, const DbQueryCallback& callback);
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/hitrace_meter_wrapper/include/
Dhitrace_meter_wrapper.h25 void HksTraceMeterStart(uint64_t label, const char *value, float limit);
/base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter/
Dhitrace_meter.h111 void StartTrace(uint64_t label, const std::string& value, float limit = -1);
112 void StartTraceDebug(bool isDebug, uint64_t label, const std::string& value, float limit = -1);
126 void StartAsyncTrace(uint64_t label, const std::string& value, int32_t taskId, float limit = -1);
127 …aceDebug(bool isDebug, uint64_t label, const std::string& value, int32_t taskId, float limit = -1);
/base/security/selinux_adapter/sepolicy/base/public/
Dhap_domain.te85 #limit hap access vendor.
91 #limit hap access dev file.
102 #limit hap use kobject netlink.
112 #file acess limit.
135 #limit access to system_core_hap_data_file
140 #limit access to system_basic_hap_data_file
145 #limit access to normal_hap_data_file_attr
173 # limit access to /data/(*)? first level.todo
Ddomain.te209 # fs operation limit
267 #limit domain access to sh_exec
272 #limit execmem use
277 # limit capability use.
326 #limit domain has exec_no_sign and exec_anon_mem permission
/base/update/updater/test/unittest/diffpatch/
Ddiffpatch_unittest.cpp62 int ImgageDiffPatchFileTest(size_t limit, const std::string &oldFile, in ImgageDiffPatchFileTest() argument
65 int32_t ret = UpdatePatch::UpdateDiff::DiffImage(limit, TEST_PATH_FROM + oldFile, in ImgageDiffPatchFileTest()
115 int ImgageDiffPatchFileTest2(size_t limit, const std::string &oldFile, in ImgageDiffPatchFileTest2() argument
118 int32_t ret = UpdatePatch::UpdateDiff::DiffImage(limit, TEST_PATH_FROM + oldFile, in ImgageDiffPatchFileTest2()
/base/startup/init/services/init/
Dinit_common_cmds.c526 struct rlimit limit; in DoSetrlimit() local
528 limit.rlim_cur = RLIM_INFINITY; in DoSetrlimit()
530 limit.rlim_cur = (rlim_t)atoi(ctx->argv[1]); in DoSetrlimit()
533 limit.rlim_max = RLIM_INFINITY; in DoSetrlimit()
535 limit.rlim_max = (rlim_t)atoi(ctx->argv[rlimMaxPos]); in DoSetrlimit()
548 INIT_CHECK_ONLY_ELOG(setrlimit(rcs, &limit) == 0, "Failed setrlimit err=%d", errno); in DoSetrlimit()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
Dhitrace_meter.cpp252 void StartTrace(uint64_t label, const string& value, float limit UNUSED_PARAM) in StartTrace()
257 void StartTraceDebug(bool isDebug, uint64_t label, const string& value, float limit UNUSED_PARAM) in StartTraceDebug()
310 void StartAsyncTrace(uint64_t label, const string& value, int32_t taskId, float limit UNUSED_PARAM) in StartAsyncTrace()
321 …eDebug(bool isDebug, uint64_t label, const string& value, int32_t taskId, float limit UNUSED_PARAM) in StartAsyncTraceDebug()
/base/security/appverify/interfaces/innerkits/appverify/include/common/
Dhap_byte_buffer.h76 int32_t limit; variable
/base/startup/init/test/benchmark/
Dbenchmark_fwk.cpp220 for (int limit : limits) { in GetArgs() local
221 args.push_back( {size, limit, value} ); in GetArgs()
/base/hiviewdfx/faultloggerd/docs/
Dusage.md157 toybox prlimit -c -H unlimited -P [pid of target process] \\ 设置Hard limit
158 toybox prlimit -c -S unlimited -P [pid of target process] \\ 设置Soft limit
/base/request/request/services/service/rust/src/
Dtask_manager.rs388 limit: u32, in reach_maximum_running_limit()
404 if count >= limit { in reach_maximum_running_limit()
427 let limit = if task.conf.version == Version::API10 { in start_common() localVariable
432 if self.reach_maximum_running_limit(uid, task.conf.version, limit, &guard) { in start_common()

12