Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 30) 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(int bufferCapacity) : buffer(nullptr), position(0), limit(0), capacity… 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()
194 if (buffer != nullptr && offset >= 0 && limit - offset >= static_cast<int>(sizeof(value))) { in PutInt32()
195 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()
83 …ZipImageDiff(size_t limit, UpdateDiff::ImageParserPtr newParser, UpdateDiff::ImageParserPtr oldPar… in ZipImageDiff() argument
84 : CompressedImageDiff(limit, newParser, oldParser, BLOCK_DEFLATE) {} in ZipImageDiff()
102 …Lz4ImageDiff(size_t limit, UpdateDiff::ImageParserPtr newParser, UpdateDiff::ImageParserPtr oldPar… in Lz4ImageDiff() argument
103 : CompressedImageDiff(limit, newParser, oldParser, BLOCK_LZ4) {} in Lz4ImageDiff()
123 …GZipImageDiff(size_t limit, UpdateDiff::ImageParserPtr newParser, UpdateDiff::ImageParserPtr oldPa… in GZipImageDiff() argument
124 : 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/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/base/event_store/
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
105 SysEventQuery::BuildDataQuery(dataQuery, limit); in Execute()
109 if (!IsQueryCntLimitValid(dataQuery, tag, limit, queryCallback) || in Execute()
117 resultSet = SysEventQuery::Execute(limit, tag, callerInfo, queryCallback); in Execute()
140 …tQueryWrapper::IsQueryCntLimitValid(const DataQuery& query, const DbQueryTag& tag, const int limit, in IsQueryCntLimitValid() argument
144 if (limit > queryLimit) { in IsQueryCntLimitValid()
145 QueryStatusLogUtil::LogQueryCountOverLimit(limit, query.ToString(), tag.isInnerQuery); in IsQueryCntLimitValid()
Dsys_event_dao.cpp93 int SysEventDao::Delete(std::shared_ptr<SysEventQuery> sysEventQuery, int limit) in Delete() argument
107 dataQuery.Limit(limit); in Delete()
Dsys_event_query.cpp792 void SysEventQuery::BuildDataQuery(DataQuery &dataQuery, int limit) in BuildDataQuery() argument
803 dataQuery.Limit(limit); in BuildDataQuery()
816 ResultSet SysEventQuery::Execute(int limit, DbQueryTag tag, QueryProcessInfo callerInfo, in Execute() argument
819 return ExecuteSQL(limit); in Execute()
822 ResultSet SysEventQuery::ExecuteSQL(int limit) in ExecuteSQL() argument
825 BuildDataQuery(dataQuery, limit); in ExecuteSQL()
848 int SysEventQuery::ExecuteWithCallback(SysEventCallBack callback, int limit) in ExecuteWithCallback() argument
851 BuildDataQuery(dataQuery, limit); in ExecuteWithCallback()
/base/hiviewdfx/hiview/base/event_store/include/
Dsys_event_query_wrapper.h37 static void LogTooManyConcurrentQueries(const int limit, bool innerQuery = true);
54 virtual ResultSet Execute(int limit, DbQueryTag tag, QueryProcessInfo callerInfo,
59 bool IsQueryCntLimitValid(const DataQuery& query, const DbQueryTag& tag, const int limit,
Dsys_event_dao.h42 static int Delete(std::shared_ptr<SysEventQuery> sysEventQuery, int limit = 100);
Dsys_event_query.h208 int ExecuteWithCallback(SysEventCallBack callback, int limit = 100);
211 virtual ResultSet Execute(int limit = 100, DbQueryTag tag = { true, true },
223 void BuildDataQuery(DataQuery &dataQuery, int limit);
226 ResultSet ExecuteSQL(int limit);
/base/hiviewdfx/hiview/adapter/dbstore/
Ddata_query.cpp132 std::string DataQuery::ToDelString(int limit) const in ToDelString()
135 if (limit <= 0) { in ToDelString()
138 return sql + " | del | limit " + std::to_string(limit) + " count"; in ToDelString()
Ddoc_store.cpp143 ux.limit = 0; in Delete()
281 ux.limit = 0; in GetEntryDuringQuery()
/base/security/selinux/sepolicy/base/public/
Dhap_domain.te62 #limit hap access vendor.
68 #limit hap access dev file.
72 #limit hap use kobject netlink.
82 #file acess limit.
105 #limit access to system_core_hap_data_file
110 #limit access to system_basic_hap_data_file
115 #limit access to normal_hap_data_file
144 # limit access to /data/(*)? first level.todo
/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.h107 void StartTrace(uint64_t label, const std::string& value, float limit = -1);
108 void StartTraceDebug(bool isDebug, uint64_t label, const std::string& value, float limit = -1);
121 void StartAsyncTrace(uint64_t label, const std::string& value, int32_t taskId, float limit = -1);
122 …aceDebug(bool isDebug, uint64_t label, const std::string& value, int32_t taskId, float limit = -1);
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
Drunning_status_log_util.h29 static void LogTooManyWatchers(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()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
Dhitrace_meter.cpp167 void StartTrace(uint64_t label, const string& value, float limit UNUSED_PARAM) in StartTrace()
173 void StartTraceDebug(bool isDebug, uint64_t label, const string& value, float limit UNUSED_PARAM) in StartTraceDebug()
227 void StartAsyncTrace(uint64_t label, const string& value, int32_t taskId, float limit UNUSED_PARAM) in StartAsyncTrace()
233 …eDebug(bool isDebug, uint64_t label, const string& value, int32_t taskId, float limit UNUSED_PARAM) in StartAsyncTraceDebug()
/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()
106 int ImgageDiffPatchFileTest2(size_t limit, const std::string &oldFile, in ImgageDiffPatchFileTest2() argument
109 int32_t ret = UpdatePatch::UpdateDiff::DiffImage(limit, TEST_PATH_FROM + oldFile, in ImgageDiffPatchFileTest2()
/base/security/appverify/interfaces/innerkits/appverify/include/common/
Dhap_byte_buffer.h75 int limit; variable
/base/startup/init/services/init/
Dinit_common_cmds.c525 struct rlimit limit; in DoSetrlimit() local
527 limit.rlim_cur = RLIM_INFINITY; in DoSetrlimit()
529 limit.rlim_cur = (rlim_t)atoi(ctx->argv[1]); in DoSetrlimit()
532 limit.rlim_max = RLIM_INFINITY; in DoSetrlimit()
534 limit.rlim_max = (rlim_t)atoi(ctx->argv[rlimMaxPos]); in DoSetrlimit()
547 INIT_CHECK_ONLY_ELOG(setrlimit(rcs, &limit) == 0, "Failed setrlimit err=%d", errno); in DoSetrlimit()
/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/hiviewdfx/hiview/adapter/dbstore/include/
Ddata_query.h162 std::string ToDelString(int limit = 0) const;

12