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

1 2 3 4 5 6 7 8 91011>>

  /external/libphonenumber/java/test/com/android/i18n/phonenumbers/
AsYouTypeFormatterTest.java 30 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.ZZ); local
31 assertEquals("+", formatter.inputDigit('+'));
32 assertEquals("+4", formatter.inputDigit('4'));
33 assertEquals("+48 ", formatter.inputDigit('8'));
34 assertEquals("+48 8", formatter.inputDigit('8'));
35 assertEquals("+48 88", formatter.inputDigit('8'));
36 assertEquals("+48 88 1", formatter.inputDigit('1'));
37 assertEquals("+48 88 12", formatter.inputDigit('2'));
38 assertEquals("+48 88 123", formatter.inputDigit('3'));
39 assertEquals("+48 88 123 1", formatter.inputDigit('1'))
52 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.ZZ); local
72 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.ZZ); local
92 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.BY); local
107 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.BY); local
121 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); local
215 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); local
229 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); local
238 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); local
254 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); local
390 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.GB); local
407 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.GB); local
422 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.GB); local
437 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.NZ); local
451 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.DE); local
502 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.AR); local
517 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.AR); local
536 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.KR); local
625 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.MX); local
710 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); local
729 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.JP); local
785 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.AU); local
842 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.KR); local
863 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.KR); local
899 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.SG); local
919 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.AU); local
994 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.KR); local
1036 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.MX); local
1075 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.IT); local
1087 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US); local
    [all...]
  /external/harfbuzz_ng/test/shaping/
hb-diff-colorize 5 formatter = ColorFormatter.Auto (sys.argv) variable
6 colorizer = DiffColorizer (formatter=formatter)
  /external/objenesis/main/.settings/
org.eclipse.jdt.core.prefs 14 org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
15 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
16 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
17 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
18 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
19 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
20 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
21 org.eclipse.jdt.core.formatter.alignment_for_assignment=0
22 org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
23 org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
    [all...]
  /external/objenesis/tck/.settings/
org.eclipse.jdt.core.prefs 14 org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
15 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
16 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
17 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
18 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
19 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
20 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
21 org.eclipse.jdt.core.formatter.alignment_for_assignment=0
22 org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
23 org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
    [all...]
  /cts/tests/tests/text/src/android/text/format/cts/
FormatterTest.java 23 import android.text.format.Formatter;
29 assertEquals("", Formatter.formatFileSize(null, 0));
35 assertEquals("0.00B", Formatter.formatFileSize(mContext, 0));
37 assertEquals("899B", Formatter.formatFileSize(mContext, 899));
39 assertEquals("1.00KB", Formatter.formatFileSize(mContext, bd.pow(1).longValue()));
41 assertEquals("1.00MB", Formatter.formatFileSize(mContext, bd.pow(2).longValue()));
43 assertEquals("1.00GB", Formatter.formatFileSize(mContext, bd.pow(3).longValue()));
45 assertEquals("1.00TB", Formatter.formatFileSize(mContext, bd.pow(4).longValue()));
47 assertEquals("1.00PB", Formatter.formatFileSize(mContext, bd.pow(5).longValue()));
49 assertEquals("1024PB", Formatter.formatFileSize(mContext, bd.pow(6).longValue()))
    [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);
  /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
50 * Return a formatter for CurrencyAmount objects in the given
54 * @return a formatter object, or NULL upon error
61 * Return a formatter for CurrencyAmount objects in the default
64 * @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/icu4c/i18n/
udateintervalformat.cpp 41 LocalPointer<DateIntervalFormat> formatter(
52 formatter->adoptTimeZone(zone);
54 return (UDateIntervalFormat*)formatter.orphan();
59 udtitvfmt_close(UDateIntervalFormat *formatter)
61 delete (DateIntervalFormat*)formatter;
66 udtitvfmt_format(const UDateIntervalFormat* formatter,
93 ((const DateIntervalFormat*)formatter)->format( &interval, res, fp, *status );
  /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...]
  /libcore/benchmarks/src/benchmarks/regression/
FormatterBenchmark.java 21 import java.util.Formatter;
25 * Compares Formatter against hand-written StringBuilder code.
30 Formatter f = new Formatter();
45 Formatter f = new Formatter();
54 Formatter f = new Formatter();
71 Formatter f = new 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);
  /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.
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/libvpx/libvpx/third_party/googletest/src/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/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...]
  /dalvik/dx/src/com/android/dx/dex/file/
MemberIdsSection.java 20 import java.util.Formatter;
70 Formatter formatter = new Formatter(); local
72 formatter.format("Too many %s: %d; max is %d. By package:",
75 formatter.format("%n%6d %s", entry.getValue().get(), entry.getKey());
77 return formatter.toString();

Completed in 2514 milliseconds

1 2 3 4 5 6 7 8 91011>>