Home
last modified time | relevance | path

Searched refs:results (Results 1 – 25 of 43) sorted by relevance

12

/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_write.cpp69 napi_value results[RESULT_SIZE] = { 0 }; in Write() local
71 results[ERR_INDEX] = NapiUtil::CreateNull(env); in Write()
72 results[VALUE_INDEX] = NapiUtil::CreateInt32(env, asyncContext->result); in Write()
75 results[ERR_INDEX] = BuildErrorByResult(env, asyncContext->result); in Write()
77 results[ERR_INDEX] = NapiUtil::CreateObject(env, "code", in Write()
80 results[VALUE_INDEX] = NapiUtil::CreateNull(env); in Write()
85 napi_resolve_deferred(env, asyncContext->deferred, results[VALUE_INDEX]); in Write()
87 napi_reject_deferred(env, asyncContext->deferred, results[ERR_INDEX]); in Write()
93 napi_call_function(env, nullptr, callback, RESULT_SIZE, results, &retValue); in Write()
/base/telephony/cellular_call/services/common/src/
Dmmi_code_utils.cpp137 std::smatch results; in RegexMatchMmi() local
138 if (regex_match(analyseString, results, pattern)) { in RegexMatchMmi()
159 mmiData_.fullString = results.str(fullString); in RegexMatchMmi()
160 mmiData_.actionString = results.str(action); in RegexMatchMmi()
161 mmiData_.serviceCode = results.str(serviceCode); in RegexMatchMmi()
162 mmiData_.serviceInfoA = results.str(sia); in RegexMatchMmi()
163 mmiData_.serviceInfoB = results.str(sib); in RegexMatchMmi()
164 mmiData_.serviceInfoC = results.str(sic); in RegexMatchMmi()
165 mmiData_.pwdString = results.str(pwdConfirm); in RegexMatchMmi()
166 mmiData_.dialString = results.str(dialingNumber); in RegexMatchMmi()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_adapter.cpp44 napi_value results[RET_SIZE] = {0}; in Write() local
48 NapiHiSysEventUtil::CreateNull(env, results[ERR_INDEX]); in Write()
49 …NapiHiSysEventUtil::CreateInt32Value(env, eventAsyncContext->eventWroteResult, results[VAL_INDEX]); in Write()
51 NapiHiSysEventUtil::CreateNull(env, results[VAL_INDEX]); in Write()
54 results[ERR_INDEX] = NapiHiSysEventUtil::CreateErrorByRet(env, errorCode); in Write()
57 … isNormalWrote ? napi_resolve_deferred(env, eventAsyncContext->deferred, results[VAL_INDEX]) : in Write()
58 napi_reject_deferred(env, eventAsyncContext->deferred, results[ERR_INDEX]); in Write()
63 napi_call_function(env, nullptr, callback, RET_SIZE, results, &retValue); in Write()
/base/security/access_token/tools/accesstoken/src/
Datm_command.cpp112 ErrCode results = ERR_OK; in RunAsDumpCommand() local
126 results = RunAsCommandError(); in RunAsDumpCommand()
132 results = RunAsCommandMissingOptionArgument(); in RunAsDumpCommand()
136 results = RunAsCommandExistentOptionArgument(option, type, tokenId, permissionName); in RunAsDumpCommand()
139 if (results != ERR_OK) { in RunAsDumpCommand()
142 results = RunCommandByOperationType(type, tokenId, permissionName); in RunAsDumpCommand()
144 return results; in RunAsDumpCommand()
/base/time/time_service/framework/js/napi/common/src/
Dnapi_utils.cpp84 napi_value results[2] = { 0 }; in SetTimerCallback() local
93 napi_set_named_property(env, results[0], "message", str); in SetTimerCallback()
94 results[1] = result; in SetTimerCallback()
95 …NAPI_CALL_RETURN_VOID(env, napi_call_function(env, undefined, callback, ARGC_TWO, &results[0], &re… in SetTimerCallback()
167 napi_value results[2] = { 0 }; in SetCallback() local
168 results[0] = GetCallbackErrorValue(env, errorCode, message); in SetCallback()
169 results[1] = result; in SetCallback()
170 …NAPI_CALL_RETURN_VOID(env, napi_call_function(env, undefined, callback, ARGC_TWO, &results[0], &re… in SetCallback()
/base/security/access_token/services/privacymanager/test/unittest/
Dpermission_record_db_test.cpp484 std::vector<GenericValues> results; variable
487 …ermissionUsedRecordDb::GetInstance().FindByConditions(type, andConditions, orConditions, results));
492 …rmissionUsedRecordDb::GetInstance().FindByConditions(type, andConditions1, orConditions, results));
496 …rmissionUsedRecordDb::GetInstance().FindByConditions(type, andConditions2, orConditions, results));
500 …rmissionUsedRecordDb::GetInstance().FindByConditions(type, andConditions3, orConditions, results));
515 std::vector<GenericValues> results; variable
516 ASSERT_EQ(0, PermissionUsedRecordDb::GetInstance().GetDistinctValue(type, condition, results));
542 std::vector<GenericValues> results; variable
543 ASSERT_EQ(0, PermissionUsedRecordDb::GetInstance().GetDistinctValue(type, condition, results));
544 results.clear();
[all …]
/base/notification/distributed_notification_service/test/fuzztest/notificationuserinputannex_fuzzer/
Dnotificationuserinputannex_fuzzer.cpp34 std::map<std::string, std::shared_ptr<Uri>> results; in DoSomethingInterestingWithMyAPI() local
35 notificationUserInput.AddMimeInputToWant(userInput, want, results); in DoSomethingInterestingWithMyAPI()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/
Dget_hardware_info.cpp159 std::vector<future<uint64_t>> results; in GetHardwareUsage() local
165 results.emplace_back(std::move(future)); in GetHardwareUsage()
168 for (auto &tempResult : results) { in GetHardwareUsage()
/base/powermgr/battery_statistics/frameworks/js/napi/src/
Dasync_callback_info.cpp24 void AsyncCallbackInfo::CallFunction(napi_env& env, napi_value results) in CallFunction() argument
32 napi_value argv[] = {error_.GetNapiError(env), results}; in CallFunction()
/base/powermgr/power_manager/frameworks/napi/utils/
Dasync_callback_info.cpp24 void AsyncCallbackInfo::CallFunction(napi_env& env, napi_value results) in CallFunction() argument
32 napi_value argv[] = {error_.GetNapiError(env), results}; in CallFunction()
Dasync_callback_info.h32 void CallFunction(napi_env& env, napi_value results);
/base/security/access_token/services/privacymanager/include/database/
Dpermission_used_record_db.h46 const GenericValues& orConditions, std::vector<GenericValues>& results);
51 …GetDistinctValue(DataType type, const std::string& condition, std::vector<GenericValues>& results);
/base/useriam/user_auth_framework/interfaces/inner_api/
Dco_auth_client_callback.h35 virtual int32_t OnGetProperty(const Attributes &conditions, Attributes &results) = 0;
/base/security/access_token/services/accesstokenmanager/main/cpp/include/database/
Ddata_storage.h46 virtual int Find(const DataType type, std::vector<GenericValues>& results) = 0;
Dsqlite_storage.h48 int Find(const DataType type, std::vector<GenericValues>& results) override;
/base/useriam/user_auth_framework/test/unittest/inner_api/mocks/
Dmock_executor_register_callback.h36 MOCK_METHOD2(OnGetProperty, int32_t(const Attributes &conditions, Attributes &results));
/base/powermgr/battery_statistics/frameworks/js/napi/include/
Dasync_callback_info.h33 void CallFunction(napi_env& env, napi_value results);
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/
Dfeature_analysis.cpp366 vector<string> results; in ComposeParam() local
374 results.emplace_back(value); in ComposeParam()
376 results.emplace_back(iter->second.value); in ComposeParam()
382 if (!results.empty()) { in ComposeParam()
391 string result = StringUtil::VectorToString(results, false, tag); in ComposeParam()
/base/useriam/user_auth_framework/common/executors/src/framework/
Dframework_executor_callback.cpp135 int32_t FrameworkExecutorCallback::OnGetProperty(const Attributes &conditions, Attributes &results) in OnGetProperty() argument
138 auto values = Common::MakeShared<Attributes>(results.Serialize()); in OnGetProperty()
141 results = std::move(*values); in OnGetProperty()
/base/useriam/user_auth_framework/common/executors/include/framework/
Dframework_executor_callback.h45 int32_t OnGetProperty(const Attributes &conditions, Attributes &results) override;
/base/hiviewdfx/hilog/services/hilogd/include/
Dlog_persister.h56 static int Query(std::list<LogPersistQueryResult> &results);
/base/useriam/user_auth_framework/test/fuzztest/clients/coauthclient_fuzzer/
Dco_auth_client_fuzzer.cpp69 int32_t OnGetProperty(const Attributes &conditions, Attributes &results) in OnGetProperty() argument
73 static_cast<void>(results); in OnGetProperty()
/base/security/access_token/services/privacymanager/src/database/
Dpermission_used_record_db.cpp137 const GenericValues& orConditions, std::vector<GenericValues>& results) in FindByConditions() argument
163 results.emplace_back(value); in FindByConditions()
169 const std::string& condition, std::vector<GenericValues>& results) in GetDistinctValue() argument
184 results.emplace_back(value); in GetDistinctValue()
/base/useriam/user_auth_framework/test/unittest/inner_api/src/
Dexecutor_callback_service_test.cpp202 [&testCode](const Attributes &conditions, Attributes &results) { in __anon2241d0fa0502() argument
203 EXPECT_TRUE(results.SetInt32Value(Attributes::ATTR_RESULT_CODE, testCode)); in __anon2241d0fa0502()
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
Dreminder_common.cpp594 napi_value results[ASYNC_CALLBACK_PARAM_NUM] = {nullptr}; in SetCallback() local
596 results[0] = NotificationNapi::Common::NapiGetNull(env); in SetCallback()
599 results[0] = GetCallbackErrorValue(env, errCode, errMsg); in SetCallback()
601 results[1] = result; in SetCallback()
603 … napi_call_function(env, undefined, callback, ASYNC_CALLBACK_PARAM_NUM, &results[0], &resultout)); in SetCallback()

12