/external/qemu/distrib/sdl-1.2.15/test/ |
graywin.c | 38 if (screen->format->BytesPerPixel==1) 44 color = SDL_MapRGB(screen->format, randc, randc, randc); 75 if (screen->format->BytesPerPixel!=2) { 77 memset(buffer,(i*(NUM_COLORS-1))/screen->h, screen->w * screen->format->BytesPerPixel); 85 color = SDL_MapRGB(screen->format, gradient, gradient, gradient); 222 screen->format->BitsPerPixel, 242 screen->format->BitsPerPixel,
|
/external/skia/legacy/src/images/ |
SkImageDecoder.cpp | 21 "Unknown Format", 58 SkImageDecoder::Format SkImageDecoder::getFormat() const { 227 SkBitmap::Config pref, Mode mode, Format* format) { 233 if (SkImageDecoder::DecodeStream(&stream, bm, pref, mode, format)) { 242 SkBitmap::Config pref, Mode mode, Format* format) { 249 return SkImageDecoder::DecodeStream(&stream, bm, pref, mode, format); 253 SkBitmap::Config pref, Mode mode, Format* format) { [all...] |
/external/skia/src/images/ |
SkImageDecoder.cpp | 25 "Unknown Format", 62 SkImageDecoder::Format SkImageDecoder::getFormat() const { 231 SkBitmap::Config pref, Mode mode, Format* format) { 237 if (SkImageDecoder::DecodeStream(&stream, bm, pref, mode, format)) { 246 SkBitmap::Config pref, Mode mode, Format* format) { 253 return SkImageDecoder::DecodeStream(&stream, bm, pref, mode, format); 257 SkBitmap::Config pref, Mode mode, Format* format) { [all...] |
/external/skia/tests/ |
StringTest.cpp | 17 #define VSNPRINTF(buffer, size, format, args) \ 18 vsnprintf_s(buffer, size, _TRUNCATE, format, args) 23 #define ARGS_TO_BUFFER(format, buffer, size) \ 26 va_start(args, format); \ 27 VSNPRINTF(buffer, size, format, args); \ 31 static void printfAnalog(char* buffer, int size, const char format[], ...) { 32 ARGS_TO_BUFFER(format, buffer, size);
|
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
Texture.cpp | 50 Texture::Texture(GraphicsContext3D* context, PassOwnPtr<Vector<unsigned int> > tileTextureIds, Format format, int width, int height, int maxTextureSize) 52 , m_format(format) 64 static void convertFormat(GraphicsContext3D* context, Texture::Format format, unsigned int* glFormat, unsigned int* glType, bool* swizzle) 67 switch (format) { 88 PassRefPtr<Texture> Texture::create(GraphicsContext3D* context, Format format, int width, int height) 112 convertFormat(context, format, &glFormat, &glType, &swizzle); 119 return adoptRef(new Texture(context, textureIds.leakPtr(), format, width, height, maxTextureSize)) [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
GLFrame.java | 70 GLFrame(FrameFormat format, FrameManager frameManager) { 71 super(format, frameManager); 74 GLFrame(FrameFormat format, FrameManager frameManager, int bindingType, long bindingId) { 75 super(format, frameManager, bindingType, bindingId); 79 FrameFormat format = getFormat(); local 82 // Check that we have a valid format 83 if (format.getBytesPerSample() != 4) { 85 } else if (format.getDimensionCount() != 2) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
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;
|
/frameworks/testing/androidtestlib/src/com/android/test/runner/ |
TestRequestBuilder.java | 103 return String.format("annotation %s", mAnnotationClass.getName()); 143 return String.format("not annotation %s", mAnnotationClass.getName()); 204 return String.format("Method %s", target.getDisplayName()); 221 Log.e(LOG_TAG, String.format("Unrecognized test size '%s'", testSize)); 306 Log.i(LOG_TAG, String.format("Scanning classpath to find tests in apks %s", 342 Log.e(LOG_TAG, String.format("Could not find annotation class: %s", className)); 344 Log.e(LOG_TAG, String.format("Class %s is not an annotation", className));
|
/hardware/libhardware_legacy/audio/ |
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());
|
/hardware/msm7k/libaudio-qdsp5v2/ |
AudioHardware.cpp | 63 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 78 status_t rc = out->set(this, devices, format, channels, sampleRate); 103 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, 143 size_t AudioHardware::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) 185 if (lFormat == 0) lFormat = format(); 190 if ((lFormat != format()) || 193 if (pFormat) *pFormat = format();
|
/libcore/luni/src/main/java/javax/security/auth/x500/ |
X500Principal.java | 42 * Defines a constant for the canonical string format of distinguished 48 * Defines a constant for the RFC 1779 string format of distinguished 54 * Defines a constant for the RFC 2253 string format of distinguished 197 * this X.500 principal. The format of the representation can be chosen. 205 * @param format 206 * the name of the format to use for the representation 211 * if the {@code format} argument is not one of the three 214 public String getName(String format) { 215 if (CANONICAL.equals(format)) { 219 return dn.getName(format); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/functests/sampleProjects/ |
SampleProjectTest.java | 97 sLogger.log(Level.INFO, String.format("Testing sample %s for target %s", name, 126 String.format("Unexpected exception when creating sample project %s " + 143 assertNotNull(String.format("could not read manifest %s", manifestPath), 151 assertTrue(String.format("%s project not created", name), iproject.exists()); 152 assertTrue(String.format("%s project not opened", name), iproject.isOpen()); 166 StringBuilder failureBuilder = new StringBuilder(String.format("%s project has errors:", 229 fail(String.format("Expected build event never happened for %s", iproject.getName()));
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/device/ |
DeviceBridge.java | 152 Log.e("hierarchy", String.format( 156 Log.e("hierarchy", String.format( 174 Log.e("hierarchy", String.format( 178 Log.e("hierarchy", String.format( 200 return String.format("service call window %d i32 %d", 205 return String.format("service call window %d", Configuration.SERVICE_CODE_STOP_SERVER); 209 return String.format("service call window %d",
|
/external/chromium/chrome/common/ |
time_format.cc | 105 // Different format types. 224 icu::PluralFormat* format = new icu::PluralFormat(*rules, pattern, err); local 226 time_formats->push_back(format); 228 delete format; 236 // Create a hard-coded fallback plural format. This will never be called 253 icu::PluralFormat* format = new icu::PluralFormat(rules, pattern, err); local 255 return format; 275 time_string = formatters[0]->format(number, error); 281 time_string = formatters[1]->format(number, error); 287 time_string = formatters[2]->format(number, error) [all...] |
/external/icu4c/test/intltest/ |
miscdtfm.cpp | 12 #include "unicode/format.h" 121 logln("Format\tSource\tResult"); 131 logln(resultFormatter->format(formatter->parse(dstring[i], status), str, pos)); 132 failure(status, "resultFormatter->format"); 169 format0 = df->format(d, format0); 175 format1 = df->format(d, format1); 202 format0 = df->format(d, format0); 208 format1 = df->format(d, format1); 232 format0 = df->format(d, format0); 238 format1 = df->format(d, format1) [all...] |
/external/llvm/lib/DebugInfo/ |
DWARFDebugFrame.cpp | 15 #include "llvm/Support/Format.h" 217 OS << format("%08x %08x %08x CIE", 220 OS << format(" Version: %d\n", Version); 222 OS << format(" Code alignment factor: %u\n", 224 OS << format(" Data alignment factor: %d\n", 226 OS << format(" Return address column: %d\n", 261 OS << format("%08x %08x %08x FDE ", 263 OS << format("cie=%08x pc=%08x...%08x\n", 268 OS << format("%p\n", LinkedCIE); 335 // The Id field's size depends on the DWARF format [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/nas/ |
SDL_nasaudio.c | 352 Uint16 test_format, format; local 356 /* Try for a closest match on audio format */ 357 format = 0; 358 for ( test_format = SDL_FirstAudioFormat(spec->format); 359 ! format && test_format; ) { 360 format = sdlformat_to_auformat(test_format); 362 if (format == AuNone) { 366 if ( format == 0 ) { 370 spec->format = test_format; 400 AuMakeElementImportClient(elms, spec->freq, format, spec->channels, AuTrue [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/ps3/ |
SDL_ps3yuv.c | 82 SDL_Overlay *PS3_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, SDL_Surface *display) { 84 if ((display->format->BytesPerPixel != 2) && 85 (display->format->BytesPerPixel != 3) && 86 (display->format->BytesPerPixel != 4)) 92 /* Double-check the requested format. We'll only support YV12 */ 93 switch (format) { 96 /* Supported YUV format */ 99 SDL_SetError("Unsupported YUV format"); 115 overlay->format = format; [all...] |
/frameworks/base/core/java/android/text/format/ |
Time.java | 17 package android.text.format; 314 * Print the current value given the format string provided. See man 317 * @param format a string containing the desired format. 320 public String format(String format) { method in class:Time 345 String result = format1(format); 353 native private String format1(String format); 372 * Return the current time in YYYYMMDDTHHMMSS<tz> format 378 * Parses a date-time string in either the RFC 2445 format or an abbreviate [all...] |
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZoneInfo.java | 22 import android.text.format.DateUtils; 23 import android.text.format.Time; 99 String format = "%I:%M %p"; local 102 format = "%b %d %H:%M"; 104 format = "%b %d %I:%M %p"; 107 format = "%H:%M"; 110 // format = "%Y-%m-%d %H:%M"; 111 localTimeStr = recycledTime.format(format); 286 // f.format("%s -> %s (%d)", fromTime, toTime, this.mTransitions[i]) [all...] |
/hardware/ti/omap4xxx/security/tf_daemon/ |
smc_properties_parser.c | 81 static void TRACE_ERROR(const char* format, ...) 84 va_start(ap, format); 86 vfprintf(stderr, format, ap); 91 static void TRACE_WARNING(const char* format, ...) 94 va_start(ap, format); 96 vfprintf(stderr, format, ap); 101 static void TRACE_INFO(const char* format, ...) 104 va_start(ap, format); 106 vfprintf(stderr, format, ap);
|
/libcore/luni/src/main/java/java/text/ |
NumberFormat.java | 38 * {@code NumberFormat} helps you to format and parse numbers for any locale. 41 * whether the number format is even decimal. 43 * To format a number for the current locale, use one of the factory class 48 * myString = NumberFormat.getInstance().format(myNumber); 54 * format and use it multiple times so that the system doesn't have to fetch the 61 * output.println(nf.format(myNumber[i]) + "; "); 67 * To format a number for a different locale, specify it in the call to 87 * format. Use {@link #getIntegerInstance} to get an integer number format, 88 * {@link #getCurrencyInstance} to get the currency number format, an 210 public final String format(double value) { method in class:NumberFormat 234 public abstract StringBuffer format(double value, StringBuffer buffer, FieldPosition field); method in class:NumberFormat 243 public final String format(long value) { method in class:NumberFormat 267 public abstract StringBuffer format(long value, StringBuffer buffer, FieldPosition field); method in class:NumberFormat 294 public StringBuffer format(Object object, StringBuffer buffer, FieldPosition field) { method in class:NumberFormat [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
OldStringTest.java | 408 assertEquals("3 2 1 4 3 2 1", String.format( 411 assertEquals("empty format", "", String.format("", 123, this)); 413 String.format(null); 414 fail("NPE is expected on null format"); 418 String.format("%d%% of %s is 0x%x", "123"); 425 String.format("%tu", "123"); 437 String.format(l, "%d%% of %s is 0x%x", 13, "sum", 17)); 438 assertEquals("empty format", "", String.format("", 123, this)) [all...] |
/external/libxml2/ |
xmlwriter.c | 108 static xmlChar *xmlTextWriterVSprintf(const char *format, va_list argptr); 857 * @format: format string (see printf) 858 * @...: extra parameters for the format 866 const char *format, ...) 871 va_start(ap, format); 873 rc = xmlTextWriterWriteVFormatComment(writer, format, ap); 882 * @format: format string (see printf) 891 const char *format, va_list argptr [all...] |
/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/ |
AppSecurityTests.java | 139 assertNull(String.format("failed to install shared uid app, Reason: %s", installResult), 165 assertNull(String.format("failed to install simple app. Reason: %s", installResult), 190 assertNull(String.format("failed to install app with data. Reason: %s", installResult), 198 assertNull(String.format("failed to install app access data. Reason: %s", 280 assertNull(String.format("failed to install app with data. Reason: %s", installResult), 290 assertNull(String.format("failed to install app with data second time. Reason: %s", 314 assertNull(String.format("failed to install target instrumentation app. Reason: %s", 320 assertNull(String.format( 349 assertNull(String.format("failed to install declare permission app. Reason: %s", 354 assertNull(String.format("failed to install declare permission compat app. Reason: %s" [all...] |