/frameworks/base/media/java/android/media/ |
H A D | MediaCodecList.java | 29 * find a codec supporting a given format and query the capabilities 186 * @param format A decoder media format with optional feature directives. 187 * @throws IllegalArgumentException if format is not a valid media format. 188 * @throws NullPointerException if format is null. 189 * @return the name of a decoder that supports the given format and feature 192 public final String findDecoderForFormat(MediaFormat format) { argument 193 return findCodecForFormat(false /* encoder */, format); 200 * @param format A 206 findEncoderForFormat(MediaFormat format) argument 210 findCodecForFormat(boolean encoder, MediaFormat format) argument [all...] |
H A D | MediaFormat.java | 24 * 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> 44 * for encoders, readable in the output format of decoders</b></td></tr> 82 * <tr><td>{@link #KEY_MIME}</td><td>String</td><td>The type of the format.</td></tr> 135 * A key describing the sample rate of an audio format. 141 * A key describing the number of channels in an audio format. 147 * A key describing the width of the content in a video format. 153 * A key describing the height of the content in a video format. 160 * decoder format, i [all...] |
H A D | AudioDevicePort.java | 55 * Get the device address. Address format varies with the device type. 73 public AudioDevicePortConfig buildConfig(int samplingRate, int channelMask, int format, argument 75 return new AudioDevicePortConfig(this, samplingRate, channelMask, format, gain);
|
H A D | MediaMuxer.java | 71 * Defines the output format. These constants are used with constructor. 78 /** MPEG4 media file format*/ 84 private static native long nativeSetup(FileDescriptor fd, int format); argument 114 * @param format The format of the output media file. 118 public MediaMuxer(String path, int format) throws IOException { argument 122 if (format != OutputFormat.MUXER_OUTPUT_MPEG_4 && 123 format != OutputFormat.MUXER_OUTPUT_WEBM) { 124 throw new IllegalArgumentException("format is invalid"); 132 mNativeObject = nativeSetup(fd, format); 253 addTrack(MediaFormat format) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | PixelBuffer.cpp | 36 CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height); 50 CpuPixelBuffer::CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height): argument 51 PixelBuffer(format, width, height) { 52 mBuffer = new uint8_t[width * height * formatSize(format)]; 85 GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height); 101 GpuPixelBuffer::GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height): argument 102 PixelBuffer(format, width, height), mMappedPointer(0), mCaches(Caches::getInstance()) { 161 PixelBuffer* PixelBuffer::create(GLenum format, uint32_t width, uint32_t height, BufferType type) { argument 163 return new GpuPixelBuffer(format, width, height); 165 return new CpuPixelBuffer(format, widt [all...] |
/frameworks/base/media/java/android/media/audiopolicy/ |
H A D | AudioMix.java | 38 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags) { argument 40 mFormat = format; 120 * @param format a non-null {@link AudioFormat} instance. 124 public Builder setFormat(AudioFormat format) argument 126 if (format == null) { 129 mFormat = format;
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | LoggingPrintStream.java | 168 public PrintStream format(String format, Object... args) { argument 169 return format(Locale.getDefault(), format, args); 173 public PrintStream printf(String format, Object... args) { argument 174 return format(format, args); 178 public PrintStream printf(Locale l, String format, Object... args) { argument 179 return format(l, format, arg 185 format( Locale l, String format, Object... args) argument [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcCommit.cpp | 70 * made and reported for each of the known graphic format. 170 uint32_t format; member in class:Rectangle 241 uint32_t format; member in struct:meas 277 uint32_t maxOverlays(uint32_t format, bool allowOverlap); 278 list<uint32_t> supportedTransforms(uint32_t format); 279 list<uint32_t> supportedBlends(uint32_t format); 280 uint32_t dfMinWidth(uint32_t format); 281 uint32_t dfMinHeight(uint32_t format); 282 uint32_t dfMaxWidth(uint32_t format); 283 uint32_t dfMaxHeight(uint32_t format); 434 const struct hwcTestGraphicFormat *format; local 637 maxOverlays(uint32_t format, bool allowOverlap) argument 673 supportedTransforms(uint32_t format) argument 698 supportedBlends(uint32_t format) argument 723 dfMinWidth(uint32_t format) argument 747 dfMinHeight(uint32_t format) argument 771 dfMaxWidth(uint32_t format) argument 795 dfMaxHeight(uint32_t format) argument 820 dfMinDim(uint32_t format) argument 861 dfMaxDim(uint32_t format) argument 910 scMinWidth(uint32_t format, const HwcTestDim& dfDim) argument 930 scMinHeight(uint32_t format, const HwcTestDim& dfDim) argument 949 scMaxWidth(uint32_t format, const HwcTestDim& dfDim) argument 968 scMaxHeight(uint32_t format, const HwcTestDim& dfDim) argument 992 scMinDim(uint32_t format, const HwcTestDim& dfDim) argument 1033 scMaxDim(uint32_t format, const HwcTestDim& dfDim) argument 1098 scHScale(uint32_t format, const HwcTestDim& dfMin, const HwcTestDim& dfMax, const HwcTestDim& scMin, const HwcTestDim& scMax, HwcTestDim& outBestDf, HwcTestDim& outBestSc) argument 1197 scVScale(uint32_t format, const HwcTestDim& dfMin, const HwcTestDim& dfMax, const HwcTestDim& scMin, const HwcTestDim& scMax, HwcTestDim& outBestDf, HwcTestDim& outBestSc) argument [all...] |
/frameworks/av/media/libstagefright/codecs/on2/enc/ |
H A D | SoftVPXEncoder.cpp | 64 mFramerate(30 << 16), // in Q16 format 106 inputPort.format.video.pNativeRender = NULL; 107 inputPort.format.video.nFrameWidth = mWidth; 108 inputPort.format.video.nFrameHeight = mHeight; 109 inputPort.format.video.nStride = inputPort.format.video.nFrameWidth; 110 inputPort.format.video.nSliceHeight = inputPort.format.video.nFrameHeight; 111 inputPort.format.video.nBitrate = 0; 112 // frameRate is in Q16 format 746 internalSetFormatParams( const OMX_VIDEO_PARAM_PORTFORMATTYPE* format) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/ |
H A D | SoftMPEG4Encoder.cpp | 226 def.format.video.cMIMEType = const_cast<char *>("video/raw"); 228 def.format.video.eCompressionFormat = OMX_VIDEO_CodingUnused; 229 def.format.video.eColorFormat = OMX_COLOR_FormatYUV420Planar; 230 def.format.video.xFramerate = (mVideoFrameRate << 16); // Q16 format 231 def.format.video.nBitrate = mVideoBitRate; 232 def.format.video.nFrameWidth = mVideoWidth; 233 def.format.video.nFrameHeight = mVideoHeight; 234 def.format.video.nStride = mVideoWidth; 235 def.format [all...] |
/frameworks/base/location/java/android/location/ |
H A D | GpsMeasurement.java | 1227 final String format = " %-29s = %s\n"; 1231 builder.append(String.format(format, "Prn", mPrn)); 1233 builder.append(String.format(format, "TimeOffsetInNs", mTimeOffsetInNs)); 1235 builder.append(String.format(format, "State", getStateString())); 1237 builder.append(String.format( 1244 builder.append(String.format(format, "Cn0InDbH [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | CropFilter.java | 29 import android.filterfw.format.ImageFormat; 30 import android.filterfw.format.ObjectFormat; 87 protected void createProgram(FilterContext context, FrameFormat format) { argument 89 if (mLastFormat != null && mLastFormat.getTarget() == format.getTarget()) return; 90 mLastFormat = format; 92 switch (format.getTarget()) { 117 // Create output format
|
/frameworks/base/core/java/android/widget/ |
H A D | DateTimeView.java | 26 import android.text.format.Time; 40 // - listen for date format pref changed 141 // Choose the format 142 DateFormat format; 144 // use cached format 145 format = mLastFormat; 149 format = getTimeFormat(); 152 format = getDateFormat(); 157 mLastFormat = format; 161 String text = format [all...] |
/frameworks/opt/net/voip/src/java/android/net/sip/ |
H A D | SimpleSessionDescription.java | 70 mFields.parse(String.format(Locale.US, "o=- %d %d %s", sessionId, 97 for (String format : parts[3].split(" ")) { 98 media.setFormat(format, null); 288 * Returns the {@code fmtp} attribute of the given format or 291 public String getFmtp(String format) { argument 292 return super.get("a=fmtp:" + format, ' '); 296 * Sets a format and its {@code fmtp} attribute. If the attribute is 299 public void setFormat(String format, String fmtp) { argument 300 mFormats.remove(format); 301 mFormats.add(format); 309 removeFormat(String format) argument [all...] |
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothTestUtils.java | 451 fail(String.format("enable() invalid state: state=%d", state)); 462 writeOutput(String.format("enable() completed in %d ms", (finish - start))); 474 fail(String.format("enable() timeout: state=%d (expected %d), flags=0x%x (expected 0x%x)", 511 fail(String.format("disable() invalid state: state=%d", state)); 522 writeOutput(String.format("disable() completed in %d ms", (finish - start))); 534 fail(String.format("disable() timeout: state=%d (expected %d), flags=0x%x (expected 0x%x)", 566 writeOutput(String.format("discoverable() completed in %d ms", 576 fail(String.format("discoverable() timeout: scanMode=%d (expected %d), flags=0x%x " 609 writeOutput(String.format("undiscoverable() completed in %d ms", 619 fail(String.format("undiscoverabl [all...] |
/frameworks/av/media/libstagefright/include/ |
H A D | SoftwareRenderer.h | 37 void *platformPrivate, const sp<AMessage> &format); 55 void resetFormatIfChanged(const sp<AMessage> &format);
|
/frameworks/av/tools/resampler_tools/ |
H A D | fir.cpp | 81 " -f output format, can be fixed-point or floating-point (fixed)\n" 100 int format = 0; local 189 format = 0; 192 format = 0; 196 format = 1; 241 if (!format) { 245 printf("static %s resampleFIR[] = {", !format ? "int32_t" : "float"); 260 if (!format) { 283 if (!format) {
|
/frameworks/base/core/java/android/view/ |
H A D | GraphicBuffer.java | 74 * @param format The format of each pixel as specified in {@link PixelFormat} 79 public static GraphicBuffer create(int width, int height, int format, int usage) { argument 80 long nativeObject = nCreateGraphicBuffer(width, height, format, usage); 82 return new GraphicBuffer(width, height, format, usage, nativeObject); 90 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { argument 93 mFormat = format; 113 * Returns the pixel format of this buffer. The pixel format must be one of 272 int format 286 nCreateGraphicBuffer(int width, int height, int format, int usage) argument [all...] |
H A D | SurfaceHolder.java | 24 * control the surface size and format, edit the pixels in the surface, and 82 * This is called immediately after any structural changes (format or 88 * @param format The new PixelFormat of the surface. 92 public void surfaceChanged(SurfaceHolder holder, int format, int width, argument 180 * @param format A constant from PixelFormat. 184 public void setFormat(int format); argument
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | Preconditions.java | 176 String.format( 180 String.format( 203 String.format( 207 String.format( 232 String.format("%s[%d] must not be null", valueName, i)); 260 String.format("%s[%d] must not be null", valueName, ctr)); 317 String.format("%s[%d] is out of range of [%f, %f] (too low)", 321 String.format("%s[%d] is out of range of [%f, %f] (too high)",
|
/frameworks/base/media/java/android/media/tv/ |
H A D | ITvInputHardware.aidl | 60 * @param format desired format. Use default when it's AudioFormat.ENCODING_DEFAULT. 63 int format);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | MediaFrameworkIntegrationTestRunner.java | 64 String.format("Reading camera_id from icicle: '%s'", cameraId)); 68 Log.e(TAG, String.format("Failed to convert camera_id to integer"));
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | GpuVideoTrackDecoder.java | 68 int trackIndex, MediaFormat format, Listener listener) { 69 super(trackIndex, format, listener); 82 mOutputWidth = format.getInteger(MediaFormat.KEY_WIDTH); 83 mOutputHeight = format.getInteger(MediaFormat.KEY_HEIGHT); 89 protected MediaCodec initMediaCodec(MediaFormat format) { argument 93 format.getString(MediaFormat.KEY_MIME)); 97 + format.getString(MediaFormat.KEY_MIME), e); 100 mediaCodec.configure(format, surface, null, 0); 67 GpuVideoTrackDecoder( int trackIndex, MediaFormat format, Listener listener) argument
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
H A D | DateUtils.java | 32 * Returns timestamp given by param in KML format ie yyyy-mm-ddThh:mm:ssZ, 42 return String.format("%tY-%tm-%tdT%tH:%tM:%tSZ", c, c, c, c, c, c); 54 * Returns timestamp in following format: yyyy-mm-dd-hh-mm-ss 59 return String.format("%tY-%tm-%td-%tH-%tM-%tS", c, c, c, c, c, c);
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/ |
H A D | SysTrace.java | 67 Log.v(TAG, String.format("beginSection[%d] %s", sNestingLevel, sectionName)); 86 Log.v(TAG, String.format("endSection[%d]", sNestingLevel));
|