Searched refs:key (Results 1 - 25 of 852) sorted by path

1234567891011>>

/frameworks/av/camera/
H A DCameraParameters.cpp213 // 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 DCameraParameters2.cpp67 // 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 DDrmConstraints.cpp32 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 DDrmInfo.cpp44 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 DDrmInfoRequest.cpp41 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 DDrmMetadata.cpp25 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 DIDrmManagerService.cpp82 DrmCopyControl key = (DrmCopyControl)data.readInt32(); local
84 handle->copyControlVector.add(key, value);
89 String8 key = data.readString8(); local
91 handle->extendedData.add(key, value);
176 const String8 key(reply.readString8());
182 drmConstraints->put(&key, data);
206 const String8 key(reply.readString8());
212 drmMetadata->put(&key, data);
256 const String8 key = keyIt.next(); local
257 data.writeString8(key);
301 const String8 key = keyIt.next(); local
868 const String8 key = keyIt.next(); local
900 const String8 key = keyIt.next(); local
1031 const String8 key = keyIt.next(); local
[all...]
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp588 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 DSessionMap.h45 * @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 DFwdLockConv.c230 memset(sessionPtrs[sessionId], 0, sizeof *sessionPtrs[sessionId]); // Zero out key data.
237 * Derives cryptographically independent keys for encryption and signing from the session key.
248 unsigned char key[KEY_SIZE]; member in struct:FwdLockConv_DeriveKeys_Data
259 // Encrypt the 16-byte value {0, 0, ..., 0} to produce the encryption key.
261 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys);
262 if (AES_set_encrypt_key(pData->key, KEY_SIZE_IN_BITS,
266 // Encrypt the 16-byte value {1, 0, ..., 0} to produce the signing key.
268 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys);
270 HMAC_Init_ex(&pSession->signingContext, pData->key, KEY_SIZE, EVP_sha1(), NULL);
274 memset(pData, 0, kSize); // Zero out key dat
[all...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DFwdLockFile.c158 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/libmediadrm/
H A DCrypto.cpp238 const uint8_t key[16],
260 key, iv, mode, pattern, srcPtr, subSamples, numSubSamples, dstPtr,
236 decrypt( DestinationType dstType, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const sp<IMemory> &sharedBuffer, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DAesCtrDecryptor.cpp29 android::status_t AesCtrDecryptor::decrypt(const android::Vector<uint8_t>& key, argument
41 AES_set_encrypt_key(key.array(), kBlockBitCount, &opensslKey);
H A DAesCtrDecryptor.h33 android::status_t decrypt(const android::Vector<uint8_t>& key, const Iv iv,
H A DJsonWebKey.cpp46 * 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 DJsonWebKey.h52 void findValue(const String8 &key, String8* value);
H A DSession.cpp55 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 DAesCtrDecryptorUnittest.cpp33 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 DMockDrmCryptoPlugin.cpp794 MockCryptoPlugin::decrypt(bool secure, const uint8_t key[16], const uint8_t iv[16], argument
799 ALOGD("MockCryptoPlugin::decrypt(secure=%d, key=%s, iv=%s, mode=%d, "
803 arrayToString(key, sizeof(key)).string(),
H A DMockDrmCryptoPlugin.h161 const uint8_t key[16], const uint8_t iv[16],
/frameworks/av/include/camera/
H A DCameraParameters.h50 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);
340 // "false" or this key not existing means it is not supported.
357 // means it is, and "false" or this key not existing means it is
414 // is not supported if the value is not "true" or the key doe
[all...]
H A DCameraParameters2.h41 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 DDrmConstraints.h68 * 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 DDrmInfo.h52 * 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 DDrmInfoRequest.h66 * 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;

Completed in 1402 milliseconds

1234567891011>>