Searched refs:state (Results 1 - 25 of 57) sorted by last modified time

123

/system/netd/server/
H A DNetlinkHandler.cpp114 const char *state = evt->findParam("STATE"); local
116 if (state)
117 notifyInterfaceClassActivity(label, !strcmp("active", state), timestamp);
/system/security/keystore/
H A Dkeystore.cpp572 ResponseCode writeBlob(const char* filename, AES_KEY *aes_key, State state, Entropy* entropy) { argument
575 if (state != STATE_NO_ERROR) {
635 ResponseCode readBlob(const char* filename, AES_KEY *aes_key, State state) { argument
649 if (isEncrypted() && (state != STATE_NO_ERROR)) {
736 void setState(State state) { argument
737 mState = state;
1325 UserState* state = *it; local
1326 if (state->getUserId() == userId) {
1327 return state;
1351 UserState* state local
1641 State state = mKeyStore->getState(callingUid); local
1780 State state = mKeyStore->getState(callingUid); local
1798 State state = mKeyStore->getState(callingUid); local
1834 State state = mKeyStore->getState(callingUid); local
1986 State state = mKeyStore->getState(targetUid); local
2058 State state = mKeyStore->getState(callingUid); local
2183 State state = mKeyStore->getState(callingUid); local
2208 State state = mKeyStore->getState(callingUid); local
2266 State state = mKeyStore->getState(callingUid); local
2424 isKeystoreUnlocked(State state) argument
[all...]
/system/vold/
H A DDirectVolume.cpp341 int state; local
351 state = getState();
352 if (state != Volume::State_Mounted && state != Volume::State_Shared) {
378 } else if (state == Volume::State_Shared) {
H A DVolume.cpp88 static const char *stateToStr(int state) { argument
89 if (state == Volume::State_Init)
91 else if (state == Volume::State_NoMedia)
93 else if (state == Volume::State_Idle)
95 else if (state == Volume::State_Pending)
97 else if (state == Volume::State_Mounted)
99 else if (state == Volume::State_Unmounting)
101 else if (state == Volume::State_Checking)
103 else if (state == Volume::State_Formatting)
105 else if (state
195 setState(int state) argument
[all...]
H A DVolume.h96 void setState(int state);
/system/extras/ext4_utils/
H A Dext4fixup.c51 /* Magic numbers to indicate what state the update process is in */
56 /* Internal state variables corresponding to the magic numbers */
117 static int set_fs_fixup_state(int fd, int state) argument
124 no_write_fixup_state = state;
128 switch (state) {
264 static int update_superblocks_and_bg_desc(int fd, int state) argument
284 if (state == STATE_UPDATING_SB) {
766 * corrupted, unrecoverable state. Set no_write, make it quiet, and do a recurse
767 * pass and a update_superblock pass. Set flags back to requested state when done.
768 * Only perform sanity check if the state i
[all...]
H A Dsha1.c126 void SHA1Transform(state, buffer)
127 u_int32_t state[5];
138 assert(state != 0);
147 /* Copy context->state[] to working vars */
148 a = state[0];
149 b = state[1];
150 c = state[2];
151 d = state[3];
152 e = state[4];
183 /* Add the working vars back into context.state[] */
[all...]
H A Dsha1.h31 uint32_t state[5]; member in struct:__anon257
/system/extras/ksmutils/
H A Dlookup3.c181 /* Set up the internal state */
226 /* Set up the internal state */
285 uint32_t a,b,c; /* internal state */
288 /* Set up the internal state */
469 uint32_t a,b,c; /* internal state */
472 /* Set up the internal state */
650 /* Set up the internal state */
957 uint32_t h,i,state[HASHSTATE]; local
961 for (i=0; i<HASHSTATE; ++i) state[i] = 1;
/system/extras/tests/fstest/
H A Dperm_checker.conf127 /sys/android_power/state 664 664 radio radio system system
130 /sys/qemu_trace/state 000 777 root system root system
/system/media/audio_route/
H A Daudio_route.c366 struct config_parse_state *state = data; local
367 struct audio_route *ar = state->ar;
391 if (state->level == 1) {
393 state->path = path_create(ar, (char *)attr_name);
397 path_add_path(ar, state->path, sub_path);
429 if (state->level == 1) {
457 path_add_value(ar, state->path, &mixer_value);
462 state->level++;
467 struct config_parse_state *state = data; local
470 state
719 struct config_parse_state state; local
[all...]
/system/media/audio_utils/
H A Decho_reference.c30 // echo reference state: bit field indicating if read, write or both are active.
31 enum state { enum
40 uint32_t state; // active state: reading, writing or both member in struct:echo_reference
147 er->state &= ~ECHOREF_WRITING;
165 if ((er->state & ECHOREF_WRITING) == 0) {
170 er->state |= ECHOREF_WRITING;
173 if ((er->state & ECHOREF_READING) == 0) {
308 er->state &= ~ECHOREF_READING;
316 if ((er->state
[all...]
/system/core/adb/
H A Dadb.c1674 if(!strncmp(service,"get-state",strlen("get-state"))) {
1676 char *state = connection_state_name(transport); local
1677 send_msg_with_okay(reply_fd, state, strlen(state));
H A Dadb.h278 ** If state is != CS_ANY, only transports in that state are considered.
282 atransport *acquire_one_transport(int state, transport_type ttype, const char* serial, char **error_out);
288 /* initialize a transport object's func pointers and state */
293 void init_usb_transport(atransport *t, usb_handle *usb, int state);
H A Dcommandline.c204 " adb get-state - prints: offline | bootloader | device\n"
361 int state = 0; local
381 state = 1;
384 state = 1;
387 if(state == 1) state++;
390 if(state == 2) {
398 state = 0;
642 char *state = 0; local
655 format_host_command(command, sizeof command, "get-state", ttyp
[all...]
H A Dfdevent.c66 fde->state & FDE_READ ? 'R' : ' ',
67 fde->state & FDE_WRITE ? 'W' : ' ',
68 fde->state & FDE_ERROR ? 'E' : ' ',
154 active = (fde->state & FDE_EVENTMASK) != 0;
164 fde->state = (fde->state & FDE_STATEMASK) | events;
223 if(fde->state & FDE_PENDING) continue;
224 fde->state |= FDE_PENDING;
290 fde->state = (fde->state
[all...]
H A Dfdevent.h75 unsigned short state; member in struct:fdevent
H A Djdwp_service.c216 proc->fde->state |= FDE_DONT_CLOSE;
H A Dservices.c486 int state; member in struct:state_info
494 D("wait_for_state %d\n", sinfo->state);
496 atransport *t = acquire_one_transport(sinfo->state, sinfo->transport, sinfo->serial, &err);
646 sinfo->state = CS_DEVICE;
649 sinfo->state = CS_DEVICE;
652 sinfo->state = CS_DEVICE;
H A Dsysdeps.h205 unsigned short state; member in struct:fdevent
H A Dsysdeps_win32.c1258 fde->state & FDE_READ ? 'R' : ' ',
1259 fde->state & FDE_WRITE ? 'W' : ' ',
1260 fde->state & FDE_ERROR ? 'E' : ' ',
1351 if ((fde->state & FDE_PENDING) == 0) {
1352 fde->state |= FDE_PENDING;
1622 int events = fde->state & FDE_EVENTMASK;
1631 int events = fde->state & FDE_EVENTMASK;
1640 unsigned events0 = fde->state & FDE_EVENTMASK;
1798 if(!(fde->state & FDE_DONT_CLOSE)) {
1842 fde->state |
[all...]
H A Dtransport.c794 atransport *acquire_one_transport(int state, transport_type ttype, const char* serial, char** error_out) argument
874 /* check for required connection state */
875 if (result && state != CS_ANY && result->connection_state != state) {
877 *error_out = "invalid device state";
886 } else if (state != CS_ANY && (serial || !ambiguous)) {
H A Dtransport_usb.c112 void init_usb_transport(atransport *t, usb_handle *h, int state) argument
120 t->connection_state = state;
/system/core/fastbootd/
H A Dprotocol.c118 if (phandle->state != STATE_COMMAND)
125 phandle->state = STATE_COMPLETE;
160 phandle->state = STATE_COMMAND;
162 if (phandle->state == STATE_COMMAND)
177 phandle->state = STATE_OFFLINE;
H A Dprotocol.h40 unsigned int state; member in struct:protocol_handle

Completed in 4750 milliseconds

123