/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)
|
/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...] |
/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();
|
/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...] |
find_format_store.hpp | 45 const formatter_type& Formatter ) : 48 m_Formatter(Formatter) {}
|
/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...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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 * @tests 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/ |
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...] |
/dalvik/dx/src/com/android/dx/dex/file/ |
MemberIdsSection.java | 23 import java.util.Formatter; 71 Formatter formatter = new Formatter(); local 74 formatter.format("Too many %s references: %d; max is %d.%n" + 79 formatter.format("%n%6d %s", entry.getValue().get(), entry.getKey()); 81 return formatter.toString(); 83 formatter.close();
|
/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 {
|
/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
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
FormattedDateBuilder.java | 24 import java.util.Formatter; 34 private Formatter dateFormatter; 40 dateFormatter = new Formatter(sb);
|
/external/jmonkeyengine/engine/src/core/com/jme3/util/ |
JmeFormatter.java | 39 import java.util.logging.Formatter; 43 * More simple formatter than the default one used in Java logging. 47 public class JmeFormatter extends Formatter {
|
/libcore/luni/src/main/java/java/io/ |
Console.java | 18 import java.util.Formatter; 69 * @param format the format string (see {@link java.util.Formatter#format}) 71 * the list of arguments passed to the formatter. If there are 77 Formatter f = new Formatter(writer); 117 * @param format the format string (see {@link java.util.Formatter#format}) 119 * the list of arguments passed to the formatter. If there are 162 * @param format the format string (see {@link java.util.Formatter#format}) 164 * the list of arguments passed to the formatter. If there are
|
/frameworks/base/services/java/com/android/server/ |
DeviceStorageMonitorService.java | 42 import android.text.format.Formatter; 468 pw.print(" mFreeMem="); pw.print(Formatter.formatFileSize(mContext, mFreeMem)); 470 pw.println(Formatter.formatFileSize(mContext, mTotalMemory)); 472 pw.println(Formatter.formatFileSize(mContext, mFreeMemAfterLastCacheClear)); 474 pw.print(Formatter.formatFileSize(mContext, mLastReportedFreeMem)); 483 pw.print(Formatter.formatFileSize(mContext, mMemLowThreshold)); 485 pw.println(Formatter.formatFileSize(mContext, mMemFullThreshold)); 487 pw.print(Formatter.formatFileSize(mContext, mMemCacheStartTrimThreshold)); 489 pw.println(Formatter.formatFileSize(mContext, mMemCacheTrimToThreshold));
|