/frameworks/base/core/java/android/text/format/ |
DateFormat.java | 17 package android.text.format; 38 This class takes as inputs a format string and a representation of a date/time. 39 The format string controls how the output is generated. 43 of that field. For instance, the format character 'M' is used to 79 Text in the format string that should be copied verbatim rather that 125 This designator indicates the hour of the day in 12 hour format. 134 This designator indicates the hour of the day in 24 hour format. 199 * Returns true if user preference is set to 24-hour format. 201 * @return true if 24 hour time format is selected, false otherwise. 244 * Returns a {@link java.text.DateFormat} object that can format the time accordin 287 String format = getDateFormatStringForSetting(context, value); local 406 public static final CharSequence format(CharSequence inFormat, long inTimeInMillis) { method in class:DateFormat 417 public static final CharSequence format(CharSequence inFormat, Date inDate) { method in class:DateFormat 432 public static final CharSequence format(CharSequence inFormat, Calendar inDate) { method in class:DateFormat [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/directfb/ |
SDL_DirectFB_video.c | 55 static SDL_Rect **DirectFB_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags); 228 static DFBSurfacePixelFormat SDLToDFBPixelFormat (SDL_PixelFormat *format) 230 if (format->Rmask && format->Gmask && format->Bmask) 232 switch (format->BitsPerPixel) 238 if (format->Rmask == 0xF800 && 239 format->Gmask == 0x07E0 && 240 format->Bmask == 0x001F) 245 if (format->Rmask == 0x7C00 & [all...] |
/hardware/ti/omap3/omx/image/src/openmax_il/jpeg_dec/tests/ |
JPEGTest.c | 330 imageinfo->format = GetYUVformat(Data); 331 switch (imageinfo->format) { 333 printf("APP:: Image chroma format is OMX_COLOR_FormatYUV420PackedPlanar\n"); 336 printf("APP:: Image chroma format is OMX_COLOR_FormatYUV411Planar\n"); 339 printf("APP:: Image chroma format is OMX_COLOR_FormatYUV422Interleaved\n"); 342 printf("APP:: Image chroma format is OMX_COLOR_FormatYUV444Interleaved\n"); 345 printf("APP:: Image chroma format is OMX_COLOR_FormatL8 \n"); 348 printf("APP:: Cannot find Image chroma format \n"); 349 imageinfo->format = OMX_COLOR_FormatUnused; 358 imageinfo->format= 1 [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ |
SDL_bmp.c | 25 Code to load and save surfaces in Windows BMP format. 27 Why support BMP format? Well, it's a native format for Windows, and 29 to be able to have at least one image format that we can natively load 158 /* Default values for the BMP format */ 213 palette = (surface->format)->palette; 361 if ( saveme->format->palette ) { 362 if ( saveme->format->BitsPerPixel == 8 ) { 366 saveme->format->BitsPerPixel); 369 else if ( (saveme->format->BitsPerPixel == 24) & [all...] |
SDL_blit.c | 80 (Uint16)srcrect->x*src->format->BytesPerPixel; 83 info.s_skip=src->pitch-info.s_width*src->format->BytesPerPixel; 86 (Uint16)dstrect->x*dst->format->BytesPerPixel; 89 info.d_skip=dst->pitch-info.d_width*dst->format->BytesPerPixel; 91 info.src = src->format; 93 info.dst = dst->format; 282 /* if an alpha pixel format is specified, we can accelerate alpha blits */ 298 && (surface->format->alpha != SDL_ALPHA_OPAQUE 299 || surface->format->Amask) ) { 312 if ( surface->format->BitsPerPixel < 8 ) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/audio/arts/ |
SDL_artsaudio.c | 266 Uint16 test_format, format; local 274 /* Try for a closest match on audio format */ 275 format = 0; 277 for ( test_format = SDL_FirstAudioFormat(spec->format); 278 ! format && test_format; ) { 280 fprintf(stderr, "Trying format 0x%4.4x\n", test_format); 285 format = 1; 289 format = 1; 292 format = 0; 295 if ( ! format ) { [all...] |
/external/qemu/distrib/sdl-1.2.12/src/audio/bsd/ |
SDL_bsdaudio.c | 305 Uint16 format; local 333 for (format = SDL_FirstAudioFormat(spec->format); 334 format; format = SDL_NextAudioFormat()) 336 switch(format) { 368 if(!format) { 369 SDL_SetError("No supported encoding for 0x%x", spec->format); 373 spec->format = format; [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/windx5/ |
SDL_dx5yuv.c | 50 int width, int height, Uint32 format) 70 ddsd.ddpfPixelFormat.dwFourCC = format; 86 /* Make sure the surface format was set properly */ 99 (ddsd.ddpfPixelFormat.dwFourCC != format) ) { 100 SDL_SetError("DDraw didn't use requested FourCC format"); 122 SDL_Overlay *DX5_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, SDL_Surface *display) 131 printf("FOURCC format requested: 0x%x\n", PrintFOURCC(format)); 157 overlay->format = format; [all...] |
/external/v8/src/ |
platform-nullos.cc | 112 void OS::Print(const char* format, ...) { 118 void OS::VPrint(const char* format, va_list args) { 120 vfprintf(stdout, format, args); 125 void OS::PrintError(const char* format, ...) { 128 va_start(args, format); 129 VPrintError(format, args); 135 void OS::VPrintError(const char* format, va_list args) { 137 vfprintf(stderr, format, args); 141 int OS::SNPrintF(char* str, size_t size, const char* format, ...) { 147 int OS::VSNPrintF(char* str, size_t size, const char* format, va_list args) [all...] |
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/ |
uexception.cpp | 27 /// argument and handle that case to provide a default format string 28 /// in case the user does not have a localized one. The format 32 /// (like string::format, for instance) in a try{}catch(...){} block. 37 msgbuf.format ("%s", what()); 39 try { msgbuf.format ("%s", what()); } catch (...) { /* Ignore all exceptions */ } 89 msgbuf.format (fmt, m_nBytesRequested); 91 try { msgbuf.format (fmt, m_nBytesRequested); } catch (...) {} 147 msgbuf.format (fmt, m_Operation, m_Errno, m_Errno); 149 try { msgbuf.format (fmt, m_Operation, m_Errno, m_Errno); } catch (...) {} 194 msgbuf.format (fmt, m_Operation, m_Filename, m_Errno, m_Errno) [all...] |
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
SimpleDateFormatTest.java | 44 static SimpleDateFormat format = new SimpleDateFormat("", Locale.ENGLISH); field in class:SimpleDateFormatTest 59 format.applyPattern(pattern); 60 format.format(cal.getTime(), buffer, position); 64 assertTrue("Wrong format: \"" + pattern + "\" expected: " 78 .println("Wrong format: \"" + pattern 105 format.setTimeZone(SimpleTimeZone.getTimeZone(timeZoneId)); 106 format.applyPattern("z, zzzz"); 108 format.format(date)) 395 SimpleDateFormat format = (SimpleDateFormat) DateFormat.getInstance(); local 412 SimpleDateFormat format = (SimpleDateFormat) DateFormat.getInstance(); local [all...] |
/external/webkit/WebCore/inspector/front-end/ |
Color.js | 140 toString: function(format) 142 if (!format) 143 format = this.format; 145 switch (format) { 164 throw "invalid color format"; 288 this.format = "nickname"; 307 this.format = "shorthex"; 310 this.format = "hex"; 314 this.format = "rgb" [all...] |
/dalvik/dx/src/com/android/dx/dex/code/ |
OutputFinisher.java | 276 * No need to call this.set(), since the format and other info 359 * the format out of each instruction into a separate array, to be 382 * @param formats {@code non-null;} array of per-instruction format selections 411 * No need to call this.set() since the format and 431 * @param formats {@code non-null;} array of per-instruction format selections 472 * Attempts to fit the given instruction into a format, returning 473 * either a format that the instruction fits into or {@code null} 475 * fitting process starts with the given format as a first "best 479 * @param format {@code null-ok;} the current guess as to the best instruction 480 * format to use; {@code null} means that no simple format fit 546 InsnFormat format = formats[i]; local 673 InsnFormat format = dop.getFormat(); local [all...] |
/external/bluetooth/glib/gio/ |
gsimpleasyncresult.c | 250 * @format: a string with format characters. 251 * @...: a list of values to insert into @format. 263 const char *format, 271 g_return_val_if_fail (format != NULL, NULL); 277 va_start (args, format); 278 g_simple_async_result_set_error_va (simple, domain, code, format, args); 482 const char *format, 488 message = g_strdup_vprintf (format, args); 501 * @format: a formatted error reporting string [all...] |
/dalvik/libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
SimpleFormatterTest.java | 88 method = "format", 93 sf.format(null); 97 sf.format(new LogRecord(Level.SEVERE, null)); 103 method = "format", 113 String str = sf.format(lr); 120 str = sf.format(lr); 128 method = "format", 132 String str = sf.format(lr); 151 str = sf.format(lr);
|
/external/icu4c/test/intltest/ |
dtptngts.cpp | 305 SimpleDateFormat *format = new SimpleDateFormat(findPattern, deLocale, status); local 315 delete format; 318 format->setTimeZone(*zone); 321 dateReturned = format->format(sampleDate, dateReturned, status); 335 format->applyPattern(gen->getBestPattern(UnicodeString("MMMMddHmm"), status)); 337 dateReturned = format->format(sampleDate, dateReturned, status); 342 delete format; 345 format = (SimpleDateFormat *)DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, [all...] |
/frameworks/base/core/java/android/widget/ |
Chronometer.java | 25 import android.text.format.DateUtils; 41 * to format the timer value into an arbitrary string. 133 * Sets the format string used for display. The Chronometer will display 137 * If the format string is null, or if you never call setFormat(), the 141 * @param format the format string. 144 public void setFormat(String format) { 145 mFormat = format; 146 if (format != null && mFormatBuilder == null) { 147 mFormatBuilder = new StringBuilder(format.length() * 2) [all...] |
/frameworks/base/include/media/ |
AudioTrack.h | 74 int format; member in class:android::AudioTrack::Buffer 120 * format: Audio format (e.g AudioSystem::PCM_16_BIT for signed 135 int format = 0, 154 int format = 0, 172 * - BAD_VALUE: invalid parameter (channels, format, sampleRate...) 177 int format = 0, 204 int format() const; 396 int format,
|
/frameworks/base/libs/audioflinger/ |
AudioDumpInterface.h | 40 int format, 49 virtual int format() const; 82 int format, 90 virtual int format() const; 122 int *format=0, 146 virtual AudioStreamIn* openInputStream(uint32_t devices, int *format, uint32_t *channels,
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/ |
DexWrapper.java | 73 return new Status(IStatus.ERROR, AdtPlugin.PLUGIN_ID, String.format( 111 String.format(Messages.DexWrapper_Failed_to_load_s, osFilepath), e); 114 String.format(Messages.DexWrapper_Failed_to_load_s, osFilepath), e); 153 String.format(Messages.DexWrapper_Unable_To_Execute_Dex_s, e.getMessage()), e)); 156 String.format(Messages.DexWrapper_Unable_To_Execute_Dex_s, e.getMessage()), e)); 159 String.format(Messages.DexWrapper_Unable_To_Execute_Dex_s, e.getMessage()), e));
|
/sdk/sdkmanager/app/tests/com/android/sdkmanager/ |
CommandLineProcessorTest.java | 63 protected void stdout(String format, Object... args) { 64 String s = String.format(format, args); 70 protected void stderr(String format, Object... args) { 71 String s = String.format(format, args);
|
/hardware/ti/omap3/omx/video/src/openmax_il/video_decode/src/ |
OMX_VideoDec_Utils.c | 45 *! that is, newest first. The date format is dd-Mon-yyyy. 70 if ((OMX_U16)(pComponentPrivate->pInPortDef->format.video.nFrameWidth > VIDDEC_CIF_WIDTH) || 71 (OMX_U16)(pComponentPrivate->pInPortDef->format.video.nFrameHeight > VIDDEC_CIF_HEIGHT)) { 72 if (pComponentPrivate->pInPortDef->format.video.eCompressionFormat == OMX_VIDEO_CodingAVC) { 75 else if (pComponentPrivate->pInPortDef->format.video.eCompressionFormat == OMX_VIDEO_CodingWMV) { 78 else if (pComponentPrivate->pInPortDef->format.video.eCompressionFormat == OMX_VIDEO_CodingMPEG4) { 79 if ((OMX_U16)pComponentPrivate->pInPortDef->format.video.nFrameHeight > VIDDEC_D1MAX_HEIGHT || 80 (OMX_U16)pComponentPrivate->pInPortDef->format.video.nFrameWidth > VIDDEC_D1MAX_WIDTH) 89 else if (pComponentPrivate->pInPortDef->format.video.eCompressionFormat == OMX_VIDEO_CodingMPEG2) { 92 else if (pComponentPrivate->pInPortDef->format.video.eCompressionFormat == OMX_VIDEO_CodingH263) [all...] |
/dalvik/libcore/text/src/main/java/java/text/ |
SimpleDateFormat.java | 52 * default format pattern. You may modify the format pattern using the {@code 55 * <h4>Time Format Syntax</h4> 57 * To specify the time format, use a <em>time pattern</em> string. In this 207 * The count of pattern letters determines the format: 231 * Format Pattern Result 248 * // Format the current time. 252 * String dateString = formatter.format(currentTime_1); 263 * am/pm marker 'a' is left out from the format pattern while the 288 * parsed specially. For example, the format "HHmmss" parses the input tex [all...] |
/external/opencore/codecs_v2/omx/omx_h264/src/ |
avc_dec.cpp | 186 OldWidth = aPortParam->format.video.nFrameWidth; 187 OldHeight = aPortParam->format.video.nFrameHeight; 254 aPortParam->format.video.nFrameWidth = crop_right - crop_left + 1; 255 aPortParam->format.video.nFrameHeight = crop_bottom - crop_top + 1; 257 OMX_U32 min_stride = ((aPortParam->format.video.nFrameWidth + 15) & (~15)); 258 OMX_U32 min_sliceheight = ((aPortParam->format.video.nFrameHeight + 15) & (~15)); 261 aPortParam->format.video.nStride = min_stride; 262 aPortParam->format.video.nSliceHeight = min_sliceheight; 267 // Decoder components always output YUV420 format 268 aPortParam->nBufferSize = (aPortParam->format.video.nSliceHeight * aPortParam->format.video.nStride * 3) >> 1 [all...] |
/external/qemu/distrib/sdl-1.2.12/src/audio/macrom/ |
SDL_romaudio.c | 219 switch (spec->format) { 221 spec->format = AUDIO_U8; 224 spec->format = AUDIO_S16LSB; 227 spec->format = AUDIO_S16MSB; 239 "Audio format 0x%x, channels = %d, sample_bits = %d, frequency = %d\n", 240 spec->format, spec->channels, sample_bits, spec->freq); 250 if ( spec->format == 0x8010 ) { 252 header.format = k16BitLittleEndianFormat; 420 switch (spec->format) { 422 spec->format = AUDIO_U8 [all...] |