/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/ |
H A D | canvas_paint_op.cpp | 24 void SaveOp::Draw(CanvasPaintMethod* method) const in Draw() 26 method->Save(); in Draw() 29 void RestoreOp::Draw(CanvasPaintMethod* method) const in Draw() 31 method->Restore(); in Draw() 34 void FillRectOp::Draw(CanvasPaintMethod* method) const in Draw() 36 method->FillRect(rect); in Draw() 39 void FillTextOp::Draw(CanvasPaintMethod* method) const in Draw() 41 method->FillText(text, x, y, maxWidth); in Draw() 44 void BezierCurveToOp::Draw(CanvasPaintMethod* method) const in Draw() 46 method in Draw() [all...] |
H A D | canvas_paint_op.h | 49 void Draw(CanvasPaintMethod* method) const; 54 void Draw(CanvasPaintMethod* method) const; 61 void Draw(CanvasPaintMethod* method) const; 71 void Draw(CanvasPaintMethod* method) const; 78 void Draw(CanvasPaintMethod* method) const; 85 void Draw(CanvasPaintMethod* method) const; 92 void Draw(CanvasPaintMethod* method) const; 99 void Draw(CanvasPaintMethod* method) const; 106 void Draw(CanvasPaintMethod* method) const; 113 void Draw(CanvasPaintMethod* method) cons [all...] |
/foundation/communication/netstack/frameworks/native/http/http_client/ |
H A D | http_client_request.cpp | 53 bool HttpClientRequest::MethodForGet(const std::string &method) in MethodForGet() argument 55 return (method == HttpConstant::HTTP_METHOD_HEAD || method == HttpConstant::HTTP_METHOD_OPTIONS || in MethodForGet() 56 method == HttpConstant::HTTP_METHOD_DELETE || method == HttpConstant::HTTP_METHOD_TRACE || in MethodForGet() 57 method == HttpConstant::HTTP_METHOD_GET || method == HttpConstant::HTTP_METHOD_CONNECT); in MethodForGet() 60 bool HttpClientRequest::MethodForPost(const std::string &method) in MethodForPost() argument 62 return (method == HttpConstant::HTTP_METHOD_POST || method in MethodForPost() 65 SetMethod(const std::string &method) SetMethod() argument [all...] |
/foundation/ability/idl_tool/idl_tool_2/codegen/SA/ts/ |
H A D | sa_ts_interface_code_emitter.cpp | 70 AutoPtr<ASTMethod> method = interface_->GetMethod(i);
in EmitInterfaceDefinition() local 71 EmitInterfaceMethod(method, sb, TAB);
in EmitInterfaceDefinition() 76 AutoPtr<ASTMethod> method = interface_->GetMethod(i);
in EmitInterfaceDefinition() local 77 EmitInterfaceMethodCallback(method, sb);
in EmitInterfaceDefinition() 81 void SaTsInterfaceCodeEmitter::EmitInterfaceMethod(AutoPtr<ASTMethod> &method, StringBuilder &sb,
in EmitInterfaceMethod() argument 84 sb.Append(prefix).AppendFormat("%s(", MethodName(method->GetName()).c_str());
in EmitInterfaceMethod() 85 int paramNumber = static_cast<int>(method->GetParameterNumber());
in EmitInterfaceMethod() 87 AutoPtr<ASTParameter> param = method->GetParameter(i);
in EmitInterfaceMethod() 93 sb.AppendFormat("callback: %sCallback): void;\n", MethodName(method->GetName()).c_str());
in EmitInterfaceMethod() 96 void SaTsInterfaceCodeEmitter::EmitInterfaceMethodCallback(AutoPtr<ASTMethod> &method, StringBuilde argument [all...] |
H A D | sa_ts_code_emitter.cpp | 27 AutoPtr<ASTMethod> method = interface_->GetMethod(i);
in CheckInterfaceType() local 28 if (method == nullptr) {
in CheckInterfaceType() 31 AutoPtr<ASTType> type = method->GetReturnType();
in CheckInterfaceType() 34 Logger::E("SATsCodeEmitter", "unsupported type in .idl file for method '%s'", method->GetName().c_str());
in CheckInterfaceType() 37 int paramNumber = static_cast<int>(method->GetParameterNumber());
in CheckInterfaceType() 39 AutoPtr<ASTParameter> param = method->GetParameter(j);
in CheckInterfaceType() 43 Logger::E("SATsCodeEmitter", "unsupported type in .idl file for method '%s'",
in CheckInterfaceType() 44 method->GetName().c_str());
in CheckInterfaceType() 92 AutoPtr<ASTMethod> method in EmitInterfaceMethodCommands() local 102 AutoPtr<ASTMethod> method = interface_->GetMethod(i); EmitInterfaceImports() local 139 EmitInterfaceMethodHead(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitInterfaceMethodHead() argument [all...] |
H A D | sa_ts_client_proxy_code_emitter.cpp | 84 AutoPtr<ASTMethod> method = interface_->GetMethod(i);
in EmitInterfaceProxyMethodImpls() local 85 EmitInterfaceMethodHead(method, sb, prefix);
in EmitInterfaceProxyMethodImpls() 87 EmitInterfaceProxyMethodBody(method, sb, prefix);
in EmitInterfaceProxyMethodImpls() 94 void SaTsClientProxyCodeEmitter::EmitInterfaceProxyMethodBody(AutoPtr<ASTMethod> &method, StringBuilder &sb,
in EmitInterfaceProxyMethodBody() argument 100 if (method->IsOneWay() || interface_->IsOneWay()) {
in EmitInterfaceProxyMethodBody() 107 int paramNumber = static_cast<int>(method->GetParameterNumber());
in EmitInterfaceProxyMethodBody() 109 AutoPtr<ASTParameter> param = method->GetParameter(i);
in EmitInterfaceProxyMethodBody() 120 ConstantName(method->GetName()).c_str());
in EmitInterfaceProxyMethodBody() 122 EmitInterfaceMethodCallback(method, sb, prefix + TAB + TAB, haveOutPara);
in EmitInterfaceProxyMethodBody() 133 void SaTsClientProxyCodeEmitter::EmitInterfaceMethodCallback(AutoPtr<ASTMethod> &method, StringBuilde argument 144 EmitInterfaceMethodErrorCallback(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix, bool haveOutPara) const EmitInterfaceMethodErrorCallback() argument 178 EmitInterfaceMethodCallbackInner(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitInterfaceMethodCallbackInner() argument [all...] |
H A D | sa_ts_service_stub_code_emitter.cpp | 91 AutoPtr<ASTMethod> method = interface_->GetMethod(i);
in EmitInterfaceStubMethodImpls() local 92 EmitInterfaceStubMethodImpl(method, sb, prefix + TAB + TAB);
in EmitInterfaceStubMethodImpls() 103 // emit empty method
in EmitInterfaceStubMethodImpls() 105 AutoPtr<ASTMethod> method = interface_->GetMethod(i);
in EmitInterfaceStubMethodImpls() local 106 EmitInterfaceMethodHead(method, sb, prefix);
in EmitInterfaceStubMethodImpls() 118 void SaTsServiceStubCodeEmitter::EmitInterfaceStubMethodImpl(AutoPtr<ASTMethod> &method, StringBuilder &sb,
in EmitInterfaceStubMethodImpl() argument 123 ConstantName(method->GetName()).c_str());
in EmitInterfaceStubMethodImpl() 124 int paramNumber = static_cast<int>(method->GetParameterNumber());
in EmitInterfaceStubMethodImpl() 126 AutoPtr<ASTParameter> param = method->GetParameter(i);
in EmitInterfaceStubMethodImpl() 136 sb.Append(prefix).Append(TAB).Append(TAB).AppendFormat("this.%s(", MethodName(method in EmitInterfaceStubMethodImpl() 151 EmitInterfaceStubMethodPromiseImpl(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix, bool haveOutPara) const EmitInterfaceStubMethodPromiseImpl() argument 190 EmitMethodPromiseOutParamImpl(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitMethodPromiseOutParamImpl() argument [all...] |
/foundation/ability/idl_tool/idl_tool_2/codegen/SA/rust/ |
H A D | sa_rust_interface_code_emitter.cpp | 180 AutoPtr<ASTMethod> method = interface_->GetMethod(i);
in EmitCommands() local 182 sb.AppendFormat(" %s = FIRST_CALL_TRANSACTION,\n", GetCodeFromMethod(method->GetName()).c_str());
in EmitCommands() 184 sb.AppendFormat(" %s,\n", GetCodeFromMethod(method->GetName()).c_str());
in EmitCommands() 231 AutoPtr<ASTMethod> method = interface_->GetMethod(i);
in EmitBrokers() local 232 sb.AppendFormat(" fn %s(&self", method->GetName().c_str());
in EmitBrokers() 233 AppendBrokerParameters(sb, method);
in EmitBrokers() 234 AutoPtr<SaTypeEmitter> typeEmitter = GetTypeEmitter(method->GetReturnType());
in EmitBrokers() 240 void SaRustInterfaceCodeEmitter::AppendBrokerParameters(StringBuilder &sb, AutoPtr<ASTMethod> &method) const
in AppendBrokerParameters() 242 int paramNumber = static_cast<int>(method->GetParameterNumber());
in AppendBrokerParameters() 245 AutoPtr<ASTParameter> param = method in AppendBrokerParameters() 300 AutoPtr<ASTMethod> method = interface_->GetMethod(i); AddRemoteRequestMethods() local 343 AutoPtr<ASTMethod> method = interface_->GetMethod(i); EmitStub() local 377 AutoPtr<ASTMethod> method = interface_->GetMethod(i); EmitProxy() local 386 EmitProxyMethodImpl(AutoPtr<ASTMethod> &method, StringBuilder &sb) const EmitProxyMethodImpl() argument [all...] |
/foundation/ability/idl_tool/idl_tool_2/codegen/SA/cpp/ |
H A D | sa_cpp_client_proxy_code_emitter.cpp | 102 AutoPtr<ASTMethod> method = interface_->GetMethod(i);
in EmitInterfaceProxyAddCacheAbleAPI() local 103 if (!method->GetCacheable() || method->IsOneWay()) {
in EmitInterfaceProxyAddCacheAbleAPI() 106 int32_t cacheableTime = method->GetCacheableTime();
in EmitInterfaceProxyAddCacheAbleAPI() 110 ConstantName(method->GetName()).c_str(), cacheableTime);
in EmitInterfaceProxyAddCacheAbleAPI() 114 ConstantName(method->GetName()).c_str());
in EmitInterfaceProxyAddCacheAbleAPI() 138 AutoPtr<ASTMethod> method = interface_->GetMethod(i);
in EmitInterfaceProxyUnRegisterDeathRecipient() local 139 if (method->GetCacheable() && !method->IsOneWay()) {
in EmitInterfaceProxyUnRegisterDeathRecipient() 142 ConstantName(method in EmitInterfaceProxyUnRegisterDeathRecipient() 172 AutoPtr<ASTMethod> method = interface_->GetMethod(i); EmitInterfaceProxyMethodDecls() local 180 EmitInterfaceProxyMethodDecl(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitInterfaceProxyMethodDecl() argument 255 AutoPtr<ASTMethod> method = interface_->GetMethod(i); EmitInterfaceProxyMethodImpls() local 263 EmitInterfaceProxyMethodImpl(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitInterfaceProxyMethodImpl() argument 272 EmitInterfaceProxyMethodPreSendRequest(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitInterfaceProxyMethodPreSendRequest() argument 289 EmitInterfaceProxyMethodPostSendRequest(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitInterfaceProxyMethodPostSendRequest() argument 297 EmitInterfaceProxyMethodBody(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitInterfaceProxyMethodBody() argument 356 EmitInterfaceProxyMethodReply(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitInterfaceProxyMethodReply() argument 373 EmitInterfaceProxyMethodRetValue(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitInterfaceProxyMethodRetValue() argument [all...] |
H A D | sa_cpp_client_proxy_code_emitter.h | 46 void EmitInterfaceProxyMethodDecl(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const;
56 void EmitInterfaceProxyMethodImpl(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const;
58 void EmitInterfaceProxyMethodBody(AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const;
60 void EmitInterfaceProxyMethodPreSendRequest(AutoPtr<ASTMethod> &method, StringBuilder &sb,
63 void EmitInterfaceProxyMethodPostSendRequest(AutoPtr<ASTMethod> &method, StringBuilder &sb,
68 void EmitInterfaceProxyMethodReply(AutoPtr<ASTMethod> &method, StringBuilder &sb,
71 void EmitInterfaceProxyMethodRetValue(AutoPtr<ASTMethod> &method, StringBuilder &sb,
|
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/cpp/ |
H A D | cpp_interface_code_emitter.cpp | 192 for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) {
in EmitInterfaceMethodsDecl() 193 EmitInterfaceMethodDecl(method, sb, prefix);
in EmitInterfaceMethodsDecl() 205 const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const
in EmitInterfaceMethodDecl() 207 if (interface_->GetExtendsInterface() != nullptr && method->IsOverload()) {
in EmitInterfaceMethodDecl() 210 method->GetName().c_str());
in EmitInterfaceMethodDecl() 213 if (method->GetParameterNumber() == 0) {
in EmitInterfaceMethodDecl() 214 sb.Append(prefix).AppendFormat("virtual int32_t %s() = 0;\n", method->GetName().c_str());
in EmitInterfaceMethodDecl() 217 paramStr.Append(prefix).AppendFormat("virtual int32_t %s(", method->GetName().c_str());
in EmitInterfaceMethodDecl() 218 for (size_t i = 0; i < method->GetParameterNumber(); i++) {
in EmitInterfaceMethodDecl() 219 AutoPtr<ASTParameter> param = method in EmitInterfaceMethodDecl() 204 EmitInterfaceMethodDecl( const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitInterfaceMethodDecl() argument 234 AutoPtr<ASTMethod> method = interface_->GetVersionMethod(); EmitInterfaceGetVersionMethod() local 283 AutoPtr<ASTMethod> method = interface_->GetMethod(i); EmitInterfaceMethodCommandsWithExtends() local [all...] |
H A D | cpp_service_stub_code_emitter.cpp | 135 for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) {
in EmitStubMethodDecls() 136 EmitStubStaticMethodDecl(method, sb, prefix);
in EmitStubMethodDecls() 147 for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) {
in EmitStubMethodDecls() 148 EmitStubMethodDecl(method, sb, prefix);
in EmitStubMethodDecls() 158 const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const
in EmitStubMethodDecl() 161 stubName_.c_str(), method->GetName().c_str(), method->GetMethodIdentifier().c_str(),
in EmitStubMethodDecl() 166 const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const
in EmitStubStaticMethodDecl() 170 stubName_.c_str(), method->GetName().c_str(), method in EmitStubStaticMethodDecl() 157 EmitStubMethodDecl( const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitStubMethodDecl() argument 165 EmitStubStaticMethodDecl( const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitStubStaticMethodDecl() argument 402 EmitStubMethodImpl(AutoPtr<ASTInterfaceType> interface, const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitStubMethodImpl() argument 418 EmitStubStaticMethodImpl( const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitStubStaticMethodImpl() argument 463 EmitStubCallMethod( const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitStubCallMethod() argument 500 EmitStubReadMemFlag(const AutoPtr<ASTMethod> &method, const std::string &parcelName, StringBuilder &sb, const std::string &prefix) const EmitStubReadMemFlag() argument [all...] |
H A D | cpp_service_impl_code_emitter.cpp | 113 for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) {
in EmitServiceImplMethodDecls() 114 EmitServiceImplMethodDecl(method, sb, prefix);
in EmitServiceImplMethodDecls() 122 const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const
in EmitServiceImplMethodDecl() 124 if (method->GetParameterNumber() == 0) {
in EmitServiceImplMethodDecl() 125 sb.Append(prefix).AppendFormat("int32_t %s() override;\n", method->GetName().c_str());
in EmitServiceImplMethodDecl() 128 paramStr.Append(prefix).AppendFormat("int32_t %s(", method->GetName().c_str());
in EmitServiceImplMethodDecl() 129 for (size_t i = 0; i < method->GetParameterNumber(); i++) {
in EmitServiceImplMethodDecl() 130 AutoPtr<ASTParameter> param = method->GetParameter(i);
in EmitServiceImplMethodDecl() 132 if (i + 1 < method->GetParameterNumber()) {
in EmitServiceImplMethodDecl() 187 for (const auto &method in EmitServiceImplMethodImpls() 121 EmitServiceImplMethodDecl( const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitServiceImplMethodDecl() argument 195 EmitServiceImplMethodImpl( const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitServiceImplMethodImpl() argument [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/native/ |
H A D | wifi_msg_test.cpp | 47 int method = INVALID_VALUE; in HWTEST_F() local 48 EXPECT_TRUE(WifiEapConfig::Phase2MethodToStr(eap, method) == "auth=NONE"); in HWTEST_F() 49 method = NINE; in HWTEST_F() 50 EXPECT_TRUE(WifiEapConfig::Phase2MethodToStr(eap, method) == "auth=NONE"); in HWTEST_F() 51 method = FOUR; in HWTEST_F() 52 EXPECT_TRUE(WifiEapConfig::Phase2MethodToStr(eap, method) == "autheap=GTC"); in HWTEST_F() 53 method = FIVE; in HWTEST_F() 54 EXPECT_TRUE(WifiEapConfig::Phase2MethodToStr(eap, method) == "auth=SIM"); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | class_utils.h | 19 #define DEFINE_HAS_METHOD(method) \ 21 class internal_has_##method { \ 23 static std::true_type checkHas(decltype(&ClassTest::method)); \ 32 static inline constexpr const bool has_##method = internal_has_##method<ToCheck>::value
|
/foundation/ability/idl_tool/ast/ |
H A D | ast_interface_type.cpp | 30 void ASTInterfaceType::AddMethod(ASTMethod* method) in AddMethod() argument 32 if (method == nullptr) { in AddMethod() 35 methods_.emplace_back(method); in AddMethod() 77 for (auto method : methods_) { in Dump() 78 String info = method->Dump(prefix + " "); in Dump() 80 if (method != methods_[methods_.size() - 1]) { in Dump()
|
/foundation/multimedia/av_session/frameworks/js/napi/session/include/ |
H A D | napi_async_callback.h | 38 void Call(napi_ref& method, NapiArgsGetter getter = NapiArgsGetter()); 40 void CallWithFlag(napi_ref& method, std::shared_ptr<bool> isValid, NapiArgsGetter getter = NapiArgsGetter()); 42 void CallWithFunc(napi_ref& method, std::shared_ptr<bool> isValid, 55 napi_ref& method; member 60 napi_ref& method; member 66 napi_ref& method; member
|
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtsp/src/ |
H A D | rtsp_common.cpp | 60 bool RtspCommon::VerifyMethod(const std::string &method) in VerifyMethod() argument 62 return method == RTSP_METHOD_OPTIONS || method == RTSP_METHOD_DESCRIBE || method == RTSP_METHOD_ANNOUNCE || in VerifyMethod() 63 method == RTSP_METHOD_SETUP || method == RTSP_METHOD_PLAY || method == RTSP_METHOD_PAUSE || in VerifyMethod() 64 method == RTSP_METHOD_TEARDOWN || method == RTSP_METHOD_GET_PARAMETER || in VerifyMethod() 65 method in VerifyMethod() 154 GenerateAuthorization(const std::string &username, const std::string &realm, const std::string &password, const std::string &nonce, const std::string &method, const std::string &url) GenerateAuthorization() argument [all...] |
/foundation/multimedia/av_session/frameworks/js/napi/session/src/ |
H A D | napi_async_callback.cpp | 69 napi_get_reference_value(context->env, context->method, &function); in AfterWorkCallback() 109 SLOGI("callback with flag ref %{public}p, %{public}p", &(context->method), *(&(context->method))); in AfterWorkCallbackWithFlag() 110 napi_get_reference_value(context->env, context->method, &function); in AfterWorkCallbackWithFlag() 154 napi_get_reference_value(context->env, context->method, &function); in AfterWorkCallbackWithFunc() 168 void NapiAsyncCallback::Call(napi_ref& method, NapiArgsGetter getter) in Call() argument 171 CHECK_RETURN_VOID(method != nullptr, "method is nullptr"); in Call() 176 work->data = new DataContext{env_, method, std::move(getter)}; in Call() 181 void NapiAsyncCallback::CallWithFlag(napi_ref& method, st argument 195 CallWithFunc(napi_ref& method, std::shared_ptr<bool> isValid, const std::function<bool()>& checkCallbackValid, NapiArgsGetter getter) CallWithFunc() argument [all...] |
/foundation/ability/idl_tool/idl_tool_2/ast/ |
H A D | ast_interface_type.cpp | 29 void ASTInterfaceType::AddMethod(const AutoPtr<ASTMethod> &method) in AddMethod() argument 31 if (method == nullptr) { in AddMethod() 34 methods_.push_back(method); in AddMethod() 69 for (const auto &method : methods_) { in GetMethodsBySystem() 70 if (method->GetAttribute()->Match(system)) { in GetMethodsBySystem() 71 methods.push_back(method); in GetMethodsBySystem() 104 for (auto method : methods_) { in Dump() 105 sb.Append(method->Dump(prefix + " ")); in Dump() 106 if (method != methods_[methods_.size() - 1]) { in Dump()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/java/ |
H A D | java_client_interface_code_emitter.cpp | 124 for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) {
in EmitInterfaceMethods() 125 EmitInterfaceMethod(method, sb, prefix);
in EmitInterfaceMethods() 131 const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const
in EmitInterfaceMethod() 133 if (method->GetParameterNumber() == 0) {
in EmitInterfaceMethod() 134 sb.Append(prefix).AppendFormat("int %s() throws RemoteException;\n", MethodName(method->GetName()).c_str());
in EmitInterfaceMethod() 137 paramStr.Append(prefix).AppendFormat("int %s(", MethodName(method->GetName()).c_str());
in EmitInterfaceMethod() 138 for (size_t i = 0; i < method->GetParameterNumber(); i++) {
in EmitInterfaceMethod() 139 AutoPtr<ASTParameter> param = method->GetParameter(i);
in EmitInterfaceMethod() 141 if (i + 1 < method->GetParameterNumber()) {
in EmitInterfaceMethod() 130 EmitInterfaceMethod( const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitInterfaceMethod() argument
|
/foundation/communication/netstack/frameworks/js/builtin/fetch/src/ |
H A D | http_request_utils.cpp | 57 bool MethodForGet(const std::string &method) in MethodForGet() argument 59 return (method == HttpConstant::HTTP_METHOD_HEAD || method == HttpConstant::HTTP_METHOD_OPTIONS || in MethodForGet() 60 method == HttpConstant::HTTP_METHOD_DELETE || method == HttpConstant::HTTP_METHOD_TRACE || in MethodForGet() 61 method == HttpConstant::HTTP_METHOD_GET); in MethodForGet() 64 bool MethodForPost(const std::string &method) in MethodForPost() argument 66 return (method == HttpConstant::HTTP_METHOD_POST || method == HttpConstant::HTTP_METHOD_PUT); in MethodForPost()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/c/ |
H A D | c_service_impl_code_emitter.cpp | 144 for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) {
in EmitLowServiceImplGetMethod() 145 sb.Append(TAB).AppendFormat("service->super.%s = %s%s;\n", method->GetName().c_str(),
in EmitLowServiceImplGetMethod() 146 baseName_.c_str(), method->GetName().c_str());
in EmitLowServiceImplGetMethod() 149 AutoPtr<ASTMethod> method = interface_->GetVersionMethod();
in EmitLowServiceImplGetMethod() local 150 sb.Append(TAB).AppendFormat("service->super.%s = %s%s;\n", method->GetName().c_str(),
in EmitLowServiceImplGetMethod() 151 baseName_.c_str(), method->GetName().c_str());
in EmitLowServiceImplGetMethod() 294 for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) {
in EmitServiceImplMethodImpls() 295 EmitServiceImplMethodImpl(method, sb, prefix);
in EmitServiceImplMethodImpls() 303 const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const
in EmitServiceImplMethodImpl() 305 if (method in EmitServiceImplMethodImpl() 302 EmitServiceImplMethodImpl( const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const EmitServiceImplMethodImpl() argument 332 AutoPtr<ASTMethod> method = interface_->GetVersionMethod(); EmitServiceImplGetVersionMethod() local 402 AutoPtr<ASTMethod> method = interface_->GetVersionMethod(); EmitServiceImplGetMethod() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/ability_component/resource/ |
H A D | ability_component_resource.cpp | 23 const char ABILITY_COMPONENT_METHOD[] = "method"; 78 std::string AbilityComponentResource::MakeMethodHash(const std::string& method) const in MakeMethodHash() 84 methodHash += method; in MakeMethodHash() 91 const std::string& method, const std::string& param, bool useSyncTask) in CallResRegisterMethod() 93 if (method.empty()) { in CallResRegisterMethod() 99 LOGE("fail to get context to call res register method"); in CallResRegisterMethod() 110 [method, param, weakRes, &result] { in CallResRegisterMethod() 113 resRegister->OnMethodCall(method, param, result); in CallResRegisterMethod() 120 [method, param, weakRes] { in CallResRegisterMethod() 124 resRegister->OnMethodCall(method, para in CallResRegisterMethod() 90 CallResRegisterMethod( const std::string& method, const std::string& param, bool useSyncTask) CallResRegisterMethod() argument [all...] |
/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
H A D | js_ui_extension_callback.cpp | 167 napi_value method = nullptr; in CallJsResult() local 168 napi_get_named_property(env_, obj, "onResult", &method); in CallJsResult() 169 if (method == nullptr || AppExecFwk::IsTypeForNapiValue(env_, method, napi_undefined) in CallJsResult() 170 || AppExecFwk::IsTypeForNapiValue(env_, method, napi_null)) { in CallJsResult() 171 TAG_LOGE(AAFwkTag::UI_EXT, "Failed to get onResult method from object"); in CallJsResult() 176 napi_call_function(env_, obj, method, ArraySize(argv), argv, nullptr); in CallJsResult() 218 napi_value method = nullptr; in CallJsError() local 219 napi_get_named_property(env_, obj, "onError", &method); in CallJsError() 220 if (method in CallJsError() [all...] |