Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 84) sorted by relevance

1234

/base/security/device_security_level/test/dslm_unit_test/cmocker/
Dc_mocker.h70 #define DECLARE_METHOD(ret, method, args) … argument
72 …MOCK_METHOD(ret, method, args); …
73 …using typeof##method = ret (*)(GMOCK_PP_REPEAT(PARAMETER, SIGNATURE(ret, args), GMOCK_PP_NARG0 arg…
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) … argument
78 …const cls::typeof##method cls::default##method = reinterpret_cast<cls::typeof##method>(invoker); …
79 …testing::internal::Function<GMOCK_PP_REMOVE_PARENS(signature)>::Result method( …
83 …static auto lookup = reinterpret_cast<cls::typeof##method>(dlsym(RTLD_NEXT, #method)); \
86 …auto *stub = cls::default##method != nullptr ? cls::default##method : lookup; \
[all …]
/base/inputmethod/imf/
DREADME.md5 …is used to connect the application and input method. the application can input text through the in…
16 The input method framework currently has four modules, as follows:
22 …input method framework, including the binding between application and input method service, applic…
24 2. Input method client
28 …e bridge between input method framework service and input method delivery, including monitoring th…
30 3. Input method service
34 Function: as the core of the input method framework, the main processing logic of the input method
36 4. Input method JS interface
44 …the edit attribute control to invoke the default input method application through the input method
46 2. Typing can be carried out through the input method application, and characters can be input to t…
[all …]
/base/telephony/sms_mms/services/mms/
Ddata_request.cpp32 int32_t DataRequest::HttpRequest(int32_t slotId, const std::string &method, std::shared_ptr<MmsNetw… in HttpRequest() argument
44 return netClient->Execute(method, contentUrl, pduDir); in HttpRequest()
47 int32_t DataRequest::ExecuteMms(const std::string &method, std::shared_ptr<MmsNetworkManager> mmsNe… in ExecuteMms() argument
77 int32_t executeResult = HttpRequest(slotId_, method, mmsNetworkMgr, contentUrl, pduDir); in ExecuteMms()
/base/print/print_fwk/frameworks/kits/extension/src/
Djs_print_extension_connection.cpp129 NativeValue* method = obj->GetProperty("onDisconnect"); in HandleOnAbilityDisconnectDone() local
130 if (method == nullptr) { in HandleOnAbilityDisconnectDone()
152 engine_.CallFunction(value, method, argv, NapiPrintUtils::ARGC_ONE); in HandleOnAbilityDisconnectDone()
174 NativeValue* method = obj->GetProperty("onFailed"); in CallJsFailed() local
175 if (method == nullptr) { in CallJsFailed()
181 engine_.CallFunction(value, method, argv, NapiPrintUtils::ARGC_ONE); in CallJsFailed()
Djs_print_callback.cpp58 NativeValue *method = obj->GetProperty(name.c_str()); in BuildJsWorker() local
59 if (method == nullptr) { in BuildJsWorker()
73 jsParam_.jsMethod = method; in BuildJsWorker()
Djs_print_extension.cpp196 NativeValue *method = obj->GetProperty("onConnect"); in OnConnect() local
197 if (method == nullptr) { in OnConnect()
202 …NativeValue *remoteNative = nativeEngine->CallFunction(value, method, argv, NapiPrintUtils::ARGC_O… in OnConnect()
236 NativeValue *method = obj->GetProperty("onDisconnect"); in OnDisconnect() local
237 if (method == nullptr) { in OnDisconnect()
241 nativeEngine->CallFunction(value, method, argv, NapiPrintUtils::ARGC_ONE); in OnDisconnect()
278 NativeValue *method = obj->GetProperty(name); in CallObjectMethod() local
279 if (method == nullptr) { in CallObjectMethod()
284 return nativeEngine.CallFunction(value, method, argv, argc); in CallObjectMethod()
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth_extension/module_loader/
Djs_user_auth_extension.cpp409 NativeValue* method = obj->GetProperty(name); in CallObjectMethod() local
410 if (method == nullptr || method->TypeOf() != NATIVE_FUNCTION) { in CallObjectMethod()
415 return nativeEngine.CallFunction(value, method, argv, argc); in CallObjectMethod()
440 NativeValue* method = obj->GetProperty("onConnect"); in CallOnConnect() local
441 if (method == nullptr) { in CallOnConnect()
445 NativeValue* remoteNative = nativeEngine->CallFunction(value, method, argv, ARGC_ONE); in CallOnConnect()
472 NativeValue *method = obj->GetProperty("onDisconnect"); in CallOnDisconnect() local
473 if (method == nullptr) { in CallOnDisconnect()
479 return handleEscape.Escape(nativeEngine->CallFunction(value, method, argv, ARGC_ONE)); in CallOnDisconnect()
481 nativeEngine->CallFunction(value, method, argv, ARGC_ONE); in CallOnDisconnect()
[all …]
/base/time/time_service/
DREADME.md34 … | Set the system time (1970-01-01 to the present in milliseconds), Promise method. |
36 …ck: AsyncCallback<boolean>): void; | Set the system time (Date format), Promise method. |
37 …se<boolean> | Set system time (Date format), callback method. |
38 …back: AsyncCallback<boolean>): void | Set the system time zone, callback method. …
39 …ring): Promise<boolean> | Set the system time zone, Promise method. …
45 …ons: TimerOptions, callback: AsyncCallback<number>): void | Create timer, callback method |
46 | createTimer(options: TimerOptions): Promise<number> | Create timer, promise method
51 …er(timer: number, callback: AsyncCallback<boolean>): void | Destroy the timer, callback method |
52 …troyTimer(timer: number): Promise<boolean> | Destroy the timer, the promise method |
/base/customization/enterprise_device_management/common/native/include/plugin_utils/
Diptables_utils.h47 AddMethod method; member
53 method = AddMethod::INVALID; in AddFilter()
73 static bool ProcessFirewallMethod(int32_t type, AddMethod &method);
/base/security/device_auth/frameworks/inc/lite/
Dipc_dev_auth_stub.h29 IpcServiceCall method; member
39 int32_t SetCallMap(IpcServiceCall method, int32_t methodId);
/base/telephony/sms_mms/services/mms/include/
Ddata_request.h31 …int32_t HttpRequest(int32_t slotId, const std::string &method, std::shared_ptr<MmsNetworkManager> …
33 int32_t ExecuteMms(const std::string &method, std::shared_ptr<MmsNetworkManager> mmsNetworkMgr,
/base/inputmethod/imf/frameworks/kits/extension/src/
Djs_inputmethod_extension.cpp212 NativeValue *method = obj->GetProperty("onConnect"); in OnConnect() local
213 if (method == nullptr) { in OnConnect()
218 NativeValue *remoteNative = nativeEngine->CallFunction(value, method, argv, ARGC_ONE); in OnConnect()
253 NativeValue *method = obj->GetProperty("onDisconnect"); in OnDisconnect() local
254 if (method == nullptr) { in OnDisconnect()
258 nativeEngine->CallFunction(value, method, argv, ARGC_ONE); in OnDisconnect()
299 NativeValue *method = obj->GetProperty(name); in CallObjectMethod() local
300 if (method == nullptr) { in CallObjectMethod()
305 return nativeEngine.CallFunction(value, method, argv, argc); in CallObjectMethod()
/base/customization/enterprise_device_management/common/native/src/plugin_utils/
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/security/device_auth/frameworks/inc/standard/
Dipc_dev_auth_stub.h25 IpcServiceCall method; member
39 int32_t SetCallMap(IpcServiceCall method, int32_t methodId);
/base/request/request/frameworks/js/napi/src/
Djs_initialize.cpp434 config.method = config.action == Action::UPLOAD ? "PUT" : "GET"; in ParseMethod()
436 config.method = "POST"; in ParseMethod()
438 std::string method = NapiUtils::Convert2String(env, jsConfig, "method"); in ParseMethod() local
439 if (!method.empty()) { in ParseMethod()
440 transform(method.begin(), method.end(), method.begin(), ::toupper); in ParseMethod()
441 if (config.action == Action::UPLOAD && (method == "POST" || method == "PUT")) { in ParseMethod()
442 config.method = method; in ParseMethod()
444 if (config.action == Action::DOWNLOAD && (method == "POST" || method == "GET")) { in ParseMethod()
445 config.method = method; in ParseMethod()
687 config.method = "GET"; in ParseDownloadConfig()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DResourceConfiguration.java70 String method; field in ResourceConfiguration.ConfigItem
94 return method; in getMethod()
/base/web/webview/ohos_nweb/include/
Dnweb_javascript_result_callback.h33 const std::string &method,
/base/security/device_auth/frameworks/src/standard/
Dipc_dev_auth_stub.cpp68 if ((callMapTable[i].methodId == methodId) && (callMapTable[i].method != nullptr)) { in GetCallMethodByMethodId()
69 return callMapTable[i].method; in GetCallMethodByMethodId()
223 int32_t ServiceDevAuth::SetCallMap(IpcServiceCall method, int32_t methodId) in SetCallMap() argument
255 callMapTable[callMapElemNum].method = method; in SetCallMap()
/base/security/device_auth/frameworks/src/lite/
Dipc_dev_auth_stub.c71 if ((g_callMapTable[i].methodId == methodId) && (g_callMapTable[i].method != NULL)) { in GetCallMethodByMethodId()
72 return g_callMapTable[i].method; in GetCallMethodByMethodId()
233 int32_t SetCallMap(IpcServiceCall method, int32_t methodId) in SetCallMap() argument
264 g_callMapTable[g_callMapElemNum].method = method; in SetCallMap()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/
Dsmaps_memory_info.cpp171 for (const auto &method : sMapsMethodVec_) { in CalcSmapsStatData() local
172 auto it = valueMap.find(method.first); in CalcSmapsStatData()
174 method.second(memSmapsInfo, it->second); in CalcSmapsStatData()
184 for (const auto &method : sMapsMethodVec_) { in CalcSmapsInfo() local
185 string key = method.first; in CalcSmapsInfo()
188 method.second(memSmapsInfo, strtoull(obj.at(key).c_str(), nullptr, BASE)); in CalcSmapsInfo()
/base/customization/enterprise_device_management/services/edm_plugin/src/
Diptables_rule_plugin.cpp128 if (addFilter.method == IPTABLES::AddMethod::APPEND) { in ConvertAddFilterToIptablesCommand()
130 } else if (addFilter.method == IPTABLES::AddMethod::INSERT) { in ConvertAddFilterToIptablesCommand()
140 ConvertRuleNoCommand(addFilter.method, addFilter.ruleNo, command); in ConvertAddFilterToIptablesCommand()
295 void IptablesRulePlugin::ConvertRuleNoCommand(const IPTABLES::AddMethod &method, uint32_t ruleNo, s… in ConvertRuleNoCommand() argument
297 if (method == IPTABLES::AddMethod::INSERT && ruleNo != 0) { in ConvertRuleNoCommand()
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_javascript_result_callback.cpp71 …std::vector<std::shared_ptr<NWebValue>> args, const std::string& method, const std::string& objNam… in GetJavaScriptResult() argument
74 method.c_str(), objName.c_str()); in GetJavaScriptResult()
81 if (jsObj.methodMap.find(method) == jsObj.methodMap.end()) { in GetJavaScriptResult()
106 param->callback_ = jsObj.methodMap[method]; in GetJavaScriptResult()
/base/account/os_account/
DREADME.md134 …3421233134612"></a>Queries information about a distributed account. This method uses an asynchrono…
139 …7342133394620"></a>Queries information about a distributed account. This method uses a promise to …
144 …1534263304617"></a>Updates information about a distributed account. This method uses an asynchrono…
149 …0342193384611"></a>Updates information about a distributed account. This method uses a promise to …
489 …3134612"></a><a name="p63421233134612"></a>Activates an OS account. This method uses an asynchrono…
494 …3134612"></a><a name="p63421233134612"></a>Activates an OS account. This method uses a promise to …
499 …42133394620"></a>Checks whether multiple OS accounts are supported. This method uses an asynchrono…
504 …42133394620"></a>Checks whether multiple OS accounts are supported. This method uses a promise to …
509 …ame="p1534263304617"></a>Checks whether an OS account is activated. This method uses an asynchrono…
514 …ame="p1534263304617"></a>Checks whether an OS account is activated. This method uses a promise to …
[all …]
/base/telephony/cellular_data/
DREADME.md74 1. Call the **IsCellularDataEnabled** method in callback or Promise mode to check whether the ce…
75 2. This method works in asynchronous mode. The execution result is returned through the callback.
118 1. Call the **getCellularDataState** method in callback or Promise mode to obtain the cellular d…
119 2. This method works in asynchronous mode. The execution result is returned through the callback.
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_authorization_extension_context.cpp358 NativeValue *method = obj->GetProperty("onDisconnect"); in HandleOnAbilityDisconnectDone() local
359 if (method == nullptr) { in HandleOnAbilityDisconnectDone()
378 engine_.CallFunction(value, method, argv, ARGC_ONE); in HandleOnAbilityDisconnectDone()
394 NativeValue *method = obj->GetProperty("onFailed"); in CallJsFailed() local
395 if (method == nullptr) { in CallJsFailed()
400 engine_.CallFunction(value, method, argv, ARGC_ONE); in CallJsFailed()

1234