Home
last modified time | relevance | path

Searched refs:vars (Results 1 – 25 of 655) sorted by relevance

12345678910>>...27

/external/grpc-grpc/src/compiler/
Dcpp_generator.cc68 std::map<grpc::string, grpc::string> vars; in PrintIncludes() local
70 vars["l"] = use_system_headers ? '<' : '"'; in PrintIncludes()
71 vars["r"] = use_system_headers ? '>' : '"'; in PrintIncludes()
74 vars["l"] += search_path; in PrintIncludes()
76 vars["l"] += '/'; in PrintIncludes()
81 vars["h"] = *i; in PrintIncludes()
82 printer->Print(vars, "#include $l$$h$$r$\n"); in PrintIncludes()
92 std::map<grpc::string, grpc::string> vars; in GetHeaderPrologue() local
94 vars["filename"] = file->filename(); in GetHeaderPrologue()
95 vars["filename_identifier"] = FilenameIdentifier(file->filename()); in GetHeaderPrologue()
[all …]
Dobjective_c_generator.cc43 map< ::grpc::string, ::grpc::string> vars) { in PrintProtoRpcDeclarationAsPragma() argument
44 vars["client_stream"] = method->client_streaming() ? "stream " : ""; in PrintProtoRpcDeclarationAsPragma()
45 vars["server_stream"] = method->server_streaming() ? "stream " : ""; in PrintProtoRpcDeclarationAsPragma()
47 printer->Print(vars, in PrintProtoRpcDeclarationAsPragma()
77 const map< ::grpc::string, ::grpc::string>& vars) { in PrintMethodSignature() argument
81 printer->Print(vars, "- ($return_type$)$method_name$With"); in PrintMethodSignature()
85 printer->Print(vars, "Request:($request_class$ *)request"); in PrintMethodSignature()
90 printer->Print(vars, in PrintMethodSignature()
95 printer->Print(vars, in PrintMethodSignature()
102 map< ::grpc::string, ::grpc::string> vars) { in PrintSimpleSignature() argument
[all …]
/external/flatbuffers/grpc/src/compiler/
Dcpp_generator.cc87 std::map<grpc::string, grpc::string> vars; in PrintIncludes() local
89 vars["l"] = params.use_system_headers ? '<' : '"'; in PrintIncludes()
90 vars["r"] = params.use_system_headers ? '>' : '"'; in PrintIncludes()
94 vars["l"] += s; in PrintIncludes()
96 vars["l"] += '/'; in PrintIncludes()
101 vars["h"] = *i; in PrintIncludes()
102 printer->Print(vars, "#include $l$$h$$r$\n"); in PrintIncludes()
112 std::map<grpc::string, grpc::string> vars; in GetHeaderPrologue() local
114 vars["filename"] = file->filename(); in GetHeaderPrologue()
115 vars["filename_identifier"] = FilenameIdentifier(file->filename()); in GetHeaderPrologue()
[all …]
Dgo_generator.cc75 std::map<grpc::string, grpc::string> vars) { in GenerateImports() argument
76 vars["filename"] = file->filename(); in GenerateImports()
79 printer->Print(vars, "//source: $filename$\n\n"); in GenerateImports()
80 printer->Print(vars, "package $Package$\n\n"); in GenerateImports()
87 printer->Print(vars, "$context$ \"context\"\n"); in GenerateImports()
88 printer->Print(vars, "$grpc$ \"google.golang.org/grpc\"\n"); in GenerateImports()
95 std::map<grpc::string, grpc::string> vars) { in GenerateServerMethodSignature() argument
96 vars["Method"] = exportName(method->name()); in GenerateServerMethodSignature()
97 vars["Request"] = method->get_input_type_name(); in GenerateServerMethodSignature()
98vars["Response"] = (vars["CustomMethodIO"] == "") ? method->get_output_type_name() : vars["CustomM… in GenerateServerMethodSignature()
[all …]
Djava_generator.cc52 grpc_generator::Printer* printer, VARS& vars) { in GenerateImports() argument
53 vars["filename"] = file->filename(); in GenerateImports()
55 vars, in GenerateImports()
58 printer->Print(vars, "//source: $filename$.fbs\n\n"); in GenerateImports()
59 printer->Print(vars, "package $Package$;\n\n"); in GenerateImports()
60 vars["Package"] = vars["Package"] + "."; in GenerateImports()
118 static inline string JavaClassName(VARS& vars, const string& name) { in JavaClassName() argument
120 return vars["Package"] + name; in JavaClassName()
260 static void GrpcWriteDocCommentBody(Printer* printer, VARS& vars, in GrpcWriteDocCommentBody() argument
272 vars["line"] = lines[i]; in GrpcWriteDocCommentBody()
[all …]
/external/grpc-grpc-java/compiler/src/java_plugin/cpp/
Djava_generator.cpp373 const ServiceDescriptor* service, std::map<string, string>* vars, in PrintMethodFields() argument
376 (*vars)["service_name"] = service->name(); in PrintMethodFields()
379 (*vars)["arg_in_id"] = to_string(2 * i); in PrintMethodFields()
380 (*vars)["arg_out_id"] = to_string(2 * i + 1); in PrintMethodFields()
381 (*vars)["method_name"] = method->name(); in PrintMethodFields()
382 (*vars)["input_type"] = MessageFullJavaName(flavor == ProtoFlavor::NANO, in PrintMethodFields()
384 (*vars)["output_type"] = MessageFullJavaName(flavor == ProtoFlavor::NANO, in PrintMethodFields()
386 (*vars)["method_field_name"] = MethodPropertiesFieldName(method); in PrintMethodFields()
387 (*vars)["method_new_field_name"] = MethodPropertiesGetterName(method); in PrintMethodFields()
388 (*vars)["method_method_name"] = MethodPropertiesGetterName(method); in PrintMethodFields()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_enum.cc81 map<string, string> vars; in GenerateDefinition() local
82 vars["classname"] = classname_; in GenerateDefinition()
83 vars["short_name"] = descriptor_->name(); in GenerateDefinition()
84 vars["enumbase"] = classname_ + (options_.proto_h ? " : int" : ""); in GenerateDefinition()
86 printer->Print(vars, "enum $enumbase$ {\n"); in GenerateDefinition()
94 vars["name"] = EnumValueName(descriptor_->value(i)); in GenerateDefinition()
98 vars["number"] = Int32ToString(descriptor_->value(i)->number()); in GenerateDefinition()
99 vars["prefix"] = (descriptor_->containing_type() == NULL) ? in GenerateDefinition()
101 vars["deprecation"] = descriptor_->value(i)->options().deprecated() ? in GenerateDefinition()
105 printer->Print(vars, "$prefix$$name$$deprecation$ = $number$"); in GenerateDefinition()
[all …]
Dcpp_extension.cc95 map<string, string> vars; in GenerateDeclaration() local
96 vars["extendee" ] = ExtendeeClassName(descriptor_); in GenerateDeclaration()
97 vars["number" ] = SimpleItoa(descriptor_->number()); in GenerateDeclaration()
98 vars["type_traits" ] = type_traits_; in GenerateDeclaration()
99 vars["name" ] = descriptor_->name(); in GenerateDeclaration()
100 vars["field_type" ] = SimpleItoa(static_cast<int>(descriptor_->type())); in GenerateDeclaration()
101 vars["packed" ] = descriptor_->options().packed() ? "true" : "false"; in GenerateDeclaration()
102 vars["constant_name"] = FieldConstantName(descriptor_); in GenerateDeclaration()
108 vars["qualifier"] = "extern"; in GenerateDeclaration()
110 vars["qualifier"] = options_.dllexport_decl + " " + vars["qualifier"]; in GenerateDeclaration()
[all …]
/external/protobuf/src/google/protobuf/io/
Dprinter.cc181 map<string, string> vars; in Print() local
182 vars[variable] = value; in Print()
183 Print(vars, text); in Print()
189 map<string, string> vars; in Print() local
190 vars[variable1] = value1; in Print()
191 vars[variable2] = value2; in Print()
192 Print(vars, text); in Print()
199 map<string, string> vars; in Print() local
200 vars[variable1] = value1; in Print()
201 vars[variable2] = value2; in Print()
[all …]
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_extension.cc62 map<string, string> vars; in GenerateMembersHeader() local
63 vars["method_name"] = method_name_; in GenerateMembersHeader()
66 vars["comments"] = BuildCommentsString(location); in GenerateMembersHeader()
68 vars["comments"] = ""; in GenerateMembersHeader()
70 printer->Print(vars, in GenerateMembersHeader()
77 map<string, string> vars; in GenerateStaticVariablesInitialization() local
78 vars["root_class_and_method_name"] = root_class_and_method_name_; in GenerateStaticVariablesInitialization()
79 vars["extended_type"] = ClassName(descriptor_->containing_type()); in GenerateStaticVariablesInitialization()
80 vars["number"] = SimpleItoa(descriptor_->number()); in GenerateStaticVariablesInitialization()
88 vars["options"] = BuildFlagsString(options); in GenerateStaticVariablesInitialization()
[all …]
/external/protobuf/src/google/protobuf/compiler/java/
Djava_extension.cc69 map<string, string> &vars = *vars_pointer; in InitTemplateVars() local
70 vars["scope"] = scope; in InitTemplateVars()
71 vars["name"] = UnderscoresToCamelCase(descriptor); in InitTemplateVars()
72 vars["containing_type"] = in InitTemplateVars()
74 vars["number"] = SimpleItoa(descriptor->number()); in InitTemplateVars()
75 vars["constant_name"] = FieldConstantName(descriptor); in InitTemplateVars()
76 vars["index"] = SimpleItoa(descriptor->index()); in InitTemplateVars()
77 vars["default"] = descriptor->is_repeated() ? in InitTemplateVars()
79 vars["type_constant"] = FieldTypeName(GetType(descriptor)); in InitTemplateVars()
80 vars["packed"] = descriptor->options().packed() ? "true" : "false"; in InitTemplateVars()
[all …]
Djava_service.cc206 map<string, string> vars; in GenerateCallMethod() local
207 vars["index"] = SimpleItoa(i); in GenerateCallMethod()
208 vars["method"] = UnderscoresToCamelCase(method); in GenerateCallMethod()
209 vars["input"] = name_resolver_->GetImmutableClassName( in GenerateCallMethod()
211 vars["output"] = name_resolver_->GetImmutableClassName( in GenerateCallMethod()
213 printer->Print(vars, in GenerateCallMethod()
254 map<string, string> vars; in GenerateCallBlockingMethod() local
255 vars["index"] = SimpleItoa(i); in GenerateCallBlockingMethod()
256 vars["method"] = UnderscoresToCamelCase(method); in GenerateCallBlockingMethod()
257 vars["input"] = name_resolver_->GetImmutableClassName( in GenerateCallBlockingMethod()
[all …]
/external/nos/host/generic/libnos/generator/
Dmain.cpp122 std::map<std::string, std::string> vars; in ForEachMethod() local
123 vars["method_id"] = std::to_string(i); in ForEachMethod()
124 vars["method_name"] = method.name(); in ForEachMethod()
125 vars["method_input_type"] = FullyQualifiedIdentifier(*method.input_type()); in ForEachMethod()
126 vars["method_output_type"] = FullyQualifiedIdentifier(*method.output_type()); in ForEachMethod()
127 handler(vars); in ForEachMethod()
132 std::map<std::string, std::string> vars; in GenerateMockClient() local
133 vars["include_guard"] = "PROTOC_GENERATED_MOCK_" + service.name() + "_CLIENT_H"; in GenerateMockClient()
134 vars["service_header"] = service.name() + ".client.h"; in GenerateMockClient()
135 vars["mock_class"] = "Mock" + service.name(); in GenerateMockClient()
[all …]
/external/libgsm/tls/
Dsweet.c19 int vars; variable
23 vars = sp->varsize;
27 if (vars == sp->varsize) {
31 if (vars == bits) {
39 vars = sp->varsize;
42 } else if (vars < bits) {
45 bits - vars,
46 ~(0xfffffffe << (vars - 1)));
48 bits -= vars;
51 vars = sp->varsize;
[all …]
Dbitter.c19 int vars; variable
23 vars = sp->varsize;
30 if (vars == bits) {
38 vars = sp->varsize;
41 } else if (vars < bits) {
45 ~(0xfffffffe << (vars - 1)),
46 bits - vars);
47 bits -= vars;
54 vars = sp->varsize;
59 vars - bits,
[all …]
/external/skia/infra/bots/recipes/
Dperf_pathkit.py26 api.vars.setup()
28 out_dir = api.vars.swarming_out_dir
38 if 'asmjs' in api.vars.builder_name:
42 base_dir = api.vars.build_dir
44 if 'asmjs' in api.vars.builder_name:
95 if 'asmjs' in api.vars.builder_name:
100 '--builder', api.vars.builder_name,
104 '--bot_id', api.vars.swarming_bot_id,
105 '--task_id', api.vars.swarming_task_id,
107 '--config', api.vars.configuration,
[all …]
Dtest_pathkit.py26 api.vars.setup()
28 out_dir = api.vars.swarming_out_dir
38 if 'asmjs' in api.vars.builder_name:
42 base_dir = api.vars.build_dir
44 if 'asmjs' in api.vars.builder_name:
47 if 'Debug' in api.vars.builder_name:
101 if 'asmjs' in api.vars.builder_name:
106 '--builder', api.vars.builder_name,
110 '--bot_id', api.vars.swarming_bot_id,
111 '--task_id', api.vars.swarming_task_id,
[all …]
Dskpbench.py45 if 'Android' in api.vars.builder_name:
46 app = api.vars.build_dir.join('skpbench')
49 skpbench_dir = api.vars.slave_dir.join('skia', 'tools', 'skpbench')
50 table = api.path.join(api.vars.swarming_out_dir, 'table')
52 if 'Vulkan' in api.vars.builder_name:
63 if 'DDL' in api.vars.builder_name:
68 if 'DDLRecord' in api.vars.builder_name:
70 if '9x9' in api.vars.builder_name:
74 if 'Android' in api.vars.builder_name:
78 if 'CCPR' in api.vars.builder_name:
[all …]
/external/skqp/infra/bots/recipes/
Dperf_pathkit.py26 api.vars.setup()
28 out_dir = api.vars.swarming_out_dir
38 if 'asmjs' in api.vars.builder_name:
42 base_dir = api.vars.build_dir
44 if 'asmjs' in api.vars.builder_name:
95 if 'asmjs' in api.vars.builder_name:
100 '--builder', api.vars.builder_name,
104 '--bot_id', api.vars.swarming_bot_id,
105 '--task_id', api.vars.swarming_task_id,
107 '--config', api.vars.configuration,
[all …]
Dtest_pathkit.py26 api.vars.setup()
28 out_dir = api.vars.swarming_out_dir
38 if 'asmjs' in api.vars.builder_name:
42 base_dir = api.vars.build_dir
44 if 'asmjs' in api.vars.builder_name:
47 if 'Debug' in api.vars.builder_name:
101 if 'asmjs' in api.vars.builder_name:
106 '--builder', api.vars.builder_name,
110 '--bot_id', api.vars.swarming_bot_id,
111 '--task_id', api.vars.swarming_task_id,
[all …]
Dskpbench.py45 if 'Android' in api.vars.builder_name:
46 app = api.vars.build_dir.join('skpbench')
49 skpbench_dir = api.vars.slave_dir.join('skia', 'tools', 'skpbench')
50 table = api.path.join(api.vars.swarming_out_dir, 'table')
52 if 'Vulkan' in api.vars.builder_name:
63 if 'DDL' in api.vars.builder_name:
68 if 'DDLRecord' in api.vars.builder_name:
70 if '9x9' in api.vars.builder_name:
74 if 'Android' in api.vars.builder_name:
78 if 'CCPR' in api.vars.builder_name:
[all …]
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_message.cc102 map<string, string> vars; in Generate() local
103 vars["class_name"] = class_name(); in Generate()
104 vars["access_level"] = class_access_level(); in Generate()
111 vars, in Generate()
117 vars, in Generate()
123 vars["descriptor_accessor"] = GetReflectionClassName(descriptor_->file()) in Generate()
126 vars["descriptor_accessor"] = GetClassName(descriptor_->containing_type()) in Generate()
131 vars, in Generate()
143 vars, in Generate()
171 vars["name"] = UnderscoresToCamelCase(descriptor_->oneof_decl(i)->name(), false); in Generate()
[all …]
/external/python/cpython2/Lib/
Dsysconfig.py157 def _expand_vars(scheme, vars): argument
159 if vars is None:
160 vars = {}
161 _extend_dict(vars, get_config_vars())
166 res[key] = os.path.normpath(_subst_vars(value, vars))
195 def _parse_makefile(filename, vars=None): argument
209 if vars is None:
210 vars = {}
277 vars.update(done)
278 return vars
[all …]
/external/ltp/testcases/lib/
Dtst_net_vars.c68 static struct ltp_net_variables vars; variable
525 vars.ipv4_lbroadcast = get_ipv4_broadcast(lip, lprefix); in get_ipv4_info()
526 vars.ipv4_rbroadcast = get_ipv4_broadcast(rip, rprefix); in get_ipv4_info()
528 vars.ipv4_lnetmask = get_ipv4_netmask(lprefix); in get_ipv4_info()
529 vars.ipv4_rnetmask = get_ipv4_netmask(rprefix); in get_ipv4_info()
531 vars.ipv4_lnetwork = get_ipv4_network(lip.s_addr, lprefix_round); in get_ipv4_info()
532 vars.ipv4_rnetwork = get_ipv4_network(rip.s_addr, rprefix_round); in get_ipv4_info()
534 vars.lhost_ipv4_host = get_host_from_ip(lip_str, vars.ipv4_lnetwork); in get_ipv4_info()
535 vars.rhost_ipv4_host = get_host_from_ip(rip_str, vars.ipv4_rnetwork); in get_ipv4_info()
537 vars.ipv4_net16_unused = get_ipv4_net16_unused(&lip, lprefix_round); in get_ipv4_info()
[all …]
/external/python/cpython3/Lib/
Dsysconfig.py168 def _expand_vars(scheme, vars): argument
170 if vars is None:
171 vars = {}
172 _extend_dict(vars, get_config_vars())
177 res[key] = os.path.normpath(_subst_vars(value, vars))
209 def _parse_makefile(filename, vars=None): argument
223 if vars is None:
224 vars = {}
329 vars.update(done)
330 return vars
[all …]

12345678910>>...27