Searched refs:format (Results 26 - 50 of 1642) sorted by relevance

1234567891011>>

/frameworks/av/services/audioflinger/
H A DSpdifStreamOut.cpp36 audio_format_t format)
39 , mSpdifEncoder(this, format)
54 mApplicationFormat = config->format;
60 switch(config->format) {
70 ALOGE("ERROR SpdifStreamOut::open() unrecognized format 0x%08X\n",
71 config->format);
76 customConfig.format = AUDIO_FORMAT_PCM_16_BIT;
83 " sampleRate %d, format %#x, channelMask %#x",
85 config->format,
88 " sampleRate %d, format
34 SpdifStreamOut(AudioHwDevice *dev, audio_output_flags_t flags, audio_format_t format) argument
[all...]
H A DAudioHwDevice.cpp46 // Try to open the HAL first using the current format.
51 config->format,
60 // The HAL might modify the config to suggest a wrapped format.
66 config->format,
71 bool wrapperNeeded = !audio_has_proportional_frames(originalConfig.format)
76 if (SPDIFEncoder::isFormatSupported(originalConfig.format)) {
77 outputStream = new SpdifStreamOut(this, flags, originalConfig.format);
86 ALOGE("ERROR - openOutputStream(), SPDIFEncoder does not support format 0x%08x",
87 originalConfig.format);
/frameworks/base/core/java/android/net/metrics/
H A DApfStats.java87 .append(String.format("%dms ", durationMs))
88 .append(String.format("%dB RA: {", maxProgramSize))
89 .append(String.format("%d received, ", receivedRas))
90 .append(String.format("%d matching, ", matchingRas))
91 .append(String.format("%d dropped, ", droppedRas))
92 .append(String.format("%d zero lifetime, ", zeroLifetimeRas))
93 .append(String.format("%d parse errors}, ", parseErrors))
94 .append(String.format("updates: {all: %d, RAs: %d, allow multicast: %d})",
/frameworks/base/libs/hwui/
H A DPixelBuffer.h61 * Creates a new PixelBuffer object with the specified format and
68 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height,
75 * Returns the format of this render buffer.
150 * Returns the number of bytes per pixel in the specified format.
156 static uint32_t formatSize(GLenum format) { argument
157 switch (format) {
167 * Returns the alpha channel offset in the specified format.
173 static uint32_t formatAlphaOffset(GLenum format) { argument
174 switch (format) {
181 ALOGE("unsupported format
190 PixelBuffer(GLenum format, uint32_t width, uint32_t height) argument
[all...]
/frameworks/native/include/ui/
H A DPixelFormat.h35 // in graphics/PixelFormat.java & pixelflinger/format.h
42 // Custom pixel-format described by a PixelFormatInfo structure
45 // System chooses a format that supports translucency (many alpha bits)
48 // System chooses a format that supports transparency
52 // System chooses an opaque format (no alpha bits required)
69 uint32_t bytesPerPixel(PixelFormat format);
70 uint32_t bitsPerPixel(PixelFormat format);
/frameworks/base/telecomm/java/android/telecom/
H A DLog.java80 public static void d(String prefix, String format, Object... args) { argument
83 android.util.Slog.i(TAG, buildMessage(prefix, format, args));
85 android.util.Slog.d(TAG, buildMessage(prefix, format, args));
89 public static void d(Object objectPrefix, String format, Object... args) { argument
92 android.util.Slog.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args));
94 android.util.Slog.d(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args));
98 public static void i(String prefix, String format, Object... args) { argument
100 android.util.Slog.i(TAG, buildMessage(prefix, format, args));
104 public static void i(Object objectPrefix, String format, Object... args) { argument
106 android.util.Slog.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, arg
110 v(String prefix, String format, Object... args) argument
119 v(Object objectPrefix, String format, Object... args) argument
128 w(String prefix, String format, Object... args) argument
134 w(Object objectPrefix, String format, Object... args) argument
140 e(String prefix, Throwable tr, String format, Object... args) argument
146 e(Object objectPrefix, Throwable tr, String format, Object... args) argument
153 wtf(String prefix, Throwable tr, String format, Object... args) argument
157 wtf(Object objectPrefix, Throwable tr, String format, Object... args) argument
162 wtf(String prefix, String format, Object... args) argument
167 wtf(Object objectPrefix, String format, Object... args) argument
246 addEvent(EventManager.Loggable recordEntry, String event, String format, Object... args) argument
454 buildMessage(String prefix, String format, Object... args) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
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/base/core/java/android/hardware/camera2/params/
H A DStreamConfigurationMap.java50 * for that format) that are supported by a camera device.</p>
52 * <p>This also contains the minimum frame durations and stall durations for each format/size
136 // For each format, track how many sizes there are available to configure
161 // For each depth format, track how many sizes there are available to configure
198 * Get the image {@code format} output formats in this stream configuration.
206 * @return an array of integer format
216 * Get the image {@code format} output formats for a reprocessing input format.
218 * <p>When submitting a {@link CaptureRequest} with an input Surface of a given format,
219 * the only allowed target outputs of the {@link CaptureRequest} are the ones with a format
266 getInputSizes(final int format) argument
294 isOutputSupportedFor(int format) argument
487 getOutputSizes(int format) argument
670 getHighResolutionOutputSizes(int format) argument
714 getOutputMinFrameDuration(int format, Size size) argument
861 getOutputStallDuration(int format, Size size) argument
949 checkArgumentFormatSupported(int format, boolean output) argument
992 checkArgumentFormatInternal(int format) argument
1027 checkArgumentFormat(int format) argument
1066 imageFormatToPublic(int format) argument
1109 depthFormatToPublic(int format) argument
1175 imageFormatToInternal(int format) argument
1217 imageFormatToDataspace(int format) argument
1251 getPublicFormatSizes(int format, boolean output, boolean highRes) argument
1264 getInternalFormatSizes(int format, int dataspace, boolean output, boolean highRes) argument
1353 getInternalFormatDuration(int format, int dataspace, Size size, int duration) argument
1417 isSupportedInternalConfiguration(int format, int dataspace, Size size) argument
1576 formatToString(int format) argument
[all...]
H A DInputConfiguration.java35 * Create an input configration with the width, height, and user-defined format.
37 * <p>Images of an user-defined format are accessible by applications. Use
43 * @param format Format of the input buffers. One of ImageFormat or PixelFormat constants.
49 public InputConfiguration(int width, int height, int format) { argument
52 mFormat = format;
74 * Get the format of this input configration.
76 * @return format of this input configuration.
119 * <p> {@code "InputConfiguration(w:%d, h:%d, format:%d)"}, where {@code %d} represents
120 * the width, height, and format, respectively.</p>
126 return String.format("InputConfiguratio
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DLogcatLog.java52 public LogMessage err(String format) { argument
53 return makeLogMessage(Log.ERROR, format);
57 public LogMessage warn(String format) { argument
58 return makeLogMessage(Log.WARN, format);
62 public LogMessage info(String format) { argument
63 return makeLogMessage(Log.INFO, format);
67 public LogMessage trace(String format) { argument
68 return makeLogMessage(Log.DEBUG, format);
72 public LogMessage dump(String format) { argument
73 return makeLogMessage(Log.VERBOSE, format);
130 RealLogMessage(int logLevel, String tag, String format) argument
215 makeLogMessage(int logLevel, String format) argument
[all...]
H A DWifiLog.java30 * c) avoid the use of format codes, and
43 * additional parameters according to |format|. After filling the message
67 LogMessage err(@NonNull String format); argument
79 LogMessage warn(@NonNull String format); argument
91 LogMessage info(@NonNull String format); argument
103 LogMessage trace(@NonNull String format); argument
113 LogMessage dump(@NonNull String format); argument
156 * Replace the first available placeholder in this LogMessage's format
203 * placeholders in the |format|, then extraneous |value|s
205 * 3) If the number of placeholders in the |format| exceed
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPixelFormat.java39 /** System chooses a format that supports translucency (many alpha bits) */
43 * System chooses a format that supports transparency
48 /** System chooses an opaque format (no alpha bits required) */
103 public static void getPixelFormatInfo(@Format int format, PixelFormat info) { argument
104 switch (format) {
142 throw new IllegalArgumentException("unknown pixel format " + format);
146 public static boolean formatHasAlpha(@Format int format) { argument
147 switch (format) {
163 * Determine whether or not this is a public-visible and non-deprecated {@code format}
175 isPublicFormat(@ormat 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...]
/frameworks/native/libs/vr/libbufferhub/
H A Dion_buffer.cpp20 IonBuffer::IonBuffer(uint32_t width, uint32_t height, uint32_t format, argument
23 Alloc(width, height, kDefaultGraphicBufferLayerCount, format, usage);
27 uint32_t stride, uint32_t format, uint64_t usage)
29 format, usage) {}
32 uint32_t layer_count, uint32_t stride, uint32_t format,
37 "stride=%u format=%u usage=%" PRIx64,
38 handle, width, height, layer_count, stride, format, usage);
40 Import(handle, width, height, layer_count, stride, format, usage);
47 "format=%u usage=%" PRIx64,
48 handle(), width(), height(), stride(), format(), usag
26 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t stride, uint32_t format, uint64_t usage) argument
31 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
74 Alloc(uint32_t width, uint32_t height, uint32_t layer_count, uint32_t format, uint64_t usage) argument
91 Reset(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
101 Import(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
122 Import(const int* fd_array, int fd_count, const int* int_array, int int_count, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
[all...]
/frameworks/base/location/java/android/location/
H A DGpsNavigationMessage.java197 * The bytes (or words) specified using big endian format (MSB first).
295 final String format = " %-15s = %s\n";
298 builder.append(String.format(format, "Type", getTypeString()));
299 builder.append(String.format(format, "Prn", mPrn));
300 builder.append(String.format(format, "Status", getStatusString()));
301 builder.append(String.format(format, "MessageI
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DImageStitcher.java27 import android.filterfw.format.ImageFormat;
71 private FrameFormat calcOutputFormatForInput(FrameFormat format) { argument
72 MutableFrameFormat outputFormat = format.mutableCopy();
74 mInputWidth = format.getWidth();
75 mInputHeight = format.getHeight();
91 FrameFormat format = input.getFormat();
95 mOutputFrame = context.getFrameManager().newFrame(calcOutputFormatForInput(format));
97 if ((format.getWidth() != mInputWidth) ||
98 (format.getHeight() != mInputHeight)) {
99 // CHECK input format her
[all...]
/frameworks/av/media/libmedia/
H A DMediaCodecBuffer.cpp28 MediaCodecBuffer::MediaCodecBuffer(const sp<AMessage> &format, const sp<ABuffer> &buffer) argument
30 mFormat(format),
79 sp<AMessage> MediaCodecBuffer::format() { function in class:android::MediaCodecBuffer
83 void MediaCodecBuffer::setFormat(const sp<AMessage> &format) { argument
85 mFormat = format;
/frameworks/av/media/ndk/
H A DNdkMediaFormat.cpp50 ALOGW("got NULL format");
153 bool AMediaFormat_getInt32(AMediaFormat* format, const char *name, int32_t *out) { argument
154 return format->mFormat->findInt32(name, out);
158 bool AMediaFormat_getInt64(AMediaFormat* format, const char *name, int64_t *out) { argument
159 return format->mFormat->findInt64(name, out);
163 bool AMediaFormat_getFloat(AMediaFormat* format, const char *name, float *out) { argument
164 return format->mFormat->findFloat(name, out);
168 bool AMediaFormat_getSize(AMediaFormat* format, const char *name, size_t *out) { argument
169 return format->mFormat->findSize(name, out);
173 bool AMediaFormat_getBuffer(AMediaFormat* format, cons argument
204 AMediaFormat_setInt32(AMediaFormat* format, const char *name, int32_t value) argument
209 AMediaFormat_setInt64(AMediaFormat* format, const char *name, int64_t value) argument
214 AMediaFormat_setFloat(AMediaFormat* format, const char* name, float value) argument
219 AMediaFormat_setString(AMediaFormat* format, const char* name, const char* value) argument
225 AMediaFormat_setBuffer(AMediaFormat* format, const char* name, void* data, size_t size) argument
[all...]
/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/av/include/media/
H A DMediaCodecBuffer.h36 MediaCodecBuffer(const sp<AMessage> &format, const sp<ABuffer> &buffer);
57 // TODO: Specify each field for meta/format.
59 sp<AMessage> format();
61 void setFormat(const sp<AMessage> &format);
/frameworks/av/media/libmedia/include/media/
H A DMediaCodecBuffer.h36 MediaCodecBuffer(const sp<AMessage> &format, const sp<ABuffer> &buffer);
57 // TODO: Specify each field for meta/format.
59 sp<AMessage> format();
61 void setFormat(const sp<AMessage> &format);
/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...]
/frameworks/base/media/java/android/media/
H A DAudioPortConfig.java48 AudioPortConfig(AudioPort port, int samplingRate, int channelMask, int format, argument
53 mFormat = format;
80 * Audio format configuration (e.g AudioFormat.ENCODING_PCM_16BIT).
82 public int format() { method in class:AudioPortConfig
/frameworks/native/vulkan/libvulkan/
H A Ddebug_report.h27 // clang-format off
31 // clang-format on
102 __attribute__((format(printf, (fmt) + 1, (args) + 1)))
104 void Info(ObjectType object, const char* format, ...) const
107 va_start(ap, format);
109 GetObjectUInt64(object), format, ap);
114 void Warn(ObjectType object, const char* format, ...) const
117 va_start(ap, format);
119 GetObjectUInt64(object), format, ap);
124 void Err(ObjectType object, const char* format,
[all...]
/frameworks/rs/tests/lldb/tests/testcases/
H A Dtest_script_group.py85 ['(int) a = {0}'.format(x)])
90 'librs.scriptgroup.so`{0}'.format(
102 ['(int) a = {0}'.format(x * x)])

Completed in 563 milliseconds

1234567891011>>