Searched defs:value (Results 1 - 25 of 796) sorted by path

1234567891011>>

/frameworks/av/camera/
H A DCameraParameters.cpp221 // Find the value.
238 void CameraParameters::set(const char *key, const char *value) argument
246 if (strchr(value, '=') || strchr(value, ';')) {
247 //XXX ALOGE("Value \"%s\"contains invalid character (= or ;)", value);
251 mMap.replaceValueFor(String8(key), String8(value));
254 void CameraParameters::set(const char *key, int value) argument
257 sprintf(str, "%d", value);
261 void CameraParameters::setFloat(const char *key, float value) argument
264 snprintf(str, sizeof(str), "%g", value);
[all...]
H A DCameraParameters2.cpp75 // Find the value.
92 void CameraParameters2::set(const char *key, const char *value) argument
100 if (strchr(value, '=') || strchr(value, ';')) {
101 //XXX ALOGE("Value \"%s\"contains invalid character (= or ;)", value);
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, int value)
113 sprintf(str, "%d", value);
[all...]
/frameworks/av/cmds/screenrecord/
H A DFrameOutput.cpp32 inline void FrameOutput::setValueLE(uint8_t* buf, uint32_t value) { argument
37 buf[0] = (uint8_t) value;
38 buf[1] = (uint8_t) (value >> 8);
39 buf[2] = (uint8_t) (value >> 16);
40 buf[3] = (uint8_t) (value >> 24);
H A Dscreenrecord.cpp244 // supply a rotation value to the display projection.
818 long value; local
821 value = strtol(str, &endptr, 10);
824 *pValue = value;
827 *pValue = value * 1000000; // check for overflow?
830 fprintf(stderr, "Unrecognized value: %s\n", str);
965 fprintf(stderr, "getopt_long returned unexpected value 0x%x\n", ic);
/frameworks/av/drm/common/
H A DDrmConstraints.cpp32 status_t DrmConstraints::put(const String8* key, const char* value) { argument
33 int length = strlen(value);
36 strncpy(charValue, value, length);
109 String8 value = String8(mDrmConstraints->mConstraintMap.editValueAt(mIndex)); local
111 return value;
H A DDrmInfo.cpp44 status_t DrmInfo::put(const String8& key, const String8& value) { argument
45 mAttributes.add(key, value);
107 String8& value = mDrmInfo->mAttributes.editValueAt(mIndex); local
109 return value;
H A DDrmInfoRequest.cpp41 status_t DrmInfoRequest::put(const String8& key, const String8& value) { argument
42 mRequestInformationMap.add(key, value);
102 String8& value = mDrmInfoRequest->mRequestInformationMap.editValueAt(mIndex); local
104 return value;
H A DDrmMetadata.cpp26 const char* value) {
27 if((value != NULL) && (key != NULL)) {
28 int length = strlen(value);
31 memcpy(charValue, value, length);
114 String8 value = String8(mDrmMetadata->mMetadataMap.editValueAt(mIndex)); local
116 return value;
25 put(const String8* key, const char* value) argument
H A DDrmSupportInfo.cpp132 String8& value = mDrmSupportInfo->mFileSuffixVector.editItemAt(mIndex); local
134 return value;
156 String8& value = mDrmSupportInfo->mMimeTypeVector.editItemAt(mIndex); local
158 return value;
H A DIDrmManagerService.cpp82 int value = data.readInt32(); local
83 handle->copyControlVector.add(key, value);
89 String8 value = data.readString8(); local
90 handle->extendedData.add(key, value);
257 const String8 value = drmInfo->get(key); local
258 data.writeString8((value == String8("")) ? String8("NULL") : value);
302 const String8 value = drmInforequest->get(key); local
305 sscanf(value.string(), "FileDescriptor[%d]", &fd);
308 data.writeString8((value
865 const char* value = drmConstraints->getAsByteArray(&key); local
897 const char* value = drmMetadata->getAsByteArray(&key); local
1020 const String8 value = drmInfo->get(key); local
[all...]
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClientImpl.cpp55 char value[PROPERTY_VALUE_MAX]; local
56 if (property_get("drm.service.enabled", value, NULL) == 0) {
/frameworks/av/drm/libdrmframework/plugins/common/util/include/
H A DSessionMap.h42 * Adds a new value in the session map table. It expects memory to be allocated already
46 * @param value - session object to add
48 * @return boolean result of adding value. returns false if key is already exist.
50 bool addValue(int key, TValue value) { argument
53 map.add(key, value);
84 * @param index - index of the value required
89 TValue value = NULL; local
93 value = map.valueAt(index);
95 return value;
101 * @param key - key of the value t
142 deleteValue(TValue value) argument
179 TValue value = NULL; local
[all...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
H A DFwdLockConv.c215 * @return A Boolean value indicating whether the session ID is in range and currently in use.
246 unsigned char value[KEY_SIZE]; member in struct:FwdLockConv_DeriveKeys_Data
258 // Encrypt the 16-byte value {0, 0, ..., 0} to produce the encryption key.
259 memset(pData->value, 0, KEY_SIZE);
260 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys);
265 // Encrypt the 16-byte value {1, 0, ..., 0} to produce the signing key.
266 ++pData->value[0];
267 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys);
286 * @return A Boolean value indicating whether the given character is valid in a boundary.
300 * @return A Boolean value indicatin
[all...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DFwdLockFile.c169 * @return A Boolean value indicating whether key derivation was successful.
175 unsigned char value[KEY_SIZE]; member in struct:FwdLockFile_DeriveKeys_Data
190 // Encrypt the 16-byte value {0, 0, ..., 0} to produce the encryption key.
191 memset(pData->value, 0, KEY_SIZE);
192 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys);
197 // Encrypt the 16-byte value {1, 0, ..., 0} to produce the signing key.
198 ++pData->value[0];
199 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys);
345 // The return value should be the file position that lseek64() would have returned
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DDrmPlugin.h132 const String8& name, String8& value) const;
135 const String8& name, Vector<uint8_t>& value) const {
137 UNUSED(value);
142 const String8& name, const String8& value) {
144 UNUSED(value);
149 const String8& name, const Vector<uint8_t>& value) {
151 UNUSED(value);
141 setPropertyString( const String8& name, const String8& value) argument
148 setPropertyByteArray( const String8& name, const Vector<uint8_t>& value) argument
H A DJsonWebKey.cpp135 String8 key, value; local
139 findValue(kKeyTypeTag, &value);
140 if (0 != value.compare(kSymmetricKeyValue))
154 void JsonWebKey::findValue(const String8 &key, String8* value) { argument
155 value->clear();
163 value->setTo(valueToken);
/frameworks/av/drm/mediadrm/plugins/mock/
H A DMockDrmCryptoPlugin.cpp377 status_t MockDrmPlugin::getPropertyString(String8 const &name, String8 &value) const
385 value = mStringProperties.valueAt(index);
390 Vector<uint8_t> &value) const
398 value = mByteArrayProperties.valueAt(index);
403 String8 const &value)
406 ALOGD("MockDrmPlugin::setPropertyString(name=%s, value=%s)",
407 name.string(), value.string());
411 sscanf(value.string(), "%d %d", &code, &extra);
431 mStringProperties.add(name, value);
437 Vector<uint8_t> const &value)
402 setPropertyString(String8 const &name, String8 const &value) argument
436 setPropertyByteArray(String8 const &name, Vector<uint8_t> const &value) argument
[all...]
/frameworks/av/include/camera/
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.
119 ssize_t add(const KeyT& key, const ValueT& value) { argument
120 return mList.add(Pair(key, value));
168 ssize_t replaceValueFor(const KeyT& key, const ValueT& value) {
170 return add(key, value);
177 Pair(const KeyT& key, const ValueT& value) :
179 mValue(value) {}
[all...]
/frameworks/av/include/drm/
H A DDrmConstraints.h120 const char* value = this->getAsByteArray(&key); local
121 if (NULL != value) {
122 delete[] value;
123 value = NULL;
137 * Adds constraint information as <key, value> pair to this instance
140 * @param[in] value Value 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
149 * @return The value
[all...]
H A DDrmMetadata.h83 const char* value = this->getAsByteArray(&key); local
84 if (NULL != value) {
85 delete[] value;
86 value = NULL;
94 status_t put(const String8* key, const char* value);
/frameworks/av/media/img_utils/src/
H A DTiffEntry.cpp37 const sp<TiffIfd>* TiffEntry::forceValidType<sp<TiffIfd> >(TagType type, const sp<TiffIfd>* value) { argument
39 return value;
47 const uint8_t* TiffEntry::forceValidType<uint8_t>(TagType type, const uint8_t* value) { argument
49 return value;
57 const int8_t* TiffEntry::forceValidType<int8_t>(TagType type, const int8_t* value) { argument
59 return value;
67 const uint16_t* TiffEntry::forceValidType<uint16_t>(TagType type, const uint16_t* value) { argument
69 return value;
77 const int16_t* TiffEntry::forceValidType<int16_t>(TagType type, const int16_t* value) { argument
79 return value;
87 forceValidType(TagType type, const uint32_t* value) argument
97 forceValidType(TagType type, const int32_t* value) argument
107 forceValidType(TagType type, const double* value) argument
117 forceValidType(TagType type, const float* value) argument
[all...]
/frameworks/av/media/libeffects/preprocessing/
H A DPreProcessing.cpp79 int (* set_parameter)(preproc_effect_t *fx, void *param, void *value);
80 int (* get_parameter)(preproc_effect_t *fx, void *param, uint32_t *size, void *value);
388 ALOGW("AgcSetParameter() unknown param %08x value %08x", param, *(uint32_t *)pValue);
473 ALOGW("AecGetParameter() unknown param %08x value %08x", param, *(uint32_t *)pValue);
484 uint32_t value = *(uint32_t *)pValue; local
489 status = effect->session->apm->set_stream_delay_ms(value/1000);
490 ALOGV("AecSetParameter() echo delay %d us, status %d", value, status);
493 ALOGW("AecSetParameter() unknown param %08x value %08x", param, *(uint32_t *)pValue);
/frameworks/av/media/libmedia/
H A DAudioParameter.cpp48 String8 value; local
50 value = String8("");
52 value = String8(pair + eqIdx + 1);
55 mParameters.add(key, value);
57 mParameters.replaceValueFor(key, value);
60 ALOGV("AudioParameter() cstor empty key value pair");
87 status_t AudioParameter::add(const String8& key, const String8& value) argument
90 mParameters.add(key, value);
93 mParameters.replaceValueFor(key, value);
98 status_t AudioParameter::addInt(const String8& key, const int value) argument
109 addFloat(const String8& key, const float value) argument
130 get(const String8& key, String8& value) argument
140 getInt(const String8& key, int& value) argument
156 getFloat(const String8& key, float& value) argument
172 getAt(size_t index, String8& key, String8& value) argument
[all...]
H A DAudioSystem.cpp113 status_t AudioSystem::setMasterVolume(float value) argument
117 af->setMasterVolume(value);
145 status_t AudioSystem::setStreamVolume(audio_stream_type_t stream, float value, argument
151 af->setStreamVolume(stream, value, output);
220 // change this value to change volume scaling
399 status_t AudioSystem::setVoiceVolume(float value) argument
403 return af->setVoiceVolume(value);
H A DCharacterEncodingDetector.cpp47 void CharacterEncodingDetector::addTag(const char *name, const char *value) { argument
49 mValues.push_back(value);
56 status_t CharacterEncodingDetector::getTag(int index, const char **name, const char**value) {
62 *value = mValues.getEntry(index);
66 static bool isPrintableAscii(const char *value, size_t len) { argument
68 if ((value[i] & 0x80) || value[i] < 0x20 || value[i] == 0x7f) {
96 const char *value = mValues.getEntry(i); local
97 if (!isPrintableAscii(value, strle
137 const char *value = mValues.getEntry(i); local
[all...]

Completed in 529 milliseconds

1234567891011>>