/frameworks/av/camera/ |
H A D | CameraParameters.cpp | 213 // Find the bounds of the key name. 218 // Create the key string. 238 void CameraParameters::set(const char *key, const char *value) argument 241 if (strchr(key, '=') || strchr(key, ';')) { 242 //XXX ALOGE("Key \"%s\"contains invalid character (= or ;)", key); 251 mMap.replaceValueFor(String8(key), String8(value)); 254 void CameraParameters::set(const char *key, int value) argument 258 set(key, str); 261 void CameraParameters::setFloat(const char *key, floa argument 291 remove(const char *key) argument [all...] |
H A D | CameraParameters2.cpp | 67 // Find the bounds of the key name. 72 // Create the key string. 92 void CameraParameters2::set(const char *key, const char *value) argument 95 if (strchr(key, '=') || strchr(key, ';')) { 96 //XXX ALOGE("Key \"%s\"contains invalid character (= or ;)", key); 105 // Replacing a value updates the key's order to be the new largest order 106 ssize_t res = mMap.replaceValueFor(String8(key), String8(value)); 107 LOG_ALWAYS_FATAL_IF(res < 0, "replaceValueFor(%s,%s) failed", key, value); 110 void CameraParameters2::set(const char *key, in [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); 175 const String8 key(reply.readString8()); 181 drmConstraints->put(&key, data); 205 const String8 key(reply.readString8()); 211 drmMetadata->put(&key, data); 255 const String8 key = keyIt.next(); local 256 data.writeString8(key); 300 const String8 key = keyIt.next(); local 863 const String8 key = keyIt.next(); local 895 const String8 key = keyIt.next(); local 1018 const String8 key = keyIt.next(); local [all...] |
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 588 String8 key = mSupportInfoToPlugInIdMap.valueFor(drmSupportInfo); local 589 IDrmEngine& drmEngine = mPlugInManager.getPlugIn(key); 592 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 258 // Encrypt the 16-byte value {0, 0, ..., 0} to produce the encryption key. 260 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys); 261 if (AES_set_encrypt_key(pData->key, KEY_SIZE_IN_BITS, 265 // Encrypt the 16-byte value {1, 0, ..., 0} to produce the signing key. 267 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys); 269 HMAC_Init_ex(&pSession->signingContext, pData->key, KEY_SIZE, EVP_sha1(), NULL); 273 memset(pData, 0, kSize); // 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 185 pSession->encryptedSessionKeyLength, pData->key, KEY_SIZE); 187 if (AES_set_encrypt_key(pData->key, KEY_SIZE_IN_BITS, &pData->sessionRoundKeys) != 0) { 190 // Encrypt the 16-byte value {0, 0, ..., 0} to produce the encryption key. 192 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys); 193 if (AES_set_encrypt_key(pData->key, KEY_SIZE_IN_BITS, 197 // Encrypt the 16-byte value {1, 0, ..., 0} to produce the signing key [all...] |
/frameworks/av/drm/mediadrm/plugins/clearkey/ |
H A D | AesCtrDecryptor.cpp | 29 android::status_t AesCtrDecryptor::decrypt(const android::Vector<uint8_t>& key, argument 41 AES_set_encrypt_key(key.array(), kBlockBitCount, &opensslKey);
|
H A D | AesCtrDecryptor.h | 33 android::status_t decrypt(const android::Vector<uint8_t>& key, const Iv iv,
|
H A D | JsonWebKey.cpp | 46 * Parses a JSON Web Key Set string, initializes a KeyMap with key id:key 47 * pairs from the JSON Web Key Set. Both key ids and keys are base64url 48 * encoded. The KeyMap contains base64url decoded key id:key pairs. 61 // all the base64 encoded keys. Each key is also stored separately as 81 ALOGE("Must have both key id and key in the JsonWebKey set."); 86 ALOGE("Failed to decode key id(%s)", encodedKeyId.string()); 91 ALOGE("Failed to decode key( 135 String8 key, value; local 154 findValue(const String8 &key, String8* value) argument [all...] |
H A D | JsonWebKey.h | 52 void findValue(const String8 &key, String8* value);
|
H A D | Session.cpp | 55 const KeyMap::value_type& key = keys.valueAt(i); local 56 mKeyMap.add(keyId, key); 76 const Vector<uint8_t>& key = mKeyMap.valueFor(keyIdVector); local 79 key, iv,
|
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/ |
H A D | AesCtrDecryptorUnittest.cpp | 33 status_t attemptDecrypt(const Key& key, const Iv& iv, const uint8_t* source, argument 37 keyVector.appendArray(key, kBlockSize); 45 void attemptDecryptExpectingSuccess(const Key& key, const Iv& iv, argument 52 ASSERT_EQ(android::OK, attemptDecrypt(key, iv, encrypted, outputBuffer, 65 Key key = { local 101 attemptDecryptExpectingSuccess<kTotalSize>(key, iv, encrypted, decrypted, 110 Key key = { local 147 attemptDecryptExpectingSuccess<kTotalSize>(key, iv, encrypted, decrypted, 156 Key key = { local 193 attemptDecryptExpectingSuccess<kTotalSize>(key, i 202 Key key = { local 251 Key key = { local 305 Key key = { local 360 Key key = { local [all...] |
/frameworks/av/drm/mediadrm/plugins/mock/ |
H A D | MockDrmCryptoPlugin.cpp | 729 MockCryptoPlugin::decrypt(bool secure, const uint8_t key[16], const uint8_t iv[16], argument 733 ALOGD("MockCryptoPlugin::decrypt(secure=%d, key=%s, iv=%s, mode=%d, src=%p, " 736 arrayToString(key, sizeof(key)).string(),
|
H A D | MockDrmCryptoPlugin.h | 162 const uint8_t key[16], const uint8_t iv[16],
|
/frameworks/av/include/camera/ |
H A D | CameraParameters.h | 50 void set(const char *key, const char *value); 51 void set(const char *key, int value); 52 void setFloat(const char *key, float value); 53 const char *get(const char *key) const; 54 int getInt(const char *key) const; 55 float getFloat(const char *key) const; 57 void remove(const char *key); 337 // "false" or this key not existing means it is not supported. 354 // means it is, and "false" or this key not existing means it is 411 // is not supported if the value is not "true" or the key doe [all...] |
H A D | CameraParameters2.h | 41 void set(const char *key, const char *value); 42 void set(const char *key, int value); 43 void setFloat(const char *key, float value); 44 // Look up string value by key. 45 // -- The string remains valid until the next set/remove of the same key, 47 const char *get(const char *key) const; 48 int getInt(const char *key) const; 49 float getFloat(const char *key) const; 58 // * NAME_NOT_FOUND - if either key has not been set previously 64 void remove(const char *key); 119 add(const KeyT& key, const ValueT& value) argument [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 | DrmInfo.h | 52 * Iterator for key 129 * Adds optional information as <key, value> pair to this instance 131 * @param[in] key Key to add 135 status_t put(const String8& key, const String8& value); 138 * Retrieves the value of given key 140 * @param key Key whose value to be retrieved 143 String8 get(const String8& key) const; 160 * Returns index of the given key 164 int indexOfKey(const String8& key) const;
|
H A D | DrmInfoRequest.h | 66 * Iterator for key 136 * Adds optional information as <key, value> pair to this instance 138 * @param[in] key Key to add 142 status_t put(const String8& key, const String8& value); 145 * Retrieves the value of given key 147 * @param key Key whose value to be retrieved 150 String8 get(const String8& key) const;
|
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;
|