Searched refs:meta (Results 1 - 25 of 112) sorted by relevance

12345

/frameworks/base/core/java/android/text/method/
H A DDialerKeyListener.java56 int meta = getMetaState(content, event);
60 * Prefer number if no meta key is active, or if it produces something
61 * valid and the meta lookup does not.
63 if ((meta & (MetaKeyKeyListener.META_ALT_ON | MetaKeyKeyListener.META_SHIFT_ON)) == 0) {
75 * If a meta key is active but the lookup with the meta key
76 * did not produce anything, try some other meta keys, because
81 if (meta != 0) {
86 for (int i = 1; i < kd.meta.length; i++) {
87 if (ok(accepted, kd.meta[
[all...]
/frameworks/av/cmds/stagefright/
H A DSineSource.cpp51 sp<MetaData> meta = new MetaData; local
52 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW);
53 meta->setInt32(kKeyChannelCount, mNumChannels);
54 meta->setInt32(kKeySampleRate, mSampleRate);
55 meta->setInt32(kKeyMaxInputSize, kBufferSize);
56 meta->setInt32(kKeyPcmEncoding, kAudioEncodingPcm16bit);
58 return meta;
H A Daudioloop.cpp97 sp<AMessage> meta = new AMessage; local
98 meta->setString(
103 meta->setInt32("channel-count", channels);
104 meta->setInt32("sample-rate", kSampleRate);
105 meta->setInt32("bitrate", kBitRate);
108 meta->setInt32("max-input-size", maxInputSize);
115 sp<IMediaSource> encoder = MediaCodecSource::Create(looper, meta, source);
H A Drecord.cpp61 sp<MetaData> meta = new MetaData;
62 meta->setInt32(kKeyWidth, mWidth);
63 meta->setInt32(kKeyHeight, mHeight);
64 meta->setInt32(kKeyColorFormat, mColorFormat);
65 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW);
67 return meta;
130 sp<MetaData> meta;
132 meta = extractor->getTrackMetaData(i);
133 CHECK(meta.get() != NULL);
136 if (!meta
[all...]
H A Dsf2.cpp125 sp<MetaData> meta = extractor->getTrackMetaData(i); local
128 CHECK(meta->findCString(kKeyMIMEType, &mime));
288 sp<AMessage> makeFormat(const sp<MetaData> &meta) { argument
292 CHECK(meta->findCString(kKeyMIMEType, &mime));
299 CHECK(meta->findInt32(kKeyWidth, &width));
300 CHECK(meta->findInt32(kKeyHeight, &height));
308 CHECK(meta->findInt32(kKeyChannelCount, &numChannels));
309 CHECK(meta->findInt32(kKeySampleRate, &sampleRate));
315 if (meta->findInt32(kKeyIsADTS, &isADTS) && isADTS != 0) {
323 if (meta
[all...]
/frameworks/av/media/libstagefright/
H A DUtils.cpp101 const sp<MetaData> &meta, sp<AMessage> &msg, uint32_t key, const char *name) {
103 if (meta->findInt32(key, &value)) {
109 static void convertMetaDataToMessageColorAspects(const sp<MetaData> &meta, sp<AMessage> &msg) { argument
115 meta->findInt32(kKeyColorRange, &range);
116 meta->findInt32(kKeyColorPrimaries, &primaries);
117 meta->findInt32(kKeyTransferFunction, &transferFunction);
118 meta->findInt32(kKeyColorMatrix, &colorMatrix);
595 const sp<MetaData> &meta, sp<AMessage> *format) {
599 if (meta == NULL) {
605 if (!meta
594 convertMetaDataToMessage( const sp<MetaData> &meta, sp<AMessage> *format) argument
1219 convertMessageToMetaDataColorAspects(const sp<AMessage> &msg, sp<MetaData> &meta) argument
1248 convertMessageToMetaData(const sp<AMessage> &msg, sp<MetaData> &meta) argument
1445 sendMetaDataToHal(sp<MediaPlayerBase::AudioSink>& sink, const sp<MetaData>& meta) argument
1543 canOffloadStream(const sp<MetaData>& meta, bool hasVideo, bool isStreaming, audio_stream_type_t streamType) argument
1652 HLSTime(const sp<AMessage>& meta) argument
[all...]
H A DAACExtractor.cpp40 const sp<MetaData> &meta,
140 sp<AMessage> meta = _meta; local
142 if (meta == NULL) {
147 if (!SniffAAC(mDataSource, &mimeType, &confidence, &meta)) {
153 CHECK(meta->findInt64("offset", &offset));
199 sp<MetaData> meta = new MetaData; local
202 return meta;
205 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_AAC_ADTS);
207 return meta;
236 const sp<DataSource> &source, const sp<MetaData> &meta,
235 AACSource( const sp<DataSource> &source, const sp<MetaData> &meta, const Vector<uint64_t> &offset_vector, int64_t frame_duration_us) argument
334 SniffAAC( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *meta) argument
[all...]
H A DJPEGSource.cpp101 sp<MetaData> meta = new MetaData; local
102 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_IMAGE_JPEG);
103 meta->setInt32(kKeyWidth, mWidth);
104 meta->setInt32(kKeyHeight, mHeight);
105 meta->setInt32(kKeyMaxInputSize, mSize);
107 return meta;
H A DMP3Extractor.cpp215 const sp<MetaData> &meta, const sp<DataSource> &source,
250 const sp<DataSource> &source, const sp<AMessage> &meta)
264 if (meta != NULL
265 && meta->findInt64("offset", &meta_offset)
266 && meta->findInt32("header", (int32_t *)&meta_header)
267 && meta->findInt64("post-id3-offset", &meta_post_id3_offset)) {
439 const sp<MetaData> &meta, const sp<DataSource> &source,
442 : mMeta(meta),
604 sp<MetaData> meta = new MetaData; local
607 return meta;
249 MP3Extractor( const sp<DataSource> &source, const sp<AMessage> &meta) argument
438 MP3Source( const sp<MetaData> &meta, const sp<DataSource> &source, off64_t first_frame_pos, uint32_t fixed_header, const sp<MP3Seeker> &seeker) argument
669 SniffMP3( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *meta) argument
[all...]
H A DAMRExtractor.cpp37 const sp<MetaData> &meta,
174 sp<MetaData> meta = new MetaData; local
177 return meta;
180 meta->setCString(kKeyMIMEType, mIsWide ? "audio/amr-wb" : "audio/amr");
182 return meta;
209 const sp<DataSource> &source, const sp<MetaData> &meta,
212 mMeta(meta),
208 AMRSource( const sp<DataSource> &source, const sp<MetaData> &meta, bool isWide, const off64_t *offset_table, size_t offset_table_length) argument
H A DMediaExtractor.cpp158 sp<AMessage> meta; local
159 if (SniffWVM(source, &mime8, &confidence, &meta) &&
166 if (SniffDRM(source, &mime8, &confidence, &meta)) {
197 sp<AMessage> meta; local
202 if (!source->sniff(&tmp, &confidence, &meta)) {
240 ret = new MP3Extractor(source, meta);
258 ret = new AACExtractor(source, meta);
/frameworks/av/media/libstagefright/mpeg2ts/
H A DAnotherPacketSource.cpp41 AnotherPacketSource::AnotherPacketSource(const sp<MetaData> &meta) argument
50 setFormat(meta);
55 void AnotherPacketSource::setFormat(const sp<MetaData> &meta) { argument
64 if (meta == NULL) {
68 mFormat = meta;
70 CHECK(meta->findCString(kKeyMIMEType, &mime));
102 if (!buffer->meta()->findInt32("discontinuity", &discontinuity)) {
104 if (buffer->meta()->findObject("format", &object)) {
128 if ((*buffer)->meta()->findInt32("discontinuity", &discontinuity)) {
142 mLatestDequeuedMeta = (*buffer)->meta()
514 trimBuffersAfterMeta( const sp<AMessage> &meta) argument
573 trimBuffersBeforeMeta( const sp<AMessage> &meta) argument
[all...]
H A DAnotherPacketSource.h33 AnotherPacketSource(const sp<MetaData> &meta);
35 void setFormat(const sp<MetaData> &meta);
82 void trimBuffersAfterMeta(const sp<AMessage> &meta);
83 sp<AMessage> trimBuffersBeforeMeta(const sp<AMessage> &meta);
/frameworks/av/media/libstagefright/rtsp/
H A DVideoSource.h40 sp<MetaData> meta = new MetaData; local
41 meta->setInt32(kKeyWidth, mWidth);
42 meta->setInt32(kKeyHeight, mHeight);
43 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW);
45 return meta;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DMediaMetadataTest.java47 public static METADATA_EXPECTEDRESULT meta; field in class:MediaMetadataTest
84 assertEquals(TAG, meta_data_file[fileIndex][meta.CD_TRACK.ordinal()], value);
88 assertEquals(TAG, meta_data_file[fileIndex][meta.ALBUM.ordinal()], value);
92 assertEquals(TAG, meta_data_file[fileIndex][meta.ARTIST.ordinal()], value);
96 assertEquals(TAG, meta_data_file[fileIndex][meta.AUTHOR.ordinal()], value);
100 assertEquals(TAG, meta_data_file[fileIndex][meta.COMPOSER.ordinal()], value);
104 assertEquals(TAG, meta_data_file[fileIndex][meta.DATE.ordinal()], value);
108 assertEquals(TAG, meta_data_file[fileIndex][meta.GENRE.ordinal()], value);
112 assertEquals(TAG, meta_data_file[fileIndex][meta.TITLE.ordinal()], value);
116 assertEquals(TAG, meta_data_file[fileIndex][meta
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.h43 sp<AMessage> meta();
46 bool itemAt(size_t index, AString *uri, sp<AMessage> *meta = NULL);
92 const AString &line, sp<AMessage> *meta, const char *key);
95 const AString &line, sp<AMessage> *meta, const char *key);
98 const AString &line, sp<AMessage> *meta) const;
101 const AString &line, sp<AMessage> *meta, const AString &baseURI);
H A DM3UParser.cpp302 sp<AMessage> M3UParser::meta() { function in class:android::M3UParser
310 bool M3UParser::itemAt(size_t index, AString *uri, sp<AMessage> *meta) { argument
315 if (meta) {
316 *meta = NULL;
327 if (meta) {
328 *meta = mItems.itemAt(index).mMeta;
425 sp<AMessage> meta = mItems.itemAt(index).mMeta; local
428 if (!meta->findString(key, &groupID)) {
434 if (!meta->findString("codecs", &codecs)) {
705 sp<AMessage> meta local
724 parseMetaData( const AString &line, sp<AMessage> *meta, const char *key) argument
748 parseMetaDataDuration( const AString &line, sp<AMessage> *meta, const char *key) argument
904 parseCipherInfo( const AString &line, sp<AMessage> *meta, const AString &baseURI) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DUtils.h47 const sp<MetaData> &meta, sp<AMessage> *format);
49 const sp<AMessage> &format, sp<MetaData> &meta);
65 status_t sendMetaDataToHal(sp<MediaPlayerBase::AudioSink>& sink, const sp<MetaData>& meta);
67 // Check whether the stream defined by meta can be offloaded to hardware
68 bool canOffloadStream(const sp<MetaData>& meta, bool hasVideo,
78 HLSTime(const sp<AMessage> &meta = NULL);
H A DMediaAdapter.h33 MediaAdapter(const sp<MetaData> &meta);
/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp221 sp<MetaData> meta = mExtractor->mTracks.itemAt(index).mMeta; local
224 CHECK(meta->findCString(kKeyMIMEType, &mime));
235 if (meta->findInt32(kKeyNalLengthSize, &nalSizeLen)) {
239 } else if (meta->findData(kKeyAVCC, &dummy, (const void **)&avcc, &avccSize)
543 sp<MetaData> meta = mbuf->meta_data(); local
568 meta->setData(kKeyCryptoKey, 0, keyId, keyIdSize);
570 meta->setData(kKeyCryptoIV, 0, ctrCounter, 16);
571 meta->setData(kKeyPlainSizes, 0, plainSizes, sizeof(plainSizes));
572 meta->setData(kKeyEncryptedSizes, 0, encryptedSizes, sizeof(encryptedSizes));
588 meta
920 addESDSFromCodecPrivate( const sp<MetaData> &meta, bool isAudio, const void *priv, size_t privSize) argument
955 addVorbisCodecInfo( const sp<MetaData> &meta, const void *_codecPrivate, size_t codecPrivateSize) argument
1079 getColorInformation( const mkvparser::VideoTrack *vtrack, sp<MetaData> &meta) argument
1194 sp<MetaData> meta = new MetaData; local
1353 sp<MetaData> meta = new MetaData; local
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaExtractor.cpp181 sp<MetaData> meta; local
182 status_t err = mData->mImpl->getSampleMeta(&meta);
187 if (meta->findInt32(kKeyIsSyncFrame, &val) && val != 0) {
194 if (meta->findData(kKeyEncryptedSizes, &type, &data, &size)) {
322 sp<MetaData> meta; local
323 if(ex->mImpl->getSampleMeta(&meta) != 0) {
330 if (!meta->findData(kKeyEncryptedSizes, &type, &crypteddata, &cryptedsize)) {
337 if (meta->findData(kKeyPlainSizes, &type, &cleardata, &clearsize)) {
346 if (meta->findData(kKeyCryptoIV, &type, &key, &keysize)) {
355 if (meta
[all...]
/frameworks/av/media/libstagefright/include/
H A DMP3Extractor.h34 MP3Extractor(const sp<DataSource> &source, const sp<AMessage> &meta);
58 sp<AMessage> *meta);
/frameworks/av/media/libstagefright/wifi-display/source/
H A DMediaPuller.cpp39 sp<MetaData> meta = source->getFormat(); local
41 CHECK(meta->findCString(kKeyMIMEType, &mime));
116 sp<MetaData> meta = mSource->getFormat(); local
118 CHECK(meta->findCString(kKeyMIMEType, &tmp));
174 accessUnit->meta()->setInt64("timeUs", timeUs);
H A DConverter.cpp533 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
537 buffer->meta()->setInt64("timeUs", timeUs);
579 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
581 partialAudioAU->meta()->setInt64("timeUs", timeUs);
585 buffer->meta()->setInt64("timeUs", timeUs);
621 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
659 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs));
661 dup->meta()->setInt64("timeUs", timeUs);
725 if (outbuf->meta()->findPointer("handle", (void**)&handle) &&
728 CHECK(outbuf->meta()
[all...]
/frameworks/wilhelm/src/android/
H A Dandroid_AudioSfDecoder.cpp242 sp<MetaData> meta = extractor->getTrackMetaData(i); local
245 CHECK(meta->findCString(kKeyMIMEType, &mime));
266 sp<MetaData> meta = source->getFormat(); local
271 bool hasChannelCount = meta->findInt32(kKeyChannelCount, &channelCount);
273 bool hasSampleRate = meta->findInt32(kKeySampleRate, &sr);
280 && meta->findInt64(kKeyDuration, &durationUs)) {
309 meta = source->getFormat();
326 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
330 CHECK(meta->findInt32(kKeySampleRate, &sr));
335 // CHECK(meta
758 sp<MetaData> meta = mAudioSource->getFormat(); local
[all...]

Completed in 2077 milliseconds

12345