/libcore/luni/src/main/java/java/text/ |
ChoiceFormat.java | 105 * @param template 110 public ChoiceFormat(String template) { 111 applyPattern(template); 118 * @param template 123 public void applyPattern(String template) { 126 int length = template.length(), limitCount = 0, index = 0; 131 index = skipWhitespace(template, index); 147 Number value = format.parse(template, position); 148 index = skipWhitespace(template, position.getIndex()); 155 char ch = template.charAt(index++) [all...] |
/external/chromium_org/chrome/tools/build/ |
version.py | 62 Returns the template with substituted values from the specified dictionary. 87 template = open(file_name, 'r').read() 88 return subst_template(template, values); 115 Usage: version.py [-h] [-f FILE] ([[-i] FILE] | -t TEMPLATE) [[-o] FILE] 120 -t TEMPLATE, --template=TEMPLATE Use TEMPLATE as the strings to substitute. 131 template = None variable 150 elif o in ('-t', '--template') 151 template = a variable [all...] |
/external/guava/guava/src/com/google/common/base/ |
Preconditions.java | 97 * @param errorMessageTemplate a template for the exception message should the 99 * placeholder in the template with an argument. These are matched by 104 * template. Arguments are converted to strings using 154 * @param errorMessageTemplate a template for the exception message should the 156 * placeholder in the template with an argument. These are matched by 161 * template. Arguments are converted to strings using 214 * @param errorMessageTemplate a template for the exception message should the 216 * placeholder in the template with an argument. These are matched by 221 * template. Arguments are converted to strings using 401 * Substitutes each {@code %s} in {@code template} with an argument. Thes [all...] |
/packages/apps/Settings/src/com/android/settings/net/ |
DataUsageMeteredSettings.java | 96 final NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll( local 98 final MeteredPreference pref = new MeteredPreference(context, template); 105 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(networkId); local 106 final MeteredPreference pref = new MeteredPreference(context, template); 115 public MeteredPreference(Context context, NetworkTemplate template) { 117 mTemplate = template; 122 final NetworkPolicy policy = mPolicyEditor.getPolicyMaybeUnquoted(template);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
NewActivityWizard.java | 39 * Wizard and a New Template Wizard: it has the "Activity selector" page from 41 * second page, but beyond that it runs the normal template wizard when it comes 42 * time to create the template. 104 TemplateMetadata template = mActivityValues.getTemplateHandler().getTemplate(); local 105 if (template != null) { 106 if (InstallDependencyPage.isInstalled(template.getDependencies())) { 109 return getDependencyPage(template, true); 113 TemplateMetadata template = mActivityValues.getTemplateHandler().getTemplate(); local 114 if (template != null && page == getDependencyPage(template, false)) [all...] |
StringEvaluator.java | 26 import freemarker.template.Configuration; 27 import freemarker.template.DefaultObjectWrapper; 28 import freemarker.template.Template; 38 * A template handler which can evaluate simple strings. Used to evaluate 42 * full template files (from resources, merging into existing files etc) this 62 // Render the instruction list template. 68 Template inputsTemplate = mFreemarker.getTemplate(expression);
|
/external/chromium_org/tools/deep_memory_profiler/visualizer/static/ |
profiler.js | 9 var Profiler = function(jsonData, template) { 11 // Initialize template with templates information. 12 this.template_ = template || 57 * Calcualte initial models according default template. 65 * Get current breakdown template. 66 * @return {Object} current breakdown template. 137 * Generate and then reparse new template when new sub was selected. 145 // Add sub breakdown to template. 149 models[0].template[2][key] = subTmpl; 151 // Recalculate new template [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
TemplateList.java | 41 * Encapsulates a template list, and helps locate individual templates. 58 * Add a template to the table of named templates and/or the table of templates 62 * @param template 64 public void setTemplate(ElemTemplate template) 66 XPath matchXPath = template.getMatch(); 68 if (null == template.getName() && null == matchXPath) 70 template.error(XSLTErrorResources.ER_NEED_NAME_OR_MATCH_ATTRIB, 71 new Object[]{ "xsl:template" }); 74 if (null != template.getName()) 76 ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName()) 79 m_namedTemplates.put(template.getName(), template); local 89 m_namedTemplates.put(template.getName(), template); local 556 ElemTemplate template = head.getTemplate(); local 614 ElemTemplate template = head.getTemplate(); local [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/compatibility/ |
ClearsilverRenderer.java | 20 import com.google.clearsilver.jsilver.template.Template; 100 public void render(Template template, Data data, Appendable output, ResourceLoader resourceLoader) 103 + "template names, not Templates"); 107 public void render(Template template, Data data, Appendable output) throws IOException, 109 render(template, data, output, defaultResourceLoader); 113 public String render(Template template, Data data) throws IOException, JSilverException [all...] |
/external/chromium_org/tools/deep_memory_profiler/ |
accumulate.py | 9 # ./accumulate.py -f <format> -t <template-name> < input.json > output 15 # <template-name> is a label in templates.json. 29 def visit_in_template(template, snapshot, depth): 30 """Visits all categories via a given template. 32 This function is not used. It's a sample function to traverse a template. 34 world = template[0] 35 breakdown = template[1] 36 rules = template[2] 44 def accumulate(template, snapshot, units_dict, target_units): 45 """Accumulates units in a JSON |snapshot| with applying a given |template| [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/dri/sw/ |
Makefile | 25 include ../../../Makefile.template
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/va/ |
Makefile | 25 include ../../Makefile.template
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vdpau/ |
Makefile | 25 include ../../Makefile.template
|
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/svga/drm/ |
Makefile | 19 include ../../../Makefile.template
|
/external/jsilver/src/com/google/clearsilver/jsilver/interpreter/ |
InterpretedTemplate.java | 27 import com.google.clearsilver.jsilver.template.DefaultRenderingContext; 28 import com.google.clearsilver.jsilver.template.RenderingContext; 29 import com.google.clearsilver.jsilver.template.Template; 30 import com.google.clearsilver.jsilver.template.TemplateLoader; 35 * Template implementation that uses the interpreter to render itself. 37 public class InterpretedTemplate implements Template {
|
/external/jsilver/src/com/google/clearsilver/jsilver/template/ |
Template.java | 17 package com.google.clearsilver.jsilver.template; 26 * Represents a template that can be rendered with data. 28 public interface Template { 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 [all...] |
/external/mesa3d/src/gallium/state_trackers/dri/sw/ |
Makefile | 25 include ../../../Makefile.template
|
/external/mesa3d/src/gallium/state_trackers/va/ |
Makefile | 25 include ../../Makefile.template
|
/external/mesa3d/src/gallium/state_trackers/vdpau/ |
Makefile | 25 include ../../Makefile.template
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
Makefile | 19 include ../../../Makefile.template
|
/frameworks/base/services/java/com/android/server/net/ |
NetworkPolicyManagerService.java | 532 final NetworkTemplate template = intent.getParcelableExtra(EXTRA_NETWORK_TEMPLATE); 533 performSnooze(template, TYPE_WARNING); 551 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(config.SSID); 553 if (mNetworkPolicy.containsKey(template)) { 554 mNetworkPolicy.remove(template); 580 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(info.getSSID()); 582 NetworkPolicy policy = mNetworkPolicy.get(template); 586 policy = new NetworkPolicy(template, CYCLE_NONE, Time.TIMEZONE_UTC, 638 if (!isTemplateRelevant(policy.template)) continue; 643 final long totalBytes = getTotalBytes(policy.template, start, end) 1131 final NetworkTemplate template = buildTemplateMobileAll(subscriberId); local 1218 final NetworkTemplate template = new NetworkTemplate( local 1293 final NetworkTemplate template = policy.template; local [all...] |
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/ |
ActionTranslator.g | 31 // output=template; TODO: can we make tokens return templates somehow? 167 protected ST template(String name) { 194 st = template("ruleSetPropertyRef_"+$y.text); 216 st = template("parameterSetAttributeRef"); 221 st = template("returnSetAttributeRef"); 243 st = template("rulePropertyRef_"+$y.text); 256 st = template("parameterAttributeRef"); 260 st = template("returnAttributeRef"); 310 ST st = template("tokenLabelPropertyRef_"+$y.text); 387 st = template("ruleLabelPropertyRef_"+$y.text) [all...] |
/developers/build/buildSrc/src/main/groovy/com/example/android/samples/build/ |
ApplyTemplates.groovy | 21 import freemarker.template.Configuration 22 import freemarker.template.DefaultObjectWrapper 23 import freemarker.template.Template 36 def Configuration cfg = new freemarker.template.Configuration() 74 * The hash which will be passed to the freemarker template engine. This hash 76 * The hash should contain a key named "meta". The template processor will add 88 // Create a list of Freemarker template loaders based on the 90 // file system for freemarker templates; the template language can 93 println "Gathering template load locations: [all...] |
/external/antlr/antlr-3.4/runtime/Python/unittests/ |
testdottreegen.py | 30 template=( 38 template="$parent$ -> $child$\n"
|
/external/chromium_org/mojo/public/bindings/generators/ |
template_expander.py | 30 template = jinja_env.get_template(template_name) 31 return template.render(params)
|