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

1234567891011>>

/frameworks/base/media/mca/filterfw/java/android/filterfw/format/
H A Dpackage-info.java4 package android.filterfw.format;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DDecoderUtil.java25 public static boolean isAudioFormat(MediaFormat format) { argument
26 return format.getString(MediaFormat.KEY_MIME).startsWith("audio/");
29 public static boolean isVideoFormat(MediaFormat format) { argument
30 return format.getString(MediaFormat.KEY_MIME).startsWith("video/");
H A DAudioTrackDecoder.java45 public AudioTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { argument
46 super(trackIndex, format, listener);
48 if (!DecoderUtil.isAudioFormat(format)) {
56 mAudioSampleRate = format.getInteger(MediaFormat.KEY_SAMPLE_RATE);
57 mAudioChannelCount = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT);
61 protected MediaCodec initMediaCodec(MediaFormat format) { argument
65 format.getString(MediaFormat.KEY_MIME));
69 + format.getString(MediaFormat.KEY_MIME), e);
71 mediaCodec.configure(format, null, null, 0);
/frameworks/base/tools/bit/
H A Dprint.h32 void print_status(const char* format, ...);
34 void print_error(const char* format, ...);
35 void print_warning(const char* format, ...);
36 void print_one_line(const char* format, ...);
H A Dprint.cpp59 print_status(const char* format, ...) argument
64 va_start(args, format);
65 vfprintf(stdout, format, args);
91 print_error(const char* format, ...) argument
96 va_start(args, format);
97 vfprintf(stderr, format, args);
105 print_warning(const char* format, ...) argument
110 va_start(args, format);
111 vfprintf(stderr, format, args);
119 print_one_line(const char* format, argument
[all...]
/frameworks/native/libs/ui/
H A DPixelFormat.cpp23 uint32_t bytesPerPixel(PixelFormat format) { argument
24 switch (format) {
42 uint32_t bitsPerPixel(PixelFormat format) { argument
43 switch (format) {
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/
H A DInstanceAdapter.java24 private final String format; field in class:InstanceAdapter
26 public InstanceAdapter(String format) { argument
27 this.format = format;
32 view.setText(String.format(format, text, "foo", "bar", "baz"));
37 view.setText(String.format(format, text, text2, "foo", "bar"));
42 view.setText(String.format(format, oldTex
[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);
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/base/tests/AmSlam/src/test/amslam/subreceivers/
H A Dgen.py43 f = open('PingReceiver{:03d}.java'.format(i), 'w')
44 f.write(TEMPLATE.format(index=i))
50 manifest.write(MANIFEST_ADD.format(i))
/frameworks/support/v17/leanback/tests/
H A Dgeneratev4.py32 print "copy {}Fragment to {}SupportFragment".format(w, w)
34 file = open('java/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r')
35 outfile = open('java/android/support/v17/leanback/app/{}SupportFragment.java'.format(w), 'w')
38 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w))
42 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w))
55 print "copy {}FrgamentTestBase to {}SupportFragmentTestBase".format(w, w)
57 file = open('java/android/support/v17/leanback/app/{}FragmentTestBase.java'.format(w), 'r')
58 outfile = open('java/android/support/v17/leanback/app/{}SupportFragmentTestBase.java'.format(w), 'w')
61 outfile.write("/* This file is auto-generated from {}FrgamentTestBase.java. DO NOT MODIFY. */\n\n".format(
[all...]
/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.java23 import android.filterfw.format.ObjectFormat;
35 SimpleFrame(FrameFormat format, FrameManager frameManager) { argument
36 super(format, frameManager);
37 initWithFormat(format);
42 FrameFormat format = ObjectFormat.fromObject(object, FrameFormat.TARGET_SIMPLE);
43 SimpleFrame result = new SimpleFrame(format, frameManager);
48 private void initWithFormat(FrameFormat format) { argument
49 final int count = format.getLength();
50 final int baseType = format.getBaseType();
132 MutableFrameFormat format
[all...]
/frameworks/support/v17/leanback/
H A Dgeneratev4.py28 print "copy {}Fragment to {}SupportFragment".format(w, w)
30 file = open('src/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r')
31 outfile = open('src/android/support/v17/leanback/app/{}SupportFragment.java'.format(w), 'w')
34 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w))
39 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w))
50 print "copy VideoFragmentGlueHost to VideoSupportFragmentGlueHost".format(w, w)
51 file = open('src/android/support/v17/leanback/app/VideoFragmentGlueHost.java'.format(w), 'r')
52 outfile = open('src/android/support/v17/leanback/app/VideoSupportFragmentGlueHost.java'.format(w), 'w')
55 outfile.write("/* This file is auto-generated from {}VideoFragmentGlueHost.java. DO NOT MODIFY. */\n\n".format(
[all...]
/frameworks/base/media/java/android/media/
H A DAudioDevicePortConfig.java30 int format, AudioGainConfig gain) {
31 super((AudioPort)devicePort, samplingRate, channelMask, format, gain);
35 this(config.port(), config.samplingRate(), config.channelMask(), config.format(),
29 AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, int format, AudioGainConfig gain) argument
H A DAudioMixPortConfig.java29 AudioMixPortConfig(AudioMixPort mixPort, int samplingRate, int channelMask, int format, argument
31 super((AudioPort)mixPort, samplingRate, channelMask, format, gain);
/frameworks/base/core/java/android/hardware/camera2/params/
H A DReprocessFormatsMap.java51 * The inner array always contains {@code [format, length, ...]} where ... has length elements.
64 * (missing output format length or too few output formats)
86 String.format("Input %x had no output format length listed", inputFormat));
101 String.format(
121 * <p>Use this input format to look up the available output formats with {@link #getOutputs}.
134 final int format = mEntry[i];
141 String.format("Input %x had no output format length listed", format));
178 getOutputs(final int format) argument
[all...]
/frameworks/av/media/libstagefright/
H A DBufferImpl.cpp32 SharedMemoryBuffer::SharedMemoryBuffer(const sp<AMessage> &format, const sp<IMemory> &mem) argument
33 : MediaCodecBuffer(format, new ABuffer(mem->pointer(), mem->size())),
37 SharedMemoryBuffer::SharedMemoryBuffer(const sp<AMessage> &format, const sp<TMemory> &mem) argument
38 : MediaCodecBuffer(format, new ABuffer(mem->getPointer(), mem->getSize())),
42 SecureBuffer::SecureBuffer(const sp<AMessage> &format, const void *ptr, size_t size) argument
43 : MediaCodecBuffer(format, new ABuffer(nullptr, size)),
48 const sp<AMessage> &format, const sp<NativeHandle> &handle, size_t size)
49 : MediaCodecBuffer(format, new ABuffer(nullptr, size)),
47 SecureBuffer( const sp<AMessage> &format, const sp<NativeHandle> &handle, size_t size) argument
/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...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DFakeWifiLog.java25 public LogMessage err(String format) { argument
30 public LogMessage warn(String format) { argument
35 public LogMessage info(String format) { argument
40 public LogMessage trace(String format) { argument
45 public LogMessage dump(String format) { argument
/frameworks/av/include/media/nbaio/
H A DNBAIO.h38 NEGOTIATE = (UNKNOWN_ERROR + 0x100), // Must (re-)negotiate format. For negotiate() only,
50 // Negotiation of format is based on the data provider and data sink, or the data consumer and
54 // attributes, rather than a struct with separate fields for format, sample rate, channel count,
71 size_t Format_frameSize(const NBAIO_Format& format);
75 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format);
78 unsigned Format_sampleRate(const NBAIO_Format& format);
81 unsigned Format_channelCount(const NBAIO_Format& format);
88 bool Format_isValid(const NBAIO_Format& format);
126 // Return the current negotiated format, or Format_Invalid if negotiation has not been done,
128 virtual NBAIO_Format format() cons function in class:android::NBAIO_Port
131 NBAIO_Port(const NBAIO_Format& format) argument
[all...]
/frameworks/av/media/libnbaio/include/
H A DNBAIO.h38 NEGOTIATE = (UNKNOWN_ERROR + 0x100), // Must (re-)negotiate format. For negotiate() only,
50 // Negotiation of format is based on the data provider and data sink, or the data consumer and
54 // attributes, rather than a struct with separate fields for format, sample rate, channel count,
71 size_t Format_frameSize(const NBAIO_Format& format);
75 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format);
78 unsigned Format_sampleRate(const NBAIO_Format& format);
81 unsigned Format_channelCount(const NBAIO_Format& format);
88 bool Format_isValid(const NBAIO_Format& format);
126 // Return the current negotiated format, or Format_Invalid if negotiation has not been done,
128 virtual NBAIO_Format format() cons function in class:android::NBAIO_Port
131 NBAIO_Port(const NBAIO_Format& format) argument
[all...]
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp25 size_t Format_frameSize(const NBAIO_Format& format) argument
27 return format.mFrameSize;
32 unsigned Format_sampleRate(const NBAIO_Format& format) argument
34 if (!Format_isValid(format)) {
37 return format.mSampleRate;
40 unsigned Format_channelCount(const NBAIO_Format& format) argument
42 if (!Format_isValid(format)) {
45 return format.mChannelCount;
49 audio_format_t format)
51 if (sampleRate == 0 || channelCount == 0 || !audio_is_valid_format(format)) {
48 Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format) argument
158 Format_isValid(const NBAIO_Format& format) argument
[all...]
H A DPipe.cpp28 Pipe::Pipe(size_t maxFrames, const NBAIO_Format& format, void *buffer) : argument
29 NBAIO_Sink(format),
32 mBuffer(buffer == NULL ? malloc(mMaxFrames * Format_frameSize(format)) : buffer),
33 mFifo(mMaxFrames, Format_frameSize(format), mBuffer, false /*throttlesWriter*/),
/frameworks/av/media/libstagefright/omx/
H A DSoftVideoEncoderOMXComponent.cpp74 mFramerate(30 << 16), // Q16 format
102 def.format.video.pNativeRender = NULL;
103 def.format.video.nFrameWidth = mWidth;
104 def.format.video.nFrameHeight = mHeight;
105 def.format.video.nStride = def.format.video.nFrameWidth;
106 def.format.video.nSliceHeight = def.format.video.nFrameHeight;
107 def.format.video.nBitrate = 0;
108 // frameRate is in Q16 format
253 const OMX_VIDEO_PARAM_PORTFORMATTYPE* format = local
537 int format; local
[all...]

Completed in 526 milliseconds

1234567891011>>