Searched defs:template (Results 1 - 25 of 111) sorted by relevance

12345

/external/toybox/toys/lsb/
H A Dmktemp.c37 char *template = *toys.optargs; local
39 if (!template) template = "tmp.XXXXXX";
44 template = strchr(template, '/') ? xstrdup(template)
45 : xmprintf("%s/%s", TT.tmpdir, template);
47 if (d_flag ? !mkdtemp(template) : mkstemp(template) == -1) {
50 d_flag ? "directory" : "file", TT.tmpdir, template);
[all...]
/external/jcommander/src/test/java/com/beust/jcommander/
H A DArgsValidate2.java16 public static final String POSSIBLE_TEMPLATE_FILE = "mayOrMayNotExist.template";
18 @Parameter(names = { "-template"},
23 public File template = new File(POSSIBLE_TEMPLATE_FILE); field in class:ArgsValidate2
/external/jsilver/src/com/google/clearsilver/jsilver/template/
H A DDelegatingTemplateLoader.java17 package com.google.clearsilver.jsilver.template;
H A DMacro.java17 package com.google.clearsilver.jsilver.template;
H A DTemplate.java17 package com.google.clearsilver.jsilver.template;
26 * Represents a template that can be rendered with data.
31 * Render the template.
33 * @param data Data to merge with template.
35 * @param resourceLoader ResourceLoader to use instead of the default template one when loading
41 * Render the template with a custom RenderingContext.
50 * @param data Data to merge with template.
57 * Name of template (e.g. mytemplate.cs).
68 * Return the EscapeMode in which this template was generated.
H A DTemplateLoader.java17 package com.google.clearsilver.jsilver.template;
28 * Load a template from a named resource, with the provided escape mode. If the mode is
30 * template. If the mode is ESCAPE_AUTO, enable <a href="http://go/autoescapecs">auto escaping</a>
31 * on templates. For each variable in the template, this will determine what type of escaping
34 * @param templateName e.g. some/path/to/template.cs
37 * @param escapeMode the type of escaping to apply to the entire template.
42 * Create a temporary template from content, with the provided escape mode. If the mode is
44 * template. If the mode is ESCAPE_AUTO, enable <a href="http://go/autoescapecs">auto escaping</a>
45 * on templates. For each variable in the template, this will determine what type of escaping
48 * @param name A name to identify the temporary template i
[all...]
H A DRenderingContext.java17 package com.google.clearsilver.jsilver.template;
27 * State that is shared across a template rendering.
76 * Push a new template onto the current execution context. This is to generate stack traces when
81 void pushExecutionContext(Template template); argument
89 * Sets the current position in the template. Used to help generate error messages.
111 * Returns the ResourceLoader object to use to fetch files needed to render the current template.
116 * Returns the configured AutoEscapeOptions to be used while rendering the current template.
121 * Push a new auto escaping mode onto the context. Any template loads via include() or
122 * evaluateVariable() will use this auto escaping mode when loading the template.
151 * Start an auto escaping context to parse and auto escape template content
[all...]
/external/mesa3d/src/gallium/drivers/i915/
H A Di915_resource.c10 const struct pipe_resource *template)
12 if (template->target == PIPE_BUFFER)
13 return i915_buffer_create(screen, template);
15 return i915_texture_create(screen, template, FALSE);
21 const struct pipe_resource *template,
24 if (template->target == PIPE_BUFFER)
27 return i915_texture_from_handle(screen, template, whandle);
9 i915_resource_create(struct pipe_screen *screen, const struct pipe_resource *template) argument
20 i915_resource_from_handle(struct pipe_screen * screen, const struct pipe_resource *template, struct winsys_handle *whandle) argument
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_resource.c37 const struct pipe_resource *template)
39 if (template->target == PIPE_BUFFER)
40 return svga_buffer_create(screen, template);
42 return svga_texture_create(screen, template);
48 const struct pipe_resource *template,
51 if (template->target == PIPE_BUFFER)
54 return svga_texture_from_handle(screen, template, whandle);
36 svga_resource_create(struct pipe_screen *screen, const struct pipe_resource *template) argument
47 svga_resource_from_handle(struct pipe_screen * screen, const struct pipe_resource *template, struct winsys_handle *whandle) argument
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/emitter/template/
H A DVelocityTest.java16 package org.yaml.snakeyaml.emitter.template;
40 assertEquals(Util.getLocalResource("template/etalon1.yaml"), output);
52 Template t = ve.getTemplate("template/mybean1.vm");
57 String etalon = Util.getLocalResource("template/etalon2-template.yaml").trim();
/external/antlr/antlr-3.4/runtime/Python/antlr3/
H A Ddottreegen.py52 template=( variable in class:DOTTreeGenerator
65 template="$name$ [label=\"$text$\"];\n"
69 template="$parent$ -> $child$ // \"$parentText$\" -> \"$childText$\"\n" variable in class:DOTTreeGenerator
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x500/
H A DX500NameBuilder.java14 private X500NameStyle template; field in class:X500NameBuilder
28 * @param template the style template for string to DN conversion.
30 public X500NameBuilder(X500NameStyle template) argument
32 this.template = template;
44 this.addRDN(oid, template.stringToValue(oid, value));
89 vals[i] = template.stringToValue(oids[i], values[i]);
141 return new X500Name(template, vals);
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/
H A DPlatform.java46 static String format(String template, Object... args) { argument
49 template.length() + 16 * args.length);
53 int placeholderStart = template.indexOf("%s", templateStart);
57 builder.append(template.substring(templateStart, placeholderStart));
61 builder.append(template.substring(templateStart));
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/
H A DPlatform.java44 static String format(String template, Object... args) { argument
47 template.length() + 16 * args.length);
51 int placeholderStart = template.indexOf("%s", templateStart);
55 builder.append(template.substring(templateStart, placeholderStart));
59 builder.append(template.substring(templateStart));
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DPlatform.java50 static String format(String template, Object... args) { argument
51 return String.format(template, args);
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
H A DPlatform.java30 * Format the template with args, only supports the placeholder
33 static String format(String template, Object... args) { argument
34 return String.format(template, args);
/external/jsilver/src/com/google/clearsilver/jsilver/
H A DTemplateRenderer.java22 import com.google.clearsilver.jsilver.template.Template;
27 * Renders a template.
32 * Renders a given template and provided data, writing to an arbitrary output.
34 * @param templateName Name of template to load (e.g. "things/blah.cs").
35 * @param data Data to be used in template.
36 * @param output Where template should be rendered to. This can be a Writer, PrintStream,
52 * Same as {@link #render(String, Data, Appendable)}, except returns rendered template as a
58 * Renders a given template and provided data, writing to an arbitrary output.
60 * @param template Template to render.
61 * @param data Data to be used in template
68 render(Template template, Data data, Appendable output, ResourceLoader resourceLoader) argument
75 render(Template template, Data data, Appendable output) argument
81 render(Template template, Data data) argument
[all...]
/external/libdaemon/libdaemon/
H A Ddlog.c51 void daemon_logv(int prio, const char* template, va_list arglist) { argument
58 vsyslog(prio | LOG_DAEMON, template, arglist);
65 vfprintf(stderr, template, arglist);
70 vfprintf(stdout, template, arglist);
78 void daemon_log(int prio, const char* template, ...) { argument
81 va_start(arglist, template);
82 daemon_logv(prio, template, arglist);
/external/ltp/lib/
H A Dtst_tmpdir.c120 char template[PATH_MAX]; local
125 * Create a template for the temporary directory. Use the
141 snprintf(template, PATH_MAX, "%s/%.3sXXXXXX", env_tmpdir, TCID);
143 snprintf(template, PATH_MAX, "%s/%.3sXXXXXX", TEMPDIR, TCID);
147 if (mkdtemp(template) == NULL)
149 "%s: mkdtemp(%s) failed", __func__, template);
150 if ((TESTDIR = strdup(template)) == NULL)
152 "%s: strdup(%s) failed", __func__, template);
/external/testng/src/main/java/org/testng/mustache/
H A DMustache.java11 public String run(String template, Map<String, Object> m) throws IOException { argument
12 return run(template, new Model(m));
15 String run(String template, Model model) throws IOException { argument
20 while (ti < template.length()) {
23 if (template.charAt(ti) == '\n') lineNumber++;
25 if (template.charAt(ti) == '{' && ti + 1 < template.length()
26 && template.charAt(ti + 1) == '{') {
30 while (index < template.length() && ! foundEnd) {
32 foundEnd = template
98 findClosingIndex(String template, int ti, String conditionalVariable) argument
[all...]
/external/toolchain-utils/automation/clients/report/dejagnu/
H A Dreport.py100 from django import template namespace
101 from django.template import loader
113 ctx = template.Context({'test_runs': tmpl_args})
/external/jsilver/src/com/google/clearsilver/jsilver/compatibility/
H A DClearsilverRenderer.java20 import com.google.clearsilver.jsilver.template.Template;
100 public void render(Template template, Data data, Appendable output, ResourceLoader resourceLoader) argument
103 + "template names, not Templates");
107 public void render(Template template, Data data, Appendable output) throws IOException, argument
109 render(template, data, output, defaultResourceLoader);
113 public String render(Template template, Data data) throws IOException, JSilverException { argument
115 render(template, data, output);
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_staging.c33 util_staging_resource_template(struct pipe_resource *pt, unsigned width, unsigned height, unsigned depth, struct pipe_resource *template) argument
35 memset(template, 0, sizeof(struct pipe_resource));
37 template->target = PIPE_TEXTURE_RECT;
39 template->target = pt->target;
40 template->format = pt->format;
41 template->width0 = width;
42 template->height0 = height;
43 template->depth0 = depth;
44 template->array_size = 1;
45 template
[all...]
/external/mesa3d/src/mapi/glapi/
H A Dglapi_entrypoint.c140 static const unsigned int template[] = { local
206 code[0] = template[0] | (dispatch >> 10);
207 code[1] = template[1];
209 code[2] = template[2] | (dispatch & 0x3ff);
210 code[3] = template[3];
212 code[4] = template[4];
213 code[5] = template[5];
215 code[6] = template[6];
219 code[0] = template[0] | (dispatch >> (32 + 10));
220 code[1] = template[
270 static const unsigned int template[] = { local
[all...]
/external/mesa3d/src/mesa/drivers/dri/common/xmlpool/
H A Dgen_xmlpool.py156 # Process the options template and generate options.h with all
158 template = file ("t_options.h", "r") variable
160 for line in template:

Completed in 5924 milliseconds

12345