Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 530) sorted by relevance

12345678910>>...22

/base/hiviewdfx/faultloggerd/test/unittest/callstack/
Dhashlist_test.cpp61 HWTEST_F(HashListTest, count, TestSize.Level1)
65 EXPECT_EQ(hashList.count(temp), 0u);
68 EXPECT_EQ(hashList.count(curSize), 1u);
78 for (std::size_t count = 0; count < size; ++count) { variable
80 EXPECT_EQ(*first, count);
91 for (std::size_t count = 0; count < size; ++count) { variable
93 EXPECT_EQ(*first, count);
104 for (std::size_t count = size - 1; count > 0; --count) { variable
107 EXPECT_EQ(*last, count);
118 for (std::size_t count = size - 1; count > 0; --count) { variable
[all …]
/base/hiviewdfx/hiview/base/event_pool/test/unittest/common/
Devent_pool_test.cpp71 int count = 0; variable
74 ++count;
75 ASSERT_LT(count, 1000); // 1000:大于10s报错退出
85 count = 0;
88 ++count;
89 ASSERT_LT(count, 1000); // 1000:大于10s报错退出
94 count = 0;
97 ++count;
98 ASSERT_LT(count, 1000); // 1000:大于10s报错退出
131 int count = 0; variable
[all …]
/base/hiviewdfx/hilog/frameworks/libhilog/vsnprintf/
Dvsnprintf_s_p.cpp63 int count; member
115 #define SECUREC_PUTC(_c, _stream) ((--(_stream)->count >= 0) ? ((*(_stream)->cur++ = (char)(_c))…
117 #define SECUREC_PUTC_ZERO(_stream) ((--(_stream)->count >= 0) ? ((*(_stream)->cur++ = (char)('\0…
166 int count = len; in SecWriteString() local
167 while (count-- > 0) { in SecWriteString()
180 int count = num; in SecWriteMultiChar() local
181 while (count-- > 0) { in SecWriteMultiChar()
191 static inline int SecVsnprintfPImpl(char *string, size_t count, int priv, const char *format, va_li…
222 int vsnprintfp_s(char *strDest, size_t destMax, size_t count, int priv, const char *format, va_lis… in vsnprintfp_s() argument
227 (count > (SECUREC_STRING_MAX_LEN - 1) && count != static_cast<size_t>(-1))) { in vsnprintfp_s()
[all …]
/base/global/i18n_lite/frameworks/i18n/src/
Ddate_time_format_impl.cpp162 uint32_t count = 0; in Format() local
165 if ((current != pre) && (count != 0)) { in Format()
166 Process(time, appendTo, pre, count, status); in Format()
167 count = 0; in Format()
178 ++count; in Format()
184 if (count != 0) { in Format()
185 Process(time, appendTo, pre, count, status); in Format()
241 void DateTimeFormatImpl::Process(const tm &time, string &appendTo, char pre, uint32_t count, I18nSt… in Process() argument
247 ProcessTime(time, appendTo, pre, count, status); in Process()
253 if (count == WIDE_COUNT) { in Process()
[all …]
/base/print/print_fwk/utils/include/
Dprint_constant.h51 #define CHECK_IS_EXCEED_PRINT_RANGE_BASE(count, retVal) … argument
53 … if ((count) > PRINT_MAX_PRINT_COUNT) { \
59 #define CHECK_IS_EXCEED_PRINT_RANGE(count) CHECK_IS_EXCEED_PRINT_RANGE_BASE(count, nullptr) argument
60 #define CHECK_IS_EXCEED_PRINT_RANGE_BOOL(count) CHECK_IS_EXCEED_PRINT_RANGE_BASE(count, false) argument
61 #define CHECK_IS_EXCEED_PRINT_RANGE_VOID(count) CHECK_IS_EXCEED_PRINT_RANGE_BASE(count, PRINT_R… argument
62 #define CHECK_IS_EXCEED_PRINT_RANGE_INT(count) CHECK_IS_EXCEED_PRINT_RANGE_BASE(count, E_PRINT… argument
Dprint_util.h44 uint32_t count = 1; in ParseListToString() local
48 if (count < size) { in ParseListToString()
51 count ++; in ParseListToString()
62 int count = 0; in SplitStr() local
64 if (count == index) { in SplitStr()
67 count ++; in SplitStr()
/base/hiviewdfx/faultloggerd/test/systemtest/
Ddumpcatcher_system_test.cpp480 int count = GetKeywordsNum(msg, log, sizeof(log) / sizeof(log[0])); variable
482 EXPECT_EQ(count, 5) << "DumpCatcherSystemTest012 Failed";
505 int count = GetKeywordsNum(msg, log, sizeof(log) / sizeof(log[0])); variable
507 EXPECT_EQ(count, 5) << "DumpCatcherSystemTest013 Failed";
533 int count = GetKeywordsNum(msg, log, sizeof(log) / sizeof(log[0])); variable
535 EXPECT_EQ(count, 5) << "DumpCatcherSystemTest014 Failed";
562 int count = GetKeywordsNum(msg, log, sizeof(log) / sizeof(log[0])); variable
564 EXPECT_EQ(count, 5) << "DumpCatcherSystemTest015 Failed";
591 int count = GetKeywordsNum(msg, log, sizeof(log) / sizeof(log[0])); variable
593 EXPECT_EQ(count, 5) << "DumpCatcherSystemTest016 Failed";
[all …]
/base/hiviewdfx/faultloggerd/test/unittest/dump_catcher/
Ddumpcatcher_command_test.cpp76 int count = GetKeywordsNum(dumpRes, log, len); variable
77 EXPECT_EQ(count, len) << "DumpCatcherCommandTest001 Failed";
97 int count = GetKeywordsNum(dumpRes, log, len); variable
98 EXPECT_EQ(count, len) << "DumpCatcherCommandTest002 Failed";
125 int count = GetKeywordsNum(dumpRes, log, len); variable
126 EXPECT_EQ(count, len) << "DumpCatcherCommandTest003 Failed";
153 int count = GetKeywordsNum(dumpRes, log, len); variable
154 EXPECT_EQ(count, len) << "DumpCatcherCommandTest004 Failed";
181 int count = GetKeywordsNum(dumpRes, log, len); variable
182 EXPECT_EQ(count, len) << "DumpCatcherCommandTest005 Failed";
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_auth_list_mgr.c39 uint32_t count = 0; in CheckAuthListFileSizeValid() local
40 (void)memcpy_s(&count, sizeof(count), originList->data + sizeof(uint32_t), sizeof(count)); in CheckAuthListFileSizeValid()
41 if (count > MAX_OUT_BLOB_SIZE) { in CheckAuthListFileSizeValid()
42 CM_LOG_E("invalid auth count[%u]", count); in CheckAuthListFileSizeValid()
46 uint32_t size = sizeof(uint32_t) + sizeof(uint32_t) + sizeof(uint32_t) * count; in CheckAuthListFileSizeValid()
48 CM_LOG_E("invalid auth list file size[%u], count[%u]", originList->size, count); in CheckAuthListFileSizeValid()
52 *authCount = count; in CheckAuthListFileSizeValid()
56 static bool IsUidExist(const struct CmBlob *list, uint32_t count, uint32_t targetUid, uint32_t *pos… in IsUidExist() argument
60 for (uint32_t i = 0; i < count; ++i) { in IsUidExist()
88 uint32_t count = 0; in InsertUid() local
[all …]
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dresource_manager_performance_test.cpp147 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count(); in ParseIndexCost()
187 auto readFilecost = std::chrono::duration_cast<std::chrono::microseconds>(end - start).count(); in TestLoadFromIndex()
240 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
275 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
299 int count = 2; variable
300 for (int i = 0; i < count; ++i) {
308 for (int i = 0; i < count; ++i) {
312 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
315 average = total / (1000.0 * count);
335 int count = 2; variable
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dresource_manager_performance_test.cpp143 auto readFilecost = std::chrono::duration_cast<std::chrono::microseconds>(end - start).count(); in TestLoadFromIndex()
180 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count(); in TestLoadFromIndex()
228 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
263 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
287 int count = 2; variable
288 for (int i = 0; i < count; ++i) {
296 for (int i = 0; i < count; ++i) {
300 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
303 average = total / (1000.0 * count);
323 int count = 2; variable
[all …]
/base/security/dlp_permission_service/frameworks/test/mock/
Dfile_io_mock.cpp27 typedef ssize_t (*WriteFuncT)(int fd, const void *buf, size_t count);
29 typedef errno_t (*MemcpyFuncT)(void *dest, size_t destMax, const void *src, size_t count);
44 ssize_t write(int fd, const void *buf, size_t count) in write() argument
54 return (*func)(fd, buf, count); in write()
71 errno_t memcpy_s(void *dest, size_t destMax, const void *src, size_t count) in memcpy_s() argument
81 return (*func)(dest, destMax, src, count); in memcpy_s()
/base/sensors/miscdevice/interfaces/native/vibrator/test/fuzztest/setloopcount_fuzzer/
Dsetloopcount_fuzzer.cpp29 int32_t count = static_cast<int32_t>(std::atoi(argv.c_str())); in SetLoopCountFuzzTest() local
30 bool ret = OHOS::Sensors::SetLoopCount(count); in SetLoopCountFuzzTest()
31 if ((count <= 0 && ret == true) || ((count > 0 && ret == false))) { in SetLoopCountFuzzTest()
/base/notification/distributed_notification_service/services/distributed/src/
Ddistributed_flow_control.cpp41 size_t count = 0; in KvManagerFlowControl() local
44 if (count >= kvManagerSecondMaxinum_) { in KvManagerFlowControl()
50 count++; in KvManagerFlowControl()
69 size_t count = 0; in KvStoreFlowControl() local
72 if (count >= kvStoreSecondMaxinum_) { in KvStoreFlowControl()
78 count++; in KvStoreFlowControl()
/base/startup/init/test/moduletest/
Dparam_test_module.c43 int count = 0; in PluginParamCmdWriteParam() local
44 while (count < maxCount) { in PluginParamCmdWriteParam()
46 int ret = sprintf_s(buffer, sizeof(buffer), "%d", count); in PluginParamCmdWriteParam()
51 count++; in PluginParamCmdWriteParam()
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
Dstats_service_alarm_test.cpp86 int16_t count = 10; variable
88 for (int16_t i = 0; i < count; i++) {
117 int16_t count = 10; variable
119 for (int16_t i = 0; i < count; i++) {
125 double expectedPower = count * alarmOnAverageMa;
147 int16_t count = 10; variable
151 for (int16_t i = 0; i < count; i++) {
177 int16_t count = 10; variable
179 for (int16_t i = 0; i < count; i++) {
208 int16_t count = 10; variable
[all …]
/base/security/code_signature/utils/include/
Dfsverity_utils_helper.h89 static int ReadFileCallback(void *f, void *buf, size_t count) in ReadFileCallback() argument
92 return reader->ReadBytes(static_cast<uint8_t *>(buf), count); in ReadFileCallback()
96 int ReadBytes(uint8_t *buf, size_t count) in ReadBytes() argument
101 while (count) { in ReadBytes()
102 ssize_t bytesRead = read(fd_, buf, count); in ReadBytes()
107 count -= bytesRead; in ReadBytes()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
Dhiappevent_read.cpp106 TimeStampVarType endTimeStamp, int count) in ParseSingFileLogs() argument
123 if ((logsSize + currentFileLogSize) > count) { in ParseSingFileLogs()
125 count - logsSize); in ParseSingFileLogs()
133 TimeStampVarType endTimeStamp, int count) in ParseAllHistoryLogs() argument
139 endTimeStamp, count); in ParseAllHistoryLogs()
141 if (logSize >= count) { in ParseAllHistoryLogs()
223 int count) in ReadHistoryLogFromPersistFile() argument
231 endTimeStamp, count); in ReadHistoryLogFromPersistFile()
242 TimeStampVarType endTimeStamp, int count) in PullEventHistoryLog() argument
244 if (count < 0) { in PullEventHistoryLog()
[all …]
/base/startup/init/ueventd/
Dueventd_read_cfg.c68 int count = -1; in ParseDeviceConfig() local
73 items = SplitStringExt(p, " ", &count, expectedCount); in ParseDeviceConfig()
74 if ((count != expectedCount) && (count != expectedCount - 1)) { in ParseDeviceConfig()
76 FreeStringVector(items, count); in ParseDeviceConfig()
83 FreeStringVector(items, count); in ParseDeviceConfig()
93 if (count == expectedCount) { in ParseDeviceConfig()
100 FreeStringVector(items, count); in ParseDeviceConfig()
108 int count = -1; in ParseSysfsConfig() local
113 items = SplitStringExt(p, " ", &count, expectedCount); in ParseSysfsConfig()
114 if (count != expectedCount) { in ParseSysfsConfig()
[all …]
/base/telephony/call_manager/services/audio/src/
Dcall_state_processor.cpp40 if (dialingCalls_.count(callId) == EMPTY_VALUE) { in AddCall()
46 if (alertingCalls_.count(callId) == EMPTY_VALUE) { in AddCall()
52 if (incomingCalls_.count(callId) == EMPTY_VALUE) { in AddCall()
58 if (activeCalls_.count(callId) == EMPTY_VALUE) { in AddCall()
64 if (holdingCalls_.count(callId) == EMPTY_VALUE) { in AddCall()
79 if (dialingCalls_.count(callId) > EMPTY_VALUE) { in DeleteCall()
85 if (alertingCalls_.count(callId) > EMPTY_VALUE) { in DeleteCall()
91 if (incomingCalls_.count(callId) > EMPTY_VALUE) { in DeleteCall()
97 if (activeCalls_.count(callId) > EMPTY_VALUE) { in DeleteCall()
103 if (holdingCalls_.count(callId) > EMPTY_VALUE) { in DeleteCall()
/base/powermgr/display_manager/service/native/src/
Ddisplay_auto_brightness.cpp51 for (uint8_t count = 1; count < TRANSFORM_NODE_TYPE_END; count++) { in CalculateAutoBrightness() local
52 auto lastNode = TRANSFORM_NODE_TABLE[count - 1]; in CalculateAutoBrightness()
53 auto curNode = TRANSFORM_NODE_TABLE[count]; in CalculateAutoBrightness()
/base/powermgr/battery_statistics/test/unittest/src/clienttest/
Dstats_alarm_test.cpp65 int16_t count = 2; variable
67 for (int16_t i = 0; i < count; i++) {
95 int16_t count = 2; variable
97 for (int16_t i = 0; i < count; i++) {
103 double expectedPower = count * alarmOnAverageMa;
124 int16_t count = 2; variable
128 for (int16_t i = 0; i < count; i++) {
152 int16_t count = 2; variable
154 for (int16_t i = 0; i < count; i++) {
/base/sensors/sensor_lite/interfaces/kits/native/test/performance/src/
Dsensor_lite_test_performance.cpp73 int32_t count = 0; variable
75 int32_t ret = GetAllSensors(&sensorInfo, &count);
82 for (int i = 0; i < count; i++) {
104 int32_t count = 0; variable
106 int32_t ret = GetAllSensors(&sensorInfo, &count);
134 int32_t count = 0; variable
136 int32_t ret = GetAllSensors(&sensorInfo, &count);
165 int32_t count = 0; variable
167 int32_t ret = GetAllSensors(&sensorInfo, &count);
197 int32_t count = 0; variable
[all …]
/base/global/i18n/frameworks/zone/test/unittest/
Dzone_util_performance_test.cpp61 int count = 2; variable
64 for (int i = 0; i < count; ++i) {
68 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
87 int count = 2; variable
90 for (int i = 0; i < count; ++i) {
94 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
118 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
141 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
164 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
187 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count();
/base/global/i18n/frameworks/intl/src/
Dnumber_format.cpp71 if (LocaleInfo::allValidLocales.count(locale.getLanguage()) > 0) { in NumberFormat()
191 if (configs.count("signDisplay") > 0) { in ParseConfigs()
194 if (signAutoStyle.count(signDisplayString) > 0) { in ParseConfigs()
197 if (configs.count("style") > 0) { in ParseConfigs()
200 if (styleString == "unit" && configs.count("unit") > 0) { in ParseConfigs()
202 if (configs.count("unitDisplay") > 0) { in ParseConfigs()
204 if (unitStyle.count(unitDisplayString) > 0) { in ParseConfigs()
208 if (configs.count("unitUsage") > 0) { in ParseConfigs()
212 if (styleString == "currency" && configs.count("currency") > 0) { in ParseConfigs()
214 if (configs.count("currencySign") > 0) { in ParseConfigs()
[all …]

12345678910>>...22