/base/hiviewdfx/hiview/base/event_pool/test/unittest/common/ |
D | event_pool_test.cpp | 71 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/ |
D | vsnprintf_s_p.cpp | 63 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/ |
D | date_time_format_impl.cpp | 162 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/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_auth_list_mgr.c | 39 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/ |
D | resource_manager_performance_test.cpp | 143 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/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | resource_manager_performance_test.cpp | 143 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/sensors/miscdevice/interfaces/native/vibrator/test/fuzztest/setloopcount_fuzzer/ |
D | setloopcount_fuzzer.cpp | 29 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/startup/init/ueventd/ |
D | ueventd_read_cfg.c | 80 int count = -1; in ParseDeviceConfig() local 85 items = SplitStringExt(p, " ", &count, expectedCount); in ParseDeviceConfig() 86 if ((count != expectedCount) && (count != expectedCount - 1)) { in ParseDeviceConfig() 88 FreeStringVector(items, count); in ParseDeviceConfig() 95 FreeStringVector(items, count); in ParseDeviceConfig() 105 if (count == expectedCount) { in ParseDeviceConfig() 112 FreeStringVector(items, count); in ParseDeviceConfig() 120 int count = -1; in ParseSysfsConfig() local 125 items = SplitStringExt(p, " ", &count, expectedCount); in ParseSysfsConfig() 126 if (count != expectedCount) { in ParseSysfsConfig() [all …]
|
/base/notification/distributed_notification_service/services/distributed/src/ |
D | distributed_flow_control.cpp | 41 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/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
D | hiappevent_read.cpp | 106 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/test/moduletest/ |
D | param_test_module.c | 42 int count = 0; in PluginParamCmdWriteParam() local 43 while (count < maxCount) { in PluginParamCmdWriteParam() 45 int ret = sprintf_s(buffer, sizeof(buffer), "%d", count); in PluginParamCmdWriteParam() 50 count++; in PluginParamCmdWriteParam()
|
/base/telephony/call_manager/services/audio/src/ |
D | call_state_processor.cpp | 39 if (dialingCalls_.count(phoneNum) == EMPTY_VALUE) { in AddCall() 45 if (alertingCalls_.count(phoneNum) == EMPTY_VALUE) { in AddCall() 51 if (incomingCalls_.count(phoneNum) == EMPTY_VALUE) { in AddCall() 57 if (activeCalls_.count(phoneNum) == EMPTY_VALUE) { in AddCall() 63 if (holdingCalls_.count(phoneNum) == EMPTY_VALUE) { in AddCall() 77 if (dialingCalls_.count(phoneNum) > EMPTY_VALUE) { in DeleteCall() 83 if (alertingCalls_.count(phoneNum) > EMPTY_VALUE) { in DeleteCall() 89 if (incomingCalls_.count(phoneNum) > EMPTY_VALUE) { in DeleteCall() 95 if (activeCalls_.count(phoneNum) > EMPTY_VALUE) { in DeleteCall() 101 if (holdingCalls_.count(phoneNum) > EMPTY_VALUE) { in DeleteCall()
|
/base/powermgr/battery_statistics/services/native/test/unittest/src/ |
D | stats_alarm_test.cpp | 64 int16_t count = 2; variable 66 for (int16_t i = 0; i < count; i++) { 94 int16_t count = 2; variable 96 for (int16_t i = 0; i < count; i++) { 102 double expectedPower = count * alarmOnAverageMa; 123 int16_t count = 2; variable 127 for (int16_t i = 0; i < count; i++) { 151 int16_t count = 2; variable 153 for (int16_t i = 0; i < count; i++) {
|
/base/powermgr/display_manager/service/native/src/ |
D | display_auto_brightness.cpp | 51 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/sensors/sensor_lite/interfaces/kits/native/test/performance/src/ |
D | sensor_lite_test_performance.cpp | 73 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/ |
D | zone_util_performance_test.cpp | 61 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/ |
D | number_format.cpp | 71 if (LocaleInfo::allValidLocales.count(locale.getLanguage()) > 0) { in NumberFormat() 190 if (configs.count("signDisplay") > 0) { in ParseConfigs() 193 if (signAutoStyle.count(signDisplayString) > 0) { in ParseConfigs() 196 if (configs.count("style") > 0) { in ParseConfigs() 199 if (styleString == "unit" && configs.count("unit") > 0) { in ParseConfigs() 201 if (configs.count("unitDisplay") > 0) { in ParseConfigs() 203 if (unitStyle.count(unitDisplayString) > 0) { in ParseConfigs() 207 if (configs.count("unitUsage") > 0) { in ParseConfigs() 211 if (styleString == "currency" && configs.count("currency") > 0) { in ParseConfigs() 213 if (configs.count("currencySign") > 0) { in ParseConfigs() [all …]
|
D | measure_data.cpp | 302 if (USAGE_DEFAULT_GB.count(type) > 0) { in GetDefaultPreferredUnit() 308 if (USAGE_DEFAULT_US.count(type) > 0) { in GetDefaultPreferredUnit() 314 if (USAGE_DEFAULT_001.count(type) > 0) { in GetDefaultPreferredUnit() 326 if (USAGE_MX.count(usage) > 0) { in GetFallbackPreferredUnit() 333 if (USAGE_NL.count(usage) > 0) { in GetFallbackPreferredUnit() 342 if (USAGE_NO.count(usage) > 0) { in GetFallbackPreferredUnit() 349 if (USAGE_SE.count(usage) > 0) { in GetFallbackPreferredUnit() 356 if (USAGE_US.count(usage) > 0) { in GetFallbackPreferredUnit() 363 if (USAGE_001.count(usage) > 0) { in GetFallbackPreferredUnit() 377 if (USAGE_CA.count(usage) > 0) { in GetRestPreferredUnit() [all …]
|
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/hilog/src/ |
D | hilog_napi_base.cpp | 53 uint32_t count = 0; in ParseLogContent() local 61 if (count >= size) { in ParseLogContent() 84 if (params[count].type == napi_number || params[count].type == napi_bigint) { in ParseLogContent() 85 ret += (priv && showPriv) ? PRIV_STR : params[count].val; in ParseLogContent() 87 count++; in ParseLogContent() 91 if (params[count].type == napi_string || params[count].type == napi_undefined || in ParseLogContent() 92 params[count].type == napi_boolean || params[count].type == napi_null) { in ParseLogContent() 93 ret += (priv && showPriv) ? PRIV_STR : params[count].val; in ParseLogContent() 95 count++; in ParseLogContent() 100 if (params[count].type == napi_object) { in ParseLogContent() [all …]
|
/base/sensors/sensor_lite/interfaces/kits/native/test/unittest/src/ |
D | sensor_agent_interfaces_test.cpp | 60 int32_t count = 0; variable 61 int32_t ret = GetAllSensors(&sensorInfo, &count); 62 HILOG_INFO(HILOG_MODULE_APP, "GetAllSensorsInterfaceTest001 sensor lists count: %d", count); 63 for (int i = 0; i < count; i++) { 97 int32_t count = 0; variable 99 int32_t ret = GetAllSensors(sensorInfo, &count); 158 int32_t count = 0; variable 159 int32_t ret = GetAllSensors(&sensorInfo, &count); 280 int32_t count = 0; variable 281 int32_t ret = GetAllSensors(&sensorInfo, &count); [all …]
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/src/ |
D | dfx_processdump_test.cpp | 108 int count = 0; in CheckKeyWords() local 118 count--; in CheckKeyWords() 121 count++; in CheckKeyWords() 131 GTEST_LOG_(INFO) << count << " keys matched."; in CheckKeyWords() 132 return count; in CheckKeyWords() 253 int count = 0; variable 263 count++; 266 ASSERT_EQ(count, len); 282 int count = 0; variable 292 count++; [all …]
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
D | write_controller.cpp | 44 stat.count = 1; in CheckLimitWritingEvent() 51 stat.count = 1; in CheckLimitWritingEvent() 56 stat.count++; in CheckLimitWritingEvent() 57 if (stat.count <= param.threshold) { in CheckLimitWritingEvent() 65 stat.count - param.threshold, domain, eventName, func); in CheckLimitWritingEvent()
|
/base/hiviewdfx/faultloggerd/test/systemtest/src/ |
D | faultloggerd_system_test.cpp | 111 int FaultLoggerdSystemTest::count = 0; member in FaultLoggerdSystemTest 275 int count = 0; in CheckKeywords() local 284 count--; in CheckKeywords() 287 count++; in CheckKeywords() 297 return count == length ? 0 : 1; in CheckKeywords() 728 FaultLoggerdSystemTest::count++; in dumpCatchThread() 748 EXPECT_EQ(FaultLoggerdSystemTest::count, 10) << "FaultLoggerdSystemTest0010_pre Failed"; 749 if (count == 10) { 813 int count = 0; variable 818 count++; [all …]
|
/base/global/i18n/frameworks/zone/src/ |
D | zone_util.cpp | 161 int32_t count = strEnum->count(status); in GetString() local 162 if ((status != U_ZERO_ERROR) || count <= 0) { in GetString() 184 int32_t count = strEnum->count(status); in GetList() local 185 if (count <= 0 || status != U_ZERO_ERROR) { in GetList() 188 while (count > 0) { in GetList() 205 --count; in GetList()
|
/base/telephony/sms_mms/frameworks/native/mms/src/ |
D | mms_decode_buffer.cpp | 76 bool MmsDecodeBuffer::DecodeUintvar(uint32_t &uintVar, uint32_t &count) in DecodeUintvar() argument 82 count = 0; in DecodeUintvar() 87 count++; in DecodeUintvar() 97 count++; in DecodeUintvar() 159 uint32_t count = 0; in DecodeValueLengthReturnLen() local 160 if (!DecodeUintvar(uintvar, count)) { in DecodeValueLengthReturnLen() 165 length = count + 1; in DecodeValueLengthReturnLen() 201 uint32_t count = 0; in DecodeValueLength() local 202 if (!DecodeUintvar(uintvar, count)) { in DecodeValueLength()
|