Lines Matching full:value
59 int property_set(const char *key, const char *value)
65 if(value == 0) value = "";
68 if(strlen(value) >= PROP_VALUE_MAX) return -1;
72 strcpy((char*) msg.value, value);
77 int property_get(const char *key, char *value, const char *default_value)
81 len = __system_property_get(key, value);
88 memcpy(value, default_value, len + 1);
93 int property_list(void (*propfn)(const char *key, const char *value, void *cookie),
97 char value[PROP_VALUE_MAX];
102 __system_property_read(pi, name, value);
103 propfn(name, value, cookie);
175 int property_get(const char *key, char *value, const char *default_value)
187 strcpy(value, default_value);
188 len = strlen(value);
211 /* first byte is 0 if value not defined, 1 if found */
214 strcpy(value, default_value);
215 len = strlen(value);
218 * If the value isn't defined, hand back an empty string and
223 value[0] = '\0';
227 strcpy(value, recvBuf+1);
228 len = strlen(value);
236 // recvBuf[0], default_value, len, key, value);
242 int property_set(const char *key, const char *value)
248 //LOGV("PROPERTY SET [%s]: [%s]\n", key, value);
255 if (strlen(value) >= PROPERTY_VALUE_MAX) return -1;
261 strcpy(sendBuf+1+PROPERTY_KEY_MAX, value);
279 int property_list(void (*propfn)(const char *key, const char *value, void *cookie),
298 int property_get(const char *key, char *value, const char *default_value)
320 memcpy(value, default_value, len + 1);
322 memcpy(value, p, len);
323 value[len] = 0;
332 int property_set(const char *key, const char *value)
339 if(strlen(value) >= PROPERTY_VALUE_MAX) return -1;
350 snprintf( temp, sizeof(temp), "%s=%s", ename, value);
355 r = setenv(ename, value, 1);
362 int property_list(void (*propfn)(const char *key, const char *value, void *cookie),