/libcore/luni/src/test/java/libcore/java/text/ |
OldDecimalFormatTestICU.java | 32 DecimalFormat format; field in class:OldDecimalFormatTestICU 35 format = (DecimalFormat) NumberFormat.getNumberInstance(); 40 DecimalFormat format = (DecimalFormat) NumberFormat local 43 format.applyPattern("@@@"); 44 assertEquals("sigDigit doesn't work", "12300", format.format(12345)); 45 assertEquals("sigDigit doesn't work", "0.123", format.format(0.12345)); 47 format.applyPattern("@@##"); 48 assertEquals("sigDigit doesn't work", "3.142", format.format(3.14159)) [all...] |
OldDecimalFormatTest.java | 163 DecimalFormat format = new DecimalFormat(); local 165 format.isParseIntegerOnly()); 167 format.setParseIntegerOnly(true); 168 assertTrue(format.isParseIntegerOnly()); 170 Number result = format.parse("123.123"); 176 format.setParseIntegerOnly(false); 177 assertFalse(format.isParseIntegerOnly()); 179 Number result = format.parse("123.123"); 192 DecimalFormat format = new DecimalFormat(pattern); local 193 assertFalse(format.isGroupingUsed()) 196 DecimalFormat format = new DecimalFormat("###,####"); local 251 DecimalFormat format = new DecimalFormat(); local 269 DecimalFormat format = new DecimalFormat(); local 287 DecimalFormat format = new DecimalFormat(); local 304 DecimalFormat format = new DecimalFormat(); local 323 DecimalFormat format = new DecimalFormat(); local 340 DecimalFormat format = new DecimalFormat(); local 355 DecimalFormat format = new DecimalFormat(); local 403 DecimalFormat format = new DecimalFormat("'$'0000.0000"); local 494 DecimalFormat format = new DecimalFormat(); local 527 DecimalFormat format = new DecimalFormat("#.#"); local 583 DecimalFormat format = (DecimalFormat) DecimalFormat local 842 DecimalFormat format = (DecimalFormat) NumberFormat local 920 DecimalFormat format = (DecimalFormat) NumberFormat local [all...] |
DecimalFormatTest.java | 30 assertEquals("1E4", df.format(12345.)); 35 assertEquals("1-useless-api-4", df.format(12345.)); 42 assertEquals("-0", df.format(-0.2)); 44 assertEquals("-0.2", df.format(-0.2)); 55 assertEquals(309, numberFormat.format(123).length()); 56 assertEquals(309, numberFormat.format(BigInteger.valueOf(123)).length()); 63 assertEquals("17%", pf.format(BigDecimal.valueOf(0.17))); 103 assertEquals(df.format(BigDecimal.valueOf(0.16)), 104 df.format(BigDecimal.valueOf(0.16).doubleValue())); 105 assertEquals(df.format(BigDecimal.valueOf(0.0293)) [all...] |
/system/media/mca/filterfw/java/android/filterfw/format/ |
package-info.java | 4 package android.filterfw.format;
|
/libcore/luni/src/test/java/libcore/java/util/ |
FormatterTest.java | 29 String.format(arabic, "12 %d 34", 1234567890)); 32 String.format(arabic, "12 %,d 34", 1234567890)); 35 String.format(arabic, "12 %.3e 34", 1.23)); 37 String.format(arabic, "12 %.3f 34", 1.23)); 39 String.format(arabic, "12 %.3g 34", 1.23)); 45 String.format(arabic, "12 %tT 34", c)); 47 assertEquals("1234", String.format(arabic, "1234")); 48 assertEquals("1234", String.format(arabic, "%s", "1234")); 49 assertEquals("1234", String.format(arabic, "%s", 1234)); 50 assertEquals("2322", String.format(arabic, "%o", 1234)) [all...] |
/external/bluetooth/glib/glib/gnulib/ |
printf.h | 25 int _g_gnulib_printf (char const *format, 28 char const *format, 31 char const *format, 35 char const *format, 37 int _g_gnulib_vprintf (char const *format, 40 char const *format, 43 char const *format, 47 char const *format, 50 char const *format,
|
/system/core/libnl_2/ |
dbg.c | 4 void libnl_printf(int level, char *format, ...) 9 va_start(ap, format); 10 __android_log_vprint(level, "libnl_2", format, ap);
|
/external/skia/src/ports/ |
SkDebug_android.cpp | 26 const char* format, ...) 28 if (format[0] == '\n' && format[1] == '\0') 31 va_start(args, format); 34 vsnprintf(buffer, kBufferSize, format, args); 38 android_vprintLog(ANDROID_LOG_DEBUG, NULL, LOG_TAG, format, args);
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/build/ |
ApkCreationException.java | 25 public ApkCreationException(String format, Object... args) { 26 super(String.format(format, args)); 29 public ApkCreationException(Throwable cause, String format, Object... args) { 30 super(String.format(format, args), cause);
|
SealedApkException.java | 25 public SealedApkException(String format, Object... args) { 26 super(String.format(format, args)); 29 public SealedApkException(Throwable cause, String format, Object... args) { 30 super(String.format(format, args), cause);
|
/external/clang/test/Preprocessor/ |
macro_paste_commaext.c | 7 #define debug(format, ...) format, ## __VA_ARGS__)
|
/external/clang/test/Sema/ |
block-sentinel-attribute.c | 3 void (^e) (int arg, const char * format, ...) __attribute__ ((__sentinel__ (1,1))); variable 6 void (^bbad) (int arg, const char * format) __attribute__ ((__sentinel__)) ; // expected-warning {{sentinel' attribute only supported for variadic blocks}} local 7 void (^b) (int arg, const char * format, ...) __attribute__ ((__sentinel__)) = // expected-note {{block has been explicitly marked sentinel here}} local 8 ^ __attribute__ ((__sentinel__)) (int arg, const char * format, ...) {}; 9 void (^z) (int arg, const char * format, ...) __attribute__ ((__sentinel__ (2))) = ^ __attribute__ ((__sentinel__ (2))) (int arg, const char * format, ...) {}; // expected-note {{block has been explicitly marked sentinel here}} local 12 void (^y) (int arg, const char * format, ...) __attribute__ ((__sentinel__ (5))) = ^ __attribute__ ((__sentinel__ (5))) (int arg, const char * format, ...) {}; // expected-note {{block has been explicitly marked sentinel here}} local
|
block-printf-attribute-1.c | 4 void (^b) (int arg, const char * format, ...) __attribute__ ((__format__ (__printf__, 1, 3))) = // expected-error {{format argument not a string type}} local 5 ^ __attribute__ ((__format__ (__printf__, 1, 3))) (int arg, const char * format, ...) {}; // expected-error {{format argument not a string type}} 7 void (^z) (int arg, const char * format, ...) __attribute__ ((__format__ (__printf__, 2, 3))) = ^ __attribute__ ((__format__ (__printf__, 2, 3))) (int arg, const char * format, ...) {}; local
|
/external/webkit/Source/WebKit/android/nav/ |
CachedDebug.h | 35 #define DBG_NAV_LOGD(format, ...) LOGD("%s " format, __FUNCTION__, __VA_ARGS__) 39 #define DBG_NAV_LOGD(format, ...) ((void)0) 44 #define DBG_NAV_LOGV(format, ...) LOGD("%s " format, __FUNCTION__, __VA_ARGS__) 46 #define DBG_NAV_LOGV(format, ...) ((void)0) 60 #define DUMP_NAV_LOGX(format, ...) do { if (gNavCacheLogFile) \ 61 fprintf(gNavCacheLogFile, format, __VA_ARGS__); \ 62 else LOGD("%s " format, __FUNCTION__, __VA_ARGS__); } while (false) 65 #define DUMP_NAV_LOGX(format, ...) LOGD("%s " format, __FUNCTION__, __VA_ARGS__ [all...] |
/external/bluetooth/glib/glib/ |
gprintf.c | 38 * @format: a standard printf() format string, but notice 50 g_printf (gchar const *format, 56 va_start (args, format); 57 retval = g_vprintf (format, args); 66 * @format: a standard printf() format string, but notice 79 gchar const *format, 85 va_start (args, format); 86 retval = g_vfprintf (file, format, args) [all...] |
/cts/tools/vm-tests/src/dot/junit/format/f1/d/ |
T_f1_0.java | 17 package dot.junit.format.f1.d;
|
/cts/tools/vm-tests-tf/src/dot/junit/format/f1/d/ |
T_f1_0.java | 17 package dot.junit.format.f1.d;
|
/external/webkit/Source/ThirdParty/ANGLE/src/common/ |
debug.cpp | 22 void trace(const char *format, ...) 27 if (format) 34 va_start(vararg, format); 35 vfprintf(file, format, vararg);
|
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/ |
debug.cpp | 20 void Trace(const char *format, ...) { 21 if (!format) return; 27 va_start(args, format); 28 vsnprintf(buf, kTraceBufferLen, format, args);
|
/dalvik/dx/src/com/android/dx/io/instructions/ |
FillArrayDataPayloadDecodedInstruction.java | 38 private FillArrayDataPayloadDecodedInstruction(InstructionCodec format, 40 super(format, opcode, 0, null, 0, 0L); 50 public FillArrayDataPayloadDecodedInstruction(InstructionCodec format, 52 this(format, opcode, data, data.length, 1); 58 public FillArrayDataPayloadDecodedInstruction(InstructionCodec format, 60 this(format, opcode, data, data.length, 2); 66 public FillArrayDataPayloadDecodedInstruction(InstructionCodec format, 68 this(format, opcode, data, data.length, 4); 74 public FillArrayDataPayloadDecodedInstruction(InstructionCodec format, 76 this(format, opcode, data, data.length, 8) [all...] |
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
PrivateKeyStub.java | 35 String format = null; field in class:PrivateKeyStub 43 * @param format 46 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { 48 this.format = format; 61 * Returns format 65 return format;
|
PublicKeyStub.java | 38 String format = null; field in class:PublicKeyStub 44 public PublicKeyStub(String algorithm, String format, byte[] encoded) { 46 this.format = format; 58 * returns format 62 return format;
|
/external/valgrind/main/coregrind/ |
pub_core_clreq.h | 67 static int VALGRIND_INTERNAL_PRINTF(const char *format, ...) 68 __attribute__((format(__printf__, 1, 2), __unused__)); 69 static int VALGRIND_INTERNAL_PRINTF(const char *format, ...) 73 va_start(vargs, format); 76 (unsigned long)format, (unsigned long)&vargs, 0, 0, 0
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
PrivateKeyStub.java | 36 String format = null; field in class:PrivateKeyStub 44 * @param format 47 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { 49 this.format = format; 62 * Returns format 66 return format;
|
PublicKeyStub.java | 39 String format = null; field in class:PublicKeyStub 45 public PublicKeyStub(String algorithm, String format, byte[] encoded) { 47 this.format = format; 59 * returns format 63 return format;
|