HomeSort by relevance Sort by last modified time
    Searched refs:format (Results 76 - 100 of 1999) sorted by null

1 2 34 5 6 7 8 91011>>

  /dalvik/libcore/luni/src/test/java/java/text/
DecimalFormatTest.java 34 assertEquals(309, numberFormat.format(123).length());
35 assertEquals(309, numberFormat.format(BigInteger.valueOf(123)).length());
NumberFormatTest.java 26 // NumberFormat.format(Object, StringBuffer, FieldPosition) guarantees it calls doubleValue for
39 assertEquals("123", nf.format(new MyNumber()));
42 // NumberFormat.format(Object, StringBuffer, FieldPosition) guarantees it calls longValue for
46 public StringBuffer format(double value, StringBuffer b, FieldPosition f) { method in class:NumberFormatTest.MyNumberFormat
50 public StringBuffer format(long value, StringBuffer b, FieldPosition f) { method in class:NumberFormatTest.MyNumberFormat
59 assertEquals("long", nf.format(BigInteger.valueOf(Long.MAX_VALUE)));
60 assertEquals("double", nf.format(BigInteger.valueOf(Long.MAX_VALUE).add(BigInteger.ONE)));
61 assertEquals("long", nf.format(BigInteger.valueOf(Long.MIN_VALUE)));
62 assertEquals("double", nf.format(BigInteger.valueOf(Long.MIN_VALUE).subtract(BigInteger.ONE)));
  /external/giflib/
Android.mk 9 LOCAL_CFLAGS += -Wno-format -DHAVE_CONFIG_H
  /external/webkit/WebCore/dom/
ExceptionBase.cpp 40 m_message = String::format("%s: %s Exception %d", description.name, description.typeName, description.code);
42 m_message = String::format("%s Exception %d", description.typeName, description.code);
  /external/webkit/WebCore/svg/
SVGAltGlyphElement.idl 31 attribute DOMString format
  /dalvik/dx/src/com/android/dx/dex/code/
Dop.java 29 /** {@code non-null;} the instruction format */
30 private final InsnFormat format; field in class:Dop
44 * @param format {@code non-null;} the instruction format
49 public Dop(int opcode, int family, InsnFormat format,
59 if (format == null) {
60 throw new NullPointerException("format == null");
69 this.format = format;
100 * Gets the instruction format
    [all...]
  /dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MyKeyPairGenerator1.java 97 private String format; field in class:MyKeyPairGenerator1.PubKey
103 this.format = "test1";
112 return format;
123 private String format; field in class:MyKeyPairGenerator1.PrivKey
129 this.format = "test1";
138 return format;
  /external/dropbear/
dbutil.h 36 extern void (*_dropbear_exit)(int exitcode, const char* format, va_list param);
37 extern void (*_dropbear_log)(int priority, const char* format, va_list param);
39 void dropbear_exit(const char* format, ...);
40 void dropbear_close(const char* format, ...);
41 void dropbear_log(int priority, const char* format, ...);
44 void dropbear_trace(const char* format, ...);
  /external/icu4c/layout/
DeviceTables.cpp 24 le_uint16 format = SWAPW(deltaFormat) - 1; local
27 if (ppem >= start && ppem <= SWAPW(endSize) && format < FORMAT_COUNT) {
29 le_uint16 bits = fieldBits[format];
34 le_uint16 field = (word >> shift) & fieldMasks[format];
38 if ((field & fieldSignBits[format]) != 0) {
39 result |= ~ fieldMasks[format];
  /external/webkit/JavaScriptCore/docs/
make-bytecode-docs.pl 21 my $format = $_;
22 $format =~ s|.* /\* ||;
31 print OUTPUT "<h2><code>${opcode}</code></h2>\n<p><b>Format: </b><code>\n${format}\n</code></p>\n<p>\n${doc}\n</p>\n";
  /dalvik/libcore/support/src/test/java/tests/support/
Support_DecimalFormat.java 42 DecimalFormat format = (DecimalFormat) NumberFormat local
47 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY,
49 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER,
51 t_FormatWithField(2, format, number, text,
53 t_FormatWithField(3, format, number, text,
55 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION,
59 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0,
61 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT,
63 t_FormatWithField(7, format, number, text,
65 t_FormatWithField(8, format, number, text
175 DecimalFormat format = new DecimalFormat("###0.##\\u2030"); local
    [all...]
  /dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
Support_DecimalFormat.java 43 DecimalFormat format = (DecimalFormat) NumberFormat local
48 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY,
50 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER,
52 t_FormatWithField(2, format, number, text,
54 t_FormatWithField(3, format, number, text,
56 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION,
60 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0,
62 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT,
64 t_FormatWithField(7, format, number, text,
66 t_FormatWithField(8, format, number, text
152 DecimalFormat format = new DecimalFormat("###0.##\\u2030"); local
    [all...]
ChoiceFormatTest.java 62 formattedString = cf.format(Double.NEGATIVE_INFINITY);
63 assertTrue("a) Incorrect format returned: " + formattedString,
65 formattedString = cf.format(0.5d);
66 assertTrue("b) Incorrect format returned: " + formattedString,
68 formattedString = cf.format(1d);
69 assertTrue("c) Incorrect format returned: " + formattedString,
71 formattedString = cf.format(1.5d);
72 assertTrue("d) Incorrect format returned: " + formattedString,
74 formattedString = cf.format(2d);
75 assertTrue("e) Incorrect format returned: " + formattedString
451 ChoiceFormat format = new ChoiceFormat("1#one|2#two|3#three"); local
    [all...]
  /cts/tools/dex-tools/src/dex/reader/
TypeFormatter.java 45 public String format(String typeName) { method in class:TypeFormatter
72 return format(typeName.substring(1)) + "[]";
79 public String format(List<String> typeNames) { method in class:TypeFormatter
82 types.add(format(type)); method
84 return format(types, ", ");
88 return format(new ArrayList<DexAnnotation>(annotations), "\n") + "\n";
91 private String format(List<?> elements, String separator) { method in class:TypeFormatter
  /frameworks/base/core/java/android/text/format/
Formatter.java 17 package android.text.format;
75 value = String.format("%.2f", result);
78 value = String.format("%.1f", result);
80 value = String.format("%.2f", result);
84 value = String.format("%.0f", result);
86 value = String.format("%.2f", result);
89 value = String.format("%.0f", result);
97 * Returns a string in the canonical IP format ###.###.###.### from a packed integer containing
98 * the IP address. The IP address is expected to be in little-endian format (LSB first). That
102 * @return string with canonical IP address format
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/audio/dma/
SDL_dmaaudio.c 250 static int DMA_ReopenAudio(_THIS, const char *audiodev, int format, int stereo,
280 /* Set the audio format */
281 value = format;
283 (value != format) ) {
284 SDL_SetError("Couldn't set audio format");
311 int format; local
331 SDL_SetError("Couldn't get audio format list");
335 /* Try for a closest match on audio format */
336 format = 0;
337 for ( test_format = SDL_FirstAudioFormat(spec->format);
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/audio/mint/
SDL_mintaudio_gsxb.c 204 Uint16 test_format = SDL_FirstAudioFormat(spec->format);
207 resolution = spec->format & 0x00ff;
208 format_signed = ((spec->format & 0x8000)!=0);
209 format_bigendian = ((spec->format & 0x1000)!=0);
211 DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",spec->format & 0x00ff));
212 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0)));
213 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0)));
224 spec->format = test_format;
225 resolution = spec->format & 0xff;
226 format_signed = (spec->format & (1<<15))
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/audio/nto/
SDL_nto_audio.c 126 cpars->format.format = SND_PCM_SFMT_S16_LE;
127 cpars->format.interleave = 1;
128 cpars->format.rate = DEFAULT_CPARAMS_RATE;
129 cpars->format.voices = DEFAULT_CPARAMS_VOICES;
350 int format; local
384 /* Try for a closest match on audio format */
385 format = 0;
386 /* can't use format as SND_PCM_SFMT_U8 = 0 in nto */
389 for (test_format=SDL_FirstAudioFormat(spec->format); !found ;
    [all...]
  /bionic/linker/
linker_format.c 76 out_vformat(Out *o, const char *format, va_list args);
136 vformat_buffer(char *buff, size_t buffsize, const char *format, va_list args)
145 out_vformat(out, format, args);
151 format_buffer(char *buff, size_t buffsize, const char *format, ...)
156 va_start(args, format);
157 ret = vformat_buffer(buff, buffsize, format, args);
170 vsnprintf(char *buff, size_t bufsize, const char *format, va_list args)
172 return format_buffer(buff, bufsize, format, args);
228 format_fd(int fd, const char *format, ...)
238 va_start(args, format);
    [all...]
  /external/v8/src/mips/
disasm-mips.cc 122 void Format(Instruction* instr, const char* format);
283 int Decoder::FormatRegister(Instruction* instr, const char* format) {
284 ASSERT(format[0] == 'r');
285 if (format[1] == 's') { // 'rs: Rs register
289 } else if (format[1] == 't') { // 'rt: rt register
293 } else if (format[1] == 'd') { // 'rd: rd register
305 int Decoder::FormatCRegister(Instruction* instr, const char* format) {
306 ASSERT(format[0] == 'f');
307 if (format[1] == 's') { // 'fs: fs registe
    [all...]
  /external/icu4c/test/intltest/
caltztst.cpp 136 // Tries to mimic the Java Date.toString() format.
148 DateFormat* format = getDateFormat(); local
149 if (format == 0)
154 format->format(d, str);
155 releaseDateFormat(format);
164 DateFormat* format = getDateFormat(); local
165 if (format == 0)
170 TimeZone* save = format->getTimeZone().clone();
171 format->setTimeZone(tz)
    [all...]
  /frameworks/base/graphics/java/android/graphics/
YuvImage.java 39 * The YUV format as defined in {@link PixelFormat}.
70 * @param format The YUV data format as defined in {@link PixelFormat}.
75 * padding and derives the row bytes by format and width itself.
76 * @throws IllegalArgumentException if format is not support; width or height <= 0; or yuv is
79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) {
80 if (format != ImageFormat.NV21 &&
81 format != ImageFormat.YUY2) {
97 mStrides = calculateStrides(width, format);
103 mFormat = format;
    [all...]
  /cts/tests/tests/jni/libjnitest/
helper.c 27 char *failure(const char *format, ...) {
31 va_start(args, format);
32 LOG_PRI_VA(ANDROID_LOG_ERROR, LOG_TAG, format, args);
35 va_start(args, format);
36 int count = vasprintf(&result, format, args);
  /external/icu4c/i18n/
winnmfmt.h 19 #include "unicode/format.h"
29 * \brief C++ API: Format numbers using Windows API.
45 virtual Format *clone(void) const;
50 * Format a double number. Concrete subclasses must implement
61 virtual UnicodeString& format(double number,
65 * Format a long number. Concrete subclasses must implement
76 virtual UnicodeString& format(int32_t number,
81 * Format an int64 number.
91 virtual UnicodeString& format(int64_t number,
96 // virtual UnicodeString &format(double number, UnicodeString &appendTo) const
    [all...]
  /external/qemu/android/utils/
debug.h 75 extern void dprint( const char* format, ... );
76 extern void dprintn( const char* format, ... );
77 extern void dprintnv( const char* format, va_list args );
78 extern void dwarning( const char* format, ... );
79 extern void derror( const char* format, ... );

Completed in 726 milliseconds

1 2 34 5 6 7 8 91011>>