/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
H A D | file_format_dump_filter.cpp | 72 const size_t sum = str.size(); in FilterControlChar() local 73 for (size_t pos = 0; pos < sum; pos++) { in FilterControlChar() 76 if ((!skip) && (c == ASCII_ESC) && ((pos + 1) < sum)) { in FilterControlChar()
|
H A D | list_dumper.cpp | 68 int sum = 0; in Execute() local 72 sum = sum + 1; in Execute() 73 if (sum < ITEM_SUM_LINE) { in Execute() 78 sum = 0; in Execute()
|
/base/location/services/location_locator/locator/source/ |
H A D | locator_event_manager.cpp | 149 int sum = 0; in GetTopRequest() local 151 sum = sum + appRequest->count.at(i); in GetTopRequest() 153 if (sum > topSum) { in GetTopRequest() 154 topSum = sum; in GetTopRequest()
|
/base/startup/appspawn/service/hnp/base/ |
H A D | hnp_json.c | 398 static int HnpPackageInfoGetOut(HnpPackageInfo *packageInfos, int sum, HnpPackageInfo **packageInfoOut, int *count) in HnpPackageInfoGetOut() argument 402 if (sum == 0) { in HnpPackageInfoGetOut() 406 ptr = malloc(sizeof(HnpPackageInfo) * sum); in HnpPackageInfoGetOut() 412 if (memcpy_s(ptr, sizeof(HnpPackageInfo) * sum, packageInfos, sizeof(HnpPackageInfo) * sum) != 0) { in HnpPackageInfoGetOut() 419 *count = sum; in HnpPackageInfoGetOut() 454 int sum = 0; in HnpPackageInfoGet() local 481 if ((strcpy_s(packageInfos[sum].name, MAX_FILE_PATH_LEN, name->valuestring) != EOK) || in HnpPackageInfoGet() 482 (strcpy_s(packageInfos[sum].currentVersion, HNP_VERSION_LEN, version->valuestring) != EOK) || in HnpPackageInfoGet() 483 (strcpy_s(packageInfos[sum] in HnpPackageInfoGet() [all...] |
H A D | hnp_zip.c | 368 int sum = *count;
in HnpInstallAddSignMap() local 374 ret = sprintf_s(hnpSignMapInfos[sum].key, MAX_FILE_PATH_LEN, "%s!/%s", hnpSignKeyPrefix, key);
in HnpInstallAddSignMap() 380 ret = strcpy_s(hnpSignMapInfos[sum].value, MAX_FILE_PATH_LEN, value);
in HnpInstallAddSignMap() 386 *count = sum + 1;
in HnpInstallAddSignMap() 392 int sum = 0;
in HnpFileCountGet() local 402 sum++;
in HnpFileCountGet() 414 *count += sum;
in HnpFileCountGet()
|
/base/hiviewdfx/hidumper/services/native/src/ |
H A D | dump_log_manager.cpp | 83 int sum = static_cast<int>(zipFiles.size()) - LOGFILE_MAX; in EraseLogs() local 84 DUMPER_HILOGD(MODULE_COMMON, "EraseLogs debug|sum=%{public}d", sum); in EraseLogs() 85 for (int i = 0; i < sum; i++) { in EraseLogs()
|
H A D | dump_manager_service.cpp | 114 DUMPER_HILOGI(MODULE_SERVICE, "on idle enter, idle reason %{public}d, %{public}s, request sum=%{public}d", in OnIdle() 169 int sum = GetRequestSum(); in Request() local 170 DUMPER_HILOGD(MODULE_SERVICE, "debug|sum=%{public}d", sum); in Request() 171 if (sum >= REQUEST_MAX) { in Request() 172 DUMPER_HILOGE(MODULE_SERVICE, "sum is greater than the request max, sum:%{public}d.", sum); in Request() 174 } else if (sum == 0) { in Request() 463 DUMPER_HILOGI(MODULE_SERVICE, "do unload task, request sum in DelayUnloadTask() [all...] |
/base/powermgr/thermal_manager/services/native/src/thermal_observer/ |
H A D | thermal_service_subscriber.cpp | 97 // The initial value of the sum is 0 in SetHistoryTypeTempMap() 98 double sum = std::accumulate(item.begin(), item.end(), 0); in SetHistoryTypeTempMap() local 102 rate = (sum / THOUSAND_UNIT / sec) * SEC_MIN_NUM; in SetHistoryTypeTempMap()
|
/base/request/request/services/src/task/ |
H A D | notify.rs | 83 && self.processed.iter().sum::<usize>() == self.sizes.iter().sum::<i64>() as usize
|
/base/tee/tee_client/services/tlogcat/src/ |
H A D | tarzip.c | 69 int32_t sum = 0; in WriteOneUint() local 73 sum += (int32_t)input[i]; in WriteOneUint() 76 return sum; in WriteOneUint()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/utils_test/src/ |
H A D | hks_condition_test.cpp | 197 uint64_t sum = 0; in TimeConsumingWork() local 199 sum += Fib(fibNumber); in TimeConsumingWork() 205 return sum / repeatTimes; in TimeConsumingWork()
|
/base/powermgr/display_manager/brightness_manager/src/ |
H A D | light_lux_manager.cpp | 103 float sum = 0;
in CalcSmoothLux() local 114 sum += lux;
in CalcSmoothLux() 116 DISPLAY_HILOGD(FEAT_BRIGHTNESS, "sum - luxMin - luxMax = %{public}f \n", sum - luxMin - luxMax);
in CalcSmoothLux() 117 return (sum - luxMin - luxMax) / 3.0f;
in CalcSmoothLux()
|
/base/update/packaging_tools/ |
H A D | transfers_manager.py | 64 return (sum(sr.size() for (_, sr) in self.stash_before) - 65 sum(sr.size() for (_, sr) in self.use_stash))
|
H A D | script_generator.py | 346 sum_size = sum(file_size_list)
364 sum is equal to distributable_value.
371 sum_proportion_value = sum(proportion_value_list)
|
H A D | build_module_img.py | 56 size += sum([roundup(os.path.getsize(os.path.join(root, name)), BLOCK_SIZE) for name in files])
|
/base/sensors/sensor/vibration_convert/core/algorithm/conversion/src/ |
H A D | conversion_fft.cpp | 278 float sum = 0.0F; // running total of spectrum data in Calculate() local 282 sum += (fftData[speIdx] * (linearEQIntercept_ + speIdx * linearEQSlope_)); in Calculate() 286 *(averages_.get() + j) = sum / static_cast<float>(count); in Calculate() 289 sum = 0.0F; in Calculate() 295 *(averages_.get() + lastAvgIdx) = sum / count; in Calculate()
|
/base/sensors/sensor/vibration_convert/core/algorithm/onset/src/ |
H A D | onset.cpp | 63 double sum = 0.0; in MatrixDot() local 65 // Multiply each column of the matrixB by each row of the matrixA, and then sum it up. in MatrixDot() 66 sum += matrixA[k * aRows + i] * matrixB[j * bRows + k]; in MatrixDot() 68 result[idx] = sum; in MatrixDot()
|
/base/hiviewdfx/hidumper/test/scripts/testModule/ |
H A D | test_performance.py | 28 return sum(int(x) for x in result) <= ROM_BASE_SIZE
|
H A D | test_memory.py | 45 pss_sum = sum([val[0] for key,val in memory_data.items() if key in ["GL", "Graph", "guard", "native heap", "AnonPage other", "stack", ".so", ".ttf", "dev", "dmabuf", "FilePage other"]])
|
H A D | test_permission.py | 39 return sum([val[PSS_INDEX] for key, val in memory_data.items() if key != "Summary"]) + SWAPPSS_SUMMARY == PSS_SUMMARY
|
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_buffer.cpp | 276 size_t sum = 0; in Delete() local 291 sum += cLen; in Delete() 295 return sum; in Delete()
|
/base/security/appverify/interfaces/innerkits/appverify/src/verify/ |
H A D | hap_verify_v2.cpp | 419 int32_t sum = sizeof(digestlen) + sizeof(digest.digestAlgorithm) + digestlen; in GetDigestAndAlgorithm() local 420 if (sum != digestBlockLen) { in GetDigestAndAlgorithm() 421 HAPVERIFY_LOG_ERROR("digestBlockLen: %{public}d is not equal to sum: %{public}d", in GetDigestAndAlgorithm() 422 digestBlockLen, sum); in GetDigestAndAlgorithm()
|
/base/request/request/services/src/manage/ |
H A D | notifier.rs | 55 let file_total_size: i64 = notify_data.progress.sizes.iter().sum();
|