/frameworks/av/camera/ |
H A D | CameraParameters.cpp | 207 // Find the bounds of the key name. 212 // Create the key string. 232 void CameraParameters::set(const char *key, const char *value) argument 235 if (strchr(key, '=') || strchr(key, ';')) { 236 //XXX ALOGE("Key \"%s\"contains invalid character (= or ;)", key); 240 if (strchr(value, '=') || strchr(key, ';')) { 245 mMap.replaceValueFor(String8(key), String8(value)); 248 void CameraParameters::set(const char *key, int value) argument 252 set(key, st 255 setFloat(const char *key, float value) argument 285 remove(const char *key) argument [all...] |
/frameworks/av/drm/common/ |
H A D | DrmConstraints.cpp | 32 status_t DrmConstraints::put(const String8* key, const char* value) { argument 38 mConstraintMap.add(*key, charValue); 43 String8 DrmConstraints::get(const String8& key) const { 44 if (NULL != getValue(&key)) { 45 return String8(getValue(&key)); 50 const char* DrmConstraints::getValue(const String8* key) const { 51 if (NAME_NOT_FOUND != mConstraintMap.indexOfKey(*key)) { 52 return mConstraintMap.valueFor(*key); 57 const char* DrmConstraints::getAsByteArray(const String8* key) const { 58 return getValue(key); 66 const String8& key = mDrmConstraints->mConstraintMap.keyAt(mIndex); local [all...] |
H A D | DrmInfo.cpp | 44 status_t DrmInfo::put(const String8& key, const String8& value) { argument 45 mAttributes.add(key, value); 49 String8 DrmInfo::get(const String8& key) const { 50 if (NAME_NOT_FOUND != mAttributes.indexOfKey(key)) { 51 return mAttributes.valueFor(key); 56 int DrmInfo::indexOfKey(const String8& key) const { 57 return mAttributes.indexOfKey(key); 79 const String8& key = mDrmInfo->mAttributes.keyAt(mIndex); local 81 return key;
|
H A D | DrmInfoRequest.cpp | 41 status_t DrmInfoRequest::put(const String8& key, const String8& value) { argument 42 mRequestInformationMap.add(key, value); 46 String8 DrmInfoRequest::get(const String8& key) const { 47 if (NAME_NOT_FOUND != mRequestInformationMap.indexOfKey(key)) { 48 return mRequestInformationMap.valueFor(key); 73 const String8& key = mDrmInfoRequest->mRequestInformationMap.keyAt(mIndex); local 75 return key;
|
H A D | DrmMetadata.cpp | 25 status_t DrmMetadata::put(const String8* key, argument 27 if((value != NULL) && (key != NULL)) { 33 mMetadataMap.add(*key, charValue); 38 String8 DrmMetadata::get(const String8& key) const { 39 if (NULL != getValue(&key)) { 40 return String8(getValue(&key)); 47 const char* DrmMetadata::getValue(const String8* key) const { 48 if(key != NULL) { 49 if (NAME_NOT_FOUND != mMetadataMap.indexOfKey(*key)) { 50 return mMetadataMap.valueFor(*key); 69 const String8& key = mDrmMetadata->mMetadataMap.keyAt(mIndex); local [all...] |
H A D | IDrmManagerService.cpp | 81 DrmCopyControl key = (DrmCopyControl)data.readInt32(); local 83 handle->copyControlVector.add(key, value); 88 String8 key = data.readString8(); local 90 handle->extendedData.add(key, value); 187 const String8 key(reply.readString8()); 194 drmConstraints->put(&key, data); 216 const String8 key(reply.readString8()); 223 drmMetadata->put(&key, data); 265 const String8 key = keyIt.next(); local 266 data.writeString8(key); 310 const String8 key = keyIt.next(); local 886 const String8 key = keyIt.next(); local 916 const String8 key = keyIt.next(); local 1039 const String8 key = keyIt.next(); local [all...] |
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 613 String8 key = mSupportInfoToPlugInIdMap.valueFor(drmSupportInfo); local 614 IDrmEngine& drmEngine = mPlugInManager.getPlugIn(key); 617 plugInId = key;
|
/frameworks/av/drm/libdrmframework/plugins/common/util/include/ |
H A D | SessionMap.h | 45 * @param key - key or Session ID 48 * @return boolean result of adding value. returns false if key is already exist. 50 bool addValue(int key, TValue value) { argument 52 if (!isCreatedInternal(key)) { 53 map.add(key, value); 60 * returns the session object by the key 62 * @param key - key or Session ID 64 * @return session object as per the key 66 getValue(int key) argument 104 removeValue(int key) argument 117 isCreated(int key) argument 167 isCreatedInternal(int key) argument 178 getValueInternal(int key) argument [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/ |
H A D | FwdLockConv.c | 229 memset(sessionPtrs[sessionId], 0, sizeof *sessionPtrs[sessionId]); // Zero out key data. 236 * Derives cryptographically independent keys for encryption and signing from the session key. 247 unsigned char key[KEY_SIZE]; member in struct:FwdLockConv_DeriveKeys_Data 256 // Encrypt the 16-byte value {0, 0, ..., 0} to produce the encryption key. 258 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys); 259 if (AES_set_encrypt_key(pData->key, KEY_SIZE_IN_BITS, 263 // Encrypt the 16-byte value {1, 0, ..., 0} to produce the signing key. 265 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys); 267 HMAC_Init_ex(&pSession->signingContext, pData->key, KEY_SIZE, EVP_sha1(), NULL); 271 memset(pData, 0, sizeof pData); // Zero out key dat [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
H A D | FwdLockFile.c | 158 memset(sessionPtrs[sessionId], 0, sizeof *sessionPtrs[sessionId]); // Zero out key data. 165 * Derives keys for encryption and signing from the encrypted session key. 169 * @return A Boolean value indicating whether key derivation was successful. 176 unsigned char key[KEY_SIZE]; member in struct:FwdLockFile_DeriveKeys_Data 182 pSession->encryptedSessionKeyLength, pData->key, KEY_SIZE); 184 if (AES_set_encrypt_key(pData->key, KEY_SIZE_IN_BITS, &pData->sessionRoundKeys) != 0) { 187 // Encrypt the 16-byte value {0, 0, ..., 0} to produce the encryption key. 189 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys); 190 if (AES_set_encrypt_key(pData->key, KEY_SIZE_IN_BITS, 194 // Encrypt the 16-byte value {1, 0, ..., 0} to produce the signing key [all...] |
/frameworks/av/include/drm/ |
H A D | DrmConstraints.h | 68 * Iterator for key 119 String8 key = keyIt.next(); local 120 const char* value = this->getAsByteArray(&key); 137 * Adds constraint information as <key, value> pair to this instance 139 * @param[in] key Key to add 143 status_t put(const String8* key, const char* value); 146 * Retrieves the value of given key 148 * @param key Key whose value to be retrieved 151 String8 get(const String8& key) const; 154 * Retrieves the value as byte array of given key [all...] |
H A D | DrmMetadata.h | 33 * Iterator for key 82 String8 key = keyIt.next(); local 83 const char* value = this->getAsByteArray(&key); 94 status_t put(const String8* key, const char* value); 95 String8 get(const String8& key) const; 96 const char* getAsByteArray(const String8* key) const; 101 const char* getValue(const String8* key) const;
|
/frameworks/av/libvideoeditor/lvpp/ |
H A D | VideoEditorPlayer.cpp | 165 status_t VideoEditorPlayer::setParameter(int key, const Parcel &request) { argument 170 status_t VideoEditorPlayer::getParameter(int key, Parcel *reply) { argument
|
/frameworks/av/media/libmedia/ |
H A D | AudioParameter.cpp | 46 String8 key = String8(pair, eqIdx); local 53 if (mParameters.indexOfKey(key) < 0) { 54 mParameters.add(key, value); 56 mParameters.replaceValueFor(key, value); 59 ALOGV("AudioParameter() cstor empty key value pair"); 86 status_t AudioParameter::add(const String8& key, const String8& value) argument 88 if (mParameters.indexOfKey(key) < 0) { 89 mParameters.add(key, value); 92 mParameters.replaceValueFor(key, value); 97 status_t AudioParameter::addInt(const String8& key, cons argument 108 addFloat(const String8& key, const float value) argument 119 remove(const String8& key) argument 129 get(const String8& key, String8& value) argument 139 getInt(const String8& key, int& value) argument 155 getFloat(const String8& key, float& value) argument 171 getAt(size_t index, String8& key, String8& value) argument [all...] |
H A D | ICrypto.cpp | 96 const uint8_t key[16], 110 if (key == NULL) { 111 key = kDummy; 118 data.write(key, 16); 231 uint8_t key[16]; local 232 data.read(key, sizeof(key)); 260 key, 94 decrypt( bool secure, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const void *srcPtr, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
|
H A D | IMediaMetadataRetriever.cpp | 188 String8 key = data.readString8(); local 190 headers.add(key, value);
|
H A D | IMediaPlayer.cpp | 276 status_t setParameter(int key, const Parcel& request) argument 280 data.writeInt32(key); 288 status_t getParameter(int key, Parcel *reply) argument 292 data.writeInt32(key); 362 String8 key = data.readString8(); local 364 headers.add(key, value); 494 int key = data.readInt32(); local 502 reply->writeInt32(setParameter(key, request));
|
H A D | Metadata.cpp | 27 // This file contains code to serialize Metadata triples (key, type, 91 bool Metadata::appendBool(int key, bool val) argument 93 if (!checkKey(key)) { 100 // 4 int32s: size, key, type, value. 102 ok = ok && mData->writeInt32(key) == OK; 111 bool Metadata::appendInt32(int key, int32_t val) argument 113 if (!checkKey(key)) { 120 // 4 int32s: size, key, type, value. 122 ok = ok && mData->writeInt32(key) == OK; 131 // Check the key ( 134 checkKey(int key) argument [all...] |
H A D | mediaplayer.cpp | 597 status_t MediaPlayer::setParameter(int key, const Parcel& request) argument 599 ALOGV("MediaPlayer::setParameter(%d)", key); 602 return mPlayer->setParameter(key, request); 608 status_t MediaPlayer::getParameter(int key, Parcel *reply) argument 610 ALOGV("MediaPlayer::getParameter(%d)", key); 613 return mPlayer->getParameter(key, reply);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | Crypto.cpp | 146 const uint8_t key[16], 164 secure, key, iv, mode, srcPtr, subSamples, numSubSamples, dstPtr, 144 decrypt( bool secure, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const void *srcPtr, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
|
H A D | MediaPlayerService.cpp | 1002 status_t MediaPlayerService::Client::setParameter(int key, const Parcel &request) { argument 1003 ALOGV("[%d] setParameter(%d)", mConnId, key); 1006 return p->setParameter(key, request); 1009 status_t MediaPlayerService::Client::getParameter(int key, Parcel *reply) { argument 1010 ALOGV("[%d] getParameter(%d)", mConnId, key); 1013 return p->getParameter(key, reply);
|
H A D | MidiFile.h | 57 virtual status_t setParameter(int key, const Parcel &request) { argument 60 virtual status_t getParameter(int key, Parcel *reply) { argument
|
H A D | StagefrightPlayer.cpp | 179 status_t StagefrightPlayer::setParameter(int key, const Parcel &request) { argument 180 ALOGV("setParameter(key=%d)", key); 181 return mPlayer->setParameter(key, request); 184 status_t StagefrightPlayer::getParameter(int key, Parcel *reply) { argument 186 return mPlayer->getParameter(key, reply);
|
H A D | StagefrightRecorder.cpp | 578 const String8 &key, const String8 &value) { 579 ALOGV("setParameter: key (%s) => value (%s)", key.string(), value.string()); 580 if (key == "max-duration") { 585 } else if (key == "max-filesize") { 590 } else if (key == "interleave-duration-us") { 595 } else if (key == "param-movie-time-scale") { 600 } else if (key == "param-use-64bit-offset") { 605 } else if (key == "param-geotag-longitude") { 610 } else if (key 577 setParameter( const String8 &key, const String8 &value) argument [all...] |
H A D | TestPlayerStub.h | 99 virtual status_t setParameter(int key, const Parcel &request) { argument 100 return mPlayer->setParameter(key, request); 102 virtual status_t getParameter(int key, Parcel *reply) { argument 103 return mPlayer->getParameter(key, reply);
|