/bionic/tests/ |
D | eventfd_test.cpp | 31 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 …]
|
D | setjmp_test.cpp | 32 int value; in TEST() local 34 if ((value = setjmp(jb)) == 0) { in TEST() 38 ASSERT_EQ(123, value); in TEST() 43 int value; in TEST() local 45 if ((value = _setjmp(jb)) == 0) { in TEST() 49 ASSERT_EQ(456, value); in TEST() 54 int value; in TEST() local 56 if ((value = sigsetjmp(jb, 0)) == 0) { in TEST() 60 ASSERT_EQ(789, value); in TEST() 65 int value; in TEST() local [all …]
|
D | sys_hwprobe_test.cpp | 104 EXPECT_TRUE((probes[0].value & RISCV_HWPROBE_IMA_FD) != 0); in TEST() 105 EXPECT_TRUE((probes[0].value & RISCV_HWPROBE_IMA_C) != 0); in TEST() 106 EXPECT_TRUE((probes[0].value & RISCV_HWPROBE_IMA_V) != 0); in TEST() 107 EXPECT_TRUE((probes[0].value & RISCV_HWPROBE_EXT_ZBA) != 0); in TEST() 108 EXPECT_TRUE((probes[0].value & RISCV_HWPROBE_EXT_ZBB) != 0); in TEST() 109 EXPECT_TRUE((probes[0].value & RISCV_HWPROBE_EXT_ZBS) != 0); in TEST() 112 EXPECT_TRUE((probes[1].value & RISCV_HWPROBE_MISALIGNED_MASK) == RISCV_HWPROBE_MISALIGNED_FAST); in TEST() 131 EXPECT_EQ(probes_vdso[0].value, probes_syscall[0].value); in TEST() 134 EXPECT_EQ(probes_vdso[1].value, probes_syscall[1].value); in TEST()
|
D | system_properties_test.cpp | 91 char value[PROP_VALUE_MAX]; in hierarchical_test_callback() local 93 __system_property_read(pi, name, value); in hierarchical_test_callback() 98 ASSERT_EQ(3, sscanf(value, "value_%d.%d.%d", &value_i, &value_j, &value_k)); in hierarchical_test_callback() 310 char value[PROP_VALUE_MAX]; in TEST() local 311 EXPECT_EQ(6, system_properties.Read(system_properties.FindNth(0), name, value)); in TEST() 313 EXPECT_STREQ("value1", value); in TEST() 314 EXPECT_EQ(6, system_properties.Read(system_properties.FindNth(1), name, value)); in TEST() 316 EXPECT_STREQ("value2", value); in TEST() 317 EXPECT_EQ(6, system_properties.Read(system_properties.FindNth(2), name, value)); in TEST() 319 EXPECT_STREQ("value3", value); in TEST() [all …]
|
D | sstream_test.cpp | 26 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()
|
D | gwp_asan_test.cpp | 107 std::string value = GetSysprop(prop); in SyspropRestorer() local 108 props_to_restore_.emplace_back(prop, value); in SyspropRestorer() 109 if (!value.empty()) { in SyspropRestorer() 125 std::string value; in GetSysprop() local 127 if (pi == nullptr) return value; in GetSysprop() 130 [](void* cookie, const char* /* name */, const char* value, uint32_t /* serial */) { in GetSysprop() argument 132 *v = value; in GetSysprop() 134 &value); in GetSysprop() 135 return value; in GetSysprop()
|
/bionic/libc/malloc_debug/ |
D | Config.cpp | 213 bool Config::ParseValue(const std::string& option, const std::string& value, size_t min_value, in ParseValue() argument 215 assert(!value.empty()); in ParseValue() 220 long long_value = strtol(value.c_str(), &end, 10); in ParseValue() 225 if (end == value.c_str()) { in ParseValue() 229 if (static_cast<size_t>(end - value.c_str()) != value.size()) { in ParseValue() 254 bool Config::ParseValue(const std::string& option, const std::string& value, size_t default_value, in ParseValue() argument 256 if (value.empty()) { in ParseValue() 260 return ParseValue(option, value, min_value, max_value, new_value); in ParseValue() 263 bool Config::SetGuard(const std::string& option, const std::string& value) { in SetGuard() argument 264 if (value.empty()) { in SetGuard() [all …]
|
D | Config.h | 112 bool ParseValue(const std::string& option, const std::string& value, size_t default_value, 115 bool ParseValue(const std::string& option, const std::string& value, size_t min_value, 118 bool SetGuard(const std::string& option, const std::string& value); 119 bool SetFrontGuard(const std::string& option, const std::string& value); 120 bool SetRearGuard(const std::string& option, const std::string& value); 122 bool SetFill(const std::string& option, const std::string& value); 123 bool SetFillOnAlloc(const std::string& option, const std::string& value); 124 bool SetFillOnFree(const std::string& option, const std::string& value); 126 bool SetBacktrace(const std::string& option, const std::string& value); 127 bool SetBacktraceEnableOnSignal(const std::string& option, const std::string& value); [all …]
|
D | DebugData.h | 54 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/ |
D | system_property_set.cpp | 98 bool RecvInt32(int32_t* value) { in RecvInt32() argument 99 int result = TEMP_FAILURE_RETRY(recv(socket_.get(), value, sizeof(*value), MSG_WAITALL)); in RecvInt32() 100 return CheckSendRecvResult(result, sizeof(*value)); in RecvInt32() 132 SocketWriter& WriteUint32(uint32_t value) { in WriteUint32() argument 136 uint_buf_[uint_buf_index_++] = value; in WriteUint32() 143 SocketWriter& WriteString(const char* value) { in WriteString() argument 144 uint32_t valuelen = strlen(value); in WriteString() 151 iov_[iov_index_].iov_base = const_cast<char*>(value); in WriteString() 188 char value[PROP_VALUE_MAX]; member 227 msg->name, msg->value); in send_prop_msg() [all …]
|
D | eventfd.cpp | 40 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()
|
D | system_property_api.cpp | 74 int __system_property_read(const prop_info* pi, char* name, char* value) { in __system_property_read() argument 75 return system_properties.Read(pi, name, value); in __system_property_read() 81 const char* value, uint32_t serial), in __system_property_read_callback() argument 87 int __system_property_get(const char* name, char* value) { in __system_property_get() argument 88 return system_properties.Get(name, value); in __system_property_get() 92 int __system_property_update(prop_info* pi, const char* value, unsigned int len) { in __system_property_update() argument 93 return system_properties.Update(pi, value, len); in __system_property_update() 97 int __system_property_add(const char* name, unsigned int namelen, const char* value, in __system_property_add() argument 99 return system_properties.Add(name, namelen, value, valuelen); in __system_property_add()
|
D | setjmp_cookie.cpp | 43 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()
|
/bionic/libc/private/ |
D | bionic_futex.h | 41 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,
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | e_powl.c | 158 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/ |
D | system_properties.cpp | 184 uint32_t SystemProperties::ReadMutablePropertyValue(const prop_info* pi, char* value) { in ReadMutablePropertyValue() argument 195 memcpy(value, pa->dirty_backup_area(), len + 1); in ReadMutablePropertyValue() 197 memcpy(value, pi->value, len + 1); in ReadMutablePropertyValue() 215 int SystemProperties::Read(const prop_info* pi, char* name, char* value) { in Read() argument 216 uint32_t serial = ReadMutablePropertyValue(pi, value); in Read() 240 const char* value, uint32_t serial), in ReadCallback() argument 249 callback(cookie, pi->name, pi->value, serial); in ReadCallback() 259 int SystemProperties::Get(const char* name, char* value) { in Get() argument 263 return Read(pi, nullptr, value); in Get() 265 value[0] = 0; in Get() [all …]
|
D | prop_info.cpp | 38 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/linker/ |
D | linker_config.cpp | 73 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 …]
|
D | linker_sleb128.h | 46 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()
|
D | linker_auxv.cpp | 105 long value = v->a_un.a_val; in ld_show_auxv() local 112 async_safe_format_fd(STDOUT_FILENO, "%-20s %#lx\n", name, value); in ld_show_auxv() 117 async_safe_format_fd(STDOUT_FILENO, "%-20s %#lb\n", name, value); in ld_show_auxv() 121 async_safe_format_fd(STDOUT_FILENO, "%-20s \"%s\"\n", name, reinterpret_cast<char*>(value)); in ld_show_auxv() 124 async_safe_format_fd(STDOUT_FILENO, "%-20s %ld\n", name, value); in ld_show_auxv()
|
/bionic/libc/tools/ |
D | genseccomp.py | 20 def __init__(self, name, value): argument 22 self.begin = value 28 def add(self, name, value): argument 29 if value != self.end: 108 value = m.group(2) 110 nr3264s[name] = value 112 if value in nr3264s: 113 value = nr3264s[value] 115 value = eval(token_re.sub(lambda x: str(constants[x.group(0)]), value)) 117 constants[name] = value [all …]
|
/bionic/benchmarks/ |
D | ScopedDecayTimeRestorer.h | 28 bool value; in ScopedDecayTimeRestorer() local 29 if (android_mallopt(M_GET_DECAY_TIME_ENABLED, &value, sizeof(value))) { in ScopedDecayTimeRestorer() 30 saved_value_ = value ? 1 : 0; in ScopedDecayTimeRestorer()
|
/bionic/libc/kernel/uapi/linux/surface_aggregator/ |
D | dtx.h | 16 #define SDTX_CATEGORY(value) ((value) & SDTX_CATEGORY_MASK) argument 21 #define SDTX_SUCCESS(value) (SDTX_CATEGORY(value) == SDTX_CATEGORY_STATUS) argument 34 #define SDTX_DEVICE_TYPE(value) ((value) & SDTX_DEVICE_TYPE_MASK) argument
|
/bionic/libc/system_properties/include/system_properties/ |
D | system_properties.h | 60 int Read(const prop_info* pi, char* name, char* value); 62 void (*callback)(void* cookie, const char* name, const char* value, 65 int Get(const char* name, char* value); 66 int Update(prop_info* pi, const char* value, unsigned int len); 67 int Add(const char* name, unsigned int namelen, const char* value, unsigned int valuelen); 75 uint32_t ReadMutablePropertyValue(const prop_info* pi, char* value);
|
/bionic/libc/async_safe/ |
D | async_safe_log.cpp | 168 static void format_unsigned(char* buf, size_t buf_size, uint64_t value, int base, bool caps) { in format_unsigned() argument 173 while (value) { in format_unsigned() 174 unsigned d = value % base; in format_unsigned() 175 value /= base; in format_unsigned() 204 static void format_integer(char* buf, size_t buf_size, uint64_t value, char conversion) { in format_integer() argument 217 if (is_signed && static_cast<int64_t>(value) < 0) { in format_integer() 221 value = static_cast<uint64_t>(-static_cast<int64_t>(value)); in format_integer() 223 format_unsigned(buf, buf_size, value, base, caps); in format_integer() 357 uint64_t value = reinterpret_cast<uintptr_t>(va_arg(args, void*)); in out_vformat() local 360 format_integer(buffer + 2, sizeof(buffer) - 2, value, 'x'); in out_vformat() [all …]
|