/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...] |
/external/chromium/third_party/icu/source/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);
|
itrbnf.cpp | 102 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(URBNF_SPELLOUT, "he_IL", status); local 105 delete formatter; 113 formatter->format(123.45, result); 117 // formatter->parse(result, parseResult, pp); 126 formatter->format(123.0045, result); 131 // formatter->parse(result, parseResult, pp); 137 delete formatter; 146 RuleBasedNumberFormat* formatter local 149 dataerrln("Unable to create formatter. - %s", u_errorName(status)); 150 delete formatter; 1069 RuleBasedNumberFormat* formatter local 1121 RuleBasedNumberFormat* formatter local 1157 RuleBasedNumberFormat* formatter local 1196 RuleBasedNumberFormat* formatter local 1236 RuleBasedNumberFormat* formatter local 1321 RuleBasedNumberFormat* formatter local 1370 RuleBasedNumberFormat* formatter local 1387 RuleBasedNumberFormat* formatter local 1428 RuleBasedNumberFormat* formatter local 1466 RuleBasedNumberFormat* formatter local 1511 RuleBasedNumberFormat* formatter local 1537 RuleBasedNumberFormat* formatter local 1614 RuleBasedNumberFormat* formatter local [all...] |
/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);
|
itrbnf.cpp | 102 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(URBNF_SPELLOUT, "he_IL", status); local 105 delete formatter; 113 formatter->format(123.45, result); 117 // formatter->parse(result, parseResult, pp); 126 formatter->format(123.0045, result); 131 // formatter->parse(result, parseResult, pp); 137 delete formatter; 146 RuleBasedNumberFormat* formatter local 149 dataerrln("Unable to create formatter. - %s", u_errorName(status)); 150 delete formatter; 1066 RuleBasedNumberFormat* formatter local 1118 RuleBasedNumberFormat* formatter local 1154 RuleBasedNumberFormat* formatter local 1193 RuleBasedNumberFormat* formatter local 1233 RuleBasedNumberFormat* formatter local 1318 RuleBasedNumberFormat* formatter local 1367 RuleBasedNumberFormat* formatter local 1384 RuleBasedNumberFormat* formatter local 1425 RuleBasedNumberFormat* formatter local 1463 RuleBasedNumberFormat* formatter local 1508 RuleBasedNumberFormat* formatter local 1534 RuleBasedNumberFormat* formatter local 1611 RuleBasedNumberFormat* formatter local [all...] |
/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/chromium/base/i18n/ |
time_formatting.cc | 17 std::wstring TimeFormat(const icu::DateFormat* formatter, 19 DCHECK(formatter); 22 formatter->format(static_cast<UDate>(time.ToDoubleT() * 1000), date_string); 37 scoped_ptr<icu::DateFormat> formatter( 39 return TimeFormat(formatter.get(), time); 43 scoped_ptr<icu::DateFormat> formatter( 45 return TimeFormat(formatter.get(), time); 49 scoped_ptr<icu::DateFormat> formatter( 51 return TimeFormat(formatter.get(), time); 55 scoped_ptr<icu::DateFormat> formatter( [all...] |
/external/chromium/third_party/icu/public/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
|
/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()); 63 Formatter fLoc = null [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...] |
/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/test/java/org/apache/harmony/luni/tests/java/util/ |
FormattableTest.java | 27 import java.util.Formatter; 35 public void formatTo(Formatter arg0, int arg1, int arg2, int arg3) { 58 args = {java.util.Formatter.class, int.class, int.class, int.class} 61 Formatter fmt = new Formatter();
|
/libcore/luni/src/main/java/java/util/logging/ |
Handler.java | 43 // the formatter used to export messages 44 private Formatter formatter; field in class:Handler 55 * level {@code Level.ALL}. It has no filter and no formatter. 62 this.formatter = null; 104 * init the common properties, including filter, level, formatter, and 137 // set formatter 138 final String formatterName = manager.getProperty(prefix + ".formatter"); 141 formatter = (Formatter) getCustomizeInstance(formatterName) [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...] |
/libcore/luni/src/main/java/org/apache/xalan/templates/ |
FuncFormatNumb.java | 60 java.text.DecimalFormat formatter = null; local 87 //formatter = new java.text.DecimalFormat(patternStr); 92 //formatter = new java.text.DecimalFormat(patternStr, dfs); 93 formatter = new java.text.DecimalFormat(); 95 formatter.setDecimalFormatSymbols(dfs); 96 formatter.applyLocalizedPattern(patternStr); 101 if (null == formatter) 109 formatter = new java.text.DecimalFormat(); 111 formatter.setDecimalFormatSymbols(dfs); 112 formatter.applyLocalizedPattern(patternStr) [all...] |
/external/icu4c/samples/numfmt/ |
capi.c | 28 /* Create a formatter for the US locale */ 41 /* Use the formatter to parse a number. When using the C API, 57 /* Use the formatter to format the same number back into a string 75 /* Release the storage used by the formatter */
|
/external/proguard/src/proguard/gui/ |
GUIResources.java | 35 private static final MessageFormat formatter = new MessageFormat(""); field in class:GUIResources 53 formatter.applyPattern(messages.getString(messageKey)); 54 return formatter.format(messageArguments);
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/model/ |
ProfilesTableModel.java | 26 private final NumberFormat formatter; field in class:ProfilesTableModel 30 formatter = NumberFormat.getNumberInstance(); 47 return formatter.format(profiles[row]) + "";
|