Home
last modified time | relevance | path

Searched refs:meta (Results 1 – 25 of 169) sorted by relevance

1234567

/frameworks/base/packages/InputDevices/res/raw/
Dkeyboard_layout_persian.kcm25 ctrl, alt, meta: none
32 ctrl, alt, meta: none
39 ctrl, alt, meta: none
46 ctrl, alt, meta: none
53 ctrl, alt, meta: none
60 ctrl, alt, meta: none
67 ctrl, alt, meta: none
74 ctrl, alt, meta: none
81 ctrl, alt, meta: none
88 ctrl, alt, meta: none
[all …]
/frameworks/av/media/libstagefright/
DUtils.cpp71 const sp<MetaData> &meta, sp<AMessage> &msg, uint32_t key, const char *name) {
73 if (meta->findInt32(key, &value)) {
79 static void convertMetaDataToMessageColorAspects(const MetaDataBase *meta, sp<AMessage> &msg) { in convertMetaDataToMessageColorAspects() argument
85 meta->findInt32(kKeyColorRange, &range); in convertMetaDataToMessageColorAspects()
86 meta->findInt32(kKeyColorPrimaries, &primaries); in convertMetaDataToMessageColorAspects()
87 meta->findInt32(kKeyTransferFunction, &transferFunction); in convertMetaDataToMessageColorAspects()
88 meta->findInt32(kKeyColorMatrix, &colorMatrix); in convertMetaDataToMessageColorAspects()
721 void convertMessageToMetaDataFromMappings(const sp<AMessage> &msg, sp<MetaData> &meta) { in convertMessageToMetaDataFromMappings() argument
725 meta->setCString(elem.second, value.c_str()); in convertMessageToMetaDataFromMappings()
732 meta->setFloat(elem.second, value); in convertMessageToMetaDataFromMappings()
[all …]
DMetaDataUtils.cpp32 bool MakeAVCCodecSpecificData(MetaDataBase &meta, const uint8_t *data, size_t size) { in MakeAVCCodecSpecificData() argument
46 meta.setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in MakeAVCCodecSpecificData()
48 meta.setData(kKeyAVCC, kTypeAVCC, csd->data(), csd->size()); in MakeAVCCodecSpecificData()
49 meta.setInt32(kKeyWidth, width); in MakeAVCCodecSpecificData()
50 meta.setInt32(kKeyHeight, height); in MakeAVCCodecSpecificData()
52 meta.setInt32(kKeySARWidth, sarWidth); in MakeAVCCodecSpecificData()
53 meta.setInt32(kKeySARHeight, sarHeight); in MakeAVCCodecSpecificData()
58 bool MakeAVCCodecSpecificData(AMediaFormat *meta, const uint8_t *data, size_t size) { in MakeAVCCodecSpecificData() argument
59 if (meta == nullptr || data == nullptr || size == 0) { in MakeAVCCodecSpecificData()
72 AMediaFormat_setString(meta, AMEDIAFORMAT_KEY_MIME, MEDIA_MIMETYPE_VIDEO_AVC); in MakeAVCCodecSpecificData()
[all …]
DMediaTrack.cpp121 MetaDataBase &meta = (*buffer)->meta_data(); in read() local
128 meta.setInt64(kKeyTime, val64); in read()
131 meta.setInt64(kKeyDuration, val64); in read()
134 meta.setInt64(kKeyTargetTime, val64); in read()
138 meta.setInt32(kKeyIsSyncFrame, val32); in read()
141 meta.setInt32(kKeyTemporalLayerId, val32); in read()
144 meta.setInt32(kKeyTemporalLayerCount, val32); in read()
147 meta.setInt32(kKeyCryptoDefaultIVSize, val32); in read()
150 meta.setInt32(kKeyCryptoMode, val32); in read()
153 meta.setInt32(kKeyEncryptedByteBlock, val32); in read()
[all …]
DRemoteMediaExtractor.cpp110 sp<MetaData> meta = new MetaData(); in getTrackMetaData() local
111 if (mExtractor->getTrackMetaData(*meta.get(), index, flags) == OK) { in getTrackMetaData()
112 return meta; in getTrackMetaData()
118 sp<MetaData> meta = new MetaData(); in getMetaData() local
119 if (mExtractor->getMetaData(*meta.get()) == OK) { in getMetaData()
120 return meta; in getMetaData()
/frameworks/av/media/libstagefright/mpeg2ts/
DAnotherPacketSource.cpp40 AnotherPacketSource::AnotherPacketSource(const sp<MetaData> &meta) in AnotherPacketSource() argument
50 setFormat(meta); in AnotherPacketSource()
55 void AnotherPacketSource::setFormat(const sp<MetaData> &meta) { in setFormat() argument
64 if (meta == NULL) { in setFormat()
68 mFormat = meta; in setFormat()
70 CHECK(meta->findCString(kKeyMIMEType, &mime)); in setFormat()
102 if (!buffer->meta()->findInt32("discontinuity", &discontinuity)) { in getFormat()
104 if (buffer->meta()->findObject("format", &object)) { in getFormat()
128 if ((*buffer)->meta()->findInt32("discontinuity", &discontinuity)) { in dequeueAccessUnit()
142 mLatestDequeuedMeta = (*buffer)->meta()->dup(); in dequeueAccessUnit()
[all …]
/frameworks/native/libs/vr/libbufferhub/
Dconsumer_buffer.cpp98 int ConsumerBuffer::Acquire(LocalHandle* ready_fence, void* meta, in Acquire() argument
109 if (meta && user_metadata_size) { in Acquire()
113 memcpy(meta, metadata_src, user_metadata_size); in Acquire()
138 int ConsumerBuffer::LocalRelease(const DvrNativeBufferMetadata* meta, in LocalRelease() argument
140 if (const int error = CheckMetadata(meta->user_metadata_size)) in LocalRelease()
170 if (meta->user_metadata_ptr && meta->user_metadata_size) { in LocalRelease()
171 void* metadata_src = reinterpret_cast<void*>(meta->user_metadata_ptr); in LocalRelease()
172 memcpy(user_metadata_ptr_, metadata_src, meta->user_metadata_size); in LocalRelease()
186 DvrNativeBufferMetadata meta; in Release() local
187 if (const int error = LocalRelease(&meta, release_fence)) in Release()
[all …]
Dproducer_buffer.cpp77 int ProducerBuffer::LocalPost(const DvrNativeBufferMetadata* meta, in LocalPost() argument
79 if (const int error = CheckMetadata(meta->user_metadata_size)) in LocalPost()
118 memcpy(metadata_ptr, meta, sizeof(DvrNativeBufferMetadata)); in LocalPost()
120 if (meta->user_metadata_ptr && meta->user_metadata_size) { in LocalPost()
121 void* metadata_src = reinterpret_cast<void*>(meta->user_metadata_ptr); in LocalPost()
122 memcpy(user_metadata_ptr_, metadata_src, meta->user_metadata_size); in LocalPost()
133 int ProducerBuffer::Post(const LocalHandle& ready_fence, const void* meta, in Post() argument
139 canonical_meta.user_metadata_ptr = reinterpret_cast<uint64_t>(meta); in Post()
149 int ProducerBuffer::PostAsync(const DvrNativeBufferMetadata* meta, in PostAsync() argument
153 if (const int error = LocalPost(meta, ready_fence)) in PostAsync()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaMetadataTest.java47 public static METADATA_EXPECTEDRESULT meta; field in MediaMetadataTest
84 assertEquals(TAG, meta_data_file[fileIndex][meta.CD_TRACK.ordinal()], value); in validateMetatData()
88 assertEquals(TAG, meta_data_file[fileIndex][meta.ALBUM.ordinal()], value); in validateMetatData()
92 assertEquals(TAG, meta_data_file[fileIndex][meta.ARTIST.ordinal()], value); in validateMetatData()
96 assertEquals(TAG, meta_data_file[fileIndex][meta.AUTHOR.ordinal()], value); in validateMetatData()
100 assertEquals(TAG, meta_data_file[fileIndex][meta.COMPOSER.ordinal()], value); in validateMetatData()
104 assertEquals(TAG, meta_data_file[fileIndex][meta.DATE.ordinal()], value); in validateMetatData()
108 assertEquals(TAG, meta_data_file[fileIndex][meta.GENRE.ordinal()], value); in validateMetatData()
112 assertEquals(TAG, meta_data_file[fileIndex][meta.TITLE.ordinal()], value); in validateMetatData()
116 assertEquals(TAG, meta_data_file[fileIndex][meta.YEAR.ordinal()], value); in validateMetatData()
[all …]
/frameworks/av/media/extractors/aac/
DAACExtractor.cpp38 AMediaFormat *meta,
189 media_status_t AACExtractor::getMetaData(AMediaFormat *meta) { in getMetaData() argument
190 AMediaFormat_clear(meta); in getMetaData()
192 AMediaFormat_setString(meta, AMEDIAFORMAT_KEY_MIME, MEDIA_MIMETYPE_AUDIO_AAC_ADTS); in getMetaData()
210 media_status_t AACExtractor::getTrackMetaData(AMediaFormat *meta, size_t index, uint32_t /* flags *… in getTrackMetaData() argument
215 return AMediaFormat_copy(meta, mMeta); in getTrackMetaData()
225 AMediaFormat *meta, in AACSource() argument
229 mMeta(meta), in AACSource()
266 media_status_t AACSource::getFormat(AMediaFormat *meta) { in getFormat() argument
267 return AMediaFormat_copy(meta, mMeta); in getFormat()
[all …]
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp246 AMediaFormat *meta = trackInfo.mMeta; in MatroskaSource() local
249 CHECK(AMediaFormat_getString(meta, AMEDIAFORMAT_KEY_MIME, &mime)); in MatroskaSource()
314 media_status_t MatroskaSource::getFormat(AMediaFormat *meta) { in getFormat() argument
315 return AMediaFormat_copy(meta, mExtractor->mTracks.itemAt(mTrackIndex).mMeta); in getFormat()
660 AMediaFormat *meta = mbuf->meta_data(); in setWebmBlockCryptoInfo() local
668 AMediaFormat_setBuffer(meta, AMEDIAFORMAT_KEY_CRYPTO_KEY, keyId, keyIdSize); in setWebmBlockCryptoInfo()
670 AMediaFormat_setBuffer(meta, AMEDIAFORMAT_KEY_CRYPTO_IV, ctrCounter, 16); in setWebmBlockCryptoInfo()
723 AMediaFormat_setBuffer(meta, AMEDIAFORMAT_KEY_CRYPTO_PLAIN_SIZES, in setWebmBlockCryptoInfo()
725 AMediaFormat_setBuffer(meta, AMEDIAFORMAT_KEY_CRYPTO_ENCRYPTED_SIZES, in setWebmBlockCryptoInfo()
746 AMediaFormat_setBuffer(meta, AMEDIAFORMAT_KEY_CRYPTO_PLAIN_SIZES, in setWebmBlockCryptoInfo()
[all …]
/frameworks/av/media/extractors/mp3/
DMP3Extractor.cpp213 AMediaFormat *meta, DataSourceHelper *source,
220 virtual media_status_t getFormat(AMediaFormat *meta);
253 DataSourceHelper *source, Mp3Meta *meta) in MP3Extractor() argument
265 if (meta != NULL) { in MP3Extractor()
268 pos = meta->pos; in MP3Extractor()
269 header = meta->header; in MP3Extractor()
270 post_id3_pos = meta->post_id3_pos; in MP3Extractor()
427 AMediaFormat *meta, in getTrackMetaData() argument
432 AMediaFormat_copy(meta, mMeta); in getTrackMetaData()
446 AMediaFormat *meta, DataSourceHelper *source, in MP3Source() argument
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DUtils.h33 const MetaDataBase *meta, sp<AMessage> *format);
35 const sp<MetaData> &meta, sp<AMessage> *format);
37 const sp<AMessage> &format, sp<MetaData> &meta);
51 status_t sendMetaDataToHal(sp<MediaPlayerBase::AudioSink>& sink, const sp<MetaData>& meta);
54 status_t getAudioOffloadInfo(const sp<MetaData>& meta, bool hasVideo,
58 bool canOffloadStream(const sp<MetaData>& meta, bool hasVideo,
66 explicit HLSTime(const sp<AMessage> &meta = NULL);
DMetaDataUtils.h28 bool MakeAVCCodecSpecificData(MetaDataBase &meta, const uint8_t *data, size_t size);
29 bool MakeAVCCodecSpecificData(AMediaFormat *meta, const uint8_t *data, size_t size);
31 bool MakeAACCodecSpecificData(MetaDataBase &meta, const uint8_t *data, size_t size);
32 bool MakeAACCodecSpecificData(MetaDataBase &meta, unsigned profile, unsigned sampling_freq_index,
35 bool MakeAACCodecSpecificData(AMediaFormat *meta, unsigned profile, unsigned sampling_freq_index,
/frameworks/av/media/ndk/
DNdkMediaExtractor.cpp201 sp<MetaData> meta; in AMediaExtractor_getSampleFlags() local
202 status_t err = mData->mImpl->getSampleMeta(&meta); in AMediaExtractor_getSampleFlags()
207 if (meta->findInt32(kKeyIsSyncFrame, &val) && val != 0) { in AMediaExtractor_getSampleFlags()
214 if (meta->findData(kKeyEncryptedSizes, &type, &data, &size)) { in AMediaExtractor_getSampleFlags()
342 sp<MetaData> meta; in AMediaExtractor_getSampleCryptoInfo() local
343 if(ex->mImpl->getSampleMeta(&meta) != 0) { in AMediaExtractor_getSampleCryptoInfo()
350 if (!meta->findData(kKeyEncryptedSizes, &type, &crypteddata, &cryptedsize)) { in AMediaExtractor_getSampleCryptoInfo()
357 if (meta->findData(kKeyPlainSizes, &type, &cleardata, &clearsize)) { in AMediaExtractor_getSampleCryptoInfo()
366 if (meta->findData(kKeyCryptoKey, &type, &key, &keysize)) { in AMediaExtractor_getSampleCryptoInfo()
375 if (meta->findData(kKeyCryptoIV, &type, &iv, &ivsize)) { in AMediaExtractor_getSampleCryptoInfo()
[all …]
/frameworks/base/core/java/android/text/method/
DDialerKeyListener.java56 int meta = getMetaState(content, event); in lookup() local
63 if ((meta & (MetaKeyKeyListener.META_ALT_ON | MetaKeyKeyListener.META_SHIFT_ON)) == 0) { in lookup()
81 if (meta != 0) { in lookup()
86 for (int i = 1; i < kd.meta.length; i++) { in lookup()
87 if (ok(accepted, kd.meta[i])) { in lookup()
88 return kd.meta[i]; in lookup()
/frameworks/av/cmds/stagefright/
Daudioloop.cpp120 sp<AMessage> meta = new AMessage; in main() local
122 meta->setString( in main()
127 meta->setString("mime", mediaType); in main()
128 meta->setString("testing-name", name); in main()
131 meta->setInt32("channel-count", channels); in main()
132 meta->setInt32("sample-rate", sampleRate); in main()
133 meta->setInt32("bitrate", bitRate); in main()
136 meta->setInt32("max-input-size", maxInputSize); in main()
143 sp<MediaSource> encoder = MediaCodecSource::Create(looper, meta, source); in main()
DSineSource.cpp52 sp<MetaData> meta = new MetaData; in getFormat() local
53 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW); in getFormat()
54 meta->setInt32(kKeyChannelCount, mNumChannels); in getFormat()
55 meta->setInt32(kKeySampleRate, mSampleRate); in getFormat()
56 meta->setInt32(kKeyMaxInputSize, kBufferSize); in getFormat()
57 meta->setInt32(kKeyPcmEncoding, kAudioEncodingPcm16bit); in getFormat()
59 return meta; in getFormat()
Drecord.cpp63 sp<MetaData> meta = new MetaData;
64 meta->setInt32(kKeyWidth, mWidth);
65 meta->setInt32(kKeyHeight, mHeight);
66 meta->setInt32(kKeyColorFormat, mColorFormat);
67 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW);
69 return meta;
132 sp<MetaData> meta;
134 meta = extractor->getTrackMetaData(i);
135 CHECK(meta.get() != NULL);
138 if (!meta->findCString(kKeyMIMEType, &mime)) {
[all …]
/frameworks/av/media/extractors/amr/
DAMRExtractor.cpp36 AMediaFormat *meta,
200 media_status_t AMRExtractor::getMetaData(AMediaFormat *meta) { in getMetaData() argument
201 AMediaFormat_clear(meta); in getMetaData()
204 AMediaFormat_setString(meta, in getMetaData()
224 media_status_t AMRExtractor::getTrackMetaData(AMediaFormat *meta, size_t index, uint32_t /* flags *… in getTrackMetaData() argument
229 return AMediaFormat_copy(meta, mMeta); in getTrackMetaData()
235 DataSourceHelper *source, AMediaFormat *meta, in AMRSource() argument
238 mMeta(meta), in AMRSource()
274 media_status_t AMRSource::getFormat(AMediaFormat *meta) { in getFormat() argument
275 return AMediaFormat_copy(meta, mMeta); in getFormat()
[all …]
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp427 media_status_t MPEG4Extractor::getMetaData(AMediaFormat *meta) { in getMetaData() argument
432 AMediaFormat_copy(meta, mFileMetaData); in getMetaData()
455 AMediaFormat *meta, in getTrackMetaData() argument
481 AMediaFormat_getInt64(track->meta, AMEDIAFORMAT_KEY_DURATION, &duration) && in getTrackMetaData()
482 AMediaFormat_getInt32(track->meta, AMEDIAFORMAT_KEY_SAMPLE_RATE, &samplerate)) { in getTrackMetaData()
518 AMediaFormat_setInt32(track->meta, AMEDIAFORMAT_KEY_ENCODER_DELAY, delay); in getTrackMetaData()
569 AMediaFormat_setInt32(track->meta, AMEDIAFORMAT_KEY_ENCODER_PADDING, paddingsamples); in getTrackMetaData()
578 CHECK(AMediaFormat_getString(track->meta, AMEDIAFORMAT_KEY_MIME, &mime)); in getTrackMetaData()
591 AMediaFormat_setBuffer(track->meta, in getTrackMetaData()
599 if (AMediaFormat_getInt64(track->meta, in getTrackMetaData()
[all …]
/frameworks/av/media/libstagefright/httplive/
DM3UParser.cpp309 sp<AMessage> M3UParser::meta() { in meta() function in android::M3UParser
317 bool M3UParser::itemAt(size_t index, AString *uri, sp<AMessage> *meta) { in itemAt() argument
322 if (meta) { in itemAt()
323 *meta = NULL; in itemAt()
334 if (meta) { in itemAt()
335 *meta = mItems.itemAt(index).mMeta; in itemAt()
432 sp<AMessage> meta = mItems.itemAt(index).mMeta; in getTypeURI() local
435 if (!meta->findString(key, &groupID)) { in getTypeURI()
441 if (!meta->findString("codecs", &codecs)) { in getTypeURI()
736 sp<AMessage> meta = mItems.itemAt(i).mMeta; in parse() local
[all …]
DM3UParser.h43 sp<AMessage> meta();
46 bool itemAt(size_t index, AString *uri, sp<AMessage> *meta = NULL);
93 const AString &line, sp<AMessage> *meta, const char *key);
96 const AString &line, sp<AMessage> *meta, const char *key);
99 const AString &line, sp<AMessage> *meta) const;
102 const AString &line, sp<AMessage> *meta, const AString &baseURI);
/frameworks/av/media/extractors/wav/
DWAVExtractor.cpp72 AMediaFormat *meta,
79 virtual media_status_t getFormat(AMediaFormat *meta);
121 media_status_t WAVExtractor::getMetaData(AMediaFormat *meta) { in getMetaData() argument
122 AMediaFormat_clear(meta); in getMetaData()
124 AMediaFormat_setString(meta, AMEDIAFORMAT_KEY_MIME, MEDIA_MIMETYPE_CONTAINER_WAV); in getMetaData()
145 AMediaFormat *meta, in getTrackMetaData() argument
151 const media_status_t status = AMediaFormat_copy(meta, mTrackMeta); in getTrackMetaData()
153 AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_PCM_ENCODING, in getTrackMetaData()
369 AMediaFormat *meta, in WAVSource() argument
374 mMeta(meta), in WAVSource()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DVideoSource.h40 sp<MetaData> meta = new MetaData; in getFormat() local
41 meta->setInt32(kKeyWidth, mWidth); in getFormat()
42 meta->setInt32(kKeyHeight, mHeight); in getFormat()
43 meta->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_RAW); in getFormat()
45 return meta; in getFormat()

1234567