/external/icu4c/test/intltest/ |
dtfmttst.cpp | 153 * Format the output. 157 sdf->format(today,fmtOffset, pos); 245 logln(*s + " P> " + ((DateFormat*)fullFmt)->format(d, str)); 408 logln((UnicodeString)" Result = " + df->format(aug13, buf.remove())); 413 df->format(aug13, buf, pos); 430 * General parse/format tests. Add test cases as needed. 436 // Milliseconds are left-justified, since they format as fractions of a second 475 DateFormatTest::tryPat994(SimpleDateFormat* format, const char* pat, const char* str, UDate expected) 481 format->applyPattern(pat); 482 UDate date = format->parse(str, status) 774 UnicodeString format; local [all...] |
miscdtfm.cpp | 12 #include "unicode/format.h" 118 logln("Format\tSource\tResult"); 128 logln(resultFormatter->format(formatter->parse(dstring[i], status), str, pos)); 129 failure(status, "resultFormatter->format"); 163 format0 = df->format(d, format0); 169 format1 = df->format(d, format1); 196 format0 = df->format(d, format0); 202 format1 = df->format(d, format1); 226 format0 = df->format(d, format0); 232 format1 = df->format(d, format1) [all...] |
nmfmapts.cpp | 58 * This test does round-trip testing (format -> parse -> format -> parse -> etc.) of 112 // ======= Test various format() methods 115 logln("Testing various format() methods"); 125 res1 = cur_fr->format(d, res1); 128 res2 = cur_fr->format(l, res2); 131 res3 = cur_fr->format(d, res3, pos1); 134 res4 = cur_fr->format(l, res4, pos2); 138 res5 = cur_fr->format(fD, res5, pos3, status); 140 errln("ERROR: format(Formattable [double]) failed") [all...] |
/frameworks/base/opengl/libagl/ |
texture.cpp | 183 #pragma mark Format conversion 203 static int32_t convertGLPixelFormat(GLint format, GLenum type) 207 switch (format) { 227 static GLenum validFormatType(ogles_context_t* c, GLenum format, GLenum type) 230 if (format<GL_ALPHA || format>GL_LUMINANCE_ALPHA) { 237 if (type == GL_UNSIGNED_SHORT_5_6_5 && format != GL_RGB) { 241 type == GL_UNSIGNED_SHORT_5_5_5_1) && format != GL_RGBA) { 281 if ((dst.format == src.format) & 1092 GLenum format; local [all...] |
/external/icu4c/i18n/unicode/ |
udat.h | 21 * <h2> Date Format C API</h2> 23 * Date Format C API consists of functions that convert dates and 31 * Date Format helps you to format and parse dates for any locale. Your code can 33 * week, or even the calendar format: lunar vs. solar. 35 * To format a date for the current Locale with default time and date style, 52 * format and use it multiple times so that the system doesn't have to fetch the 92 * printf("date format: %s\n", u_austrcpy(buffer, myString)); 97 * To format a date for a different Locale, specify it in the call to 123 * You can also set the time zone on the format if you wish [all...] |
decimfmt.h | 65 * and format numbers in any locale, including support for Western, Arabic, or 89 * // format for each locale. 96 * cout << endl << "FORMAT " << j << endl; 114 * cout << " -> " << form->format(myNumber,str) << endl; 115 * form->parse(form->format(myNumber,str), fmtable, success); 127 * // format for each locale</strong> 136 * NumberFormat* format = NumberFormat::createInstance(locale, j, success); 138 * cout << "format result " << form->format(myNumber, str) << endl; 139 * format->parse(form->format(myNumber, str), fmtable, success) 2234 DecimalFormat::format(const Formattable& obj, function in class:DecimalFormat 2243 DecimalFormat::format(double number, function in class:DecimalFormat 2250 DecimalFormat::format(int32_t number, function in class:DecimalFormat [all...] |
/external/qemu/distrib/sdl-1.2.12/src/audio/mint/ |
SDL_mintaudio_dma8.c | 214 DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",spec->format & 0x00ff)); 215 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0))); 216 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0))); 224 spec->format = AUDIO_S8; 267 DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ",spec->format & 0x00ff)); 268 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0))); 269 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0)));
|
/frameworks/base/libs/audioflinger/ |
AudioHardwareStub.cpp | 46 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 49 status_t lStatus = out->set(format, channels, sampleRate); 65 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, 74 status_t lStatus = in->set(format, channels, sampleRate, acoustics); 121 if (pFormat) *pFormat = format(); 149 snprintf(buffer, SIZE, "\tformat: %d\n", format()); 195 snprintf(buffer, SIZE, "\tformat: %d\n", format());
|
/frameworks/base/libs/ui/ |
FramebufferNativeWindow.cpp | 35 #include <pixelflinger/format.h> 57 android_native_buffer_t::format = f; member in class:android::NativeBuffer::android_native_buffer_t 102 fbDev->width, fbDev->height, fbDev->format, GRALLOC_USAGE_HW_FB); 104 fbDev->width, fbDev->height, fbDev->format, GRALLOC_USAGE_HW_FB); 107 fbDev->width, fbDev->height, fbDev->format, 114 fbDev->width, fbDev->height, fbDev->format, 241 *value = fb->format;
|
/frameworks/base/media/libmedia/ |
IAudioFlinger.cpp | 36 FORMAT, 80 int format, 94 data.writeInt32(format); 117 int format, 129 data.writeInt32(format); 164 virtual int format(int output) const function in class:android::BpAudioFlinger 169 remote()->transact(FORMAT, data, &reply); 328 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount) 333 data.writeInt32(format); 349 uint32_t format = pFormat ? *pFormat : 0 local 422 uint32_t format = pFormat ? *pFormat : 0; local 515 int format = data.readInt32(); local 534 int format = data.readInt32(); local 664 int format = data.readInt32(); local 673 uint32_t format = data.readInt32(); local 718 uint32_t format = data.readInt32(); local [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/ |
ValueParser.java | 230 int format = rawValue[valueIndex + 2] & 0xff; local 233 int alignValue = format & 0x03; 236 int sizeValue = (format >> 2) & 0x03; 243 boolean bold = (format & 0x10) != 0; 244 boolean italic = (format & 0x20) != 0; 245 boolean underlined = (format & 0x40) != 0; 246 boolean strikeThrough = (format & 0x80) != 0;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/functests/sampleProjects/ |
SampleProjectTest.java | 91 sLogger.log(Level.INFO, String.format("Testing sample %s for target %s", name, 111 String.format("Unexpected exception when creating sample project %s " + 128 assertNotNull(String.format("could not read manifest %s", manifestPath), 136 assertTrue(String.format("%s project not created", name), iproject.exists()); 137 assertTrue(String.format("%s project not opened", name), iproject.isOpen()); 151 StringBuilder failureBuilder = new StringBuilder(String.format("%s project has errors:", 212 fail(String.format("Expected build event never happened for %s", iproject.getName()));
|
/dalvik/libcore/text/src/main/java/java/text/ |
NumberFormat.java | 42 * {@code NumberFormat} helps you to format and parse numbers for any locale. 45 * whether the number format is even decimal. 47 * To format a number for the current locale, use one of the factory class 52 * myString = NumberFormat.getInstance().format(myNumber); 58 * format and use it multiple times so that the system doesn't have to fetch the 65 * output.println(nf.format(myNumber[i]) + "; "); 71 * To format a number for a different locale, specify it in the call to 91 * format. Use {@code getIntegerInstance} to get an integer number format. Use 92 * {@code getCurrencyInstance} to get the currency number format and us 219 public final String format(double value) { method in class:NumberFormat 243 public abstract StringBuffer format(double value, StringBuffer buffer, FieldPosition field); method in class:NumberFormat 252 public final String format(long value) { method in class:NumberFormat 276 public abstract StringBuffer format(long value, StringBuffer buffer, FieldPosition field); method in class:NumberFormat 303 public StringBuffer format(Object object, StringBuffer buffer, FieldPosition field) { method in class:NumberFormat [all...] |
/external/libxml2/ |
xmlwriter.c | 108 static xmlChar *xmlTextWriterVSprintf(const char *format, va_list argptr); 855 * @format: format string (see printf) 856 * @...: extra parameters for the format 864 const char *format, ...) 869 va_start(ap, format); 871 rc = xmlTextWriterWriteVFormatComment(writer, format, ap); 880 * @format: format string (see printf) 889 const char *format, va_list argptr [all...] |
/dalvik/libcore/auth/src/main/java/javax/security/auth/x500/ |
X500Principal.java | 43 * Defines a constant for the canonical string format of distinguished 49 * Defines a constant for the RFC 1779 string format of distinguished 55 * Defines a constant for the RFC 2253 string format of distinguished 191 * this X.500 principal. The format of the representation can be chosen. 199 * @param format 200 * the name of the format to use for the representation 205 * if the {@code format} argument is not one of the three 208 public String getName(String format) { 210 if (CANONICAL.equals(format)) { 214 return dn.getName(format); [all...] |
/dalvik/libcore/xml/src/main/java/org/apache/xml/serializer/utils/ |
Messages.java | 224 java.text.MessageFormat.format( 244 // Do this to keep format from crying. 255 fmsg = java.text.MessageFormat.format(msg, args); 263 // Get the message that the format failed. 265 java.text.MessageFormat.format( 272 // We couldn't even get the message that the format of 275 "The format of message '"
|
/development/host/windows/usb/legacy/driver/ |
android_usb_driver_object.cpp | 173 ULONG __cdecl GoogleDbgPrint(char* format, ...) {
175 va_start(arg_list, format);
177 vDbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL, format, arg_list);
|
/development/tools/mkstubs/src/com/android/mkstubs/ |
FilterClassAdapter.java | 73 String filterName = String.format("%s#%s", mClassName, name); 105 String filterName = String.format("%s#%s%s", mClassName, name, desc); 114 filterName = String.format("%s#%s%s", mClassName, name, signature);
|
/external/bluetooth/glib/tests/ |
markup-escape-test.c | 8 static void test_format (const gchar *format, 48 test_format (const gchar *format, 57 result = g_markup_vprintf_escaped (format, args);
|
/external/webkit/WebKit/android/plugins/ |
SkANP.cpp | 63 switch (src.format) { 87 dst->format = kRGBA_8888_ANPBitmapFormat; 90 dst->format = kRGB_565_ANPBitmapFormat;
|
/frameworks/base/core/java/android/webkit/ |
DateSorter.java | 70 String format = resources.getQuantityString(resId, NUM_DAYS_AGO); local 71 mLabels[2] = String.format(format, NUM_DAYS_AGO);
|
/frameworks/base/core/java/com/android/internal/view/ |
BaseSurfaceHolder.java | 101 public void setFormat(int format) { 102 if (mRequestedFormat != format) { 103 mRequestedFormat = format;
|
/system/extras/tests/bionic/libc/bionic/ |
test_mutex.c | 35 static void panic( const char* format, ... ) 38 va_start(args, format); 39 vfprintf(stderr, format, args);
|
/external/qemu/distrib/sdl-1.2.12/src/video/ |
SDL_cursor.c | 305 x += this->screen->offset / this->screen->format->BytesPerPixel; 309 this->screen->format->BytesPerPixel; 380 switch (screen->format->BytesPerPixel) { 387 pixels8[0] = (Uint8)SDL_MapRGB(screen->format, 255, 255, 255); 388 pixels8[1] = (Uint8)SDL_MapRGB(screen->format, 0, 0, 0); 509 dstbpp = screen->format->BytesPerPixel; 517 if ( screen->format->BytesPerPixel == 1 ) { 519 pixels8[0] = (Uint8)SDL_MapRGB(screen->format, 255, 255, 255); 520 pixels8[1] = (Uint8)SDL_MapRGB(screen->format, 0, 0, 0); 562 the pixel format of the shadow surface to that of the video surface [all...] |
/system/core/liblog/ |
logprint.c | 41 AndroidLogPrintFormat format; member in struct:AndroidLogFormat_t 176 p_ret->format = FORMAT_BRIEF; 200 AndroidLogPrintFormat format) 202 p_format->format=format; 210 static AndroidLogPrintFormat format; local 212 if (strcmp(formatString, "brief") == 0) format = FORMAT_BRIEF; 213 else if (strcmp(formatString, "process") == 0) format = FORMAT_PROCESS; 214 else if (strcmp(formatString, "tag") == 0) format = FORMAT_TAG; 215 else if (strcmp(formatString, "thread") == 0) format = FORMAT_THREAD [all...] |