Searched refs:value (Results 1 - 25 of 2087) sorted by path

1234567891011>>

/frameworks/av/camera/
H A DCameraBase.cpp112 char value[PROPERTY_VALUE_MAX]; local
113 property_get("config.disable_cameraservice", value, "0");
114 if (strncmp(value, "0", 2) != 0 && strncasecmp(value, "false", 6) != 0) {
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/camera/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);
119 // Example value: "480x320". Read/Write.
122 // Example value: "800x600,480x320". Read only.
128 // Example value: "10500,26623"
136 // Example value: "(10500,26623),(15000,26623),(30000,30000)"
140 // PIXEL_FORMAT_YUV420SP. Example value: "yuv420sp" or PIXEL_FORMAT_XXX
144 // Example value: "yuv420sp,yuv422i-yuyv". Read only.
148 // Example value
[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.
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/camera/ndk/impl/
H A DACameraDevice.cpp479 int value; local
480 int err = (*anw->query)(anw, NATIVE_WINDOW_CONCRETE_TYPE, &value);
481 if (err != OK || value != NATIVE_WINDOW_SURFACE) {
497 int value; local
498 int err = (*anw->query)(anw, NATIVE_WINDOW_CONCRETE_TYPE, &value);
499 if (err != OK || value != NATIVE_WINDOW_SURFACE) {
H A DACameraManager.cpp71 char value[PROPERTY_VALUE_MAX]; local
72 property_get("config.disable_cameraservice", value, "0");
73 return (strncmp(value, "0", 2) != 0 && strncasecmp(value, "false", 6) != 0);
/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 DFrameOutput.h70 // Put a 32-bit value into a buffer, in little-endian byte order.
71 static void setValueLE(uint8_t* buf, uint32_t value);
H A Dscreenrecord.cpp248 // supply a rotation value to the display projection.
833 long value; local
836 value = strtol(str, &endptr, 10);
839 *pValue = value;
842 *pValue = value * 1000000; // check for overflow?
845 fprintf(stderr, "Unrecognized value: %s\n", str);
984 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.cpp83 int value = data.readInt32(); local
84 handle->copyControlVector.add(key, value);
90 String8 value = data.readString8(); local
91 handle->extendedData.add(key, value);
258 const String8 value = drmInfo->get(key); local
259 data.writeString8((value == String8("")) ? String8("NULL") : value);
303 const String8 value = drmInforequest->get(key); local
306 if (sscanf(value.string(), "FileDescriptor[%d]", &fd) != 1) {
307 sscanf(value
870 const char* value = drmConstraints->getAsByteArray(&key); local
902 const char* value = drmMetadata->getAsByteArray(&key); local
1033 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.c216 * @return A Boolean value indicating whether the session ID is in range and currently in use.
247 unsigned char value[KEY_SIZE]; member in struct:FwdLockConv_DeriveKeys_Data
259 // Encrypt the 16-byte value {0, 0, ..., 0} to produce the encryption key.
260 memset(pData->value, 0, KEY_SIZE);
261 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys);
266 // Encrypt the 16-byte value {1, 0, ..., 0} to produce the signing key.
267 ++pData->value[0];
268 AES_encrypt(pData->value, pData->key, &pData->sessionRoundKeys);
287 * @return A Boolean value indicating whether the given character is valid in a boundary.
301 * @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/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp64 String8 value("dummy_available_time");
66 charValue = new char[value.length() + 1];
67 strncpy(charValue, value.string(), value.length());
68 charValue[value.length()] = '\0';
/frameworks/av/drm/libmediadrm/
H A DDrm.cpp582 status_t Drm::getPropertyString(String8 const &name, String8 &value ) const {
593 return mPlugin->getPropertyString(name, value);
596 status_t Drm::getPropertyByteArray(String8 const &name, Vector<uint8_t> &value ) const {
607 return mPlugin->getPropertyByteArray(name, value);
610 status_t Drm::setPropertyString(String8 const &name, String8 const &value ) const {
621 return mPlugin->setPropertyString(name, value);
625 Vector<uint8_t> const &value ) const {
636 return mPlugin->setPropertyByteArray(name, value);
H A DDrmHal.cpp98 keyValue.value = toHidlString(keyedVector.valueAt(i));
109 toString8(hKeyedVector[i].value));
728 status_t DrmHal::getPropertyString(String8 const &name, String8 &value ) const {
740 value = toString8(hValue);
749 status_t DrmHal::getPropertyByteArray(String8 const &name, Vector<uint8_t> &value ) const {
761 value = toVector(hValue);
770 status_t DrmHal::setPropertyString(String8 const &name, String8 const &value ) const {
778 toHidlString(value));
783 Vector<uint8_t> const &value ) const {
791 toHidlVec(value));
[all...]
H A DDrmPluginPath.cpp27 char value[PROPERTY_VALUE_MAX]; local
28 if (property_get("drm.64bit.enabled", value, NULL) == 0) {
H A DIDrm.cpp237 String8 value = reply.readString8(); local
238 infoMap.add(key, value);
339 virtual status_t getPropertyString(String8 const &name, String8 &value) const {
349 value = reply.readString8();
353 virtual status_t getPropertyByteArray(String8 const &name, Vector<uint8_t> &value) const {
363 readVector(reply, value);
367 virtual status_t setPropertyString(String8 const &name, String8 const &value) const {
372 data.writeString8(value);
382 Vector<uint8_t> const &value) const {
387 writeVector(data, value);
642 String8 key, value; local
790 String8 value; local
801 Vector<uint8_t> value; local
812 String8 value = data.readString8(); local
821 Vector<uint8_t> value; local
[all...]

Completed in 6172 milliseconds

1234567891011>>