/ohos5.0/foundation/ability/dmsfwk/interfaces/kits/napi/continuation_manager/ |
H A D | js_device_selection_listener.cpp | 67 void JsDeviceSelectionListener::CallJsMethod(const std::string& methodName, in CallJsMethod() argument 70 HILOGD("methodName = %{public}s", methodName.c_str()); in CallJsMethod() 77 ([this, methodName, continuationResults] in CallJsMethod() 85 CallJsMethodInner(methodName, continuationResults); in CallJsMethod() 99 auto it = jsCallBackMap_.find(methodName); in CallJsMethodInner() 104 napi_value method = jsCallBackMap_[methodName]->GetNapiValue(); in CallJsMethodInner() 115 HILOGD("methodName = %{public}s", methodName.c_str()); in CallJsMethod() 122 ([this, methodName, deviceIds] in CallJsMethod() 129 CallJsMethodInner(methodName, deviceIds); in CallJsMethod() 143 auto it = jsCallBackMap_.find(methodName); in CallJsMethodInner() [all …]
|
H A D | js_device_selection_listener.h | 39 …void CallJsMethod(const std::string& methodName, const std::vector<ContinuationResult>& continuati… 40 void CallJsMethod(const std::string& methodName, const std::vector<std::string>& deviceIds); 41 …void CallJsMethodInner(const std::string& methodName, const std::vector<ContinuationResult>& conti… 42 … void CallJsMethodInner(const std::string& methodName, const std::vector<std::string>& deviceIds);
|
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/domain_account/mock/ |
H A D | mock_musl.cpp | 238 void *dlsym(void *__restrict, const char * methodName) in dlsym() argument 240 if (strcmp(methodName, "AddServerConfig") == 0) { in dlsym() 249 if (strcmp(methodName, "Auth") == 0) { in dlsym() 252 if (strcmp(methodName, "AuthWithPopup") == 0) { in dlsym() 255 if (strcmp(methodName, "AuthWithToken") == 0) { in dlsym() 258 if (strcmp(methodName, "GetAccountInfo") == 0) { in dlsym() 264 if (strcmp(methodName, "BindAccount") == 0) { in dlsym() 267 if (strcmp(methodName, "UnbindAccount") == 0) { in dlsym() 273 if (strcmp(methodName, "GetAccessToken") == 0) { in dlsym() 279 if (strcmp(methodName, "SetAccountPolicy") == 0) { in dlsym() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/ |
H A D | application_state_change_callback.cpp | 30 const std::string &methodName, const std::set<std::shared_ptr<NativeReference>> callbacks) in CallJsMethodInnerCommon() argument 45 napi_get_named_property(env_, obj, methodName.data(), &method); in CallJsMethodInnerCommon() 47 TAG_LOGE(AAFwkTag::APPKIT, "Failed to get %{public}s from object", methodName.data()); in CallJsMethodInnerCommon() 54 void JsApplicationStateChangeCallback::CallJsMethod(const std::string &methodName) in CallJsMethod() argument 56 TAG_LOGD(AAFwkTag::APPKIT, "MethodName = %{public}s", methodName.c_str()); in CallJsMethod() 59 [thisWeakPtr, methodName, callbacks = callbacks_] in CallJsMethod() 63 jsCallback->CallJsMethodInnerCommon(methodName, callbacks); in CallJsMethod() 69 NapiAsyncTask::Schedule("JsApplicationStateChangeCallback::CallJsMethod:" + methodName, in CallJsMethod()
|
H A D | ability_lifecycle_callback.cpp | 30 void JsAbilityLifecycleCallback::CallJsMethodInnerCommon(const std::string &methodName, in CallJsMethodInnerCommon() argument 59 napi_get_named_property(env_, obj, methodName.data(), &method); in CallJsMethodInnerCommon() 62 methodName.data()); in CallJsMethodInnerCommon() 77 const std::string &methodName, const std::shared_ptr<NativeReference> &ability) in CallJsMethod() argument 79 TAG_LOGD(AAFwkTag::APPKIT, "methodName = %{public}s", methodName.c_str()); in CallJsMethod() 85 CallJsMethodInnerCommon(methodName, ability, nullptr, callbacks_); in CallJsMethod() 86 CallJsMethodInnerCommon(methodName, ability, nullptr, callbacksSync_); in CallJsMethod() 89 void JsAbilityLifecycleCallback::CallWindowStageJsMethod(const std::string &methodName, in CallWindowStageJsMethod() argument 92 TAG_LOGD(AAFwkTag::APPKIT, "methodName = %{public}s", methodName.c_str()); in CallWindowStageJsMethod() 98 CallJsMethodInnerCommon(methodName, ability, windowStage, callbacks_); in CallWindowStageJsMethod() [all …]
|
H A D | environment_callback.cpp | 32 void JsEnvironmentCallback::CallConfigurationUpdatedInner(const std::string &methodName, in CallConfigurationUpdatedInner() argument 35 TAG_LOGD(AAFwkTag::APPKIT, "methodName = %{public}s", methodName.c_str()); in CallConfigurationUpdatedInner() 49 napi_get_named_property(env_, obj, methodName.data(), &method); in CallConfigurationUpdatedInner() 52 methodName.data()); in CallConfigurationUpdatedInner() 80 void JsEnvironmentCallback::CallMemoryLevelInner(const std::string &methodName, const int level, in CallMemoryLevelInner() argument 83 TAG_LOGD(AAFwkTag::APPKIT, "methodName = %{public}s", methodName.c_str()); in CallMemoryLevelInner() 97 napi_get_named_property(env_, obj, methodName.data(), &method); in CallMemoryLevelInner() 99 TAG_LOGE(AAFwkTag::APPKIT, "Failed to get %{public}s from object", methodName.data()); in CallMemoryLevelInner()
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/js_mission_manager/ |
H A D | js_mission_listener.cpp | 91 void JsMissionListener::CallJsMethod(const std::string &methodName, int32_t missionId) in CallJsMethod() argument 93 TAG_LOGD(AAFwkTag::MISSION, "methodName:%{public}s", methodName.c_str()); in CallJsMethod() 105 jsMissionListener->CallJsMethodInner(methodName, missionId); in CallJsMethod() 110 NapiAsyncTask::Schedule("JsMissionListener::CallJsMethod:" + methodName, in CallJsMethod() 114 void JsMissionListener::CallJsMethodInner(const std::string &methodName, int32_t missionId) in CallJsMethodInner() argument 121 CallJsFunction(obj, methodName.c_str(), argv, ARGC_ONE); in CallJsMethodInner() 127 CallJsFunction(obj, methodName.c_str(), argv, ARGC_ONE); in CallJsMethodInner() 132 napi_value obj, const char* methodName, napi_value *argv, size_t argc) in CallJsFunction() argument 134 TAG_LOGI(AAFwkTag::MISSION, "method:%{public}s", methodName); in CallJsFunction() 141 napi_get_named_property(env_, obj, methodName, &method); in CallJsFunction() [all …]
|
H A D | js_mission_listener.h | 54 void CallJsMethod(const std::string &methodName, int32_t missionId); 55 void CallJsMethodInner(const std::string &methodName, int32_t missionId); 56 void CallJsFunction(napi_value value, const char* methodName, napi_value *argv, size_t argc);
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/auto_fill_manager/ |
H A D | js_auto_save_request_callback.cpp | 66 void JsAutoSaveRequestCallback::JSCallFunction(const std::string &methodName) in JSCallFunction() argument 70 [thisPtr, methodName](napi_env env, NapiAsyncTask &task, int32_t status) { in JSCallFunction() 72 thisPtr->JSCallFunctionWorker(methodName); in JSCallFunction() 76 NapiAsyncTask::Schedule("JsAutoSaveRequestCallback::JSCallFunction:" + methodName, in JSCallFunction() 81 void JsAutoSaveRequestCallback::JSCallFunctionWorker(const std::string &methodName) in JSCallFunctionWorker() argument 95 if (napi_get_named_property(env_, obj, methodName.c_str(), &funcObject) != napi_ok) { in JSCallFunctionWorker()
|
/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/ast/ |
H A D | ast_fd_type.cpp | 186 std::string methodName = StringHelper::Format("Write%s", ToString().c_str()); in RegisterWriteMethod() local 189 … methods.emplace(methodName, std::bind(&ASTFdType::EmitCWriteMethods, this, _1, _2, _3, _4)); in RegisterWriteMethod() 192 … methods.emplace(methodName, std::bind(&ASTFdType::EmitCppWriteMethods, this, _1, _2, _3, _4)); in RegisterWriteMethod() 202 std::string methodName = StringHelper::Format("Read%s", ToString().c_str()); in RegisterReadMethod() local 205 … methods.emplace(methodName, std::bind(&ASTFdType::EmitCReadMethods, this, _1, _2, _3, _4)); in RegisterReadMethod() 208 … methods.emplace(methodName, std::bind(&ASTFdType::EmitCppReadMethods, this, _1, _2, _3, _4)); in RegisterReadMethod() 218 …std::string methodName = StringHelper::Format("%sWrite%s", methodPrefix.c_str(), ToString().c_str(… in EmitCWriteMethods() local 223 …sb.Append(prefix).AppendFormat("static bool %s(struct HdfSBuf *data, int fd)\n", methodName.c_str(… in EmitCWriteMethods() 240 …std::string methodName = StringHelper::Format("%sRead%s", methodPrefix.c_str(), ToString().c_str()… in EmitCReadMethods() local 286 …sb.Append(prefix).AppendFormat("static bool %s(MessageParcel &data, int fd)\n", methodName.c_str()… in EmitCppWriteMethods() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ability_runtime/ |
H A D | cj_ui_ability.cpp | 150 std::string methodName = "OnStart"; in OnStart() local 151 AddLifecycleEventBeforeCall(FreezeUtil::TimeoutState::FOREGROUND, methodName); in OnStart() 153 AddLifecycleEventAfterCall(FreezeUtil::TimeoutState::FOREGROUND, methodName); in OnStart() 165 auto entry = std::string("CJUIAbility::") + methodName + "; the " + methodName + " begin"; in AddLifecycleEventBeforeCall() 172 auto entry = std::string("CJUIAbility::") + methodName + "; the " + methodName + " end."; in AddLifecycleEventAfterCall() 256 std::string methodName = "OnSceneCreated"; in OnSceneCreated() local 339 std::string methodName = "OnForeground"; in CallOnForegroundFunc() local 342 AddLifecycleEventAfterCall(FreezeUtil::TimeoutState::FOREGROUND, methodName); in CallOnForegroundFunc() 364 std::string methodName = "OnBackground"; in OnBackground() local 367 AddLifecycleEventAfterCall(FreezeUtil::TimeoutState::BACKGROUND, methodName); in OnBackground() [all …]
|
H A D | js_ability.cpp | 255 std::string methodName = "OnStart"; in OnStart() local 256 AddLifecycleEventBeforeJSCall(FreezeUtil::TimeoutState::FOREGROUND, methodName); in OnStart() 258 AddLifecycleEventAfterJSCall(FreezeUtil::TimeoutState::FOREGROUND, methodName); in OnStart() 275 auto entry = std::string("JsAbility::") + methodName + "; the " + methodName + " begin"; in AddLifecycleEventBeforeJSCall() 282 auto entry = std::string("JsAbility::") + methodName + "; the " + methodName + " end"; in AddLifecycleEventAfterJSCall() 405 std::string methodName = "OnSceneCreated"; in OnSceneCreated() local 505 std::string methodName = "OnForeground"; in OnForeground() local 527 std::string methodName = "OnBackground"; in OnBackground() local 926 std::string methodName = "OnNewWant"; in OnNewWant() local 1122 std::vector<std::string> &info, const std::string &methodName) const in AddDumpInfo() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/mission_manager/ |
H A D | js_mission_listener.cpp | 80 void JsMissionListener::CallJsMethod(const std::string &methodName, int32_t missionId) in CallJsMethod() argument 82 TAG_LOGI(AAFwkTag::MISSION, "methodName: %{public}s", methodName.c_str()); in CallJsMethod() 91 … ([jsMissionListener, methodName, missionId](napi_env env, NapiAsyncTask &task, int32_t status) { in CallJsMethod() 94 jsMissionListener->CallJsMethodInner(methodName, missionId); in CallJsMethod() 99 NapiAsyncTask::Schedule("JsMissionListener::CallJsMethod:" + methodName, in CallJsMethod() 103 void JsMissionListener::CallJsMethodInner(const std::string &methodName, int32_t missionId) in CallJsMethodInner() argument 113 napi_get_named_property(env_, obj, methodName.c_str(), &method); in CallJsMethodInner() 116 TAG_LOGE(AAFwkTag::MISSION, "Failed to get %{public}s", methodName.c_str()); in CallJsMethodInner()
|
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/type/ |
H A D | hdi_fd_type_emitter.cpp | 186 …std::string methodName = StringHelper::Format("%sWrite%s", methodPrefix.c_str(), typeName_.c_str()… in EmitCWriteMethods() local 191 …sb.Append(prefix).AppendFormat("static bool %s(struct HdfSBuf *data, int fd)\n", methodName.c_str(… in EmitCWriteMethods() 204 methods.emplace(methodName, sb.ToString()); in EmitCWriteMethods() 211 …std::string methodName = StringHelper::Format("%sRead%s", methodPrefix.c_str(), typeName_.c_str()); in EmitCReadMethods() local 248 methods.emplace(methodName, sb.ToString()); in EmitCReadMethods() 261 …std::string methodName = StringHelper::Format("%sWrite%s", methodPrefix.c_str(), typeName_.c_str()… in EmitCppWriteMethods() local 263 …sb.Append(prefix).AppendFormat("static bool %s(MessageParcel &data, int fd);\n", methodName.c_str(… in EmitCppWriteMethods() 266 …sb.Append(prefix).AppendFormat("static bool %s(MessageParcel &data, int fd)\n", methodName.c_str()… in EmitCppWriteMethods() 285 methods.emplace(methodName, sb.ToString()); in EmitCppWriteMethods() 292 …std::string methodName = StringHelper::Format("%sRead%s", methodPrefix.c_str(), typeName_.c_str()); in EmitCppReadMethods() local [all …]
|
H A D | hdi_interface_type_emitter.cpp | 182 std::string methodName = StringHelper::Format("%sWriteInterface", methodPrefix.c_str()); in EmitCWriteMethods() local 185 methodName.c_str()); in EmitCWriteMethods() 189 methodName.c_str()); in EmitCWriteMethods() 209 methods.emplace(methodName, sb.ToString()); in EmitCWriteMethods() 216 std::string methodName = StringHelper::Format("%sRead%s", methodPrefix.c_str(), name_.c_str()); in EmitCReadMethods() local 219 methodName.c_str()); in EmitCReadMethods() 223 methodName.c_str()); in EmitCReadMethods() 234 methods.emplace(methodName, sb.ToString()); in EmitCReadMethods()
|
/ohos5.0/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | webview_javascript_result_callback.h | 226 bool HasMethod(const std::string& methodName) in HasMethod() argument 228 if (methodName.empty()) { in HasMethod() 237 if (*iter == methodName) { in HasMethod() 244 napi_value FindMethod(const std::string& methodName) in FindMethod() argument 250 if (HasMethod(methodName)) { in FindMethod() 259 napi_status s = napi_has_named_property(env_, obj, methodName.c_str(), &hasFunc); in FindMethod() 268 s = napi_get_named_property(env_, obj, methodName.c_str(), &result); in FindMethod() 318 std::string methodName; in SetUpMethods() local 319 if (NapiParseUtils::ParseString(env_, napiKeyTmp, methodName)) { in SetUpMethods() 321 methods_.push_back(methodName); in SetUpMethods() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/ability_auto_startup_callback/ |
H A D | js_ability_auto_startup_callback.cpp | 87 …lityAutoStartupCallBack::JSCallFunction(const AutoStartupInfo &info, const std::string &methodName) in JSCallFunction() argument 90 NapiAsyncTask::CompleteCallback complete = [stub, info, methodName]( in JSCallFunction() 98 obj->JSCallFunctionWorker(info, methodName); in JSCallFunction() 101 NapiAsyncTask::Schedule("JsAbilityAutoStartupCallBack::JSCallFunction:" + methodName, env_, in JSCallFunction() 105 …toStartupCallBack::JSCallFunctionWorker(const AutoStartupInfo &info, const std::string &methodName) in JSCallFunctionWorker() argument 121 if (napi_get_named_property(env_, obj, methodName.c_str(), &funcObject) != napi_ok) { in JSCallFunctionWorker()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_engine.cpp | 1046 if (methodName == CALLBACK_NATIVE) { in JsHandleCallback() 1075 if (methodName == APP_GET_INFO) { in JsHandleAppApi() 1310 if (methodName == READ_TEXT) { in JsHandleReadResource() 1417 if (methodName == ADD_LISTENER) { in JsHandleMediaQuery() 1679 if (methodName == ROUTE_PAGE_BACK) { in JsHandlePageRoute() 1761 if (methodName == SET_TIMEOUT) { in JsHandleSetTimeout() 1763 } else if (methodName == CLEAR_TIMEOUT || methodName == CLEAR_INTERVAL) { in JsHandleSetTimeout() 1798 if (methodName == ANIMATOR_CREATE_ANIMATOR || methodName == ANIMATOR_CREATE) { in JsHandleAnimator() 1820 … const std::string& methodName) { return JsHandleCallback(runtime, argv[1], methodName); } }, in JsHandleModule() 1826 … const std::string& methodName) { return JsHandleAppApi(runtime, argv[1], methodName); } }, in JsHandleModule() [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.9.5/ |
H A D | changelogs-wifiManager.md | 35 let methodName = `${tag} getScanResultsPromise` 38 showToastE(`${methodName} failed ${JSON.stringify(err)}`) 42 showToast(`${methodName} end data is null`) 51 let methodName = `${tag} getScanResultsSync` 55 showToastE(`${methodName} failed ${JSON.stringify(error)}`)
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/ |
H A D | _ark_web___proxy_method.md | 20 | const char \* [methodName](#methodname) | 注入的方法名。 | 38 ### methodName subsection 41 const char* ArkWeb_ProxyMethod::methodName
|
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/os_account/mock/ |
H A D | mock_os_account_musl.cpp | 67 void *dlsym(void *__restrict, const char * methodName) in dlsym() argument 69 if (strcmp(methodName, "VerifyActivationLock") == 0) { in dlsym() 73 ACCOUNT_LOGI("Mock dlsym %{public}s failed.", methodName); in dlsym()
|
/ohos5.0/base/web/webview/interfaces/kits/cj/include/ |
H A D | webview_javascript_result_callback.h | 68 int HasMethod(const std::string& methodName) in HasMethod() argument 70 if (methodName.empty()) { in HasMethod() 80 if (methodName == methods_[i]) { in HasMethod() 87 std::function<char*(const char*)> FindMethod(const std::string& methodName) in FindMethod() argument 92 auto index = HasMethod(methodName); in FindMethod() 136 bool HasJavaScriptObjectMethods(int32_t objectId, const std::string& methodName) override;
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/context/ |
H A D | application_state_change_callback.h | 68 const std::string &methodName, const std::set<std::shared_ptr<NativeReference>> callbacks); 69 void CallJsMethod(const std::string &methodName); 70 void CallApplicationForegroundInner(const std::string &methodName);
|
/ohos5.0/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_plugin_manager.cpp | 77 std::string methodName = GetMethodNameByEnum(static_cast<OsPluginMethodEnum>(i)); in LoaderLib() local 78 if (methodName.empty()) { in LoaderLib() 86 void *func = dlsym(libHandle_, methodName.c_str()); in LoaderLib() 89 …ACCOUNT_LOGE("Call check failed, method=%{public}s error=%{public}s.", methodName.c_str(), dlsym_e… in LoaderLib()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkweb/ |
H A D | _ark_web___proxy_method.md | 20 | const char \* [methodName](#methodname) | Pointer to the method name to be injected. | 38 ### methodName subsection 41 const char* ArkWeb_ProxyMethod::methodName
|