Searched refs:format (Results 1 - 25 of 249) sorted by relevance

12345678910

/frameworks/base/tests/CoreTests/android/core/
H A DStringTest.java118 RuleBasedNumberFormat format = new RuleBasedNumberFormat();
119 format.open(RBNFType.SPELLOUT);
120 String result = format.format(15);
121 assertEquals("Expected spellout format: 'fifteen' but was "
123 format.close();
125 format.open(RBNFType.DURATION);
126 result = format.format(15);
127 assertEquals("Expected spellout format
[all...]
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DLog.java30 public void debug(String format, Object... args) { argument
32 info(format, args);
36 public void info(String format, Object... args) { argument
37 String s = String.format(format, args);
41 public void error(String format, Object... args) { argument
42 String s = String.format(format, args);
46 public void exception(Throwable t, String format, Object... args) { argument
51 error(format
[all...]
H A DLogAbortException.java24 public LogAbortException(String format, Object... args) { argument
25 mFormat = format;
/frameworks/base/libs/ui/
H A DPixelFormat.cpp18 #include <pixelflinger/format.h>
34 ssize_t bytesPerPixel(PixelFormat format) argument
37 status_t err = getPixelFormatInfo(format, &info);
41 ssize_t bitsPerPixel(PixelFormat format) argument
44 status_t err = getPixelFormatInfo(format, &info);
48 status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info) argument
50 if (format < 0)
57 const GGLFormat *i = gglGetPixelFormatTable(&numEntries) + format;
58 bool valid = uint32_t(format) < numEntries;
81 info->format
[all...]
H A DGraphicBuffer.cpp46 format =
59 format =
75 format = inFormat;
87 width = height = stride = format = usage = 0;
92 format = data.readInt32();
135 status_t GraphicBuffer::initSize(uint32_t w, uint32_t h, PixelFormat format, argument
138 if (format == PIXEL_FORMAT_RGBX_8888)
139 format = PIXEL_FORMAT_RGBA_8888;
142 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride);
146 this->format
[all...]
H A DGraphicBufferAllocator.cpp66 rec.w, rec.h, rec.format, rec.usage);
78 status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format, argument
91 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
93 err = sw_gralloc_handle_t::alloc(w, h, format, usage, handle, stride);
97 w, h, format, usage, err, strerror(-err));
105 rec.format = format;
108 rec.size = h * stride[0] * bytesPerPixel(format);
H A DEGLUtils.cpp58 PixelFormat format,
71 if ((err = getPixelFormatInfo(PixelFormat(format), &fbFormatInfo)) < 0) {
122 int format; local
127 if ((err = window->query(window, NATIVE_WINDOW_FORMAT, &format)) < 0) {
131 return selectConfigForPixelFormat(dpy, attrs, format, outConfig);
55 selectConfigForPixelFormat( EGLDisplay dpy, EGLint const* attrs, PixelFormat format, EGLConfig* outConfig) argument
H A DISurface.cpp37 : w(0), h(0), hor_stride(0), ver_stride(0), format(0),
44 PixelFormat format, const sp<IMemoryHeap>& heap)
46 format(format), transform(0), flags(0), heap(heap)
52 PixelFormat format, uint32_t transform, uint32_t flags,
55 format(format), transform(transform), flags(flags), heap(heap)
93 data.writeInt32(buffers.format);
118 uint32_t w, uint32_t h, int32_t format)
124 data.writeInt32(format);
42 BufferHeap(uint32_t w, uint32_t h, int32_t hor_stride, int32_t ver_stride, PixelFormat format, const sp<IMemoryHeap>& heap) argument
50 BufferHeap(uint32_t w, uint32_t h, int32_t hor_stride, int32_t ver_stride, PixelFormat format, uint32_t transform, uint32_t flags, const sp<IMemoryHeap>& heap) argument
117 createOverlay( uint32_t w, uint32_t h, int32_t format) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPixelFormat.java22 in ui/PixelFormat.h & pixelflinger/format.h */
26 /** System chooses a format that supports translucency (many alpha bits) */
30 * System chooses a format that supports transparency
35 /** System chooses an opaque format (no alpha bits required) */
56 /** YCbCr format used for images, which uses the NV21 encoding format.
57 * This is the default format for camera preview images, when not
63 /** YCbCr format used for images, which uses YUYV (YUY2) encoding format.
64 * This is an alternative format fo
82 getPixelFormatInfo(int format, PixelFormat info) argument
83 formatHasAlpha(int format) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DLoggingPrintStream.java113 public PrintStream format(String format, Object... args) { argument
114 return format(Locale.getDefault(), format, args);
118 public PrintStream printf(String format, Object... args) { argument
119 return format(format, args);
123 public PrintStream printf(Locale l, String format, Object... args) { argument
124 return format(l, format, arg
130 format( Locale l, String format, Object... args) argument
[all...]
/frameworks/base/core/java/android/text/format/
H A DFormatter.java17 package android.text.format;
75 value = String.format("%.2f", result);
78 value = String.format("%.1f", result);
80 value = String.format("%.2f", result);
84 value = String.format("%.0f", result);
86 value = String.format("%.2f", result);
89 value = String.format("%.0f", result);
97 * Returns a string in the canonical IP format ###.###.###.### from a packed integer containing
98 * the IP address. The IP address is expected to be in little-endian format (LSB first). That
102 * @return string with canonical IP address format
[all...]
H A DDateFormat.java17 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 &apos;M&apos; 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 th
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...]
/frameworks/base/awt/org/apache/harmony/awt/internal/nls/
H A DMsgHelp.java76 String format = msg;
79 format = THE_BUNDLE.getString(msg);
84 return org.apache.harmony.luni.util.MsgHelp.format(format, args);
/frameworks/base/awt/org/apache/harmony/beans/internal/nls/
H A DMsgHelp.java76 String format = msg;
79 format = THE_BUNDLE.getString(msg);
84 return org.apache.harmony.luni.util.MsgHelp.format(format, args);
/frameworks/base/opengl/libagl/
H A Ddxt.h29 void *surface, int stride, int format);
H A Dmipmap.cpp34 const GGLFormat& pixelFormat(c->rasterizer.formats[base->format]);
48 base->format, base->compressedFormat, bpr) != NO_ERROR) {
56 if (base->format == GGL_PIXEL_FORMAT_RGB_565)
79 else if (base->format == GGL_PIXEL_FORMAT_RGBA_5551)
99 else if (base->format == GGL_PIXEL_FORMAT_RGBA_8888)
126 else if ((base->format == GGL_PIXEL_FORMAT_RGB_888) ||
127 (base->format == GGL_PIXEL_FORMAT_LA_88) ||
128 (base->format == GGL_PIXEL_FORMAT_A_8) ||
129 (base->format == GGL_PIXEL_FORMAT_L_8))
132 switch (base->format) {
[all...]
/frameworks/base/include/ui/
H A DPixelFormat.h32 #include <pixelflinger/format.h>
39 // in graphics/PixelFormat.java & pixelflinger/format.h
46 // Custom pixel-format described by a PixelFormatInfo structure
49 // System chooses a format that supports translucency (many alpha bits)
52 // System chooses a format that supports transparency
56 // System chooses an opaque format (no alpha bits required)
80 // pixelflinger/format.h
116 PixelFormat format; member in struct:android::PixelFormatInfo
139 ssize_t bytesPerPixel(PixelFormat format);
140 ssize_t bitsPerPixel(PixelFormat format);
[all...]
H A DEGLUtils.h39 PixelFormat format,
H A DISurface.h65 PixelFormat format, const sp<IMemoryHeap>& heap);
69 PixelFormat format, uint32_t transform, uint32_t flags,
78 PixelFormat format; member in class:android::ISurface::BufferHeap
89 uint32_t w, uint32_t h, int32_t format) = 0;
H A Dandroid_native_buffer.h43 int format; member in struct:android_native_buffer_t
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
H A Dustdxept.cpp42 msgbuf.format (fmt, what(), m_Arg.cdata());
44 try { msgbuf.format (fmt, what(), m_Arg.cdata()); } catch (...) {}
H A Duexception.cpp27 /// 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 (fm
[all...]
/frameworks/base/libs/audioflinger/
H A DAudioDumpInterface.cpp55 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status)
64 outFinal = mFinalInterface->openOutputStream(devices, format, channels, sampleRate, status);
66 lFormat = outFinal->format();
74 if (format != 0 && *format != 0) {
75 lFormat = *format;
121 AudioStreamIn* AudioDumpInterface::openInputStream(uint32_t devices, int *format, uint32_t *channels, argument
131 inFinal = mFinalInterface->openInputStream(devices, format, channels, sampleRate, status, acoustics);
134 lFormat = inFinal->format();
138 if (format !
54 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument
229 AudioStreamOutDump(AudioDumpInterface *interface, int id, AudioStreamOut* finalStream, uint32_t devices, int format, uint32_t channels, uint32_t sampleRate) argument
300 int AudioStreamOutDump::format() const function in class:android::AudioStreamOutDump
384 AudioStreamInDump(AudioDumpInterface *interface, int id, AudioStreamIn* finalStream, uint32_t devices, int format, uint32_t channels, uint32_t sampleRate) argument
485 int AudioStreamInDump::format() const function in class:android::AudioStreamInDump
[all...]
/frameworks/base/media/libmedia/
H A DAudioRecord.cpp56 int format,
65 mStatus = set(inputSource, sampleRate, format, channels,
88 int format,
111 if (format == 0) {
112 format = AudioSystem::PCM_16_BIT;
115 if (!AudioSystem::isValidFormat(format)) {
116 LOGE("Invalid format");
126 sampleRate, format, channels, (AudioSystem::audio_in_acoustics)flags);
134 if (AudioSystem::getInputBufferSize(sampleRate, format, channelCount, &inputBuffSizeInBytes)
141 LOGE("Recording parameters are not supported: sampleRate %d, channelCount %d, format
53 AudioRecord( int inputSource, uint32_t sampleRate, int format, uint32_t channels, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames) argument
85 set( int inputSource, uint32_t sampleRate, int format, uint32_t channels, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames, bool threadCanCallJava) argument
219 int AudioRecord::format() const function in class:android::AudioRecord
391 openRecord( uint32_t sampleRate, int format, int channelCount, int frameCount, uint32_t flags, audio_io_handle_t input) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DChronometer.java25 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) { argument
145 mFormat = format;
146 if (format != null && mFormatBuilder == null) {
147 mFormatBuilder = new StringBuilder(format
[all...]

Completed in 2877 milliseconds

12345678910