/bionic/libc/system_properties/ |
D | system_properties.cpp | 143 int SystemProperties::Read(const prop_info* pi, char* name, char* value) { in Read() argument 145 uint32_t serial = Serial(pi); // acquire semantics in Read() 147 memcpy(value, pi->value, len + 1); in Read() 157 if (serial == load_const_atomic(&(pi->serial), memory_order_relaxed)) { in Read() 159 size_t namelen = strlcpy(name, pi->name, PROP_NAME_MAX); in Read() 165 pi->name, PROP_NAME_MAX - 1, name); in Read() 168 if (is_read_only(pi->name) && pi->is_long()) { in Read() 174 pi->name, strlen(pi->long_value())); in Read() 181 void SystemProperties::ReadCallback(const prop_info* pi, in ReadCallback() argument 187 if (is_read_only(pi->name)) { in ReadCallback() [all …]
|
D | contexts_serialized.cpp | 147 void ContextsSerialized::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in ForEach() argument
|
D | prop_area.cpp | 334 void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in foreach_property() argument 371 bool prop_area::foreach (void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in foreach() argument
|
D | contexts_split.cpp | 347 void ContextsSplit::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in ForEach() argument
|
/bionic/libc/bionic/ |
D | system_property_api.cpp | 75 int __system_property_read(const prop_info* pi, char* name, char* value) { in __system_property_read() argument 76 return system_properties.Read(pi, name, value); in __system_property_read() 80 void __system_property_read_callback(const prop_info* pi, in __system_property_read_callback() argument 84 return system_properties.ReadCallback(pi, callback, cookie); in __system_property_read_callback() 93 int __system_property_update(prop_info* pi, const char* value, unsigned int len) { in __system_property_update() argument 94 return system_properties.Update(pi, value, len); in __system_property_update() 104 uint32_t __system_property_serial(const prop_info* pi) { in __system_property_serial() argument 105 return system_properties.Serial(pi); in __system_property_serial() 114 bool __system_property_wait(const prop_info* pi, uint32_t old_serial, uint32_t* new_serial_ptr, in __system_property_wait() argument 116 return system_properties.Wait(pi, old_serial, new_serial_ptr, relative_timeout); in __system_property_wait() [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_atan2f.c | 28 pi = 3.1415927410e+00; /* 0x40490fdb */ variable 53 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ in __ieee754_atan2f() 54 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ in __ieee754_atan2f() 73 case 2: return pi+tiny ; /* atan(+...,-INF) */ in __ieee754_atan2f() 74 case 3: return -pi-tiny ; /* atan(-...,-INF) */ in __ieee754_atan2f() 92 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in __ieee754_atan2f() 94 return (z-pi_lo)-pi;/* atan(-,-) */ in __ieee754_atan2f()
|
D | e_atan2.c | 56 pi = 3.1415926535897931160E+00; /* 0x400921FB, 0x54442D18 */ variable 82 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ in __ieee754_atan2() 83 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ in __ieee754_atan2() 102 case 2: return pi+tiny ; /* atan(+...,-INF) */ in __ieee754_atan2() 103 case 3: return -pi-tiny ; /* atan(-...,-INF) */ in __ieee754_atan2() 121 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in __ieee754_atan2() 123 return (z-pi_lo)-pi;/* atan(-,-) */ in __ieee754_atan2()
|
D | e_atan2l.c | 40 #define pi ((long double)pi1 + pi2) macro 43 pi = 3.14159265358979323846264338327950280e+00L; variable 75 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ in atan2l() 76 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ in atan2l() 96 case 2: return pi+tiny ; /* atan(+...,-INF) */ in atan2l() 97 case 3: return -pi-tiny ; /* atan(-...,-INF) */ in atan2l() 116 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in atan2l() 118 return (z-pi_lo)-pi;/* atan(-,-) */ in atan2l()
|
D | e_acosl.c | 37 #define pi ((long double)pi1 + pi2) macro 40 pi = 3.14159265358979323846264338327950280e+00L; variable 55 else return pi+2.0*pio2_lo; /* acos(-1)= pi */ in acosl() 73 return pi - 2.0*(s+w); in acosl()
|
D | e_lgammaf_r.c | 29 pi = 3.1415927410e+00, /* 0x40490fdb */ variable 109 case 0: y = __kernel_sindf(pi*y); break; in sin_pif() 111 case 2: y = __kernel_cosdf(pi*((float)0.5-y)); break; in sin_pif() 113 case 4: y = __kernel_sindf(pi*(one-y)); break; in sin_pif() 115 case 6: y = -__kernel_cosdf(pi*(y-(float)1.5)); break; in sin_pif() 116 default: y = __kernel_sindf(pi*(y-(float)2.0)); break; in sin_pif() 151 nadj = __ieee754_logf(pi/fabsf(t*x)); in __ieee754_lgammaf_r()
|
D | e_acosf.c | 24 pi = 3.1415925026e+00, /* 0x40490fda */ variable 44 else return pi+(float)2.0*pio2_lo; /* acos(-1)= pi */ in __ieee754_acosf() 62 return pi - (float)2.0*(s+w); in __ieee754_acosf()
|
D | e_lgamma_r.c | 94 pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ variable 188 case 0: y = __kernel_sin(pi*y,zero,0); break; in sin_pi() 190 case 2: y = __kernel_cos(pi*(0.5-y),zero); break; in sin_pi() 192 case 4: y = __kernel_sin(pi*(one-y),zero,0); break; in sin_pi() 194 case 6: y = -__kernel_cos(pi*(y-1.5),zero); break; in sin_pi() 195 default: y = __kernel_sin(pi*(y-2.0),zero,0); break; in sin_pi() 230 nadj = __ieee754_log(pi/fabs(t*x)); in __ieee754_lgamma_r()
|
D | e_acos.c | 48 pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ variable 76 else return pi+2.0*pio2_lo; /* acos(-1)= pi */ in __ieee754_acos() 94 return pi - 2.0*(s+w); in __ieee754_acos()
|
/bionic/libc/system_properties/include/system_properties/ |
D | system_properties.h | 61 int Read(const prop_info* pi, char* name, char* value); 62 void ReadCallback(const prop_info* pi, 67 int Update(prop_info* pi, const char* value, unsigned int len); 69 uint32_t Serial(const prop_info* pi); 71 bool Wait(const prop_info* pi, uint32_t old_serial, uint32_t* new_serial_ptr, 74 int Foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie);
|
D | contexts.h | 42 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) = 0;
|
D | contexts_pre_split.h | 54 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override { in ForEach() argument
|
D | prop_area.h | 114 bool foreach (void (*propfn)(const prop_info* pi, void* cookie), void* cookie); 144 bool foreach_property(prop_bt* const trie, void (*propfn)(const prop_info* pi, void* cookie),
|
D | contexts_serialized.h | 46 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
|
D | contexts_split.h | 46 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
|
/bionic/tests/ |
D | system_properties_test2.cpp | 89 const prop_info* pi = __system_property_find(property_name.c_str()); in TEST() local 90 ASSERT_TRUE(pi != nullptr); in TEST() 93 __system_property_read_callback(pi, in TEST() 100 pi = __system_property_find(long_property_name.c_str()); in TEST() 101 ASSERT_TRUE(pi != nullptr); in TEST() 104 __system_property_read_callback(pi, in TEST() 112 pi = __system_property_find(property_name.c_str()); in TEST() 113 ASSERT_TRUE(pi != nullptr); in TEST() 116 ASSERT_EQ(8, __system_property_read(pi, &legacy_name[0], propvalue)); in TEST() 121 ASSERT_TRUE(pi != nullptr); in TEST()
|
D | system_properties_test.cpp | 58 static void foreach_test_callback(const prop_info *pi, void* cookie) { in foreach_test_callback() argument 61 ASSERT_TRUE(pi != nullptr); in foreach_test_callback() 65 static void hierarchical_test_callback(const prop_info *pi, void *cookie) { in hierarchical_test_callback() argument 71 __system_property_read(pi, name, value); in hierarchical_test_callback() 137 const prop_info* pi = system_properties.Find("property"); in TEST() local 138 ASSERT_TRUE(pi != nullptr); in TEST() 139 system_properties.Update(const_cast<prop_info*>(pi), "value4", 6); in TEST() 141 pi = system_properties.Find("other_property"); in TEST() 142 ASSERT_TRUE(pi != nullptr); in TEST() 143 system_properties.Update(const_cast<prop_info*>(pi), "newvalue5", 9); in TEST() [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | e_lgammal_r.c | 34 pi = 3.14159265358979323846264338327950288e+00L; variable 212 case 0: y = __kernel_sinl(pi*y,zero,0); break; in sin_pil() 214 case 2: y = __kernel_cosl(pi*(0.5-y),zero); break; in sin_pil() 216 case 4: y = __kernel_sinl(pi*(one-y),zero,0); break; in sin_pil() 218 case 6: y = -__kernel_cosl(pi*(y-1.5),zero); break; in sin_pil() 219 default: y = __kernel_sinl(pi*(y-2.0),zero,0); break; in sin_pil() 254 nadj = logl(pi/fabsl(t*x)); in lgammal_r()
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
D | qsort.c | 53 TYPE *pi = (TYPE *) (parmi); \ 56 TYPE t = *pi; \ 57 *pi++ = *pj; \
|