/frameworks/base/media/mca/filterfw/java/android/filterfw/format/ |
H A D | package-info.java | 4 package android.filterfw.format;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | DecoderUtil.java | 25 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 D | AudioTrackDecoder.java | 45 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 D | print.h | 32 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 D | print.cpp | 59 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 D | PixelFormat.cpp | 23 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 D | InstanceAdapter.java | 24 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/layoutlib/create/src/com/android/tools/layoutlib/create/ |
H A D | Log.java | 30 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 D | LogAbortException.java | 24 public LogAbortException(String format, Object... args) { argument 25 mFormat = format;
|
/frameworks/base/tests/AmSlam/src/test/amslam/subreceivers/ |
H A D | gen.py | 43 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 D | generatev4.py | 32 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 D | SimpleFrameManager.java | 37 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 D | SimpleFrame.java | 23 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/base/media/java/android/media/ |
H A D | AudioDevicePortConfig.java | 30 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 D | AudioMixPortConfig.java | 29 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 D | ReprocessFormatsMap.java | 51 * 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 D | BufferImpl.cpp | 32 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 D | RenderBuffer.h | 32 * 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 D | FakeWifiLog.java | 25 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 D | NBAIO.h | 38 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_mono/media/nbaio/ |
H A D | NBAIO.h | 38 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 D | NBAIO.cpp | 25 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 D | Pipe.cpp | 28 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 D | SoftVideoEncoderOMXComponent.cpp | 73 mFramerate(30 << 16), // Q16 format 101 def.format.video.pNativeRender = NULL; 102 def.format.video.nFrameWidth = mWidth; 103 def.format.video.nFrameHeight = mHeight; 104 def.format.video.nStride = def.format.video.nFrameWidth; 105 def.format.video.nSliceHeight = def.format.video.nFrameHeight; 106 def.format.video.nBitrate = 0; 107 // frameRate is in Q16 format 252 const OMX_VIDEO_PARAM_PORTFORMATTYPE* format = local 536 int format; local [all...] |
/frameworks/base/core/java/android/net/metrics/ |
H A D | WakeupEvent.java | 31 return String.format("WakeupEvent(%tT.%tL, %s, uid: %d)",
|