Searched defs:format (Results 201 - 225 of 403) sorted by relevance

1234567891011>>

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraErrorCollector.java153 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, expected,
171 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, expected,
195 addMessage(String.format("%s (expected = %s, actual = %s) ", msg,
220 addMessage(String.format("%s (expected = %s, actual = %s) ", msg,
238 return expectTrue(String.format("%s: (expected = %s was not greater than actual = %s) ",
252 return expectTrue(String.format("%s: (expected = %s was not greater than actual = %s) ",
266 return expectTrue(String.format("%s: (expected = %s was not greater than actual = %s) ",
280 return expectTrue(String.format("%s: (expected = %s was not greater than actual = %s) ",
299 addMessage(String.format("%s (expected = %s, actual = %s, tolerance = %s) ", msg,
322 addMessage(String.format("
1058 expectImageProperties(String msg, Image image, int format, Size size, long timestampNs) argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java153 * @param format The texture format (e.g. GL_RGBA)
156 public abstract void initializeTextureSize(BasicTexture texture, int format, int type); argument
174 * @param format The texture format (e.g. GL_RGBA)
179 int format, int type);
177 texSubImage2D(BasicTexture texture, int xOffset, int yOffset, Bitmap bitmap, int format, int type) argument
/frameworks/base/tools/apilint/
H A Dapilint.py37 def format(fg=None, bg=None, bright=False, bold=False, dim=False, reset=False): function
217 dump = "%s%s:%s %s" % (format(fg=RED, bg=BLACK, bold=True), self.head, format(reset=True), msg)
220 dump = "%s%s:%s %s" % (format(fg=YELLOW, bg=BLACK, bold=True), self.head, format(reset=True), msg)
1150 print "%s API compatibility issues %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True), format(reset=True)))
1156 print "%s API style issues %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True), format(reset=True)))
/frameworks/native/libs/gui/tests/
H A DIGraphicBufferProducer_test.cpp48 // Default format before setDefaultBufferFormat is called
118 // -- uses the default buffer format, width, etc.
198 status_t dequeueBuffer(uint32_t w, uint32_t h, uint32_t format, uint32_t usage, DequeueBufferResult* result) { argument
199 return mProducer->dequeueBuffer(&result->slot, &result->fence, w, h, format, usage);
/frameworks/native/opengl/tests/hwc/
H A DhwcStress.cpp42 * row point to graphic buffers which use the same pixel format and
48 * in a particular row have the same pixel format and dimension,
547 * format and dimension. Each graphic buffer is uniformly filled with a
566 // All frames within a row have to have the same format and
571 int format = formatPtr->format; local
586 testPrintI(" frame %u width: %u height: %u format: %u %s",
587 row, w, h, format, hwcTestGraphicFormat2str(format));
596 frames[row][col] = new GraphicBuffer(w, h, format, texUsag
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer_hwc1.h282 uint32_t format);
333 uint32_t format; // pixel format from FB hal, for pre-hwc-1.1 member in struct:android::HWComposer::DisplayData
/frameworks/native/services/surfaceflinger/
H A DMonitoredProducer.cpp69 uint32_t w, uint32_t h, PixelFormat format, uint32_t usage) {
70 return mProducer->dequeueBuffer(slot, fence, w, h, format, usage);
114 PixelFormat format, uint32_t usage) {
115 mProducer->allocateBuffers(width, height, format, usage);
68 dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, PixelFormat format, uint32_t usage) argument
113 allocateBuffers(uint32_t width, uint32_t height, PixelFormat format, uint32_t usage) argument
/frameworks/opt/net/voip/src/java/android/net/sip/
H A DSimpleSessionDescription.java70 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/opt/telephony/src/java/com/android/internal/telephony/
H A DUiccSmsController.java311 int subId, byte[] pdu, String format, PendingIntent receivedIntent) {
314 iccSmsIntMgr.injectSmsPdu(pdu, format, receivedIntent);
310 injectSmsPduForSubscriber( int subId, byte[] pdu, String format, PendingIntent receivedIntent) argument
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp73 } gOutputFormat = FORMAT_MP4; // data format for output
157 sp<AMessage> format = new AMessage; local
158 format->setInt32("width", gVideoWidth);
159 format->setInt32("height", gVideoHeight);
160 format->setString("mime", kMimeTypeAvc);
161 format->setInt32("color-format", OMX_COLOR_FormatAndroidOpaque);
162 format->setInt32("bitrate", gBitRate);
163 format->setFloat("frame-rate", displayFps);
164 format
[all...]
/frameworks/av/cmds/stagefright/
H A Dmediafilter.cpp202 && srcFormat->findInt32("color-format", &srcColorFormat));
207 && destFormat->findInt32("color-format", &destColorFormat));
332 sp<AMessage> format; local
333 status_t err = extractor->getTrackFormat(i, &format);
337 CHECK(format->findString("mime", &mime));
361 format, NULL /* surface */, NULL /* crypto */, 0 /* flags */);
376 vidFormat->setInt32("color-format", OMX_COLOR_Format32bitARGB8888);
462 vidFormat /* format */, surface, NULL /* crypto */, 0 /* flags */);
618 sp<AMessage> format; local
619 CHECK_EQ((status_t)OK, state->mCodec->getOutputFormat(&format));
[all...]
H A Dsf2.cpp154 sp<AMessage> format = makeFormat(mSource->getFormat()); local
157 format->setObject("surface", mSurface);
160 mCodec->initiateSetup(format);
/frameworks/av/include/media/
H A DAudioRecord.h120 audio_format_t format,
149 * format: Audio format (e.g AUDIO_FORMAT_PCM_16_BIT for signed
173 audio_format_t format,
200 * - BAD_VALUE: invalid parameter (channelMask, format, sampleRate...)
211 audio_format_t format,
240 audio_format_t format() const { return mFormat; } function in class:android::AudioRecord
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDecoder.cpp153 sp<AMessage> format; local
154 CHECK(msg->findMessage("format", &format));
156 handleOutputFormatChange(format);
235 void NuPlayer::Decoder::onConfigure(const sp<AMessage> &format) { argument
244 CHECK(format->findString("mime", &mime));
256 if (format->findInt32("secure", &secure) && secure != 0) {
287 format, mSurface, NULL /* crypto */, 0 /* flags */);
295 rememberCodecSpecificData(format);
615 void NuPlayer::Decoder::handleOutputFormatChange(const sp<AMessage> &format) { argument
1033 rememberCodecSpecificData(const sp<AMessage> &format) argument
[all...]
H A DRTSPSource.cpp642 sp<MetaData> format = mHandler->getTrackFormat(i, &timeScale); local
645 CHECK(format->findCString(kKeyMIMEType, &mime));
666 sp<AnotherPacketSource> source = new AnotherPacketSource(format);
/frameworks/av/media/libstagefright/
H A DMediaCodecSource.cpp326 const sp<AMessage> &format,
331 new MediaCodecSource(looper, format, source, consumer, flags);
474 ALOGV("output format is '%s'", mOutputFormat->debugString(0).c_str());
534 ALOGV("setting dataspace %#x, format %#x", mEncoderDataSpace, mEncoderFormat);
324 Create( const sp<ALooper> &looper, const sp<AMessage> &format, const sp<MediaSource> &source, const sp<IGraphicBufferConsumer> &consumer, uint32_t flags) argument
H A DStagefrightMetadataRetriever.cpp149 sp<MetaData> format = source->getFormat(); local
159 videoFormat->setInt32("color-format", OMX_COLOR_FormatYUV420Planar);
242 bool success = format->findCString(kKeyMIMEType, &mime);
327 ALOGV("Received format change");
401 CHECK(outputFormat->findInt32("color-format", &srcFormat));
415 ALOGE("Unable to convert from format 0x%08x to RGB565", srcFormat);
692 // If multiple text tracks present, the format will look
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dpvdec_api.cpp1552 void m4vdec_dprintf(char *format, ...) argument
1556 va_start(args, format);
1562 vfprintf(log_fp, format, args);
/frameworks/av/media/libstagefright/foundation/
H A DColorUtils.cpp506 const sp<AMessage> &format, int32_t *range, int32_t *standard, int32_t *transfer) {
507 if (!format->findInt32("color-range", range)) {
510 if (!format->findInt32("color-standard", standard)) {
513 if (!format->findInt32("color-transfer", transfer)) {
534 void ColorUtils::getColorAspectsFromFormat(const sp<AMessage> &format, ColorAspects &aspects) { argument
536 getColorConfigFromFormat(format, &range, &standard, &transfer);
548 "from format (out:R:%d(%s), S:%d(%s), T:%d(%s))",
560 const ColorAspects &aspects, sp<AMessage> &format, bool force) {
563 // save set values to base output format
564 // (encoder input format wil
505 getColorConfigFromFormat( const sp<AMessage> &format, int32_t *range, int32_t *standard, int32_t *transfer) argument
559 setColorAspectsIntoFormat( const ColorAspects &aspects, sp<AMessage> &format, bool force) argument
586 setHDRStaticInfoIntoFormat( const HDRStaticInfo &info, sp<AMessage> &format) argument
644 getHDRStaticInfoFromFormat(const sp<AMessage> &format, HDRStaticInfo *info) argument
[all...]
/frameworks/av/media/libstagefright/omx/
H A DSoftVideoEncoderOMXComponent.cpp71 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/av/media/libstagefright/wifi-display/source/
H A DTSPacketizer.cpp36 Track(const sp<AMessage> &format,
87 const sp<AMessage> &format,
89 : mFormat(format),
97 CHECK(format->findString("mime", &mMIME));
382 ssize_t TSPacketizer::addTrack(const sp<AMessage> &format) { argument
384 CHECK(format->findString("mime", &mime));
438 sp<Track> track = new Track(format, PID, streamType, streamID);
86 Track( const sp<AMessage> &format, unsigned PID, unsigned streamType, unsigned streamID) argument
/frameworks/av/media/mtp/
H A DMtpDevice.cpp287 MtpObjectFormat format = (*mDeviceInfo->mPlaybackFormats)[i]; local
288 ALOGI("*** FORMAT: %s\n", MtpDebug::getFormatCodeName(format));
289 MtpObjectPropertyList* props = getObjectPropsSupported(format);
293 MtpProperty* property = getObjectPropDesc(prop, format);
395 MtpObjectFormat format, MtpObjectHandle parent) {
400 mRequest.setParameter(2, format);
567 MtpObjectPropertyList* MtpDevice::getObjectPropsSupported(MtpObjectFormat format) { argument
571 mRequest.setParameter(1, format);
604 MtpProperty* MtpDevice::getObjectPropDesc(MtpObjectProperty code, MtpObjectFormat format) { argument
609 mRequest.setParameter(2, format);
394 getObjectHandles(MtpStorageID storageID, MtpObjectFormat format, MtpObjectHandle parent) argument
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp213 const AMediaFormat* format,
218 AMediaFormat_getFormat(format, &nativeFormat);
219 ALOGV("configure with format: %s", nativeFormat->debugString(0).c_str());
346 sp<AMessage> format; local
347 mData->mCodec->getOutputFormat(&format);
348 return AMediaFormat_fromMsg(&format);
211 AMediaCodec_configure( AMediaCodec *mData, const AMediaFormat* format, ANativeWindow* window, AMediaCrypto *crypto, uint32_t flags) argument
/frameworks/av/services/audioflinger/
H A DAudioMixer.h114 // The failure could be because of an invalid channelMask or format, or that
117 audio_format_t format, int sessionId);
135 static inline bool isValidPcmTrackFormat(audio_format_t format) { argument
136 switch (format) {
159 // sample format is not explicitly specified, and is assumed to be AUDIO_FORMAT_PCM_16_BIT
196 uint8_t unused_padding; // formerly format, was always 16
244 audio_format_t mMixerFormat; // output mix format: AUDIO_FORMAT_PCM_(FLOAT|16_BIT)
245 audio_format_t mFormat; // input track format
246 audio_format_t mMixerInFormat; // mix internal format AUDIO_FORMAT_PCM_(FLOAT|16_BIT)
247 // each track must be converted to this format
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DSerializer.cpp192 const char AudioProfileTraits::Attributes::format[] = "format"; member in class:android::AudioProfileTraits::Attributes
199 string format = getXmlAttribute(root, Attributes::format); local
202 profile = new Element(formatFromString(format), channelMasksFromString(channels, ","),

Completed in 486 milliseconds

1234567891011>>