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

1234567891011>>

/frameworks/av/camera/
H A DCameraParameters.cpp207 // 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 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.cpp81 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 DDrmManager.cpp613 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 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.c229 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 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
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/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);
331 // "false" or this key not existing means it is not supported.
348 // means it is, and "false" or this key not existing means it is
405 // is not supported if the value is not "true" or the key doe
[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;
H A DDrmMetadata.h33 * 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/include/media/
H A DAudioParameter.h54 status_t add(const String8& key, const String8& value);
55 status_t addInt(const String8& key, const int value);
56 status_t addFloat(const String8& key, const float value);
58 status_t remove(const String8& key);
60 status_t get(const String8& key, String8& value);
61 status_t getInt(const String8& key, int& value);
62 status_t getFloat(const String8& key, float& value);
63 status_t getAt(size_t index, String8& key, String8& value);
H A DICrypto.h46 const uint8_t key[16],
H A DIMediaPlayer.h64 virtual status_t setParameter(int key, const Parcel& request) = 0;
65 virtual status_t getParameter(int key, Parcel* reply) = 0;
H A DMediaPlayerInterface.h150 virtual status_t setParameter(int key, const Parcel &request) = 0;
151 virtual status_t getParameter(int key, Parcel *reply) = 0;
H A DMetadata.h111 // @param key Is the metadata Id.
115 bool appendBool(Type key, bool val);
116 bool appendInt32(Type key, int32_t val);
123 // Checks the key is valid and not already present.
124 bool checkKey(Type key);
H A Dmediaplayer.h230 status_t setParameter(int key, const Parcel& request);
231 status_t getParameter(int key, Parcel* reply);
/frameworks/av/include/media/stagefright/
H A DMediaCodec.h84 const uint8_t key[16],
H A DMetaData.h100 // Set this key to enable authoring files in 64-bit offset
182 bool remove(uint32_t key);
184 bool setCString(uint32_t key, const char *value);
185 bool setInt32(uint32_t key, int32_t value);
186 bool setInt64(uint32_t key, int64_t value);
187 bool setFloat(uint32_t key, float value);
188 bool setPointer(uint32_t key, void *value);
191 uint32_t key,
195 bool findCString(uint32_t key, const char **value);
196 bool findInt32(uint32_t key, int32_
[all...]
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorPlayer.cpp165 status_t VideoEditorPlayer::setParameter(int key, const Parcel &request) { argument
170 status_t VideoEditorPlayer::getParameter(int key, Parcel *reply) { argument
H A DVideoEditorPlayer.h119 virtual status_t setParameter(int key, const Parcel &request);
120 virtual status_t getParameter(int key, Parcel *reply);

Completed in 202 milliseconds

1234567891011>>