Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 42) sorted by relevance

12

/bionic/tests/
Dstring_test.cpp191 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/
Done_time_construction.cpp43 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/
Dstubs.cpp123 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 …]
Ddebug_stacktrace.cpp84 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()
Dpthread_attr.cpp50 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/
Dcard.h69 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/
Dbase64.c221 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/
Dupdate_all.py70 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/
Dmd_u.h71 int state; member
87 int state; member
95 int state; member
Dmd_p.h61 __u32 state; member
94 __u32 state; member
/bionic/libc/kernel/common/linux/lockd/
Dxdr.h56 u32 state; member
74 u32 state; member
/bionic/libc/kernel/common/linux/netfilter/
Dnf_conntrack_sctp.h39 enum sctp_conntrack state; member
/bionic/libc/kernel/arch-arm/asm/arch/
Dgpio-switch.h37 void (* notify)(void *data, int state);
/bionic/libc/kernel/common/linux/
Dsysdev.h29 int (*suspend)(struct sys_device *, pm_message_t state);
47 int (*suspend)(struct sys_device *, pm_message_t state);
Dleds-an30259a.h31 __u32 state; member
Dplatform_device.h37 int (*suspend)(struct platform_device *, pm_message_t state);
Dbacking-dev.h34 unsigned long state; member
Dzlib.h34 struct internal_state *state; member
Dif_bridge.h97 __u8 state; member
Dhdsmart.h90 unsigned char state; member
Dinterrupt.h112 unsigned long state; member
/bionic/libc/include/sys/
Dsha1.h19 uint32_t state[5]; member
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/
Dsha1.c150 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/
Dlocaltime.c169 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/
Dflashchip.h55 flstate_t state; member

12