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

1234567891011>>

/frameworks/base/graphics/java/android/graphics/
H A DImageFormat.java26 /** RGB format used for pictures encoded as RGB_565
38 /** YCrCb format used for images, which uses the NV21 encoding format.
39 * This is the default format for camera preview images, when not
46 /** YCbCr format used for images, which uses YUYV (YUY2) encoding format.
47 * This is an alternative format for camera preview images. Whether this
48 * format is supported by the camera hardware can be determined by
63 * @param format
64 * @return the number of bits per pixel of the given format o
67 getBitsPerPixel(int format) argument
[all...]
H A DPixelFormat.java25 /** System chooses a format that supports translucency (many alpha bits) */
29 * System chooses a format that supports transparency
34 /** System chooses an opaque format (no alpha bits required) */
85 public static native void getPixelFormatInfo(int format, PixelFormat info); argument
86 public static boolean formatHasAlpha(int format) { argument
87 switch (format) {
H A DYuvImage.java39 * The YUV format as defined in {@link PixelFormat}.
70 * @param format The YUV data format as defined in {@link PixelFormat}.
75 * padding and derives the row bytes by format and width itself.
76 * @throws IllegalArgumentException if format is not support; width or height <= 0; or yuv is
79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { argument
80 if (format != ImageFormat.NV21 &&
81 format != ImageFormat.YUY2) {
97 mStrides = calculateStrides(width, format);
103 mFormat = format;
199 calculateStrides(int width, int format) argument
237 nativeCompressToJpeg(byte[] oriYuv, int format, int width, int height, int[] offsets, int[] strides, int quality, OutputStream stream, byte[] tempStorage) argument
[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>
37 ssize_t bytesPerPixel(PixelFormat format) argument
40 status_t err = getPixelFormatInfo(format, &info);
44 ssize_t bitsPerPixel(PixelFormat format) argument
47 status_t err = getPixelFormatInfo(format, &info);
51 status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info) argument
53 if (format < 0)
59 // YUV format from the HAL are handled here
60 switch (format) {
77 info->format
[all...]
H A DGraphicBuffer.cpp46 format =
59 format =
75 format = inFormat;
122 status_t GraphicBuffer::initSize(uint32_t w, uint32_t h, PixelFormat format, argument
125 if (format == PIXEL_FORMAT_RGBX_8888)
126 format = PIXEL_FORMAT_RGBA_8888;
129 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride);
133 this->format = format;
175 sur->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
89 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
91 err = sw_gralloc_handle_t::alloc(w, h, format, usage, handle, stride);
95 w, h, format, usage, err, strerror(-err));
103 rec.format = format;
106 rec.size = h * stride[0] * bytesPerPixel(format);
/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...]
/frameworks/base/include/ui/
H A DPixelFormat.h32 #include <pixelflinger/format.h>
40 // in graphics/PixelFormat.java & pixelflinger/format.h
47 // Custom pixel-format described by a PixelFormatInfo structure
50 // System chooses a format that supports translucency (many alpha bits)
53 // System chooses a format that supports transparency
57 // System chooses an opaque format (no alpha bits required)
74 // pixelflinger/format.h
108 PixelFormat format; member in struct:android::PixelFormatInfo
131 ssize_t bytesPerPixel(PixelFormat format);
132 ssize_t bitsPerPixel(PixelFormat format);
[all...]
H A DEGLUtils.h39 PixelFormat format,
H A Dandroid_native_buffer.h43 int format; member in struct:android_native_buffer_t
/frameworks/base/native/graphics/jni/
H A Dbitmap.cpp39 info->format = ANDROID_BITMAP_FORMAT_RGBA_8888;
42 info->format = ANDROID_BITMAP_FORMAT_RGB_565;
45 info->format = ANDROID_BITMAP_FORMAT_RGBA_4444;
48 info->format = ANDROID_BITMAP_FORMAT_A_8;
51 info->format = ANDROID_BITMAP_FORMAT_NONE;
/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/core/java/android/widget/
H A DDateTimeView.java26 import android.text.format.Time;
43 // - listen for date format pref changed
144 // Choose the format
145 DateFormat format;
147 // use cached format
148 format = mLastFormat;
152 format = getTimeFormat();
155 format = getDateFormat();
160 mLastFormat = format;
164 String text = format
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DLoggingPrintStream.java168 public PrintStream format(String format, Object... args) { argument
169 return format(Locale.getDefault(), format, args);
173 public PrintStream printf(String format, Object... args) { argument
174 return format(format, args);
178 public PrintStream printf(Locale l, String format, Object... args) { argument
179 return format(l, format, arg
185 format( Locale l, String format, Object... args) argument
[all...]
/frameworks/base/services/java/com/android/server/
H A DNetworkManagementService.java180 String.format("Invalid event from daemon (%s)", raw));
193 String.format("Invalid event from daemon (%s)", raw));
246 Slog.d(TAG, String.format("rsp <%s>", rsp));
257 String.format("Expected code %d, but got %d",
262 String.format("Invalid response from daemon (%s)", rsp));
283 String.format("Invalid response from daemon (%s)", rsp));
285 Slog.d(TAG, String.format("flags <%s>", cfg.interfaceFlags));
291 String cmd = String.format("interface setcfg %s %s %s %s", iface,
335 throw new IllegalStateException(String.format("Unexpected response code %d", code));
344 mConnector.doCommand(String.format("ipfw
[all...]
H A DNativeDaemonConnectorException.java36 super(String.format("Cmd {%s} failed with code %d : {%s}", cmd, code, error));
/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 (...) {}
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DDateUtils.java32 * Returns timestamp given by param in KML format ie yyyy-mm-ddThh:mm:ssZ,
42 return String.format("%tY-%tm-%tdT%tH:%tM:%tSZ", c, c, c, c, c, c);
54 * Returns timestamp in following format: yyyy-mm-dd-hh-mm-ss
59 return String.format("%tY-%tm-%td-%tH-%tM-%tS", c, c, c, c, c, c);
/frameworks/base/include/surfaceflinger/
H A DISurface.h70 PixelFormat format, const sp<IMemoryHeap>& heap);
74 PixelFormat format, uint32_t transform, uint32_t flags,
83 PixelFormat format; member in class:android::ISurface::BufferHeap
94 uint32_t w, uint32_t h, int32_t format, int32_t orientation) = 0;
/frameworks/base/core/jni/
H A Dandroid_graphics_PixelFormat.cpp48 JNIEnv* env, jobject clazz, jint format, jobject pixelFormatObject)
55 switch (format) {
73 err = getPixelFormatInfo(format, &info);
47 android_graphics_getPixelFormatInfo( JNIEnv* env, jobject clazz, jint format, jobject pixelFormatObject) argument

Completed in 369 milliseconds

1234567891011>>