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

1 2 3 4 5 6 7 8

  /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.00 B", Formatter.formatFileSize(mContext, 0));
37 assertEquals("899 B", Formatter.formatFileSize(mContext, 899));
39 assertEquals("1.00 KB", Formatter.formatFileSize(mContext, bd.pow(1).longValue()));
41 assertEquals("1.00 MB", Formatter.formatFileSize(mContext, bd.pow(2).longValue()));
43 assertEquals("1.00 GB", Formatter.formatFileSize(mContext, bd.pow(3).longValue()));
45 assertEquals("1.00 TB", Formatter.formatFileSize(mContext, bd.pow(4).longValue()));
47 assertEquals("1.00 PB", Formatter.formatFileSize(mContext, bd.pow(5).longValue()));
49 assertEquals("1024 PB", Formatter.formatFileSize(mContext, bd.pow(6).longValue()))
    [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/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...]
  /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();
  /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...]
  /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: "
156 * java.util.Formatter#Formatter()
159 Formatter f = new Formatter();
734 Formatter formatter = new Formatter(Locale.US); local
    [all...]
  /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;
88 BytesResult r = Formatter.formatBytes(getContext().getResources(), 1, 0);
99 BytesResult r = Formatter.formatBytes(getContext().getResources(), bytes,
100 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/luni/src/main/java/java/util/logging/
Formatter.java 24 * {@code Formatter} objects are used to format {@link LogRecord} objects into a
29 public abstract class Formatter {
32 * Constructs a {@code Formatter} object.
34 protected Formatter() {
51 * Formatter}.
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...]
  /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 */);
  /packages/apps/Settings/src/com/android/settings/applications/
ProcessStatsSummary.java 23 import android.text.format.Formatter;
24 import android.text.format.Formatter.BytesResult;
80 BytesResult usedResult = Formatter.formatBytes(context.getResources(), (long) usedRam,
81 Formatter.FLAG_SHORTER);
82 String totalString = Formatter.formatShortFileSize(context, (long) totalRam);
83 String freeString = Formatter.formatShortFileSize(context, (long) freeRam);
  /dalvik/dx/src/com/android/dx/dex/file/
MemberIdsSection.java 24 import java.util.Formatter;
72 Formatter formatter = new Formatter(); local
75 formatter.format("Too many %s references: %d; max is %d.%n" +
80 formatter.format("%n%6d %s", entry.getValue().get(), entry.getKey());
82 return formatter.toString();
84 formatter.close();
  /frameworks/base/core/java/com/android/internal/logging/
AndroidHandler.java 26 import java.util.logging.Formatter;
87 * Holds the formatter for all Android log handlers.
89 private static final Formatter THE_FORMATTER = new Formatter() {
141 // TODO: avoid ducking into native 2x; we aren't saving any formatter calls
  /libcore/luni/src/main/java/java/io/
Console.java 18 import java.util.Formatter;
67 * @param format the format string (see {@link java.util.Formatter#format})
69 * the list of arguments passed to the formatter. If there are
75 Formatter f = new Formatter(writer);
115 * @param format the format string (see {@link java.util.Formatter#format})
117 * the list of arguments passed to the formatter. If there are
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
AppInfo.java 21 import android.text.format.Formatter;
108 return Formatter.formatFileSize(mContext, mEntry.cacheSize + mEntry.externalCacheSize);
114 return Formatter.formatFileSize(mContext, mEntry.dataSize + mEntry.externalDataSize);

Completed in 977 milliseconds

1 2 3 4 5 6 7 8