Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 1274) sorted by relevance

12345678910>>...51

/base/global/i18n_lite/frameworks/i18n/test/unittest/lite/common/
Di18n_test.cpp224 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/global/i18n/interfaces/js/kits/src/
Di18n_normalizer_addon.cpp53 …napi_status status = napi_define_class(env, "Normalizer", NAPI_AUTO_LENGTH, I18nNormalizerConstruc… in InitI18nNormalizer() local
55 if (status != napi_ok) { in InitI18nNormalizer()
65 status = napi_create_reference(env, constructor, 1, g_normalizerConstructor); in InitI18nNormalizer()
66 if (status != napi_ok) { in InitI18nNormalizer()
79 …napi_status status = napi_define_class(env, "I18nNormalizer", NAPI_AUTO_LENGTH, JSUtils::DefaultCo… in InitNormalizer() local
81 if (status != napi_ok) { in InitNormalizer()
85 status = napi_set_named_property(env, exports, "Normalizer", constructor); in InitNormalizer()
86 if (status != napi_ok) { in InitNormalizer()
99 napi_status status = napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in I18nNormalizerConstructor() local
100 if (status != napi_ok) { in I18nNormalizerConstructor()
[all …]
Dsystem_locale_manager_addon.cpp42 napi_status status = napi_ok; in InitSystemLocaleManager() local
50status = napi_define_class(env, "SystemLocaleManager", NAPI_AUTO_LENGTH, SystemLocaleManagerConstr… in InitSystemLocaleManager()
52 if (status != napi_ok) { in InitSystemLocaleManager()
57 status = napi_set_named_property(env, exports, "SystemLocaleManager", constructor); in InitSystemLocaleManager()
58 if (status != napi_ok) { in InitSystemLocaleManager()
69 napi_status status = napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, &data); in SystemLocaleManagerConstructor() local
70 if (status != napi_ok) { in SystemLocaleManagerConstructor()
74status = napi_wrap(env, thisVar, reinterpret_cast<void *>(obj.get()), SystemLocaleManagerAddon::De… in SystemLocaleManagerConstructor()
76 if (status != napi_ok) { in SystemLocaleManagerConstructor()
91 napi_status status = napi_get_global(env, &global); in InitSystemLocaleManagerContext() local
[all …]
Dholiday_manager_addon.cpp43 napi_status status = napi_ok; in InitHolidayManager() local
50status = napi_define_class(env, "HolidayManager", NAPI_AUTO_LENGTH, HolidayManagerConstructor, nul… in InitHolidayManager()
52 if (status != napi_ok) { in InitHolidayManager()
57 status = napi_set_named_property(env, exports, "HolidayManager", constructor); in InitHolidayManager()
58 if (status != napi_ok) { in InitHolidayManager()
71 napi_status status = napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in HolidayManagerConstructor() local
72 if (status != napi_ok) { in HolidayManagerConstructor()
85 status = in HolidayManagerConstructor()
87 if (status != napi_ok) { in HolidayManagerConstructor()
107 napi_status status = napi_get_global(env, &global); in InitHolidayManagerContext() local
[all …]
Di18n_timezone_addon.cpp62 …napi_status status = napi_define_class(env, "TimeZone", NAPI_AUTO_LENGTH, I18nTimeZoneConstructor,… in InitI18nTimeZone() local
64 if (status != napi_ok) { in InitI18nTimeZone()
74 status = napi_create_reference(env, constructor, 1, g_timezoneConstructor); in InitI18nTimeZone()
75 if (status != napi_ok) { in InitI18nTimeZone()
92 …napi_status status = napi_define_class(env, "I18nTimeZone", NAPI_AUTO_LENGTH, JSUtils::DefaultCons… in InitTimeZone() local
94 if (status != napi_ok) { in InitTimeZone()
98 status = napi_set_named_property(env, exports, "TimeZone", constructor); in InitTimeZone()
99 if (status != napi_ok) { in InitTimeZone()
112 napi_status status = napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in I18nTimeZoneConstructor() local
113 if (status != napi_ok) { in I18nTimeZoneConstructor()
[all …]
Di18n_addon.cpp75 …napi_status status = napi_define_class(env, "I18NUtil", NAPI_AUTO_LENGTH, JSUtils::DefaultConstruc… in InitI18nUtil() local
77 if (status != napi_ok) { in InitI18nUtil()
82 status = napi_set_named_property(env, exports, "I18NUtil", constructor); in InitI18nUtil()
83 if (status != napi_ok) { in InitI18nUtil()
127 … napi_status status = napi_get_value_string_utf8(env, option, styleBuf.data(), len + 1, &len); in GetOptionMap() local
128 if (status != napi_ok) { in GetOptionMap()
142 napi_status status = napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in UnitConvert() local
143 if (status != napi_ok) { in UnitConvert()
161 status = napi_get_value_string_utf8(env, argv[3], localeBuf.data(), len + 1, &len); in UnitConvert()
162 if (status != napi_ok) { in UnitConvert()
[all …]
Di18n_calendar_addon.cpp106 …napi_status status = napi_define_class(env, "Calendar", NAPI_AUTO_LENGTH, I18nCalendarConstructor,… in InitI18nCalendar() local
108 if (status != napi_ok) { in InitI18nCalendar()
118 status = napi_create_reference(env, constructor, 1, g_constructor); in InitI18nCalendar()
119 if (status != napi_ok) { in InitI18nCalendar()
130 …napi_status status = napi_define_class(env, "I18nCalendar", NAPI_AUTO_LENGTH, JSUtils::DefaultCons… in InitCalendar() local
132 if (status != napi_ok) { in InitCalendar()
136 status = napi_set_named_property(env, exports, "Calendar", constructor); in InitCalendar()
137 if (status != napi_ok) { in InitCalendar()
154 napi_status status = napi_get_reference_value(env, *g_constructor, &constructor); in GetCalendar() local
155 if (status != napi_ok) { in GetCalendar()
[all …]
Di18n_unicode_addon.cpp52 …napi_status status = napi_define_class(env, "Unicode", NAPI_AUTO_LENGTH, JSUtils::DefaultConstruct… in InitI18nUnicode() local
54 if (status != napi_ok) { in InitI18nUnicode()
59 status = napi_set_named_property(env, exports, "Unicode", constructor); in InitI18nUnicode()
60 if (status != napi_ok) { in InitI18nUnicode()
69 napi_status status = napi_ok; in InitCharacter() local
83 status = napi_define_class(env, "Character", NAPI_AUTO_LENGTH, ObjectConstructor, nullptr, in InitCharacter()
85 if (status != napi_ok) { in InitCharacter()
90 status = napi_set_named_property(env, exports, "Character", constructor); in InitCharacter()
91 if (status != napi_ok) { in InitCharacter()
104 napi_status status = napi_get_cb_info(env, info, &argc, argv, &thisVar, &data); in IsDigitAddon() local
[all …]
/base/account/os_account/services/accountmgr/src/
Daccount_data_storage.cpp50 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/security/dlp_permission_service/services/dlp_permission/sa/storage/src/
Ddlp_kv_data_storage.cpp53 OHOS::DistributedKv::Status status = func(); in TryTwice() local
54 if (status == OHOS::DistributedKv::Status::IPC_ERROR) { in TryTwice()
55 status = func(); in TryTwice()
56 … DLP_LOG_ERROR(LABEL, "distribute database ipc error and try again, status = %{public}d", status); in TryTwice()
67 OHOS::DistributedKv::Status status = DistributedKv::Status::SUCCESS; in LoadAllData() local
69 TryTwice([this, &status, &allEntries] { in LoadAllData()
70 status = GetEntries("", allEntries); in LoadAllData()
71 return status; in LoadAllData()
73 if (status != OHOS::DistributedKv::Status::SUCCESS) { in LoadAllData()
74 DLP_LOG_ERROR(LABEL, "get entries error: %{public}d", status); in LoadAllData()
[all …]
/base/global/i18n/frameworks/intl/src/
Di18n_calendar.cpp44 UErrorCode status = U_ZERO_ERROR; in I18nCalendar() local
45 icu::Locale tempLocale = icu::Locale::forLanguageTag(localeTag, status); in I18nCalendar()
46 if (status != U_ZERO_ERROR) { in I18nCalendar()
47 calendar_ = new icu::GregorianCalendar(status); in I18nCalendar()
48 if (!U_SUCCESS(status)) { in I18nCalendar()
56 calendar_ = icu::Calendar::createInstance(tempLocale, status); in I18nCalendar()
57 if (status != U_ZERO_ERROR) { in I18nCalendar()
67 UErrorCode status = U_ZERO_ERROR; in I18nCalendar() local
68 icu::Locale tempLocale = icu::Locale::forLanguageTag(localeTag, status); in I18nCalendar()
69 if (status != U_ZERO_ERROR) { in I18nCalendar()
[all …]
Dindex_util.cpp29 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 …]
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwindstack/
Dpid_utils.cpp41 int status; in Exited() local
42 pid_t waitPid = waitpid(pid, &status, WNOHANG); in Exited()
47 if (WIFEXITED(status)) { in Exited()
48 LOGE("%d died: Process exited with code %d", pid, WEXITSTATUS(status)); in Exited()
49 } else if (WIFSIGNALED(status)) { in Exited()
50 LOGE("%d died: Process exited due to signal %d", pid, WTERMSIG(status)); in Exited()
117 PidRunEnum status = PID_RUN_KEEP_GOING; in WaitForPidState() local
119 time(nullptr) - startTime < MAX_WAIT_TIME_SECONDS && status == PID_RUN_KEEP_GOING;) { in WaitForPidState()
121 status = stateCheckFunc(); in WaitForPidState()
122 if (status == PID_RUN_PASS) { in WaitForPidState()
[all …]
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/
Dmbedtls_ec_adapter.c161 int32_t status; in CalTmpParaX() local
176status = mbedtls_mpi_read_binary(&paraBnA, g_hash2pointParas[PARAM_A_INDEX], BYTE_LENGTH_CURVE_255… in CalTmpParaX()
177 LOG_AND_GOTO_CLEANUP_IF_FAIL(status, "CalTmpParaX error1"); in CalTmpParaX()
179status = mbedtls_mpi_read_binary(&paraBnU, g_hash2pointParas[PARAM_U_INDEX], BYTE_LENGTH_CURVE_255… in CalTmpParaX()
180 LOG_AND_GOTO_CLEANUP_IF_FAIL(status, "CalTmpParaX error2"); in CalTmpParaX()
182 status = mbedtls_mpi_copy(&tmpBnB, tmpX); in CalTmpParaX()
183 LOG_AND_GOTO_CLEANUP_IF_FAIL(status, "CalTmpParaX error3"); in CalTmpParaX()
186 status = mbedtls_mpi_exp_mod(&tmpBnE, &tmpBnB, &paraBnU, modP, NULL); in CalTmpParaX()
187 LOG_AND_GOTO_CLEANUP_IF_FAIL(status, "CalTmpParaX error4"); // b^2 in CalTmpParaX()
189 status = mbedtls_mpi_mul_mpi(&tmpBnC, &tmpBnE, &tmpBnB); in CalTmpParaX()
[all …]
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dweb_download_delegate.cpp58 napi_status status; in DownloadBeforeStart() local
64 status = napi_get_reference_value(env_, download_before_start_callback_, &callbackFunc); in DownloadBeforeStart()
65 if (status != napi_ok || callbackFunc == nullptr) { in DownloadBeforeStart()
82status = napi_call_function(env_, nullptr, callbackFunc, paramCount, &webDownloadItemValue, &resul… in DownloadBeforeStart()
83 if (status != napi_status::napi_ok) { in DownloadBeforeStart()
97 napi_status status; in DownloadDidUpdate() local
103 status = napi_get_reference_value(env_, download_did_update_callback_, &callbackFunc); in DownloadDidUpdate()
104 if (status != napi_ok || callbackFunc == nullptr) { in DownloadDidUpdate()
121status = napi_call_function(env_, nullptr, callbackFunc, paramCount, &webDownloadItemValue, &resul… in DownloadDidUpdate()
122 if (status != napi_status::napi_ok) { in DownloadDidUpdate()
[all …]
/base/global/i18n_lite/frameworks/i18n/src/
Dnumber_format.cpp21 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 …]
Dmeasure_format_impl.cpp22 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 …]
Dmeasure_format.cpp20 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 …]
/base/startup/init/test/moduletest/
Dservice_watcher_moduleTest.cpp36 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/notification/distributed_notification_service/services/distributed/src/
Ddistributed_preferences_database.cpp70 …DistributedKv::Status status = kvDataManager_->GetSingleKvStore(options, appId, storeId, kvStore_); in GetKvStore() local
71 if (status != DistributedKv::Status::SUCCESS) { in GetKvStore()
72 ANS_LOGE("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/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/
Dn_val.cpp50 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/updateservice/services/firmware/upgrade/executor/src/
Dfirmware_install_executor.cpp44 progress.status = UpgradeStatus::UPDATE_FAIL; in DoInstall()
54 progress.status = UpgradeStatus::INSTALLING; in DoInstall()
56 progress.status = UpgradeStatus::UPDATING; in DoInstall()
61 FirmwareTaskOperator().UpdateProgressByTaskId(tasks_.taskId, progress.status, progress.percent); in DoInstall()
63 … FirmwareComponentOperator().UpdateProgressByUrl(component.url, progress.status, progress.percent); in DoInstall()
68 progress.status = component.status; in DoInstall()
75 [=](const UpgradeStatus &status) { in DoInstall()
76 FIRMWARE_LOGI("update start status :%{public}d", CAST_INT(status)); in DoInstall()
78 EventId::EVENT_UPGRADE_START, status); in DoInstall()
99 component.versionId.c_str(), progress.status, progress.percent); in HandleInstallProgress()
[all …]
/base/powermgr/battery_lite/test/Interface_test/test/unittest/src/
Dbatterymgr_interfaces_test.cpp54 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/hiviewdfx/faultloggerd/test/funchook/
Ddfx_func_hook_unittest.cpp62 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/account/os_account/services/accountmgr/include/
Daccount_state_machine.h40 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

12345678910>>...51