Home
last modified time | relevance | path

Searched refs:method (Results 1 - 25 of 100) sorted by relevance

1234

/base/security/device_security_level/test/dslm_unit_test/cmocker/
H A Dc_mocker.h70 #define DECLARE_METHOD(ret, method, args) \
72 MOCK_METHOD(ret, method, args); \
73 using typeof##method = ret (*)(GMOCK_PP_REPEAT(PARAMETER, SIGNATURE(ret, args), GMOCK_PP_NARG0 args)); \
74 using get##method = std::function<typeof##method()>; \
75 const static typeof##method default##method;
77 #define IMPLEMENT_FUNCTION_INTERNAL(cls, method, count, signature, invoker) \
78 const cls::typeof##method cls::default##method
[all...]
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_js_result_callback_impl.cpp29 ArkWebValue ArkWebJsResultCallbackImpl::GetJavaScriptResult(ArkWebValueVector args, const ArkWebString& method, in GetJavaScriptResult() argument
34 ArkWebStringStructToClass(method), ArkWebStringStructToClass(object_name), routing_id, object_id); in GetJavaScriptResult()
38 ArkWebValue ArkWebJsResultCallbackImpl::GetJavaScriptResultFlowbuf(ArkWebValueVector args, const ArkWebString& method, in GetJavaScriptResultFlowbuf() argument
44 ArkWebStringStructToClass(method), ArkWebStringStructToClass(object_name), fd, routing_id, object_id); in GetJavaScriptResultFlowbuf()
H A Dark_web_js_result_callback_impl.h32 ArkWebValue GetJavaScriptResult(ArkWebValueVector args, const ArkWebString& method, const ArkWebString& object_name,
35 ArkWebValue GetJavaScriptResultFlowbuf(ArkWebValueVector args, const ArkWebString& method,
42 * @param object_id: means the method name
/base/print/print_fwk/frameworks/kits/extension/src/
H A Djs_print_extension_connection.cpp126 napi_value method = nullptr; in HandleOnAbilityDisconnectDone() local
127 napi_get_named_property(engine_, obj, "onDisconnect", &method); in HandleOnAbilityDisconnectDone()
128 if (method == nullptr) { in HandleOnAbilityDisconnectDone()
152 napi_call_function(engine_, obj, method, NapiPrintUtils::ARGC_ONE, argv, &callResult); in HandleOnAbilityDisconnectDone()
175 napi_value method = nullptr; in CallJsFailed() local
176 napi_get_named_property(engine_, obj, "onFailed", &method); in CallJsFailed()
177 if (method == nullptr) { in CallJsFailed()
187 napi_call_function(engine_, obj, method, NapiPrintUtils::ARGC_ONE, argv, &callResult); in CallJsFailed()
H A Djs_print_callback.cpp76 napi_value method = nullptr; in BuildJsWorker() local
77 napi_get_named_property(env, obj, name.c_str(), &method); in BuildJsWorker()
78 if (method == nullptr) { in BuildJsWorker()
92 jsParam_.jsMethod = method; in BuildJsWorker()
H A Djs_print_extension.cpp187 napi_value method = nullptr; in OnConnect() local
188 napi_get_named_property(nativeEngine, obj, "onConnect", &method); in OnConnect()
189 if (method == nullptr) { in OnConnect()
195 napi_call_function(nativeEngine, obj, method, NapiPrintUtils::ARGC_ONE, argv, &remoteNative); in OnConnect()
226 napi_value method = nullptr; in OnDisconnect() local
227 napi_get_named_property(nativeEngine, obj, "onDisconnect", &method); in OnDisconnect()
228 if (method == nullptr) { in OnDisconnect()
233 napi_call_function(nativeEngine, obj, method, NapiPrintUtils::ARGC_ONE, argv, &callResult); in OnDisconnect()
274 napi_value method = nullptr; in CallObjectMethod() local
275 napi_get_named_property(nativeEngine, obj, name, &method); in CallObjectMethod()
[all...]
/base/telephony/sms_mms/services/mms/
H A Ddata_request.cpp32 int32_t DataRequest::HttpRequest(int32_t slotId, const std::string &method, std::shared_ptr<MmsNetworkManager> netMgr, in HttpRequest() argument
44 return netClient->Execute(method, contentUrl, pduDir, ua, uaprof); in HttpRequest()
47 int32_t DataRequest::ExecuteMms(const std::string &method, std::shared_ptr<MmsNetworkManager> mmsNetworkMgr, in ExecuteMms() argument
70 int32_t executeResult = HttpRequest(slotId_, method, mmsNetworkMgr, contentUrl, pduDir, ua, uaprof); in ExecuteMms()
/base/web/webview/interfaces/kits/cj/src/
H A Dwebview_javascript_result_callback.cpp141 // set up named object method in RegisterJavaScriptProxy()
164 std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, in GetJavaScriptResultSelf()
176 auto callback = jsObj->FindMethod(method); in GetJavaScriptResultSelf()
194 std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, in GetJavaScriptResult()
197 WEBVIEWLOGD("GetJavaScriptResult method = %{public}s", method.c_str()); in GetJavaScriptResult()
200 if (!jsObj || jsObj->HasMethod(method) == -1) { in GetJavaScriptResult()
204 return GetJavaScriptResultSelf(args, method, objName, routingId, objectId); in GetJavaScriptResult()
286 const std::string& method, in GetJavaScriptResultSelfHelper()
291 auto callback = jsObj->FindMethod(method); in GetJavaScriptResultSelfHelper()
163 GetJavaScriptResultSelf( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId) GetJavaScriptResultSelf() argument
193 GetJavaScriptResult( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId) GetJavaScriptResult() argument
284 GetJavaScriptResultSelfHelper( std::shared_ptr<JavaScriptOb> jsObj, const std::string& method, int32_t routingId, std::vector<std::string> argv) GetJavaScriptResultSelfHelper() argument
314 GetJavaScriptResultSelfFlowbuf( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId) GetJavaScriptResultSelfFlowbuf() argument
339 GetJavaScriptResultFlowbuf( std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId) GetJavaScriptResultFlowbuf() argument
[all...]
H A Dweb_download_item_impl.cpp33 method(""), in WebDownloadItemImpl()
59 method(""), in WebDownloadItemImpl()
78 this->method = std::string(WebDownloadItem_Method(downloadItem)); in WebDownloadItemImpl()
/base/telephony/sms_mms/test/gtest/
H A Dsms_mms_receive_gtest.cpp96 std::string method; in HWTEST_F() local
101 int32_t stata = dataRequest->HttpRequest(slotId, method, netMgr, contentUrl, pduDir, "ua", "uaprof"); in HWTEST_F()
149 std::string method; in HWTEST_F() local
153 int32_t ret = mmsReceive->ExecuteDownloadMms(method, url, data, uaprof); in HWTEST_F()
167 std::string method; in HWTEST_F() local
171 int32_t ret = mmsSender->ExecuteSendMms(method, url, data, uaprof); in HWTEST_F()
/base/security/device_auth/frameworks/inc/lite/
H A Dipc_dev_auth_stub.h29 IpcServiceCall method; member
39 int32_t SetCallMap(IpcServiceCall method, int32_t methodId);
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/
H A Dark_web_js_result_callback.h32 virtual ArkWebValue GetJavaScriptResult(ArkWebValueVector args, const ArkWebString& method,
39 * @param object_id: means the method name
69 virtual ArkWebValue GetJavaScriptResultFlowbuf(ArkWebValueVector args, const ArkWebString& method,
/base/customization/enterprise_device_management/common/native/include/plugin_utils/
H A Diptables_utils.h47 AddMethod method; member
53 method = AddMethod::INVALID; in AddFilter()
73 static bool ProcessFirewallMethod(int32_t type, AddMethod &method);
/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dweb_download_item.cpp34 method(""), in WebDownloadItem()
61 method(""), in WebDownloadItem()
80 this->method = std::string(WebDownloadItem_Method(downloadItem)); in WebDownloadItem()
H A Dwebview_javascript_result_callback.h207 for (const auto& method : methods_) { in GetSyncMethodNames()
208 auto it = std::find(asyncMethods_.begin(), asyncMethods_.end(), method); in GetSyncMethodNames()
210 syncMethodNames.emplace_back(method); in GetSyncMethodNames()
457 const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId) override;
460 const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId) override;
502 const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId);
510 const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId);
516 const std::string& method, int32_t routingId, napi_handle_scope scope, std::vector<napi_value> argv);
521 const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId);
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_js_result_callback_wrapper.cpp30 std::vector<std::shared_ptr<OHOS::NWeb::NWebValue>> args, const std::string& method, const std::string& object_name, in GetJavaScriptResult()
33 ArkWebString stMethod = ArkWebStringClassToStruct(method); in GetJavaScriptResult()
47 std::vector<std::shared_ptr<OHOS::NWeb::NWebValue>> args, const std::string& method, const std::string& object_name, in GetJavaScriptResultFlowbuf()
50 ArkWebString stMethod = ArkWebStringClassToStruct(method); in GetJavaScriptResultFlowbuf()
29 GetJavaScriptResult( std::vector<std::shared_ptr<OHOS::NWeb::NWebValue>> args, const std::string& method, const std::string& object_name, int32_t routing_id, int32_t object_id) GetJavaScriptResult() argument
46 GetJavaScriptResultFlowbuf( std::vector<std::shared_ptr<OHOS::NWeb::NWebValue>> args, const std::string& method, const std::string& object_name, int fd, int32_t routing_id, int32_t object_id) GetJavaScriptResultFlowbuf() argument
H A Dark_web_js_result_callback_wrapper.h31 const std::string& method, const std::string& object_name, int32_t routing_id, int32_t object_id) override;
34 std::vector<std::shared_ptr<OHOS::NWeb::NWebValue>> args, const std::string& method,
41 * @param object_id: means the method name
/base/telephony/sms_mms/services/mms/include/
H A Ddata_request.h31 int32_t HttpRequest(int32_t slotId, const std::string &method, std::shared_ptr<MmsNetworkManager> netMgr,
33 int32_t ExecuteMms(const std::string &method, std::shared_ptr<MmsNetworkManager> mmsNetworkMgr,
/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb_javascript_result_callback.h34 const std::string& method, const std::string& object_name, int32_t routing_id, int32_t object_id) = 0;
37 const std::string& method, const std::string& object_name, int fd, int32_t routing_id, int32_t object_id) = 0;
42 * @param object_id: means the method name
/base/request/request/services/src/service/command/
H A Dsearch.rs26 let method = if is_system_api() {
54 let ids = query::search(filter, method);
/base/update/updateservice/napi/include/
H A Dclient_contxt.h34 ClientContext(std::string method, GetNapiParam getNapiParam, napi_async_execute_callback executeFunc, in ClientContext()
36 : method_(std::move(method)), in ClientContext()
/base/customization/enterprise_device_management/common/native/src/plugin_utils/
H A Diptables_utils.cpp31 data.WriteInt32(static_cast<int32_t>(filter.method)); in WriteAddFilterConfig()
45 IptablesUtils::ProcessFirewallMethod(data.ReadInt32(), filter.method); in ReadAddFilterConfig()
84 bool IptablesUtils::ProcessFirewallMethod(int32_t type, AddMethod &method) in ProcessFirewallMethod() argument
87 method = AddMethod(type); in ProcessFirewallMethod()
/base/web/webview/interfaces/kits/cj/include/
H A Dwebview_javascript_result_callback.h131 const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId) override;
134 const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId) override;
170 const std::string& method, const std::string& objName, int32_t routingId, int32_t objectId);
178 const std::string& method, int32_t routingId, std::vector<std::string> argv);
181 const std::string& method, const std::string& objName, int fd, int32_t routingId, int32_t objectId);
/base/location/frameworks/native/fence_extension_ability/src/
H A Djs_fence_extension.cpp209 ::napi_value method = GetMethod(jsRuntime_, jsObj_, "onDestroy"); in OnStop() local
210 if (method == nullptr) { in OnStop()
211 LBSLOGE(FENCE_EXTENSION, "Call function method is null"); in OnStop()
218 ::napi_status retStatus = ::napi_call_function(env, value, method, 0, argv, &undefined); in OnStop()
284 ::napi_value method = GetMethod(jsRuntime_, jsObj_, "onFenceStatusChange"); in CallToUiThread() local
285 if (method == nullptr) { in CallToUiThread()
324 ::napi_status callStatus = ::napi_call_function(env, abilityObj, method, ARGC_TWO, argv, &undefined); in CallToUiThread()
370 ::napi_value method; in GetMethod() local
371 ::napi_status ret = ::napi_get_named_property(env, obj, name.c_str(), &method); in GetMethod()
378 ::napi_status retType = ::napi_typeof(env, method, in GetMethod()
[all...]
/base/request/request/frameworks/cj/ffi/src/
H A Dcj_initialize.cpp283 std::string method = config.method; in ParseMethod() local
284 config.method = config.action == Action::UPLOAD ? "PUT" : "GET"; in ParseMethod()
285 if (!method.empty()) { in ParseMethod()
286 transform(method.begin(), method.end(), method.begin(), ::toupper); in ParseMethod()
287 if (config.action == Action::UPLOAD && (method == "POST" || method == "PUT")) { in ParseMethod()
288 config.method in ParseMethod()
[all...]

Completed in 11 milliseconds

1234