/cts/tests/tests/text/src/android/text/format/cts/ |
DateFormatTest.java | 17 package android.text.format.cts; 24 import android.text.format.DateFormat; 84 assertEquals("D", DateFormat.format("MMMMM", c)); 85 assertEquals("December", DateFormat.format("MMMM", c)); 86 assertEquals("Dec", DateFormat.format("MMM", c)); 87 assertEquals("12", DateFormat.format("MM", c)); 88 assertEquals("12", DateFormat.format("M", c)); 94 assertEquals("D", DateFormat.format("LLLLL", c)); 95 assertEquals("December", DateFormat.format("LLLL", c)); 96 assertEquals("Dec", DateFormat.format("LLL", c)) 155 String format = "MM\/dd\/yy"; local [all...] |
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
CertificateStub.java | 38 String format; field in class:CertificateStub 43 public CertificateStub(String format, Principal guarantor, Principal principal, PublicKey key) { 44 this.format = format; 77 return format;
|
/external/bison/lib/ |
obstack_printf.c | 36 obstack_printf (struct obstack *obs, const char *format, ...) 41 va_start (args, format); 42 result = obstack_vprintf (obs, format, args); 54 obstack_vprintf (struct obstack *obs, const char *format, va_list args) 71 str = vasnprintf (base, &len, format, args);
|
/external/chromium_org/base/strings/ |
string_util_posix.h | 32 const char* format, va_list arguments) { 33 return ::vsnprintf(buffer, size, format, arguments); 45 const wchar_t* format, va_list arguments) { 46 DCHECK(IsWprintfFormatPortable(format)); 47 return ::vswprintf(buffer, size, format, arguments);
|
/external/chromium_org/ppapi/proxy/ |
flash_clipboard_resource.cc | 26 // These functions assume the format is valid. 27 bool PPVarToClipboardString(int32_t format, 30 if (format == PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT || 31 format == PP_FLASH_CLIPBOARD_FORMAT_HTML) { 48 PP_Var ClipboardStringToPPVar(int32_t format, 50 if (format == PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT || 51 format == PP_FLASH_CLIPBOARD_FORMAT_HTML) { 78 // Check to see if the format has already been registered. 79 uint32_t format = clipboard_formats_.GetFormatID(format_name); local 80 if (format != PP_FLASH_CLIPBOARD_FORMAT_INVALID [all...] |
/external/chromium_org/ppapi/tests/ |
test_image_data.h | 30 // Subtests used by tests above; pass in a pixel format. 31 std::string SubTestFormatSupported(PP_ImageDataFormat format); 32 std::string SubTestInvalidSize(PP_ImageDataFormat format); 33 std::string SubTestHugeSize(PP_ImageDataFormat format); 34 std::string SubTestInitToZero(PP_ImageDataFormat format); 35 std::string SubTestIsImageData(PP_ImageDataFormat format);
|
/external/chromium_org/third_party/boringssl/src/crypto/bio/ |
printf.c | 69 int BIO_printf(BIO *bio, const char *format, ...) { 74 va_start(args, format); 75 out_len = vsnprintf(buf, sizeof(buf), format, args); 90 va_start(args, format); 91 out_len = vsnprintf(out, requested_len + 1, format, args);
|
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
formats.h | 50 * Max number of bytes for any non-compressed pixel format below, or for 286 _mesa_get_format_name(gl_format format); 289 _mesa_get_format_bytes(gl_format format); 292 _mesa_get_format_bits(gl_format format, GLenum pname); 295 _mesa_get_format_max_bits(gl_format format); 298 _mesa_get_format_datatype(gl_format format); 301 _mesa_get_format_base_format(gl_format format); 304 _mesa_get_format_block_size(gl_format format, GLuint *bw, GLuint *bh); 307 _mesa_is_format_compressed(gl_format format); 310 _mesa_is_format_packed_depth_stencil(gl_format format); [all...] |
/external/lldb/source/Interpreter/ |
OptionGroupFormat.cpp | 27 OptionGroupFormat::OptionGroupFormat (lldb::Format default_format, 45 { LLDB_OPT_SET_1, false, "format" ,'f', required_argument, NULL, 0, eArgTypeFormat , "Specify a format to be used for display."}, 46 { LLDB_OPT_SET_2, false, "gdb-format",'G', required_argument, NULL, 0, eArgTypeGDBFormat, "Specify a format using a GDB format specifier string."}, 47 { LLDB_OPT_SET_3, false, "size" ,'s', required_argument, NULL, 0, eArgTypeByteSize , "The size in bytes to use when displaying with the selected format."}, 125 Format format = eFormatDefault; local 128 while (ParserGDBFormatLetter (interpreter, gdb_format_cstr[0], format, byte_size) [all...] |
/external/mesa3d/src/mesa/main/ |
formats.h | 50 * Max number of bytes for any non-compressed pixel format below, or for 286 _mesa_get_format_name(gl_format format); 289 _mesa_get_format_bytes(gl_format format); 292 _mesa_get_format_bits(gl_format format, GLenum pname); 295 _mesa_get_format_max_bits(gl_format format); 298 _mesa_get_format_datatype(gl_format format); 301 _mesa_get_format_base_format(gl_format format); 304 _mesa_get_format_block_size(gl_format format, GLuint *bw, GLuint *bh); 307 _mesa_is_format_compressed(gl_format format); 310 _mesa_is_format_packed_depth_stencil(gl_format format); [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/nds/ |
sound9.c | 27 void SoundSystemInit(u32 rate,u32 buffersize,u8 channel,u8 format) 31 if(format == 8) 33 else if(format == 16) 38 soundsystem->format = format;
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
CertificateStub.java | 39 String format; field in class:CertificateStub 44 public CertificateStub(String format, Principal guarantor, Principal principal, PublicKey key){ 45 this.format = format; 76 return format;
|
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/ |
abort_message.cpp | 25 void abort_message(const char* format, ...) 32 va_start(list, format); 33 vfprintf(stderr, format, list); 41 va_start(list2, format); 42 vasprintf(&buffer, format, list2);
|
/external/chromium_org/third_party/libjingle/source/talk/media/base/ |
videoadapter_unittest.cc | 221 VideoFormat format = capturer_->GetSupportedFormats()->at(0); local 222 format.interval = 0; 223 adapter_->SetInputFormat(format); 224 adapter_->SetOutputFormat(format); 429 VideoFormat format; // with resolution 0x0. local 430 adapter_->SetOutputFormat(format); 445 VideoFormat format(640, 400, VideoFormat::FpsToInterval(30), FOURCC_I420); 446 adapter.SetInputFormat(format); 448 EXPECT_EQ(format, adapter.input_format()); 451 // Server format request 640x400 [all...] |
/external/chromium_org/testing/android/junit/java/src/org/chromium/testing/local/ |
GtestLogger.java | 28 mOutputStream.format("[ RUN ] %s.%s", test.getClassName(), test.getMethodName()); 46 mOutputStream.format("[ OK ] %s.%s (%d ms)", 49 mOutputStream.format("[ FAILED ] %s.%s (%d ms)", 59 mOutputStream.format("[----------] Run %d test cases from %s", testCount, 69 mOutputStream.format("[----------] Run %d test cases from %s (%d ms)", 79 mOutputStream.format("[==========] Running %d tests.", testCount); 92 mOutputStream.format("[==========] %d tests ran. (%d ms total)", 95 mOutputStream.format("[ PASSED ] %d tests.", passedTestCount); 98 mOutputStream.format("[ FAILED ] %d tests.", failedTests.size()); 101 mOutputStream.format("[ FAILED ] %s.%s", d.getClassName(), d.getMethodName()) [all...] |
/external/chromium_org/third_party/cython/src/Cython/Includes/cpython/ |
getargs.pxd | 8 int PyArg_ParseTuple(object args, char *format, ...) except 0 9 int PyArg_VaParse(object args, char *format, va_list vargs) except 0 10 int PyArg_ParseTupleAndKeywords(object args, object kw, char *format, char *keywords[], ...) except 0 11 int PyArg_VaParseTupleAndKeywords(object args, object kw, char *format, char *keywords[], va_list vargs) except 0 12 int PyArg_Parse(object args, char *format, ...) except 0
|
/external/llvm/lib/MC/ |
MCInstPrinter.cpp | 15 #include "llvm/Support/Format.h" 73 return format("%" PRId64, Value); 80 return format("-0x%" PRIx64, -Value); 82 return format("0x%" PRIx64, Value); 86 return format("-0%" PRIx64 "h", -Value); 88 return format("-%" PRIx64 "h", -Value); 91 return format("0%" PRIx64 "h", Value); 93 return format("%" PRIx64 "h", Value); 102 return format("0x%" PRIx64, Value); 105 return format("0%" PRIx64 "h", Value) [all...] |
/external/llvm/utils/testgen/ |
mc-bundling-x86-gen.py | 30 '''.format(BUNDLE_SIZE_POW2).lstrip() 36 print(' .bundle_lock{0}'.format(' align_to_end' if align_to_end else '')) 37 print(' .rept {0}'.format(len)) 50 print(ALIGNTO.format(2 * BUNDLE_SIZE)) 51 print('INSTRLEN_{0}_OFFSET_{1}:'.format(instlen, offset)) 53 print(NOPFILL.format(offset)) 62 print('# CHECK: {0:x}: nop'.format(inst_orig_offset)) 64 print('# CHECK: {0:x}: nop'.format(nop_split_offset)) 65 print('# CHECK: {0:x}: incl'.format(adjusted_offset)) 67 print('# CHECK: {0:x}: incl'.format(inst_orig_offset) [all...] |
/frameworks/base/core/java/android/hardware/camera2/params/ |
StreamConfigurationMap.java | 49 * for that format) that are supported by a camera device.</p> 51 * <p>This also contains the minimum frame durations and stall durations for each format/size 105 // For each format, track how many sizes there are available to configure 142 * Get the image {@code format} output formats in this stream configuration. 150 * @return an array of integer format 160 * Get the image {@code format} input formats in this stream configuration. 165 * @return an array of integer format 177 * Get the supported input sizes for this input format. 179 * <p>The format must have come from {@link #getInputFormats}; otherwise 182 * @param format a format from {@link #getInputFormats [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
ChoiceFormatTest.java | 49 formattedString = cf.format(Double.NEGATIVE_INFINITY); 50 assertTrue("a) Incorrect format returned: " + formattedString, 52 formattedString = cf.format(0.5d); 53 assertTrue("b) Incorrect format returned: " + formattedString, 55 formattedString = cf.format(1d); 56 assertTrue("c) Incorrect format returned: " + formattedString, 58 formattedString = cf.format(1.5d); 59 assertTrue("d) Incorrect format returned: " + formattedString, 61 formattedString = cf.format(2d); 62 assertTrue("e) Incorrect format returned: " + formattedString 358 ChoiceFormat format = new ChoiceFormat("1#one|2#two|3#three"); local [all...] |
/external/chromium_org/content/common/gpu/client/ |
gl_helper_readback_support.cc | 21 // used 16, 32-bit formats. In future if any new format support is needed 65 void GLHelperReadbackSupport::GetAdditionalFormat(GLenum format, 70 if (format_cache_[i].format == format && format_cache_[i].type == type) { 85 GL_TEXTURE_2D, 0, format, kTestSize, kTestSize, 0, format, type, NULL); 97 struct FormatCacheEntry entry = { format, type, *format_out, *type_out }; 101 bool GLHelperReadbackSupport::SupportsFormat(GLenum format, GLenum type) { 103 // with additional format from GL_IMPLEMENTATION_COLOR_READ_FORMAT/TYPE 104 if (format == GL_RGBA && type == GL_UNSIGNED_BYTE [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/baudio/ |
SDL_beaudio.cc | 98 const media_raw_audio_format &format) 156 media_raw_audio_format format; local 157 Uint16 test_format = SDL_FirstAudioFormat(spec->format); 159 /* Parse the audio format and fill the Be raw audio format */ 160 memset(&format, '\0', sizeof (media_raw_audio_format)); 161 format.byte_order = B_MEDIA_LITTLE_ENDIAN; 162 format.frame_rate = (float) spec->freq; 163 format.channel_count = spec->channels; /* !!! FIXME: support > 2? */ 166 spec->format = test_format [all...] |
/frameworks/av/include/media/nbaio/ |
NBAIO.h | 38 NEGOTIATE = 0x80000010, // Must (re-)negotiate format. For negotiate() only, the offeree 47 // Negotiation of format is based on the data provider and data sink, or the data consumer and 51 // attributes, rather than a struct with separate fields for format, sample rate, channel count, 68 size_t Format_frameSize(const NBAIO_Format& format); 72 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format); 75 unsigned Format_sampleRate(const NBAIO_Format& format); 78 unsigned Format_channelCount(const NBAIO_Format& format); 86 bool Format_isValid(const NBAIO_Format& format); 124 // Return the current negotiated format, or Format_Invalid if negotiation has not been done, 126 virtual NBAIO_Format format() const { return mNegotiated ? mFormat : Format_Invalid; function in class:android::NBAIO_Port [all...] |
/hardware/ti/omap3/dspbridge/inc/ |
gt.h | 193 GT_0trace(struct GT_Mask mask, SmBits class, String format) 199 GT_1trace(struct GT_Mask mask, SmBits class, String format, ...) 205 GT_2trace(struct GT_Mask mask, SmBits class, String format, ...) 211 GT_3trace(struct GT_Mask mask, SmBits class, String format, ...) 217 GT_4trace(struct GT_Mask mask, SmBits class, String format, ...) 223 GT_5trace(struct GT_Mask mask, SmBits class, String format, ...) 229 GT_6trace(struct GT_Mask mask, SmBits class, String format, ...) 243 extern Int _GT_trace(struct GT_Mask * mask, String format, ...); 278 #define GT_0trace( mask, class, format ) 279 #define GT_1trace( mask, class, format, arg1 [all...] |
/external/chromium_org/content/common/gpu/media/ |
v4l2_video_device.cc | 32 media::VideoFrame::Format V4L2Device::V4L2PixFmtToVideoFrameFormat( 51 media::VideoFrame::Format format) { 52 switch (format) { 81 gfx::Size V4L2Device::CodedSizeFromV4L2Format(struct v4l2_format format) { 84 media::VideoFrame::Format frame_format = media::VideoFrame::UNKNOWN; 88 if (V4L2_TYPE_IS_MULTIPLANAR(format.type) && 89 format.fmt.pix_mp.num_planes > 0) { 91 base::checked_cast<int>(format.fmt.pix_mp.plane_fmt[0].bytesperline); 93 base::checked_cast<int>(format.fmt.pix_mp.plane_fmt[0].sizeimage) [all...] |