HomeSort by relevance Sort by last modified time
    Searched refs:format (Results 451 - 475 of 3271) sorted by null

<<11121314151617181920>>

  /packages/apps/Settings/src/com/android/settings/fuelgauge/
Utils.java 32 * Returns elapsed time for the given millis, in the following format:
77 return String.format("%.2f MB", ((int) (bytes / 1000)) / 1000f);
79 return String.format("%.2f KB", ((int) (bytes / 10)) / 100f);
81 return String.format("%d bytes", (int) bytes);
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/alsa/sound/
ainstr_simple.h 4 * Simple (MOD player) Instrument Format
62 unsigned int format; /* supported format bits */ member in struct:simple_instrument_info
74 unsigned int format; /* wave format */ member in struct:__anon20457
116 __u32 format; /* wave format */ member in struct:simple_xinstrument
  /system/core/adb/
utils.c 72 buff_add (char* buff, char* buffEnd, const char* format, ... )
82 va_start(args, format);
83 nn = vsnprintf( buff, avail, format, args);
88 * but they will also do that if the format spec is
  /system/media/mca/effect/java/android/media/effect/
FilterEffect.java 28 import android.filterfw.format.ImageFormat;
90 FrameFormat format = ImageFormat.create(width, height, local
93 Frame frame = manager.newBoundFrame(format,
  /system/media/mca/filterfw/java/android/filterfw/basefilters/
GLTextureTarget.java 27 import android.filterfw.format.ImageFormat;
53 FrameFormat format = ImageFormat.create(input.getFormat().getWidth(), local
58 Frame frame = context.getFrameManager().newBoundFrame(format, GLFrame.EXISTING_TEXTURE_BINDING, mTexId);
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
FormatterTest.java 82 formatter.format("CUSTOMIZED FORMAT FUNCTION" + " WIDTH: "
85 formatter.format("customized format function" + " width: "
707 f.format("%s%s", "1", "2");
708 // format stop working after IOException
714 * @tests java.util.Formatter#format(String, Object...) for null parameter
719 f.format((String) null, "parameter");
726 f.format("hello", (Object[]) null);
731 * @tests java.util.Formatter#format(String, Object...) for argument inde
    [all...]
  /external/icu4c/i18n/unicode/
decimfmt.h 54 * and format numbers in any locale, including support for Western, Arabic, or
78 * // format for each locale.
85 * cout << endl << "FORMAT " << j << endl;
103 * cout << " -> " << form->format(myNumber,str) << endl;
104 * form->parse(form->format(myNumber,str), fmtable, success);
116 * // format for each locale</strong>
125 * NumberFormat* format = NumberFormat::createInstance(locale, j, success);
127 * cout << "format result " << form->format(myNumber, str) << endl;
128 * format->parse(form->format(myNumber, str), fmtable, success)
2278 DecimalFormat::format(const Formattable& obj, function in class:DecimalFormat
2287 DecimalFormat::format(double number, function in class:DecimalFormat
2294 DecimalFormat::format(int32_t number, function in class:DecimalFormat
    [all...]
datefmt.h 29 #include "unicode/format.h"
51 * DateFormat helps you to format and parse dates for any locale. Your code can
53 * week, or even the calendar format: lunar vs. solar.
55 * To format a date for the current Locale, use one of the static factory
62 * myString = dfmt->format( myDate, myString );
66 * format and use it multiple times so that the system doesn't have to fetch the
75 * cout << df->format( myDateArr[i], myString ) << endl;
86 * myString = dfmt->format( myDate, myString );
91 * To format a date for a different Locale, specify it in the call to
106 * Use createDateInstance() to produce the normal date format for that country
741 DateFormat::format(const Formattable& obj, function in class:DateFormat
    [all...]
  /development/tools/emulator/opengl/system/egl/
eglDisplay.cpp 194 PixelFormat format; local
195 if (getConfigNativePixelFormat(config, &format)) {
196 setConfigAttrib(config, EGL_NATIVE_VISUAL_ID, format);
450 EGLBoolean eglDisplay::getConfigNativePixelFormat(EGLConfig config, PixelFormat * format)
459 LOGE("Couldn't find value for one of the pixel format attributes");
463 //calculate the GL internal format
464 if ((redSize==8)&&(greenSize==8)&&(blueSize==8)&&(alphaSize==8)) *format = PIXEL_FORMAT_RGBA_8888; //XXX: BGR?
465 else if ((redSize==8)&&(greenSize==8)&&(blueSize==8)&&(alphaSize==0)) *format = PIXEL_FORMAT_RGBX_8888; //XXX or PIXEL_FORMAT_RGB_888
466 else if ((redSize==5)&&(greenSize==6)&&(blueSize==5)&&(alphaSize==0)) *format = PIXEL_FORMAT_RGB_565;
467 else if ((redSize==5)&&(greenSize==5)&&(blueSize==5)&&(alphaSize==1)) *format = PIXEL_FORMAT_RGBA_5551
    [all...]
  /external/icu4c/test/cintltst/
cdtdptst.c 15 /* INDEPTH TEST FOR DATE FORMAT */
62 log_data_err("FAIL: Error in creating a date format using udat_openPattern %s - (Are you missing data?)\n",
121 /* this is supposed to open default date format, but later on it treats it like it is "en_US"
141 log_data_err("FAIL: could not format \n");
155 void tryPat994(UDateFormat* format, const char* pattern, const char* s, UDate expected)
168 udat_applyPattern(format, FALSE, pat, u_strlen(pat));
170 date = udat_parse(format, str, u_strlen(str), &pos, &status);
174 log_err("FAIL: Expected: %s\n", austrdup(myDateFormat(format, expected)) );
177 f=myDateFormat(format, date);
198 UDateFormat *format; local
303 UDateFormat *format; local
    [all...]
  /frameworks/base/libs/ui/
GraphicBuffer.cpp 46 format =
59 format =
75 format = inFormat;
88 format = buffer->format;
134 if (handle && w==width && h==height && f==format && reqUsage==usage)
145 status_t GraphicBuffer::initSize(uint32_t w, uint32_t h, PixelFormat format,
149 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride);
153 this->format = format;
    [all...]
  /development/tools/emulator/opengl/host/libs/Translator/GLES_V2/
GLESv2Validate.cpp 112 bool GLESv2Validate::readPixelFrmt(GLenum format){
113 switch(format) {
151 bool GLESv2Validate::pixelFrmt(GLEScontext* ctx,GLenum format) {
152 if(format == GL_DEPTH_COMPONENT)
155 return GLESvalidate::pixelFrmt(ctx, format);
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
KeyStoreTestSupport.java 92 private String format; field in class:KeyStoreTestSupport.MyPrivateKey
96 public MyPrivateKey(String algorithm, String format, byte[] encoded) {
98 this.format = format;
107 return format;
  /external/dropbear/
dbutil.c 59 static void generic_dropbear_exit(int exitcode, const char* format,
61 static void generic_dropbear_log(int priority, const char* format,
64 void (*_dropbear_exit)(int exitcode, const char* format, va_list param)
66 void (*_dropbear_log)(int priority, const char* format, va_list param)
81 /* the "format" string must be <= 100 characters */
82 void dropbear_close(const char* format, ...) {
86 va_start(param, format);
87 _dropbear_exit(EXIT_SUCCESS, format, param);
92 void dropbear_exit(const char* format, ...) {
96 va_start(param, format);
    [all...]
  /external/libxml2/include/libxml/
HTMLtree.h 82 int format);
102 int format);
111 int format);
118 int format);
127 int format);
  /external/llvm/unittests/Support/
raw_ostream_test.cpp 12 #include "llvm/Support/Format.h"
113 EXPECT_EQ("1.20", printToString(format("%.2f", 1.2), 1));
114 EXPECT_EQ("1.20", printToString(format("%.2f", 1.2), 2));
115 EXPECT_EQ("1.20", printToString(format("%.2f", 1.2), 3));
116 EXPECT_EQ("1.20", printToString(format("%.2f", 1.2), 4));
117 EXPECT_EQ("1.20", printToString(format("%.2f", 1.2), 10));
  /external/qemu/distrib/sdl-1.2.12/src/audio/
SDL_audio.c 257 Uint16 format = 0; local
262 format |= 0x0000;
266 format |= 0x8000;
274 format |= 8;
278 format |= 16;
284 format |= 0x0000;
291 format |= 0x1000;
297 return format;
427 if ( desired->format == 0 ) {
430 desired->format = SDL_ParseAudioFormat(env)
    [all...]
SDL_audiocvt.c 24 /* Functions for audio drivers to perform runtime conversion of audio format */
30 void SDLCALL SDL_ConvertMono(SDL_AudioCVT *cvt, Uint16 format)
38 switch (format&0x8018) {
73 if ( (format & 0x1000) == 0x1000 ) {
104 if ( (format & 0x1000) == 0x1000 ) {
132 cvt->filters[cvt->filter_index](cvt, format);
137 void SDLCALL SDL_ConvertStrip(SDL_AudioCVT *cvt, Uint16 format)
145 switch (format&0x8018) {
180 if ( (format & 0x1000) == 0x1000 ) {
215 if ( (format & 0x1000) == 0x1000 )
    [all...]
  /external/svox/pico/lib/
picodbg.h 83 * Tracing messages can use the well-known printf format specification.
86 * which requires the format string and its arguments to be enclosed
96 * format can be customized by a call to PICODBG_SET_OUTPUT_FORMAT().
186 /* Output format flags */
217 #define PICODBG_SET_OUTPUT_FORMAT(format) \
218 picodbg_setOutputFormat(format)
267 void picodbg_setOutputFormat(unsigned int format);
269 const char *picodbg_varargs(const char *format, ...);
287 #define PICODBG_SET_OUTPUT_FORMAT(format)
  /frameworks/base/media/libstagefright/rtsp/
ARawAudioAssembler.cpp 125 const char *desc, const sp<MetaData> &format) {
127 format->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_G711_MLAW);
129 format->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_G711_ALAW);
138 format->setInt32(kKeySampleRate, sampleRate);
139 format->setInt32(kKeyChannelCount, numChannels);
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
KeyStoreTestSupport.java 92 private String format; field in class:KeyStoreTestSupport.MyPrivateKey
96 public MyPrivateKey(String algorithm, String format, byte[] encoded) {
98 this.format = format;
107 return format;
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
SuggestTestsBase.java 67 private static String format(String message, Object expected, Object actual) { method in class:SuggestTestsBase
73 fail(format("assertEquals", expected, actual));
78 fail(format(message, expected, actual)); method
83 fail(format("assertNotEquals", expected, actual));
88 fail(format(message, expected, actual)); method
  /system/media/mca/filterpacks/imageproc/java/
ResizeFilter.java 32 import android.filterfw.format.ImageFormat;
71 protected void createProgram(FilterContext context, FrameFormat format) {
72 if (mLastFormat != null && mLastFormat.getTarget() == format.getTarget()) return;
73 mLastFormat = format;
74 switch (format.getTarget()) {
  /external/hyphenation/
substrings.c 177 char format[132]; // 64+65+newline+zero+spare local
183 while(fgets(format,132,in)) {
184 int l = strlen(format);
185 if (format[l-1]=='\n') { l--; format[l]=0; } // Chomp
186 if (format[0]=='%' || format[0]==0) {
189 if (format[l-1]=='%') {
191 format[l] = 0; // remove '%'
196 expand(org,format,l);
    [all...]
  /external/v8/src/
utils.cc 40 void PrintF(const char* format, ...) {
42 va_start(arguments, format);
43 OS::VPrint(format, arguments);
48 void PrintF(FILE* out, const char* format, ...) {
50 va_start(arguments, format);
51 OS::VFPrint(out, format, arguments);
241 void StringBuilder::AddFormatted(const char* format, ...) {
243 va_start(arguments, format);
244 AddFormattedList(format, arguments);
249 void StringBuilder::AddFormattedList(const char* format, va_list list)
    [all...]

Completed in 1002 milliseconds

<<11121314151617181920>>