HomeSort by relevance Sort by last modified time
    Searched refs:Formatter (Results 1 - 25 of 342) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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 B", Formatter.formatFileSize(mContext, 0));
36 assertEquals("1 B", Formatter.formatFileSize(mContext, 1));
37 assertEquals("9 B", Formatter.formatFileSize(mContext, 9));
38 assertEquals("10 B", Formatter.formatFileSize(mContext, 10));
39 assertEquals("99 B", Formatter.formatFileSize(mContext, 99));
40 assertEquals("100 B", Formatter.formatFileSize(mContext, 100));
41 assertEquals("900 B", Formatter.formatFileSize(mContext, 900));
42 assertEquals("0.88 KB", Formatter.formatFileSize(mContext, 901))
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
FormatterBenchmark.java 19 import java.util.Formatter;
23 * Compares Formatter against hand-written StringBuilder code.
28 Formatter f = new Formatter();
43 Formatter f = new Formatter();
52 Formatter f = new Formatter();
69 Formatter f = new Formatter();
    [all...]
  /libcore/ojluni/src/main/java/java/util/
Formattable.java 33 * specifier of {@link java.util.Formatter}. This interface allows basic
41 * import java.util.Formatter;
57 * public void formatTo(Formatter fmt, int f, int width, int precision) {
94 * <p> When used in conjunction with the {@link java.util.Formatter}, the above
98 * Formatter fmt = new Formatter();
122 * Formats the object using the provided {@link Formatter formatter}.
124 * @param formatter
125 * The {@link Formatter formatter}. Implementing classes may cal
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
OldFormatterTest.java 21 import java.util.Formatter;
32 public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalFormatException {
34 formatter.out().append("111");
41 public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalFormatException {
43 formatter.out().append("222");
50 assertEquals("aaa 111?", new Formatter().format("aaa %s?", ones).toString());
51 assertEquals("aaa 111 bbb 222?", new Formatter().format("aaa %s bbb %s?", ones, twos).toString());
57 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/caliper/examples/src/main/java/examples/
FormatterBenchmark.java 20 import java.util.Formatter;
23 * Compares Formatter against hand-written StringBuilder code.
28 Formatter f = new Formatter();
43 Formatter f = new Formatter();
60 Formatter f = new Formatter();
  /frameworks/native/services/surfaceflinger/RenderEngine/
ProgramCache.cpp 31 * A simple formatter class to automatically add the endl and
35 class Formatter;
36 static Formatter& indent(Formatter& f);
37 static Formatter& dedent(Formatter& f);
39 class Formatter {
42 typedef Formatter& (*FormaterManipFunc)(Formatter&);
43 friend Formatter& indent(Formatter& f)
    [all...]
  /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/
Formatter.java 40 public abstract class Formatter<PlotType extends Plot> {
42 public Formatter<PlotType> configure(Context ctx, int xmlCfgId) {
  /ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/algorithm/string/detail/
find_format.hpp 36 FormatterT Formatter,
47 store_type M( FindResult, FormatResult, Formatter );
75 FormatterT Formatter,
82 Formatter,
84 Formatter(FindResult) );
100 FormatterT Formatter,
111 store_type M( FindResult, FormatResult, Formatter );
136 FormatterT Formatter,
142 Formatter,
144 Formatter(FindResult) )
    [all...]
find_format_all.hpp 38 FormatterT Formatter,
51 store_type M( FindResult, FormatResult, Formatter );
85 FormatterT Formatter,
93 Formatter,
95 Formatter(FindResult) );
112 FormatterT Formatter,
125 store_type M( FindResult, FormatResult, Formatter );
160 FormatterT Formatter,
167 Formatter,
169 Formatter(FindResult) )
    [all...]
  /external/mesa3d/src/gallium/tools/trace/
format.py 33 class Formatter:
34 '''Plain formatter'''
58 class AnsiFormatter(Formatter):
59 '''Formatter for plain-text files which outputs ANSI escape codes. See
78 Formatter.function(self, name)
83 Formatter.variable(self, name)
88 Formatter.literal(self, value)
93 Formatter.address(self, value)
97 class WindowsConsoleFormatter(Formatter):
98 '''Formatter for the Windows Console. See
    [all...]
  /external/opencv3/samples/cpp/
cout_mat.cpp 39 cout << "r (matlab) = \n" << format(r, Formatter::FMT_MATLAB) << ";" << endl << endl;
40 cout << "r (python) = \n" << format(r, Formatter::FMT_PYTHON) << ";" << endl << endl;
41 cout << "r (numpy) = \n" << format(r, Formatter::FMT_NUMPY) << ";" << endl << endl;
42 cout << "r (csv) = \n" << format(r, Formatter::FMT_CSV) << ";" << endl << endl;
43 cout << "r (c) = \n" << format(r, Formatter::FMT_C) << ";" << endl << endl;
  /external/chromium-trace/catapult/devil/devil/utils/
run_tests_helper.py 12 class CustomFormatter(logging.Formatter):
13 """Custom log formatter."""
17 # Can't use super() because in older Python versions logging.Formatter does
19 logging.Formatter.__init__(self, fmt=fmt)
24 # Can't use super() because in older Python versions logging.Formatter does
26 msg = logging.Formatter.format(self, record)
  /ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/algorithm/string/
find_format.hpp 29 Result of finding is then used by a Formatter object to generate the replacement.
39 Use the Finder to search for a substring. Use the Formatter to format
47 \param Formatter A Formatter object used to format a match
62 FormatterT Formatter )
81 Formatter,
96 FormatterT Formatter )
112 Formatter,
118 Use the Finder to search for a substring. Use the Formatter to format
123 \param Formatter A Formatter object used to format a matc
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
FormatterTest.java 43 import java.util.Formatter;
56 import java.util.Formatter.BigDecimalLayoutForm;
79 public void formatTo(Formatter formatter, int flags, int width,
82 formatter.format("CUSTOMIZED FORMAT FUNCTION" + " WIDTH: "
85 formatter.format("customized format function" + " width: "
158 * java.util.Formatter#Formatter()
161 Formatter f = new Formatter();
736 Formatter formatter = new Formatter(Locale.US); local
    [all...]
  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/
Formatter.java 21 * A formatter which transforms an instance of a particular type into a string
28 abstract class Formatter<T> implements Function<T, String> {
KeyFormatter.java 24 final class KeyFormatter extends Formatter<Key> {
  /packages/apps/Contacts/src/com/android/contacts/datepicker/
TwoDigitFormatter.java 13 * strings like "01". Keeping a static formatter etc. is the most efficient
17 public class TwoDigitFormatter implements NumberPicker.Formatter {
21 java.util.Formatter mFmt;
52 private java.util.Formatter createFormatter(Locale locale) {
53 return new java.util.Formatter(mBuilder, locale);
  /frameworks/base/core/tests/coretests/src/android/text/format/
FormatterTest.java 23 import android.text.format.Formatter.BytesResult;
90 BytesResult r = Formatter.formatBytes(getContext().getResources(), 1, 0);
101 BytesResult r = Formatter.formatBytes(getContext().getResources(), bytes,
102 Formatter.FLAG_CALCULATE_ROUNDED | (useShort ? Formatter.FLAG_SHORTER : 0));
  /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
XYSeriesFormatter.java 21 import com.androidplot.ui.Formatter;
25 public abstract class XYSeriesFormatter<XYRegionFormatterType extends XYRegionFormatter> extends Formatter<XYPlot> {
  /libcore/ojluni/src/main/java/java/util/logging/
Formatter.java 30 * A Formatter provides support for formatting LogRecords.
32 * Typically each logging Handler will have a Formatter associated
33 * with it. The Formatter takes a LogRecord and converts it to
43 public abstract class Formatter {
46 * Construct a new formatter.
48 protected Formatter() {
56 * It is recommended to use the {@link Formatter#formatMessage}
94 * method is provided as a convenience for Formatter subclasses to
103 * <li>If there are no parameters, no formatter is used.
  /external/autotest/client/cros/cellular/
cellular_logging.py 24 formatter = logging.Formatter(format_string)
25 ch.setFormatter(formatter)
  /libcore/luni/src/test/java/libcore/java/util/logging/
OldFormatterTest.java 20 import java.util.logging.Formatter;
30 Formatter f = new MockFormatter();
69 public static class MockFormatter extends Formatter {
  /packages/apps/Messaging/src/com/android/messaging/util/
GifTranscoder.java 20 import android.text.format.Formatter;
59 Formatter.formatShortFileSize(context, inputSize),
60 Formatter.formatShortFileSize(context, outputSize),
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AbstractHtmlTemplates.java 25 import java.util.Formatter;
44 protected Formatter mFormatter;
62 mFormatter = new Formatter(mBuilder, null /* no localization */);

Completed in 1619 milliseconds

1 2 3 4 5 6 7 8 91011>>