Lines Matching refs:value

34 int property_set(const char *key, const char *value)
36 return __system_property_set(key, value);
39 int property_get(const char *key, char *value, const char *default_value)
43 len = __system_property_get(key, value);
50 memcpy(value, default_value, len + 1);
55 int property_list(void (*propfn)(const char *key, const char *value, void *cookie),
59 char value[PROP_VALUE_MAX];
64 __system_property_read(pi, name, value);
65 propfn(name, value, cookie);
137 int property_get(const char *key, char *value, const char *default_value)
149 strcpy(value, default_value);
150 len = strlen(value);
173 /* first byte is 0 if value not defined, 1 if found */
176 strcpy(value, default_value);
177 len = strlen(value);
180 * If the value isn't defined, hand back an empty string and
185 value[0] = '\0';
189 strcpy(value, recvBuf+1);
190 len = strlen(value);
198 // recvBuf[0], default_value, len, key, value);
204 int property_set(const char *key, const char *value)
210 //ALOGV("PROPERTY SET [%s]: [%s]\n", key, value);
217 if (strlen(value) >= PROPERTY_VALUE_MAX) return -1;
223 strcpy(sendBuf+1+PROPERTY_KEY_MAX, value);
241 int property_list(void (*propfn)(const char *key, const char *value, void *cookie),
260 int property_get(const char *key, char *value, const char *default_value)
282 memcpy(value, default_value, len + 1);
284 memcpy(value, p, len);
285 value[len] = 0;
294 int property_set(const char *key, const char *value)
301 if(strlen(value) >= PROPERTY_VALUE_MAX) return -1;
312 snprintf( temp, sizeof(temp), "%s=%s", ename, value);
317 r = setenv(ename, value, 1);
324 int property_list(void (*propfn)(const char *key, const char *value, void *cookie),