/bionic/tests/ |
D | string_test.cpp | 191 StringTestState state(SMALL); in TEST() local 192 for (size_t i = 1; i < state.n; i++) { in TEST() 194 state.NewIteration(); in TEST() 196 memset(state.ptr2, '\2', state.MAX_LEN); in TEST() 197 state.ptr2[state.MAX_LEN - 1] = '\0'; in TEST() 198 memcpy(state.ptr, state.ptr2, 2 * state.MAX_LEN); in TEST() 200 memset(state.ptr1, random() & 255, state.len[i]); in TEST() 201 state.ptr1[random() % state.len[i]] = '\0'; in TEST() 202 state.ptr1[state.len[i] - 1] = '\0'; in TEST() 204 strcpy(state.ptr + state.MAX_LEN - 1, state.ptr1); in TEST() [all …]
|
/bionic/libstdc++/src/ |
D | one_time_construction.cpp | 43 int volatile state; member 59 int volatile state; member 76 if (__bionic_cmpxchg(0, pending, &gv->state) == 0) { in __cxa_guard_acquire() 80 __bionic_cmpxchg(pending, waiting, &gv->state); // Indicate there is a waiter in __cxa_guard_acquire() 81 __futex_wait(&gv->state, waiting, NULL); in __cxa_guard_acquire() 83 …if (gv->state != ready) // __cxa_guard_abort was called, let every thread try since there is no re… in __cxa_guard_acquire() 96 if (__bionic_cmpxchg(pending, ready, &gv->state) == 0) { in __cxa_guard_release() 100 gv->state = ready; in __cxa_guard_release() 101 __futex_wake(&gv->state, 0x7fffffff); in __cxa_guard_release() 107 gv->state= 0; in __cxa_guard_abort() [all …]
|
/bionic/libc/bionic/ |
D | stubs.cpp | 123 stubs_state_t* state = static_cast<stubs_state_t*>(ptr); in stubs_state_free() local 124 free(state); in stubs_state_free() 149 static passwd* android_iinfo_to_passwd(stubs_state_t* state, in android_iinfo_to_passwd() argument 151 snprintf(state->dir_buffer_, sizeof(state->dir_buffer_), "/"); in android_iinfo_to_passwd() 152 snprintf(state->sh_buffer_, sizeof(state->sh_buffer_), "/system/bin/sh"); in android_iinfo_to_passwd() 154 passwd* pw = &state->passwd_; in android_iinfo_to_passwd() 158 pw->pw_dir = state->dir_buffer_; in android_iinfo_to_passwd() 159 pw->pw_shell = state->sh_buffer_; in android_iinfo_to_passwd() 172 static passwd* android_id_to_passwd(stubs_state_t* state, unsigned id) { in android_id_to_passwd() argument 175 return android_iinfo_to_passwd(state, android_ids + n); in android_id_to_passwd() [all …]
|
D | debug_stacktrace.cpp | 84 stack_crawl_state_t* state = static_cast<stack_crawl_state_t*>(arg); in trace_function() local 89 if (ip != 0 && !state->have_skipped_self) { in trace_function() 90 state->have_skipped_self = true; in trace_function() 112 state->frames[state->frame_count++] = ip; in trace_function() 113 return (state->frame_count >= state->max_depth) ? _URC_END_OF_STACK : _URC_NO_REASON; in trace_function() 117 stack_crawl_state_t state(frames, max_depth); in get_backtrace() local 118 _Unwind_Backtrace(trace_function, &state); in get_backtrace() 119 return state.frame_count; in get_backtrace()
|
D | pthread_attr.cpp | 50 int pthread_attr_setdetachstate(pthread_attr_t* attr, int state) { in pthread_attr_setdetachstate() argument 51 if (state == PTHREAD_CREATE_DETACHED) { in pthread_attr_setdetachstate() 53 } else if (state == PTHREAD_CREATE_JOINABLE) { in pthread_attr_setdetachstate() 61 int pthread_attr_getdetachstate(pthread_attr_t const* attr, int* state) { in pthread_attr_getdetachstate() argument 62 …*state = (attr->flags & PTHREAD_ATTR_FLAG_DETACHED) ? PTHREAD_CREATE_DETACHED : PTHREAD_CREATE_JOI… in pthread_attr_getdetachstate()
|
/bionic/libc/kernel/common/linux/mmc/ |
D | card.h | 69 unsigned int state; member 85 #define mmc_card_present(c) ((c)->state & MMC_STATE_PRESENT) 86 #define mmc_card_dead(c) ((c)->state & MMC_STATE_DEAD) 87 #define mmc_card_bad(c) ((c)->state & MMC_STATE_BAD) 89 #define mmc_card_sd(c) ((c)->state & MMC_STATE_SDCARD) 90 #define mmc_card_readonly(c) ((c)->state & MMC_STATE_READONLY) 91 #define mmc_card_set_present(c) ((c)->state |= MMC_STATE_PRESENT) 92 #define mmc_card_set_dead(c) ((c)->state |= MMC_STATE_DEAD) 94 #define mmc_card_set_bad(c) ((c)->state |= MMC_STATE_BAD) 95 #define mmc_card_set_sd(c) ((c)->state |= MMC_STATE_SDCARD) [all …]
|
/bionic/libc/netbsd/net/ |
D | base64.c | 221 int state, ch; local 227 state = 0; 241 switch (state) { 248 state = 1; 260 state = 2; 272 state = 3; 281 state = 0; 295 switch (state) { 335 if (state != 0)
|
/bionic/libc/kernel/tools/ |
D | update_all.py | 70 state = "unchanged" variable 72 state = "edited" variable 74 state = "added" variable 76 …cleaning: %-*s -> %-*s (%s)" % ( 35, "<original>" + path[len(original_dir):], 35, dst_path, state )
|
/bionic/libc/kernel/common/linux/raid/ |
D | md_u.h | 71 int state; member 87 int state; member 95 int state; member
|
D | md_p.h | 61 __u32 state; member 94 __u32 state; member
|
/bionic/libc/kernel/common/linux/lockd/ |
D | xdr.h | 56 u32 state; member 74 u32 state; member
|
/bionic/libc/kernel/common/linux/netfilter/ |
D | nf_conntrack_sctp.h | 39 enum sctp_conntrack state; member
|
/bionic/libc/kernel/arch-arm/asm/arch/ |
D | gpio-switch.h | 37 void (* notify)(void *data, int state);
|
/bionic/libc/kernel/common/linux/ |
D | sysdev.h | 29 int (*suspend)(struct sys_device *, pm_message_t state); 47 int (*suspend)(struct sys_device *, pm_message_t state);
|
D | leds-an30259a.h | 31 __u32 state; member
|
D | platform_device.h | 37 int (*suspend)(struct platform_device *, pm_message_t state);
|
D | backing-dev.h | 34 unsigned long state; member
|
D | zlib.h | 34 struct internal_state *state; member
|
D | if_bridge.h | 97 __u8 state; member
|
D | hdsmart.h | 90 unsigned char state; member
|
D | interrupt.h | 112 unsigned long state; member
|
/bionic/libc/include/sys/ |
D | sha1.h | 19 uint32_t state[5]; member
|
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/ |
D | sha1.c | 150 void SHA1Transform(uint32_t state[5], const uint8_t buffer[64]) in SHA1Transform() 160 _DIAGASSERT(state != 0); in SHA1Transform() 170 a = state[0]; in SHA1Transform() 171 b = state[1]; in SHA1Transform() 172 c = state[2]; in SHA1Transform() 173 d = state[3]; in SHA1Transform() 174 e = state[4]; in SHA1Transform() 206 state[0] += a; in SHA1Transform() 207 state[1] += b; in SHA1Transform() 208 state[2] += c; in SHA1Transform() [all …]
|
/bionic/libc/tzcode/ |
D | localtime.c | 169 struct state { struct 213 static void gmtload P((struct state * sp)); 215 struct tm * tmp, const struct state * sp)); // android-changed: added sp. 217 struct tm * tmp, const struct state * sp)); // android-changed: added sp. 228 long, struct tm *, const struct state *)), // android-changed: added state*. 229 long offset, const struct state * sp)); // android-changed: added sp. 232 long, struct tm*, const struct state *)), // android-changed: added state*. 233 long offset, int * okayp, const struct state * sp)); // android-changed: added sp. 236 long, struct tm*, const struct state *)), // android-changed: added state*. 237 …long offset, int * okayp, int do_norm_secs, const struct state * sp)); // android-change: added sp. [all …]
|
/bionic/libc/kernel/common/linux/mtd/ |
D | flashchip.h | 55 flstate_t state; member
|