Home
last modified time | relevance | path

Searched refs:keyInfo (Results 1 – 4 of 4) sorted by relevance

/frameworks/wilhelm/tests/examples/
DslesTestDecodeAac.cpp680 SLMetadataInfo *keyInfo, *value; in TestDecToBuffQueue() local
682 keyInfo = NULL; keySize = 0; in TestDecToBuffQueue()
688 keyInfo = (SLMetadataInfo*) malloc(keySize); in TestDecToBuffQueue()
689 if (NULL != keyInfo) { in TestDecToBuffQueue()
690 res = (*mdExtrItf)->GetKey(mdExtrItf, i, keySize, keyInfo); in TestDecToBuffQueue()
693 i, keyInfo->size, keyInfo->data, valueSize, keyInfo->encoding, in TestDecToBuffQueue()
694 keyInfo->langCountry); in TestDecToBuffQueue()
696 if (!strcmp((char*)keyInfo->data, ANDROID_KEY_PCMFORMAT_NUMCHANNELS)) { in TestDecToBuffQueue()
698 } else if (!strcmp((char*)keyInfo->data, ANDROID_KEY_PCMFORMAT_SAMPLERATE)) { in TestDecToBuffQueue()
700 } else if (!strcmp((char*)keyInfo->data, ANDROID_KEY_PCMFORMAT_BITSPERSAMPLE)) { in TestDecToBuffQueue()
[all …]
DslesTestDecodeToBuffQueue.cpp466 SLMetadataInfo *keyInfo, *value; in TestDecToBuffQueue() local
468 keyInfo = NULL; keySize = 0; in TestDecToBuffQueue()
474 keyInfo = (SLMetadataInfo*) malloc(keySize); in TestDecToBuffQueue()
475 if (NULL != keyInfo) { in TestDecToBuffQueue()
476 result = (*mdExtrItf)->GetKey(mdExtrItf, i, keySize, keyInfo); in TestDecToBuffQueue()
479 i, keyInfo->size, keyInfo->data, valueSize); in TestDecToBuffQueue()
481 if (!strcmp((char*)keyInfo->data, ANDROID_KEY_PCMFORMAT_NUMCHANNELS)) { in TestDecToBuffQueue()
483 } else if (!strcmp((char*)keyInfo->data, ANDROID_KEY_PCMFORMAT_SAMPLERATE)) { in TestDecToBuffQueue()
486 free(keyInfo); in TestDecToBuffQueue()
/frameworks/ex/variablespeed/jni/
Dvariablespeed.cc237 SLMetadataInfo *keyInfo, *value; in ReadSampleRateAndChannelCount() local
239 keyInfo = value = NULL; in ReadSampleRateAndChannelCount()
242 keyInfo = static_cast<SLMetadataInfo*>(malloc(keySize)); in ReadSampleRateAndChannelCount()
243 if (keyInfo) { in ReadSampleRateAndChannelCount()
244 OpenSL(decoderMetadata, GetKey, i, keySize, keyInfo); in ReadSampleRateAndChannelCount()
245 if (keyInfo->encoding == SL_CHARACTERENCODING_ASCII in ReadSampleRateAndChannelCount()
246 || keyInfo->encoding == SL_CHARACTERENCODING_UTF8) { in ReadSampleRateAndChannelCount()
251 if (strcmp((char*) keyInfo->data, ANDROID_KEY_PCMFORMAT_SAMPLERATE) == 0) { in ReadSampleRateAndChannelCount()
255 } else if (strcmp((char*) keyInfo->data, ANDROID_KEY_PCMFORMAT_NUMCHANNELS) == 0) { in ReadSampleRateAndChannelCount()
263 free(keyInfo); in ReadSampleRateAndChannelCount()
/frameworks/base/core/java/android/app/
DSearchableInfo.java498 private void addActionKey(ActionKeyInfo keyInfo) { in addActionKey() argument
502 mActionKeys.put(keyInfo.getKeyCode(), keyInfo); in addActionKey() local