Lines Matching refs:value

85   bool RecvInt32(int32_t* value) {  in RecvInt32()  argument
86 int result = TEMP_FAILURE_RETRY(recv(socket_.get(), value, sizeof(*value), MSG_WAITALL)); in RecvInt32()
87 return CheckSendRecvResult(result, sizeof(*value)); in RecvInt32()
119 SocketWriter& WriteUint32(uint32_t value) { in WriteUint32() argument
123 uint_buf_[uint_buf_index_++] = value; in WriteUint32()
130 SocketWriter& WriteString(const char* value) { in WriteString() argument
131 uint32_t valuelen = strlen(value); in WriteString()
138 iov_[iov_index_].iov_base = const_cast<char*>(value); in WriteString()
175 char value[PROP_VALUE_MAX]; member
214 msg->name, msg->value); in send_prop_msg()
228 char value[PROP_VALUE_MAX]; in detect_protocol_version() local
229 if (__system_property_get(kServiceVersionPropertyName, value) == 0) { in detect_protocol_version()
235 uint32_t version = static_cast<uint32_t>(atoll(value)); in detect_protocol_version()
241 kServiceVersionPropertyName, value); in detect_protocol_version()
248 int __system_property_set(const char* key, const char* value) { in __system_property_set() argument
250 if (value == nullptr) value = ""; in __system_property_set()
259 if (strlen(value) >= PROP_VALUE_MAX) return -1; in __system_property_set()
265 strlcpy(msg.value, value, sizeof msg.value); in __system_property_set()
270 if (strlen(value) >= PROP_VALUE_MAX && strncmp(key, "ro.", 3) != 0) return -1; in __system_property_set()
277 "Unable to set property \"%s\" to \"%s\": connection failed; errno=%d (%s)", key, value, in __system_property_set()
283 if (!writer.WriteUint32(PROP_MSG_SETPROP2).WriteString(key).WriteString(value).Send()) { in __system_property_set()
287 key, value, errno, strerror(errno)); in __system_property_set()
296 key, value, errno, strerror(errno)); in __system_property_set()
302 "Unable to set property \"%s\" to \"%s\": error code: 0x%x", key, value, in __system_property_set()