Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 147) sorted by relevance

123456

/bionic/tests/
Deventfd_test.cpp31 eventfd_t value = 123; in TEST() local
32 ASSERT_EQ(0, eventfd_read(fd, &value)); in TEST()
33 ASSERT_EQ(kInitialValue, value); in TEST()
36 ASSERT_EQ(-1, eventfd_read(fd, &value)); in TEST()
44 ASSERT_EQ(0, eventfd_read(fd, &value)); in TEST()
45 ASSERT_EQ(3U, value); in TEST()
56 eventfd_t value = 123; in TEST() local
57 ASSERT_EQ(0, eventfd_read(fd, &value)); in TEST()
58 ASSERT_EQ(kInitialValue, value); in TEST()
66 value = 123; in TEST()
[all …]
Dsetjmp_test.cpp25 int value; in TEST() local
27 if ((value = setjmp(jb)) == 0) { in TEST()
31 ASSERT_EQ(123, value); in TEST()
36 int value; in TEST() local
38 if ((value = _setjmp(jb)) == 0) { in TEST()
42 ASSERT_EQ(456, value); in TEST()
47 int value; in TEST() local
49 if ((value = sigsetjmp(jb, 0)) == 0) { in TEST()
53 ASSERT_EQ(789, value); in TEST()
58 int value; in TEST() local
[all …]
Dsystem_properties_test.cpp69 char value[PROP_VALUE_MAX]; in hierarchical_test_callback() local
71 __system_property_read(pi, name, value); in hierarchical_test_callback()
76 ASSERT_EQ(3, sscanf(value, "value_%d.%d.%d", &value_i, &value_j, &value_k)); in hierarchical_test_callback()
236 char value[PROP_VALUE_MAX]; in TEST() local
237 EXPECT_EQ(6, system_properties.Read(system_properties.FindNth(0), name, value)); in TEST()
239 EXPECT_STREQ("value1", value); in TEST()
240 EXPECT_EQ(6, system_properties.Read(system_properties.FindNth(1), name, value)); in TEST()
242 EXPECT_STREQ("value2", value); in TEST()
243 EXPECT_EQ(6, system_properties.Read(system_properties.FindNth(2), name, value)); in TEST()
245 EXPECT_STREQ("value3", value); in TEST()
[all …]
Dsstream_test.cpp26 static void CheckOverflow(T expected, const char* value, bool should_overflow) { in CheckOverflow() argument
27 std::stringstream ss(value); in CheckOverflow()
30 EXPECT_FALSE(ss.bad()) << value << ' ' << int64_t(result); in CheckOverflow()
31 EXPECT_EQ(should_overflow, ss.fail()) << value << ' ' << int64_t(result); in CheckOverflow()
33 ASSERT_EQ(expected, result) << value; in CheckOverflow()
/bionic/libc/malloc_debug/
DConfig.cpp143 bool Config::ParseValue(const std::string& option, const std::string& value, size_t min_value, in ParseValue() argument
145 assert(!value.empty()); in ParseValue()
150 long long_value = strtol(value.c_str(), &end, 10); in ParseValue()
155 if (end == value.c_str()) { in ParseValue()
159 if (static_cast<size_t>(end - value.c_str()) != value.size()) { in ParseValue()
184 bool Config::ParseValue(const std::string& option, const std::string& value, size_t default_value, in ParseValue() argument
186 if (value.empty()) { in ParseValue()
190 return ParseValue(option, value, min_value, max_value, new_value); in ParseValue()
193 bool Config::SetGuard(const std::string& option, const std::string& value) { in SetGuard() argument
194 if (value.empty()) { in SetGuard()
[all …]
DConfig.h102 bool ParseValue(const std::string& option, const std::string& value, size_t default_value,
105 bool ParseValue(const std::string& option, const std::string& value, size_t min_value,
108 bool SetGuard(const std::string& option, const std::string& value);
109 bool SetFrontGuard(const std::string& option, const std::string& value);
110 bool SetRearGuard(const std::string& option, const std::string& value);
112 bool SetFill(const std::string& option, const std::string& value);
113 bool SetFillOnAlloc(const std::string& option, const std::string& value);
114 bool SetFillOnFree(const std::string& option, const std::string& value);
116 bool SetBacktrace(const std::string& option, const std::string& value);
117 bool SetBacktraceEnableOnSignal(const std::string& option, const std::string& value);
[all …]
DDebugData.h54 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetPointer() local
55 return reinterpret_cast<void*>(value + pointer_offset_); in GetPointer()
59 uintptr_t value = reinterpret_cast<uintptr_t>(pointer); in GetHeader() local
60 return reinterpret_cast<Header*>(value - pointer_offset_); in GetHeader()
64 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetFrontGuard() local
65 return reinterpret_cast<uint8_t*>(value + front_guard->offset()); in GetFrontGuard()
69 uintptr_t value = reinterpret_cast<uintptr_t>(GetPointer(header)); in GetRearGuard() local
70 return reinterpret_cast<uint8_t*>(value + header->size); in GetRearGuard()
/bionic/libc/bionic/
Dsystem_property_set.cpp85 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()
[all …]
Deventfd.cpp40 int eventfd_read(int fd, eventfd_t* value) { in eventfd_read() argument
41 return (read(fd, value, sizeof(*value)) == sizeof(*value)) ? 0 : -1; in eventfd_read()
44 int eventfd_write(int fd, eventfd_t value) { in eventfd_write() argument
45 return (write(fd, &value, sizeof(value)) == sizeof(value)) ? 0 : -1; in eventfd_write()
Dsystem_property_api.cpp73 int __system_property_read(const prop_info* pi, char* name, char* value) { in __system_property_read() argument
74 return system_properties.Read(pi, name, value); in __system_property_read()
80 const char* value, uint32_t serial), in __system_property_read_callback() argument
86 int __system_property_get(const char* name, char* value) { in __system_property_get() argument
87 return system_properties.Get(name, value); in __system_property_get()
91 int __system_property_update(prop_info* pi, const char* value, unsigned int len) { in __system_property_update() argument
92 return system_properties.Update(pi, value, len); in __system_property_update()
96 int __system_property_add(const char* name, unsigned int namelen, const char* value, in __system_property_add() argument
98 return system_properties.Add(name, namelen, value, valuelen); in __system_property_add()
Dsetjmp_cookie.cpp43 long value; in __libc_init_setjmp_cookie() local
44 __libc_safe_arc4random_buf(&value, sizeof(value)); in __libc_init_setjmp_cookie()
47 globals->setjmp_cookie = value & ~1; in __libc_init_setjmp_cookie()
Dbionic_futex.cpp35 static inline __always_inline int FutexWithTimeout(volatile void* ftx, int op, int value, in FutexWithTimeout() argument
58 return __futex(ftx, op, value, futex_abs_timeout, bitset); in FutexWithTimeout()
61 int __futex_wait_ex(volatile void* ftx, bool shared, int value, bool use_realtime_clock, in __futex_wait_ex() argument
63 return FutexWithTimeout(ftx, (shared ? FUTEX_WAIT_BITSET : FUTEX_WAIT_BITSET_PRIVATE), value, in __futex_wait_ex()
/bionic/linker/
Dlinker_config.cpp73 int next_token(std::string* name, std::string* value, std::string* error_msg) { in next_token() argument
92 *value = android::base::Trim(line.substr(found_assign + 1)); in next_token()
98 *value = android::base::Trim(line.substr(found_append + 2)); in next_token()
149 PropertyValue(std::string&& value, size_t lineno) in PropertyValue() argument
150 : value_(std::move(value)), lineno_(lineno) {} in PropertyValue()
152 const std::string& value() const { in value() function in PropertyValue
156 void append_value(std::string&& value) { in append_value() argument
157 value_ = value_ + value; in append_value()
201 std::string value; in parse_config_file() local
204 int result = cp.next_token(&name, &value, &error); in parse_config_file()
[all …]
Dlinker_sleb128.h46 size_t value = 0; in pop_front() local
47 static const size_t size = CHAR_BIT * sizeof(value); in pop_front()
57 value |= (static_cast<size_t>(byte & 127) << shift); in pop_front()
62 value |= -(static_cast<size_t>(1) << shift); in pop_front()
65 return value; in pop_front()
/bionic/libm/upstream-freebsd/lib/msun/ld128/
De_powl.c158 p.value = x; in powl()
162 q.value = y; in powl()
291 o.value = ax; in powl()
309 o.value = ax; in powl()
311 ax = o.value; in powl()
319 o.value = s_h; in powl()
322 s_h = o.value; in powl()
325 o.value = t_h; in powl()
328 t_h = o.value; in powl()
339 o.value = t_h; in powl()
[all …]
/bionic/libc/system_properties/
Dsystem_properties.cpp143 uint32_t SystemProperties::ReadMutablePropertyValue(const prop_info* pi, char* value) { in ReadMutablePropertyValue() argument
154 memcpy(value, pa->dirty_backup_area(), len + 1); in ReadMutablePropertyValue()
156 memcpy(value, pi->value, len + 1); in ReadMutablePropertyValue()
174 int SystemProperties::Read(const prop_info* pi, char* name, char* value) { in Read() argument
175 uint32_t serial = ReadMutablePropertyValue(pi, value); in Read()
199 const char* value, uint32_t serial), in ReadCallback() argument
208 callback(cookie, pi->name, pi->value, serial); in ReadCallback()
218 int SystemProperties::Get(const char* name, char* value) { in Get() argument
222 return Read(pi, nullptr, value); in Get()
224 value[0] = 0; in Get()
[all …]
Dprop_info.cpp38 prop_info::prop_info(const char* name, uint32_t namelen, const char* value, uint32_t valuelen) { in prop_info() argument
42 memcpy(this->value, value, valuelen); in prop_info()
43 this->value[valuelen] = '\0'; in prop_info()
/bionic/libc/private/
Dbionic_futex.h41 static inline __always_inline int __futex(volatile void* ftx, int op, int value, in __futex() argument
45 int result = syscall(__NR_futex, ftx, op, value, timeout, NULL, bitset); in __futex()
61 static inline int __futex_wait(volatile void* ftx, int value, const timespec* timeout) { in __futex_wait() argument
62 return __futex(ftx, FUTEX_WAIT, value, timeout, 0); in __futex_wait()
65 static inline int __futex_wait_ex(volatile void* ftx, bool shared, int value) { in __futex_wait_ex() argument
66 return __futex(ftx, (shared ? FUTEX_WAIT_BITSET : FUTEX_WAIT_BITSET_PRIVATE), value, nullptr, in __futex_wait_ex()
70 __LIBC_HIDDEN__ int __futex_wait_ex(volatile void* ftx, bool shared, int value,
DWriteProtected.h31 T value; member
59 return &contents.value;
63 return contents.value;
69 mutator(&contents.value); in mutate()
/bionic/libc/async_safe/
Dasync_safe_log.cpp159 static void format_unsigned(char* buf, size_t buf_size, uint64_t value, int base, bool caps) { in format_unsigned() argument
164 while (value) { in format_unsigned()
165 unsigned d = value % base; in format_unsigned()
166 value /= base; in format_unsigned()
195 static void format_integer(char* buf, size_t buf_size, uint64_t value, char conversion) { in format_integer() argument
206 if (is_signed && static_cast<int64_t>(value) < 0) { in format_integer()
210 value = static_cast<uint64_t>(-static_cast<int64_t>(value)); in format_integer()
212 format_unsigned(buf, buf_size, value, base, caps); in format_integer()
345 uint64_t value = reinterpret_cast<uintptr_t>(va_arg(args, void*)); in out_vformat() local
348 format_integer(buffer + 2, sizeof(buffer) - 2, value, 'x'); in out_vformat()
[all …]
/bionic/libc/system_properties/include/system_properties/
Dsystem_properties.h61 int Read(const prop_info* pi, char* name, char* value);
63 void (*callback)(void* cookie, const char* name, const char* value,
66 int Get(const char* name, char* value);
67 int Update(prop_info* pi, const char* value, unsigned int len);
68 int Add(const char* name, unsigned int namelen, const char* value, unsigned int valuelen);
76 uint32_t ReadMutablePropertyValue(const prop_info* pi, char* value);
/bionic/libc/tools/
Dgenseccomp.py20 def __init__(self, name, value): argument
22 self.begin = value
28 def add(self, name, value): argument
29 if value != self.end:
101 value = eval(token_re.sub(lambda x: str(constants[x.group(0)]),
104 constants[name] = value
110 for name, value in constants.iteritems():
116 syscalls[name] = value
127 for name, value in syscalls:
129 ranges.append(SyscallRange(name, value))
[all …]
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dldexp.c27 double value; member
41 double value; member
56 ew_u.value = (d); \
66 gh_u.value = (d); \
75 sh_u.value = (d); \
77 (d) = sh_u.value; \
/bionic/libm/upstream-freebsd/lib/msun/src/
Dmath_private.h58 long double value; member
77 long double value; member
96 double value; member
114 double value; member
133 ew_u.value = (d); \
142 ew_u.value = (d); \
151 gh_u.value = (d); \
160 gl_u.value = (d); \
171 (d) = iw_u.value; \
179 (d) = iw_u.value; \
[all …]
/bionic/tools/versioner/src/
DCompilationType.h63 int32_t value;
64 memcpy(&value, &packed, sizeof(value));
65 return std::hash<int32_t>()(value);

123456