HomeSort by relevance Sort by last modified time
    Searched full:formatter (Results 1 - 25 of 397) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/libphonenumber/java/test/com/android/i18n/phonenumbers/
AsYouTypeFormatterTest.java 38 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("ZZ"); local
39 assertEquals("+", formatter.inputDigit('+'));
40 assertEquals("+4", formatter.inputDigit('4'));
41 assertEquals("+48 ", formatter.inputDigit('8'));
42 assertEquals("+48 8", formatter.inputDigit('8'));
43 assertEquals("+48 88", formatter.inputDigit('8'));
44 assertEquals("+48 88 1", formatter.inputDigit('1'));
45 assertEquals("+48 88 12", formatter.inputDigit('2'));
46 assertEquals("+48 88 123", formatter.inputDigit('3'));
47 assertEquals("+48 88 123 1", formatter.inputDigit('1'))
60 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("ZZ"); local
80 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("ZZ"); local
99 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("US"); local
193 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("US"); local
207 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("US"); local
216 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("US"); local
232 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("US"); local
368 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("GB"); local
385 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("GB"); local
400 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("GB"); local
415 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("NZ"); local
429 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("DE"); local
480 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("AR"); local
495 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("AR"); local
514 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("KR"); local
603 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("MX"); local
689 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter("JP"); local
    [all...]
  /development/ide/eclipse/
android-formatting.xml 4 <setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/>
5 <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/>
6 <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/>
7 <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/>
8 <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/>
9 <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/>
10 <setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="0"/>
11 <setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16"/>
12 <setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/>
13 <setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="80"/
    [all...]
android-formatting-35.xml 4 <setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/>
5 <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/>
6 <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/>
7 <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/>
8 <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/>
9 <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/>
10 <setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="0"/>
11 <setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16"/>
12 <setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/>
13 <setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="80"/
    [all...]
README.importing-to-eclipse.txt 1 To import the formatter, go to the preferences, section Java > Code Style >
2 formatter, then click on import and choose
  /external/icu4c/test/intltest/
itrbnfrt.cpp 64 RuleBasedNumberFormat* formatter local
68 errcheckln(status, "failed to construct formatter - %s", u_errorName(status));
70 doTest(formatter, -12345678, 12345678);
72 delete formatter;
82 RuleBasedNumberFormat* formatter local
86 errcheckln(status, "failed to construct formatter - %s", u_errorName(status));
88 doTest(formatter, 0, 12345678);
90 delete formatter;
100 RuleBasedNumberFormat* formatter local
104 errcheckln(status, "failed to construct formatter - %s", u_errorName(status))
118 RuleBasedNumberFormat* formatter local
136 RuleBasedNumberFormat* formatter local
154 RuleBasedNumberFormat* formatter local
172 RuleBasedNumberFormat* formatter local
190 RuleBasedNumberFormat* formatter local
208 RuleBasedNumberFormat* formatter local
226 RuleBasedNumberFormat* formatter local
244 RuleBasedNumberFormat* formatter local
262 RuleBasedNumberFormat* formatter local
    [all...]
itrbnfp.cpp 111 // none of these rules should crash the formatter
125 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(rule, Locale::getUS(), perr, status); local
130 testfmt(formatter, 20, status);
131 testfmt(formatter, 1.23, status);
132 testfmt(formatter, -123, status);
133 testfmt(formatter, .123, status);
134 testfmt(formatter, 123, status);
140 delete formatter;
146 IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status) {
148 formatter->format((const Formattable)val, us, status)
    [all...]
itrbnfp.h 31 void testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status);
32 void testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status);
  /cts/tests/tests/text/src/android/text/format/cts/
FormatterTest.java 23 import android.text.format.Formatter;
28 @TestTargetClass(Formatter.class)
38 assertEquals("", Formatter.formatFileSize(null, 0));
44 assertEquals("0.00B", Formatter.formatFileSize(mContext, 0));
46 assertEquals("899B", Formatter.formatFileSize(mContext, 899));
48 assertEquals("1.00KB", Formatter.formatFileSize(mContext, bd.pow(1).longValue()));
50 assertEquals("1.00MB", Formatter.formatFileSize(mContext, bd.pow(2).longValue()));
52 assertEquals("1.00GB", Formatter.formatFileSize(mContext, bd.pow(3).longValue()));
54 assertEquals("1.00TB", Formatter.formatFileSize(mContext, bd.pow(4).longValue()));
56 assertEquals("1.00PB", Formatter.formatFileSize(mContext, bd.pow(5).longValue()))
    [all...]
  /external/icu4c/i18n/unicode/
measfmt.h 22 * \brief C++ API: Formatter for measure objects.
29 * A formatter for measure objects. This is an abstract base class.
31 * <p>To format or parse a measure object, first create a formatter
46 * Return a formatter for CurrencyAmount objects in the given
50 * @return a formatter object, or NULL upon error
57 * Return a formatter for CurrencyAmount objects in the default
60 * @return a formatter object, or NULL upon error
  /libcore/luni/src/test/java/libcore/java/util/
OldFormatterTest.java 21 import java.util.Formatter;
33 public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalFormatException {
35 formatter.out().append("111");
42 public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalFormatException {
44 formatter.out().append("222");
51 assertEquals("aaa 111?", new Formatter().format("aaa %s?", ones).toString());
52 assertEquals("aaa 111 bbb 222?", new Formatter().format("aaa %s bbb %s?", ones, twos).toString());
58 Formatter fLoc = null
    [all...]
OldFormattableTest.java 22 import java.util.Formatter;
29 public void formatTo(Formatter arg0, int arg1, int arg2, int arg3) {
49 Formatter fmt = new Formatter();
  /external/webkit/Source/WebCore/platform/text/
LocalizedNumberICU.cpp 48 OwnPtr<NumberFormat> formatter = adoptPtr(NumberFormat::createInstance(status)); local
49 return U_SUCCESS(status) ? formatter.release() : 0;
56 static NumberFormat* formatter = createFormatterForCurrentLocale().leakPtr(); local
57 return formatter;
64 NumberFormat* formatter = numberFormatter();
65 if (!formatter)
70 formatter->parse(numberUnicodeString, result, position);
80 NumberFormat* formatter = numberFormatter(); local
81 if (!formatter)
84 formatter->setMaximumFractionDigits(clampToInteger(fractionDigits))
    [all...]
  /external/webkit/Source/WebCore/platform/text/mac/
LocalizedNumberMac.mm 45 RetainPtr<NSNumberFormatter> formatter(AdoptNS, [[NSNumberFormatter alloc] init]);
46 [formatter.get() setLocalizesFormat:YES];
47 [formatter.get() setNumberStyle:NSNumberFormatterDecimalStyle];
48 return formatter;
54 static NSNumberFormatter *formatter = createFormatterForCurrentLocale().leakRef();
55 return formatter;
71 RetainPtr<NSNumberFormatter> formatter = numberFormatter();
72 [formatter.get() setMaximumFractionDigits:fractionDigits];
73 return String([formatter.get() stringFromNumber:number.get()]);
  /external/chromium/base/i18n/
time_formatting.cc 19 string16 TimeFormat(const icu::DateFormat* formatter,
21 DCHECK(formatter);
24 formatter->format(static_cast<UDate>(time.ToDoubleT() * 1000), date_string);
36 scoped_ptr<icu::DateFormat> formatter(
38 return TimeFormat(formatter.get(), time);
64 icu::SimpleDateFormat formatter(generated_pattern, status);
66 return TimeFormat(&formatter, time);
70 scoped_ptr<icu::DateFormat> formatter(
72 return TimeFormat(formatter.get(), time);
76 scoped_ptr<icu::DateFormat> formatter(
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
XmlFormatProcessor.java 18 import static org.eclipse.jface.text.formatter.FormattingContextProperties.CONTEXT_MEDIUM;
19 import static org.eclipse.jface.text.formatter.FormattingContextProperties.CONTEXT_PARTITION;
20 import static org.eclipse.jface.text.formatter.FormattingContextProperties.CONTEXT_REGION;
25 import org.eclipse.jface.text.formatter.FormattingContext;
28 import org.eclipse.wst.xml.core.internal.formatter.XMLFormatterFormatProcessor;
33 * Android specific formatter such that applying format on IFiles work as
49 AndroidXmlFormatter formatter = new AndroidXmlFormatter(); local
56 formatter.formatMaster(context, document, start, length);
AndroidXmlFormatter.java 24 import org.eclipse.jface.text.formatter.FormattingContext;
25 import org.eclipse.jface.text.formatter.FormattingContextProperties;
26 import org.eclipse.jface.text.formatter.IContentFormatter;
27 import org.eclipse.jface.text.formatter.IContentFormatterExtension;
28 import org.eclipse.jface.text.formatter.IFormattingContext;
29 import org.eclipse.jface.text.formatter.IFormattingStrategy;
33 * Formatter which replaces the Eclipse formatter for the Android XML editors, and
34 * delegates to it if the user has chosen to use the Eclipse formatter instead by turning
  /external/chromium/testing/gtest/test/
gtest_pred_impl_unittest.cc 99 // A unary predicate-formatter function.
112 // A unary predicate-formatter functor.
166 // predicate-formatter is a function on a built-in type (int).
174 // predicate-formatter is a function on a user-defined type (Bool).
182 // predicate-formatter is a functor on a built-in type (int).
190 // predicate-formatter is a functor on a user-defined type (Bool).
198 // predicate-formatter is a function on a built-in type (int).
208 // predicate-formatter is a function on a user-defined type (Bool).
218 // predicate-formatter is a functor on a built-in type (int).
228 // predicate-formatter is a functor on a user-defined type (Bool)
    [all...]
  /external/gtest/test/
gtest_pred_impl_unittest.cc 99 // A unary predicate-formatter function.
113 // A unary predicate-formatter functor.
167 // predicate-formatter is a function on a built-in type (int).
175 // predicate-formatter is a function on a user-defined type (Bool).
183 // predicate-formatter is a functor on a built-in type (int).
191 // predicate-formatter is a functor on a user-defined type (Bool).
199 // predicate-formatter is a function on a built-in type (int).
209 // predicate-formatter is a function on a user-defined type (Bool).
219 // predicate-formatter is a functor on a built-in type (int).
229 // predicate-formatter is a functor on a user-defined type (Bool)
    [all...]
  /external/protobuf/gtest/test/
gtest_pred_impl_unittest.cc 99 // A unary predicate-formatter function.
113 // A unary predicate-formatter functor.
167 // predicate-formatter is a function on a built-in type (int).
175 // predicate-formatter is a function on a user-defined type (Bool).
183 // predicate-formatter is a functor on a built-in type (int).
191 // predicate-formatter is a functor on a user-defined type (Bool).
199 // predicate-formatter is a function on a built-in type (int).
209 // predicate-formatter is a function on a user-defined type (Bool).
219 // predicate-formatter is a functor on a built-in type (int).
229 // predicate-formatter is a functor on a user-defined type (Bool)
    [all...]
  /external/webkit/Source/WebCore/inspector/front-end/
AuditFormatters.js 33 var formatter;
41 formatter = WebInspector.AuditFormatters.text;
47 formatter = WebInspector.AuditFormatters.concat;
50 formatter = WebInspector.AuditFormatters[value.type];
54 if (!formatter)
55 throw "Invalid value or formatter: " + type + JSON.stringify(value);
57 return formatter.apply(null, args);
  /libcore/luni/src/main/java/java/util/
Formattable.java 20 * Classes that handle custom formatting for the 's' specifier of {@code Formatter}
24 * @see Formatter
30 * Formats the object using the specified {@code Formatter}.
32 * @param formatter
33 * the {@code Formatter} to use.
57 void formatTo(Formatter formatter, int flags, int width, int precision)
  /libcore/luni/src/test/java/libcore/java/util/logging/
OldXMLFormatterTest.java 29 XMLFormatter formatter = null; field in class:OldXMLFormatterTest
35 formatter = new XMLFormatter();
43 String result = formatter.getHead(handler);
55 assertTrue("Tail string position should be more zero", formatter
61 "</log>", formatter.getTail(null).trim());
63 formatter.getTail(handler).trim());
66 "</log>", formatter.getTail(handler).trim());
  /libcore/luni/src/main/java/java/util/logging/
Handler.java 41 // the formatter used to export messages
42 private Formatter formatter; field in class:Handler
53 * level {@code Level.ALL}. It has no filter and no formatter.
60 this.formatter = null;
95 * init the common properties, including filter, level, formatter, and
128 // set formatter
129 final String formatterName = manager.getProperty(prefix + ".formatter");
132 formatter = (Formatter) getCustomizeInstance(formatterName)
    [all...]
  /external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
XMLFormatterTest.java 38 XMLFormatter formatter = null; field in class:XMLFormatterTest
46 formatter = new XMLFormatter();
59 String result = formatter.format(lr);
65 result = formatter.format(lr);
71 result = formatter.format(lr);
77 result = formatter.format(lr);
94 String output = formatter.format(lr);
115 String output = formatter.format(lr);
135 String result = formatter.getHead(handler);
144 result = formatter.getHead(handler)
    [all...]
  /external/apache-http/src/org/apache/http/message/
BasicLineFormatter.java 49 * The formatted lines are returned in memory, the formatter does not depend
102 * @param formatter the formatter to use, or
110 LineFormatter formatter) {
111 if (formatter == null)
112 formatter = BasicLineFormatter.DEFAULT;
113 return formatter.appendProtocolVersion(null, version).toString();
162 * @param formatter the formatter to use, or
169 LineFormatter formatter) {
    [all...]

Completed in 722 milliseconds

1 2 3 4 5 6 7 8 91011>>