/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/small/ |
D | mbedtls_ec_adapter.c | 95 int32_t status; in CalTmpParaX() local 110 …status = mbedtls_mpi_read_binary(¶BnA, g_hash2pointParas[PARAM_A_INDEX], BYTE_LENGTH_CURVE_255… in CalTmpParaX() 111 LOG_AND_GOTO_CLEANUP_IF_FAIL(status, "CalTmpParaX error1"); in CalTmpParaX() 113 …status = mbedtls_mpi_read_binary(¶BnU, g_hash2pointParas[PARAM_U_INDEX], BYTE_LENGTH_CURVE_255… in CalTmpParaX() 114 LOG_AND_GOTO_CLEANUP_IF_FAIL(status, "CalTmpParaX error2"); in CalTmpParaX() 116 status = mbedtls_mpi_copy(&tmpBnB, tmpX); in CalTmpParaX() 117 LOG_AND_GOTO_CLEANUP_IF_FAIL(status, "CalTmpParaX error3"); in CalTmpParaX() 120 status = mbedtls_mpi_exp_mod(&tmpBnE, &tmpBnB, ¶BnU, modP, NULL); in CalTmpParaX() 121 LOG_AND_GOTO_CLEANUP_IF_FAIL(status, "CalTmpParaX error4"); // b^2 in CalTmpParaX() 123 status = mbedtls_mpi_mul_mpi(&tmpBnC, &tmpBnE, &tmpBnB); in CalTmpParaX() [all …]
|
/base/global/i18n_lite/frameworks/i18n/test/unittest/lite/common/ |
D | i18n_test.cpp | 224 I18nStatus status = I18nStatus::ISUCCESS; variable 227 formatter.Format(now, "-1:45", out, status); 242 I18nStatus status = I18nStatus::ISUCCESS; variable 245 formatter.Format(now, "-1:45", out, status); 260 I18nStatus status = I18nStatus::ISUCCESS; variable 263 formatter.Format(now, "-1:45", out, status); 278 I18nStatus status = I18nStatus::ISUCCESS; variable 282 formatter.Format(now, "-1:45", out, status); 297 I18nStatus status = I18nStatus::ISUCCESS; variable 301 formatter.Format(now, "-1:45", out, status); [all …]
|
/base/account/os_account/services/accountmgr/src/ |
D | account_data_storage.cpp | 50 OHOS::DistributedKv::Status status = func(); in TryTwice() local 51 if (status == OHOS::DistributedKv::Status::IPC_ERROR) { in TryTwice() 52 status = func(); in TryTwice() 53 ACCOUNT_LOGE("distribute database ipc error and try again, status = %{public}d", status); in TryTwice() 70 …OHOS::DistributedKv::Status status = dataManager_.GetSingleKvStore(options, appId_, storeId_, kvSt… in GetKvStore() local 71 if (status != OHOS::DistributedKv::Status::SUCCESS || kvStorePtr_ == nullptr) { in GetKvStore() 72 ACCOUNT_LOGE("GetSingleKvStore failed! status %{public}d, kvStorePtr_ is nullptr", status); in GetKvStore() 73 return status; in GetKvStore() 75 return status; in GetKvStore() 86 OHOS::DistributedKv::Status status = OHOS::DistributedKv::Status::SUCCESS; in CheckKvStore() local [all …]
|
/base/global/i18n/frameworks/intl/src/ |
D | i18n_calendar.cpp | 43 UErrorCode status = U_ZERO_ERROR; in I18nCalendar() local 44 icu::Locale tempLocale = icu::Locale::forLanguageTag(localeTag, status); in I18nCalendar() 45 if (status != U_ZERO_ERROR) { in I18nCalendar() 46 calendar_ = new icu::GregorianCalendar(status); in I18nCalendar() 47 if (!U_SUCCESS(status)) { in I18nCalendar() 55 calendar_ = icu::Calendar::createInstance(tempLocale, status); in I18nCalendar() 56 if (status != U_ZERO_ERROR) { in I18nCalendar() 66 UErrorCode status = U_ZERO_ERROR; in I18nCalendar() local 67 icu::Locale tempLocale = icu::Locale::forLanguageTag(localeTag, status); in I18nCalendar() 68 if (status != U_ZERO_ERROR) { in I18nCalendar() [all …]
|
D | index_util.cpp | 29 UErrorCode status = U_ZERO_ERROR; in IndexUtil() local 32 index = std::make_unique<icu::AlphabeticIndex>(locale, status); in IndexUtil() 35 index = std::make_unique<icu::AlphabeticIndex>(locale, status); in IndexUtil() 37 if (U_SUCCESS(status)) { in IndexUtil() 48 UErrorCode status = U_ZERO_ERROR; in GetIndexList() local 53 index->resetBucketIterator(status); in GetIndexList() 54 while (index->nextBucket(status)) { in GetIndexList() 55 if (U_SUCCESS(status)) { in GetIndexList() 67 UErrorCode status = U_ZERO_ERROR; in AddLocale() local 70 index->addLabels(locale, status); in AddLocale() [all …]
|
D | collator.cpp | 76 UErrorCode status = U_ZERO_ERROR; in Collator() local 80 locale = icu::Locale::forLanguageTag(icu::StringPiece(curLocale), status); in Collator() 81 if (status != U_ZERO_ERROR) { in Collator() 82 status = U_ZERO_ERROR; in Collator() 103 UErrorCode status = U_ZERO_ERROR; in IsValidCollation() local 107 …ollator::getKeywordValuesForLocale("collation", icu::Locale(locale.getBaseName()), false, status)); in IsValidCollation() 108 if (!U_SUCCESS(status)) { in IsValidCollation() 114 validCollations = enumeration->next(&length, status); in IsValidCollation() 121 validCollations = enumeration->next(&length, status); in IsValidCollation() 130 UErrorCode status = U_ZERO_ERROR; in SetCollation() local [all …]
|
/base/global/i18n/interfaces/js/kits/src/ |
D | i18n_normalizer_addon.cpp | 56 …napi_status status = napi_define_class(env, "Normalizer", NAPI_AUTO_LENGTH, I18nNormalizerConstruc… in InitI18nNormalizer() local 58 if (status != napi_ok) { in InitI18nNormalizer() 67 status = napi_create_reference(env, constructor, 1, g_normalizerConstructor); in InitI18nNormalizer() 68 if (status != napi_ok) { in InitI18nNormalizer() 73 status = napi_set_named_property(env, exports, "Normalizer", constructor); in InitI18nNormalizer() 74 if (status != napi_ok) { in InitI18nNormalizer() 87 napi_status status = napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in I18nNormalizerConstructor() local 88 if (status != napi_ok) { in I18nNormalizerConstructor() 103 status = napi_get_value_int32(env, argv[0], &normalizerMode); in I18nNormalizerConstructor() 104 if (status != napi_ok) { in I18nNormalizerConstructor() [all …]
|
D | system_locale_manager_addon.cpp | 45 napi_status status = napi_ok; in InitSystemLocaleManager() local 53 …status = napi_define_class(env, "SystemLocaleManager", NAPI_AUTO_LENGTH, SystemLocaleManagerConstr… in InitSystemLocaleManager() 55 if (status != napi_ok) { in InitSystemLocaleManager() 60 status = napi_set_named_property(env, exports, "SystemLocaleManager", constructor); in InitSystemLocaleManager() 61 if (status != napi_ok) { in InitSystemLocaleManager() 74 napi_status status = napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in SystemLocaleManagerConstructor() local 75 if (status != napi_ok) { in SystemLocaleManagerConstructor() 79 status = in SystemLocaleManagerConstructor() 81 if (status != napi_ok) { in SystemLocaleManagerConstructor() 96 napi_status status = napi_get_global(env, &global); in InitSystemLocaleManagerContext() local [all …]
|
D | i18n_addon.cpp | 106 napi_status status = napi_ok; in CreateUnicodeObject() local 108 status = napi_create_object(env, &character); in CreateUnicodeObject() 109 if (status != napi_ok) { in CreateUnicodeObject() 125 status = napi_define_properties(env, character, in CreateUnicodeObject() 128 if (status != napi_ok) { in CreateUnicodeObject() 139 napi_status status = napi_create_object(env, &i18nUtil); in CreateI18nUtilObject() local 140 if (status != napi_ok) { in CreateI18nUtilObject() 149 …status = napi_define_properties(env, i18nUtil, sizeof(i18nUtilProperties) / sizeof(napi_property_d… in CreateI18nUtilObject() 151 if (status != napi_ok) { in CreateI18nUtilObject() 200 napi_status status = napi_typeof(env, options, &type); in GetOptionValue() local [all …]
|
D | variable_convertor.cpp | 31 napi_status status = napi_typeof(env, options, &type); in GetOptionValue() local 32 if (status != napi_ok && type != napi_object) { in GetOptionValue() 39 status = napi_get_named_property(env, options, optionName.c_str(), &optionValue); in GetOptionValue() 40 if (status == napi_ok) { in GetOptionValue() 44 status = napi_get_value_string_utf8(env, optionValue, optionBuf.data(), len + 1, &len); in GetOptionValue() 45 if (status != napi_ok) { in GetOptionValue() 57 napi_status status = napi_typeof(env, options, &type); in GetBoolOptionValue() local 58 if (status != napi_ok && type != napi_object) { in GetBoolOptionValue() 64 status = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetBoolOptionValue() 65 if (status != napi_ok || !hasProperty) { in GetBoolOptionValue() [all …]
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | number_format.cpp | 21 NumberFormat::NumberFormat(LocaleInfo &locale, int &status) in NumberFormat() argument 24 status = IERROR; in NumberFormat() 32 int status = I18nStatus::ISUCCESS; in Init() local 36 impl = new NumberFormatImpl(mLocale, status); in Init() 40 if (status != I18nStatus::ISUCCESS) { in Init() 61 std::string NumberFormat::Format(double num, NumberFormatType type, int &status) in Format() argument 66 return impl->Format(num, type, status); in Format() 69 std::string NumberFormat::Format(int num, int &status) in Format() argument 74 return impl->Format(num, status); in Format() 77 std::string NumberFormat::FormatNoGroup(double num, NumberFormatType type, int &status) in FormatNoGroup() argument [all …]
|
D | measure_format_impl.cpp | 22 MeasureFormatImpl::MeasureFormatImpl(LocaleInfo &localeinfo, I18nStatus &status) in MeasureFormatImpl() argument 25 status = I18nStatus::IERROR; in MeasureFormatImpl() 29 pluralFormat = new PluralFormat(localeinfo, status); in MeasureFormatImpl() 30 if (status != I18nStatus::ISUCCESS || pluralFormat == nullptr) { in MeasureFormatImpl() 31 status = I18nStatus::IERROR; in MeasureFormatImpl() 37 status = I18nStatus::IERROR; in MeasureFormatImpl() 55 …easureFormatImpl::Format(double num, std::string &unit, MeasureFormatType type, I18nStatus &status) in Format() argument 58 return FormatInner(false, unit, type, status); in Format() 61 …g MeasureFormatImpl::Format(int num, std::string &unit, MeasureFormatType type, I18nStatus &status) in Format() argument 64 return FormatInner(true, unit, type, status); in Format() [all …]
|
D | measure_format.cpp | 20 MeasureFormat::MeasureFormat(LocaleInfo &localeinfo, I18nStatus &status) in MeasureFormat() argument 23 status = I18nStatus::IERROR; in MeasureFormat() 31 I18nStatus status = I18nStatus::ISUCCESS; in Init() local 35 measureFormatImpl = new MeasureFormatImpl(locale, status); in Init() 36 if (measureFormatImpl == nullptr || status != I18nStatus::ISUCCESS) { in Init() 55 std::string MeasureFormat::Format(double num, std::string unit, I18nStatus &status, MeasureFormatTy… in Format() argument 58 status = I18nStatus::IERROR; in Format() 61 return measureFormatImpl->Format(num, unit, type, status); in Format() 64 std::string MeasureFormat::Format(int num, std::string unit, I18nStatus &status, MeasureFormatType … in Format() argument 67 status = I18nStatus::IERROR; in Format() [all …]
|
D | plural_format.cpp | 21 PluralFormat::PluralFormat(LocaleInfo &locale, I18nStatus &status) in PluralFormat() argument 24 status = IERROR; in PluralFormat() 43 I18nStatus status = I18nStatus::ISUCCESS; in Init() local 44 impl = new PluralFormatImpl(mLocale, status); in Init() 48 if (status != I18nStatus::ISUCCESS) { in Init() 59 int PluralFormat::GetPluralRuleIndex(int number, I18nStatus status) in GetPluralRuleIndex() argument 67 return impl->GetPluralRuleIndex(number, status); in GetPluralRuleIndex() 70 int PluralFormat::GetPluralRuleIndex(double number, I18nStatus status) in GetPluralRuleIndex() argument 78 return impl->GetPluralRuleIndex(number, status); in GetPluralRuleIndex()
|
/base/startup/init/test/moduletest/ |
D | service_watcher_moduleTest.cpp | 36 static void ServiceStatusChange(const char *key, const ServiceInfo *status) in ServiceStatusChange() argument 39 std::cout <<", ServiceStatus is: "<< status->status; in ServiceStatusChange() 40 std::cout <<", pid is: "<< status->pid << std::endl; in ServiceStatusChange() 49 auto status = GetServiceStatus(serviceName); variable 50 EXPECT_TRUE(status == "idle"); 58 auto status = GetServiceStatus(serviceName); variable 59 if (status == "running") { 62 } else if (status != "created" && status != "stopped") { 63 std::cout << serviceName << " in invalid status " << status << std::endl; 68 status = GetServiceStatus(serviceName); [all …]
|
/base/update/updateservice/services/firmware/upgrade/executor/src/ |
D | firmware_install_executor.cpp | 45 progress.status = UpgradeStatus::UPDATE_FAIL; in DoInstall() 55 progress.status = UpgradeStatus::INSTALLING; in DoInstall() 57 progress.status = UpgradeStatus::UPDATING; in DoInstall() 62 FirmwareTaskOperator().UpdateProgressByTaskId(tasks_.taskId, progress.status, progress.percent); in DoInstall() 64 … FirmwareComponentOperator().UpdateProgressByUrl(component.url, progress.status, progress.percent); in DoInstall() 69 progress.status = component.status; in DoInstall() 76 [=](const UpgradeStatus &status) { in DoInstall() 77 FIRMWARE_LOGI("update start status :%{public}d", CAST_INT(status)); in DoInstall() 79 EventId::EVENT_UPGRADE_START, status); in DoInstall() 100 component.versionId.c_str(), progress.status, progress.percent); in HandleInstallProgress() [all …]
|
/base/global/resource_management/interfaces/js/innerkits/core/src/ |
D | resource_manager_napi_utils.cpp | 100 …napi_status status = napi_get_value_string_utf8(env, argv[ARRAY_SUBCRIPTOR_ZERO], nullptr, 0, &len… in GetResNameOrPath() local 101 if (status != napi_ok) { in GetResNameOrPath() 106 … status = napi_get_value_string_utf8(env, argv[ARRAY_SUBCRIPTOR_ZERO], buf.data(), len + 1, &len); in GetResNameOrPath() 107 if (status != napi_ok) { in GetResNameOrPath() 121 napi_status status = napi_typeof(env, argv[ARRAY_SUBCRIPTOR_ZERO], &valuetype); in GetResId() local 122 if (status != napi_ok) { in GetResId() 131 status = napi_get_value_int32(env, argv[ARRAY_SUBCRIPTOR_ZERO], &resId); in GetResId() 132 if (status != napi_ok) { in GetResId() 165 … napi_status status = napi_create_array_with_length(env, dataContext.arrayValue_.size(), &result); in CreateJsArray() local 166 if (status != napi_ok) { in CreateJsArray() [all …]
|
/base/hiviewdfx/faultloggerd/test/funchook/ |
D | dfx_func_hook_unittest.cpp | 62 int status; variable 63 int ret = waitpid(pid, &status, 0); 64 printf("child ret with pid:%d status:%d\n", ret, status); 65 if (WIFEXITED(status)) { 66 int code = WEXITSTATUS(status); 94 int status; variable 95 int ret = waitpid(pid, &status, 0); 96 printf("child ret with pid:%d status:%d\n", ret, status); 97 if (WIFSIGNALED(status)) { 98 int signal = WTERMSIG(status);
|
/base/msdp/device_status/frameworks/js/napi/src/ |
D | devicestatus_event.cpp | 57 napi_status status = napi_ok; in On() local 64 status = napi_create_reference(env_, handler, 1, &onHandlerRef); in On() 65 if (status != napi_ok) { in On() 80 status = napi_create_reference(env_, handler, 1, &onHandlerRef); in On() 81 if (status != napi_ok) { in On() 107 napi_status status = napi_get_reference_value(env_, listener->onHandlerRef, &result); in Off() local 108 if (status != napi_ok) { in Off() 112 status = napi_strict_equals(env_, result, handler, &equal); in Off() 113 if (status != napi_ok) { in Off() 119 status = napi_delete_reference(env_, listener->onHandlerRef); in Off() [all …]
|
/base/powermgr/battery_lite/test/Interface_test/test/unittest/src/ |
D | batterymgr_interfaces_test.cpp | 54 BatteryChargeState status = GetChargingStatus(); variable 55 EXPECT_EQ ((status >= CHARGE_STATE_NONE && status <= CHARGE_STATE_BUTT), 1) 56 << "GetChargingStatus ret = " << status << endl; 67 BatteryHealthState status = GetHealthStatus(); variable 68 EXPECT_EQ ((status >= HEALTH_STATE_UNKNOWN && status <= HEALTH_STATE_BUTT), 1) 69 << "GetHealthStatus ret = " << status << endl; 80 BatteryPluggedType status = GetPluggedType(); variable 81 EXPECT_EQ ((status >= PLUGGED_TYPE_NONE && status <= PLUGGED_TYPE_BUTT), 1) 82 << "GetPluggedType ret = " << status << endl;
|
/base/notification/distributed_notification_service/services/distributed/src/ |
D | distributed_preferences_database.cpp | 70 …DistributedKv::Status status = kvDataManager_->GetSingleKvStore(options, appId, storeId, kvStore_); in GetKvStore() local 71 if (status != DistributedKv::Status::SUCCESS) { in GetKvStore() 72 ANS_LOGE("kvDataManager GetSingleKvStore failed ret = 0x%{public}x", status); in GetKvStore() 107 DistributedKv::Status status = kvStore_->Put(kvStoreKey, kvStoreValue); in PutToDistributedDB() local 109 if (status != DistributedKv::Status::SUCCESS) { in PutToDistributedDB() 110 ANS_LOGE("kvStore Put() failed ret = 0x%{public}x", status); in PutToDistributedDB() 131 DistributedKv::Status status = kvStore_->Get(kvStoreKey, kvStoreValue); in GetFromDistributedDB() local 133 if (status != DistributedKv::Status::SUCCESS) { in GetFromDistributedDB() 134 ANS_LOGE("kvStore Get() failed ret = 0x%{public}x", status); in GetFromDistributedDB() 154 DistributedKv::Status status = kvStore_->GetEntries(kvStoreKey, entries); in GetEntriesFromDistributedDB() local [all …]
|
/base/account/os_account/services/accountmgr/include/ |
D | account_state_machine.h | 40 explicit ExceptionAction(int status) : AccountStateAction(status) {} in ExceptionAction() argument 56 explicit UnboundAction(int status) : AccountStateAction(status) {} in UnboundAction() argument 72 explicit LoginAction(int status) : AccountStateAction(status) {} in LoginAction() argument 88 explicit LogoutAction(int status) : AccountStateAction(status) {} in LogoutAction() argument 104 explicit LogoffAction(int status) : AccountStateAction(status) {} in LogoffAction() argument
|
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/ |
D | n_val.cpp | 50 napi_status status = napi_is_array(env_, val_, &res); in IsArray() local 51 return make_tuple(status == napi_ok, res); in IsArray() 57 napi_status status = napi_get_value_string_utf8(env_, val_, nullptr, -1, &strLen); in ToUTF8String() local 58 if (status != napi_ok) { in ToUTF8String() 64 status = napi_get_value_string_utf8(env_, val_, str.get(), bufLen, &strLen); in ToUTF8String() 65 return make_tuple(status == napi_ok, move(str), strLen); in ToUTF8String() 72 napi_status status = napi_get_value_string_utf16(env_, val_, nullptr, -1, &strLen); in ToUTF16String() local 73 if (status != napi_ok) { in ToUTF16String() 78 status = napi_get_value_string_utf16(env_, val_, str.get(), strLen, nullptr); in ToUTF16String() 79 if (status != napi_ok) { in ToUTF16String() [all …]
|
/base/update/updater/test/unittest/updater_test/ |
D | updater_unittest.cpp | 75 UpdaterStatus status; variable 76 status = StartUpdaterProc(pkgManager, packagePath, 0, maxTemperature); 77 EXPECT_EQ(status, UPDATE_CORRUPT); 80 status = StartUpdaterProc(pkgManager, packagePath, 0, maxTemperature); 81 EXPECT_EQ(status, UPDATE_CORRUPT); 87 status = StartUpdaterProc(pkgManager, packagePath, 0, maxTemperature); 88 EXPECT_EQ(status, UPDATE_SUCCESS); 91 status = StartUpdaterProc(pkgManager, packagePath, 1, maxTemperature); 92 EXPECT_EQ(status, UPDATE_RETRY); 95 status = StartUpdaterProc(pkgManager, packagePath, 1, maxTemperature); [all …]
|
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/ |
D | js_input_method.cpp | 46 napi_status status = napi_generic_failure; in GetInputMethodProperty() local 50 return status; in GetInputMethodProperty() 54 status = JsUtils::GetValue(env, result, ctxt->packageName); in GetInputMethodProperty() 55 CHECK_RETURN(status == napi_ok, "get ctxt->packageName failed!", status); in GetInputMethodProperty() 58 status = JsUtils::GetValue(env, result, ctxt->methodId); in GetInputMethodProperty() 59 CHECK_RETURN(status == napi_ok, "get ctxt->methodId failed!", status); in GetInputMethodProperty() 63 status = JsUtils::GetValue(env, result, ctxt->packageName); in GetInputMethodProperty() 64 CHECK_RETURN(status == napi_ok, "get ctxt->packageName failed!", status); in GetInputMethodProperty() 68 status = JsUtils::GetValue(env, result, ctxt->methodId); in GetInputMethodProperty() 69 CHECK_RETURN(status == napi_ok, "get ctxt->methodId failed!", status); in GetInputMethodProperty() [all …]
|