HomeSort by relevance Sort by last modified time
    Searched refs:Formatter (Results 1 - 25 of 187) 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.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...]
  /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/chromium_org/ui/base/l10n/
formatter.h 24 // Formatter for a (format, length) combination. May either be instantiated
27 class Formatter {
43 Formatter(const Pluralities& sec_pluralities,
48 Formatter(const Pluralities& sec_pluralities,
78 DISALLOW_IMPLICIT_CONSTRUCTORS(Formatter);
87 const Formatter* Get(TimeFormat::Format format,
99 scoped_ptr<Formatter>
time_format.cc 15 #include "ui/base/l10n/formatter.h"
60 const Formatter* formatter = g_container.Get().Get(format, length); local
64 formatter->Format(Formatter::UNIT_SEC, seconds, time_string);
72 formatter->Format(Formatter::UNIT_MIN, minutes, time_string);
77 formatter->Format(Formatter::TWO_UNITS_MIN_SEC,
87 formatter->Format(Formatter::UNIT_HOUR, hours, time_string)
    [all...]
formatter.cc 5 #include "ui/base/l10n/formatter.h"
181 Formatter::Formatter(const Pluralities& sec_pluralities,
191 Formatter::Formatter(const Pluralities& sec_pluralities,
213 void Formatter::Format(Unit unit,
223 void Formatter::Format(TwoUnits units,
239 scoped_ptr<icu::PluralFormat> Formatter::CreateFallbackFormat(
254 scoped_ptr<icu::PluralFormat> Formatter::InitFormat(
270 const Formatter* FormatterContainer::Get(TimeFormat::Format format
    [all...]
  /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/chromium_org/third_party/mesa/src/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/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/chromium_org/build/android/pylib/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: "
156 * java.util.Formatter#Formatter()
159 Formatter f = new Formatter();
734 Formatter formatter = new Formatter(Locale.US); local
    [all...]
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/sources/
ScriptFormatter.js 34 WebInspector.Formatter = function()
40 * @return {!WebInspector.Formatter}
42 WebInspector.Formatter.createFormatter = function(contentType)
55 WebInspector.Formatter.locationToPosition = function(lineEndings, lineNumber, columnNumber)
66 WebInspector.Formatter.positionToLocation = function(lineEndings, position)
76 WebInspector.Formatter.prototype = {
89 * @implements {WebInspector.Formatter}
136 * @implements {WebInspector.Formatter}
239 var originalPosition = WebInspector.Formatter.locationToPosition(this._originalLineEndings, lineNumber, columnNumber || 0);
241 return WebInspector.Formatter.positionToLocation(this._formattedLineEndings, formattedPosition)
    [all...]
  /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...]
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/util/
HashUtil.java 11 import java.util.Formatter;
54 Formatter formatter = new Formatter(sb); local
56 formatter.format("%02x", b);
  /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/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 */);
  /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

Completed in 451 milliseconds

1 2 3 4 5 6 7 8