/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/native/libs/ui/ |
H A D | PixelFormat.cpp | 23 uint32_t bytesPerPixel(PixelFormat format) { argument 24 switch (format) { 39 uint32_t bitsPerPixel(PixelFormat format) { argument 40 switch (format) {
|
/frameworks/support/v17/leanback/tests/ |
H A D | generatev4.py | 28 print "copy {}Fragment to {}SupportFragment".format(w, w) 30 file = open('java/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') 31 outfile = open('java/android/support/v17/leanback/app/{}SupportFragment.java'.format(w), 'w') 33 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w)) 37 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w)) 47 print "copy {}FrgamentTest to {}SupportFragmentTest".format(w, w) 49 file = open('java/android/support/v17/leanback/app/{}FragmentTest.java'.format(w), 'r') 50 outfile = open('java/android/support/v17/leanback/app/{}SupportFragmentTest.java'.format(w), 'w') 52 outfile.write("/* This file is auto-generated from {}FrgamentTest.java. DO NOT MODIFY. */\n\n".format( [all...] |
/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/base/tools/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/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/support/v17/leanback/ |
H A D | generatev4.py | 26 print "copy {}Fragment to {}SupportFragment".format(w, w) 28 file = open('src/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') 29 outfile = open('src/android/support/v17/leanback/app/{}SupportFragment.java'.format(w), 'w') 31 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w)) 36 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w))
|
/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/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...] |
H A D | PixelBuffer.h | 60 * Creates a new PixelBuffer object with the specified format and 67 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height, 74 * Returns the format of this render buffer. 155 * Returns the number of bytes per pixel in the specified format. 161 static uint32_t formatSize(GLenum format) { argument 162 switch (format) { 172 * Returns the alpha channel offset in the specified format. 178 static uint32_t formatAlphaOffset(GLenum format) { argument 179 switch (format) { 186 ALOGE("unsupported format 195 PixelBuffer(GLenum format, uint32_t width, uint32_t height) argument [all...] |
/frameworks/av/include/media/nbaio/ |
H A D | NBAIO.h | 38 NEGOTIATE = 0x80000010, // Must (re-)negotiate format. For negotiate() only, the offeree 47 // Negotiation of format is based on the data provider and data sink, or the data consumer and 51 // attributes, rather than a struct with separate fields for format, sample rate, channel count, 68 size_t Format_frameSize(const NBAIO_Format& format); 72 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format); 75 unsigned Format_sampleRate(const NBAIO_Format& format); 78 unsigned Format_channelCount(const NBAIO_Format& format); 85 bool Format_isValid(const NBAIO_Format& format); 123 // Return the current negotiated format, or Format_Invalid if negotiation has not been done, 125 virtual NBAIO_Format format() cons function in class:android::NBAIO_Port 128 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...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | PixelFormat.java | 35 /** System chooses a format that supports translucency (many alpha bits) */ 39 * System chooses a format that supports transparency 44 /** System chooses an opaque format (no alpha bits required) */ 94 public static void getPixelFormatInfo(int format, PixelFormat info) { argument 95 switch (format) { 128 throw new IllegalArgumentException("unknown pixel format " + format); 132 public static boolean formatHasAlpha(int format) { argument 133 switch (format) { 150 * Determine whether or not this is a public-visible and non-deprecated {@code format} 162 isPublicFormat(int format) argument [all...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | SoftVideoEncoderOMXComponent.cpp | 71 mFramerate(30 << 16), // Q16 format 99 def.format.video.pNativeRender = NULL; 100 def.format.video.nFrameWidth = mWidth; 101 def.format.video.nFrameHeight = mHeight; 102 def.format.video.nStride = def.format.video.nFrameWidth; 103 def.format.video.nSliceHeight = def.format.video.nFrameHeight; 104 def.format.video.nBitrate = 0; 105 // frameRate is in Q16 format 250 const OMX_VIDEO_PARAM_PORTFORMATTYPE* format = local 527 int format; local [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
H A D | Log.java | 73 public static void d(String prefix, String format, Object... args) { argument 75 android.util.Log.d(TAG, buildMessage(prefix, format, args)); 79 public static void d(Object objectPrefix, String format, Object... args) { argument 81 android.util.Log.d(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); 85 public static void i(String prefix, String format, Object... args) { argument 87 android.util.Log.i(TAG, buildMessage(prefix, format, args)); 91 public static void i(Object objectPrefix, String format, Object... args) { argument 93 android.util.Log.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); 97 public static void v(String prefix, String format, Object... args) { argument 99 android.util.Log.v(TAG, buildMessage(prefix, format, arg 103 v(Object objectPrefix, String format, Object... args) argument 109 w(String prefix, String format, Object... args) argument 115 w(Object objectPrefix, String format, Object... args) argument 121 e(String prefix, Throwable tr, String format, Object... args) argument 127 e(Object objectPrefix, Throwable tr, String format, Object... args) argument 134 wtf(String prefix, Throwable tr, String format, Object... args) argument 138 wtf(Object objectPrefix, Throwable tr, String format, Object... args) argument 143 wtf(String prefix, String format, Object... args) argument 148 wtf(Object objectPrefix, String format, Object... args) argument 223 buildMessage(String prefix, String format, Object... args) argument [all...] |
/frameworks/volley/src/main/java/com/android/volley/ |
H A D | VolleyLog.java | 53 public static void v(String format, Object... args) { argument 55 Log.v(TAG, buildMessage(format, args)); 59 public static void d(String format, Object... args) { argument 60 Log.d(TAG, buildMessage(format, args)); 63 public static void e(String format, Object... args) { argument 64 Log.e(TAG, buildMessage(format, args)); 67 public static void e(Throwable tr, String format, Object... args) { argument 68 Log.e(TAG, buildMessage(format, args), tr); 71 public static void wtf(String format, Object... args) { argument 72 Log.wtf(TAG, buildMessage(format, arg 75 wtf(Throwable tr, String format, Object... args) argument 83 buildMessage(String format, Object... args) argument [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/ |
H A D | ResourceException.java | 27 super(String.format(message, uri1.toString()), e); 31 super(String.format(message, uri1.toString(), uri2.toString()), e); 39 super(String.format(message, uri1.toString())); 43 super(message.format(uri1.toString(), uri2.toString()));
|
/frameworks/av/services/audioflinger/ |
H A D | SpdifStreamOut.cpp | 37 audio_format_t format) 40 , mSpdifEncoder(this, format) 55 mApplicationFormat = config->format; 61 switch(config->format) { 71 ALOGE("ERROR SpdifStreamOut::open() unrecognized format 0x%08X\n", 72 config->format); 77 customConfig.format = AUDIO_FORMAT_PCM_16_BIT; 84 " sampleRate %d, format %#x, channelMask %#x", 86 config->format, 89 " sampleRate %d, format 35 SpdifStreamOut(AudioHwDevice *dev, audio_output_flags_t flags, audio_format_t format) argument [all...] |
/frameworks/base/core/java/android/net/metrics/ |
H A D | ApfStats.java | 83 .append(String.format("%dms ", durationMs)) 84 .append(String.format("%dB RA: {", maxProgramSize)) 85 .append(String.format("%d received, ", receivedRas)) 86 .append(String.format("%d matching, ", matchingRas)) 87 .append(String.format("%d dropped, ", droppedRas)) 88 .append(String.format("%d zero lifetime, ", zeroLifetimeRas)) 89 .append(String.format("%d parse errors, ", parseErrors)) 90 .append(String.format("%d program updates})", programUpdates))
|