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

1234567891011>>

/frameworks/base/media/mca/filterfw/java/android/filterfw/format/
H A Dpackage-info.java4 package android.filterfw.format;
/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);
37 public void debugNoln(String format, Object... args) { argument
39 String s = String.format(format, args);
44 public void info(String format, Object... args) { argument
45 String s = String.format(format, args);
49 public void error(String format, Object... args) { argument
50 String s = String.format(forma
54 exception(Throwable t, String format, Object... args) argument
[all...]
H A DLogAbortException.java24 public LogAbortException(String format, Object... args) { argument
25 mFormat = format;
/frameworks/av/libvideoeditor/osal/src/
H A DM4OSA_CharStar.c307 M4OSA_Char *format, ...)
326 "M4OSA_Char* %x)",pStrOut,strOutMaxLen,format);
329 M4OSA_DEBUG_IF2(M4OSA_NULL == format, M4ERR_PARAMETER,
332 va_start(marker,format);
335 pTemp = format;
387 err= vsnprintf((char *)pStrOut, (size_t)strOutMaxLen + 1, (const char *)format, marker);
401 newFormatLength = strlen((const char *)format) + 1;
412 /* copy format to newFormat, replacing %[flags][width][.precision]ll[conversion]
414 while(*format)
416 nbChar = strcspn((const char *)format, "
306 M4OSA_chrSPrintf(M4OSA_Char *pStrOut, M4OSA_UInt32 strOutMaxLen, M4OSA_Char *format, ...) argument
[all...]
H A DM4PSW_Trace.c40 * M4OSA_Char* format, ...)
46 * @param format (IN): the "printf" formated string
53 M4OSA_Int32 level, M4OSA_Char* format, ...)
60 va_start(marker,format); /* set ptr to first argument in the list of arguments passed to the function */
61 vsprintf((char *)message, (const char *)format,marker ); /* formats and writes the data into message */
52 M4OSA_Trace(M4OSA_Int32 line, M4OSA_Char* file , M4OSA_Int32 level, M4OSA_Char* format, ...) argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSimpleFrameManager.java37 public Frame newFrame(FrameFormat format) { argument
38 return createNewFrame(format);
42 public Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId) { argument
44 switch(format.getTarget()) {
46 GLFrame glFrame = new GLFrame(format, this, bindingType, bindingId);
54 + FrameFormat.targetToString(format.getTarget()) + "!");
59 private Frame createNewFrame(FrameFormat format) { argument
61 switch(format.getTarget()) {
63 result = new SimpleFrame(format, this);
67 result = new NativeFrame(format, thi
[all...]
H A DSimpleFrame.java24 import android.filterfw.format.ObjectFormat;
37 SimpleFrame(FrameFormat format, FrameManager frameManager) { argument
38 super(format, frameManager);
39 initWithFormat(format);
44 FrameFormat format = ObjectFormat.fromObject(object, FrameFormat.TARGET_SIMPLE);
45 SimpleFrame result = new SimpleFrame(format, frameManager);
50 private void initWithFormat(FrameFormat format) { argument
51 final int count = format.getLength();
52 final int baseType = format.getBaseType();
134 MutableFrameFormat format
[all...]
H A DCachedFrameManager.java44 public Frame newFrame(FrameFormat format) { argument
45 Frame result = findAvailableFrame(format, Frame.NO_BINDING, 0);
47 result = super.newFrame(format);
54 public Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId) { argument
55 Frame result = findAvailableFrame(format, bindingType, bindingId);
57 result = super.newBoundFrame(format, bindingType, bindingId);
130 private Frame findAvailableFrame(FrameFormat format, int bindingType, long bindingId) { argument
131 // Look for a frame that is compatible with the requested format
135 // Check that format is compatible
136 if (frame.getFormat().isReplaceableBy(format)) {
[all...]
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp25 size_t Format_frameSize(NBAIO_Format format) argument
27 return Format_channelCount(format) * sizeof(short);
30 size_t Format_frameBitShift(NBAIO_Format format) argument
33 return Format_channelCount(format);
54 unsigned Format_sampleRate(NBAIO_Format format) argument
56 if (format == Format_Invalid) {
59 switch (format & Format_SR_Mask) {
81 unsigned Format_channelCount(NBAIO_Format format) argument
83 if (format == Format_Invalid) {
86 switch (format
98 NBAIO_Format format; local
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DImageFormat.java28 * RGB format used for pictures encoded as RGB_565. See
34 * <p>Android YUV format.</p>
36 * <p>This format is exposed to software decoders and applications.</p>
38 * <p>YV12 is a 4:2:0 YCrCb planar format comprised of a WxH Y plane followed
41 * <p>This format assumes
57 * <p>This format is guaranteed to be supported for camera preview images since
76 * YCbCr format, used for video. Whether this format is supported by the
83 * YCrCb format used for images, which uses the NV21 encoding format
120 getBitsPerPixel(int format) argument
[all...]
H A DYuvImage.java39 * The YUV format as defined in {@link ImageFormat}.
70 * @param format The YUV data format as defined in {@link ImageFormat}.
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...]
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) */
89 public static native void getPixelFormatInfo(int format, PixelFormat info); argument
90 public static boolean formatHasAlpha(int format) { argument
91 switch (format) {
/frameworks/base/libs/hwui/
H A DRenderBuffer.h32 * Creates a new render buffer in the specified format and dimensions.
33 * The format must be one of the formats allowed by glRenderbufferStorage().
35 RenderBuffer(GLenum format, uint32_t width, uint32_t height): argument
36 mFormat(format), mWidth(width), mHeight(height), mAllocated(false) {
55 * Returns the format of this render buffer.
124 * Returns the number of bits per component in the specified format.
125 * The format must be one of the formats allowed by glRenderbufferStorage().
127 static uint32_t formatSize(GLenum format) { argument
128 switch (format) {
145 * Indicates whether the specified format represent
147 isStencilBuffer(GLenum format) argument
160 formatName(GLenum format) argument
[all...]
H A DPixelBuffer.h59 * Creates a new PixelBuffer object with the specified format and
66 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height,
73 * Returns the format of this render buffer.
143 * Returns the number of bytes per pixel in the specified format.
149 static uint32_t formatSize(GLenum format) { argument
150 switch (format) {
161 * Creates a new render buffer in the specified format and dimensions.
162 * The format must be GL_ALPHA or GL_RGBA.
164 PixelBuffer(GLenum format, uint32_t width, uint32_t height): argument
165 mFormat(format), mWidt
[all...]
/frameworks/native/libs/ui/
H A DPixelFormat.cpp78 ssize_t bytesPerPixel(PixelFormat format) argument
81 status_t err = getPixelFormatInfo(format, &info);
85 ssize_t bitsPerPixel(PixelFormat format) argument
88 status_t err = getPixelFormatInfo(format, &info);
92 status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info) argument
94 if (format <= 0)
100 // YUV format from the HAL are handled here
101 switch (format) {
110 info->format = format;
[all...]
/frameworks/av/include/media/nbaio/
H A DNBAIO.h36 NEGOTIATE = 0x80000010, // Must (re-)negotiate format. For negotiate() only, the offeree
45 // Negotiation of format is based on the data provider and data sink, or the data consumer and
49 // attributes, rather than a struct with separate fields for format, sample rate, channel count,
60 size_t Format_frameSize(NBAIO_Format format);
63 size_t Format_frameBitShift(NBAIO_Format format);
69 unsigned Format_sampleRate(NBAIO_Format format);
72 unsigned Format_channelCount(NBAIO_Format format);
112 // Return the current negotiated format, or Format_Invalid if negotiation has not been done,
114 virtual NBAIO_Format format() const { return mNegotiated ? mFormat : Format_Invalid; } function in class:android::NBAIO_Port
117 NBAIO_Port(NBAIO_Format format) argument
[all...]
/frameworks/volley/src/com/android/volley/
H A DVolleyLog.java48 public static void v(String format, Object... args) { argument
50 Log.v(TAG, buildMessage(format, args));
54 public static void d(String format, Object... args) { argument
55 Log.d(TAG, buildMessage(format, args));
58 public static void e(String format, Object... args) { argument
59 Log.e(TAG, buildMessage(format, args));
62 public static void e(Throwable tr, String format, Object... args) { argument
63 Log.e(TAG, buildMessage(format, args), tr);
66 public static void wtf(String format, Object... args) { argument
67 Log.wtf(TAG, buildMessage(format, arg
70 wtf(Throwable tr, String format, Object... args) argument
78 buildMessage(String format, Object... args) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/text/format/
H A DDateFormat_Delegate.java17 package android.text.format;
/frameworks/av/media/libstagefright/codecs/on2/dec/
H A DSoftVPX.cpp76 def.format.video.cMIMEType = const_cast<char *>(MEDIA_MIMETYPE_VIDEO_VPX);
77 def.format.video.pNativeRender = NULL;
78 def.format.video.nFrameWidth = mWidth;
79 def.format.video.nFrameHeight = mHeight;
80 def.format.video.nStride = def.format.video.nFrameWidth;
81 def.format.video.nSliceHeight = def.format.video.nFrameHeight;
82 def.format.video.nBitrate = 0;
83 def.format
[all...]
/frameworks/base/media/java/android/media/
H A DMediaFormat.java24 * Encapsulates the information describing the format of media data,
27 * The format of the media data is specified as string/value pairs.
33 * <tr><td>{@link #KEY_MIME}</td><td>String</td><td>The type of the format.</td></tr>
70 * A key describing the sample rate of an audio format.
76 * A key describing the number of channels in an audio format.
82 * A key describing the width of the content in a video format.
88 * A key describing the height of the content in a video format.
106 * A key describing the color format of the content in a video format.
109 public static final String KEY_COLOR_FORMAT = "color-format";
[all...]
/frameworks/base/core/java/android/text/format/
H A DFormatter.java17 package android.text.format;
76 value = String.format("%.2f", result);
79 value = String.format("%.1f", result);
81 value = String.format("%.2f", result);
85 value = String.format("%.0f", result);
87 value = String.format("%.2f", result);
90 value = String.format("%.0f", result);
98 * Returns a string in the canonical IPv4 format ###.###.###.### from a packed integer
100 * format (LSB first). That is, 0x01020304 will return "4.3.2.1".
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DImageStitcher.java29 import android.filterfw.format.ImageFormat;
75 private FrameFormat calcOutputFormatForInput(FrameFormat format) { argument
76 MutableFrameFormat outputFormat = format.mutableCopy();
78 mInputWidth = format.getWidth();
79 mInputHeight = format.getHeight();
95 FrameFormat format = input.getFormat();
99 mOutputFrame = context.getFrameManager().newFrame(calcOutputFormatForInput(format));
101 if ((format.getWidth() != mInputWidth) ||
102 (format.getHeight() != mInputHeight)) {
103 // CHECK input format her
[all...]
/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/wilhelm/tests/sandbox/
H A Dconfigbq.c95 PCM *format; local
98 for (format = formats; format->numChannels; ++format) {
100 printf("Channels: %d, sample rate: %u, bits: %u\n", format->numChannels,
101 format->milliHz / 1000, format->bitsPerSample);
109 format_pcm.numChannels = format->numChannels;
110 format_pcm.samplesPerSec = format->milliHz;
111 format_pcm.bitsPerSample = format
[all...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothTestRunner.java198 Log.i(TAG, String.format("enable_iterations=%d", sEnableIterations));
199 Log.i(TAG, String.format("discoverable_iterations=%d", sDiscoverableIterations));
200 Log.i(TAG, String.format("scan_iterations=%d", sScanIterations));
201 Log.i(TAG, String.format("pair_iterations=%d", sPairIterations));
202 Log.i(TAG, String.format("connect_a2dp_iterations=%d", sConnectA2dpIterations));
203 Log.i(TAG, String.format("connect_headset_iterations=%d", sConnectHeadsetIterations));
204 Log.i(TAG, String.format("connect_input_iterations=%d", sConnectInputIterations));
205 Log.i(TAG, String.format("connect_pan_iterations=%d", sConnectPanIterations));
206 Log.i(TAG, String.format("start_stop_sco_iterations=%d", sStartStopScoIterations));
207 Log.i(TAG, String.format("device_addres
[all...]

Completed in 1001 milliseconds

1234567891011>>