/system/core/init/ |
H A D | parser.cpp | 9 void parse_error(struct parse_state *state, const char *fmt, ...) argument 15 snprintf(buf, 128, "%s: %d: ", state->filename, state->line); 26 int next_token(struct parse_state *state) argument 28 char *x = state->ptr; 31 if (state->nexttoken) { 32 int t = state->nexttoken; 33 state->nexttoken = 0; 40 state->ptr = x; 44 state [all...] |
H A D | ueventd_parser.cpp | 33 static void parse_line_device(struct parse_state *state, int nargs, char **args); 98 static void *parse_subsystem(parse_state* state, int /*nargs*/, char** args) { argument 100 parse_error(state, "invalid subsystem name '%s'\n", args[1]); 106 parse_error(state, "ignored duplicate definition of subsystem '%s'\n", 113 parse_error(state, "out of memory\n"); 122 static void parse_line_subsystem(struct parse_state *state, int nargs, argument 125 struct ueventd_subsystem *s = (ueventd_subsystem*) state->context; 140 parse_error(state, "invalid devname '%s'\n", args[1]); 147 parse_error(state, "dirname '%s' does not start with '/'\n", 152 parse_error(state, "invali 156 parse_new_section(struct parse_state *state, int kw, int nargs, char **args) argument 174 parse_line(struct parse_state *state, char **args, int nargs) argument 199 parse_state state; local [all...] |
H A D | parser.h | 31 void (*parse_line)(struct parse_state *state, int nargs, char **args); 37 int next_token(struct parse_state *state); 38 void parse_error(struct parse_state *state, const char *fmt, ...);
|
H A D | init_parser.cpp | 47 static void *parse_service(struct parse_state *state, int nargs, char **args); 48 static void parse_line_service(struct parse_state *state, int nargs, char **args); 50 static void *parse_action(struct parse_state *state, int nargs, char **args); 51 static void parse_line_action(struct parse_state *state, int nargs, char **args); 333 static void parse_import(struct parse_state *state, int nargs, char **args) argument 335 struct listnode *import_list = (listnode*) state->priv; 347 state->line, state->filename); 357 static void parse_new_section(struct parse_state *state, int kw, argument 364 state 392 parse_state state; local 728 parse_service(struct parse_state *state, int nargs, char **args) argument 765 parse_line_service(struct parse_state *state, int nargs, char **args) argument 946 parse_action(struct parse_state *state, int nargs, char **args) argument 985 parse_line_action(struct parse_state* state, int nargs, char **args) argument [all...] |
/system/bt/hci/src/ |
H A D | hci_audio.c | 28 void set_audio_state(uint16_t handle, sco_codec_t codec, sco_state_t state) argument 30 LOG_INFO("%s handle:%d codec:0x%x state:%d", __func__, handle, codec, state); 36 audio_state.state = state;
|
H A D | low_power_manager.c | 69 static low_power_mode_state_t state; variable 108 if (state != LPM_DISABLED) { 133 if (state == LPM_DISABLING) { 138 } else if (state == LPM_ENABLING) { 143 } else if (state == LPM_ENABLED && enable) { 145 } else if (state == LPM_DISABLED && !enable) { 149 state = enable ? LPM_ENABLING : LPM_DISABLING; 155 if (state == LPM_ENABLED && wake_state == LPM_WAKE_ASSERTED) { 166 if (state == LPM_ENABLED && transmit_is_done) { 174 state [all...] |
/system/bt/btif/co/ |
H A D | bta_ag_co.c | 54 ** state - Audio state 64 void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state, tBTA_AG_PEER_CODEC codec) argument 66 void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state) 69 BTIF_TRACE_DEBUG("bta_ag_co_audio_state: handle %d, state %d", handle, state); 70 switch (state) 76 set_audio_state(handle, codec, state); 87 set_audio_state(handle, codec, state); 89 set_audio_state(handle, BTA_AG_CODEC_CVSD, state); [all...] |
/system/bt/test/suite/support/ |
H A D | adapter.c | 25 static bt_state_t state; variable 33 return state; 58 // Returns the device bond state. 64 void acl_state_changed(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_acl_state_t state) { argument 65 acl_state = state; 71 state = new_state; 89 bt_bond_state_t state) { 90 bond_state = state; 100 void discovery_state_changed(bt_discovery_state_t state) { argument 101 discovery_state = state; 87 bond_state_changed(bt_status_t status, bt_bdaddr_t *bdaddr, bt_bond_state_t state) argument [all...] |
H A D | pan.c | 58 void pan_control_state_changed(btpan_control_state_t state, bt_status_t error, int local_role, const char *ifname) { argument 61 pan_control_state = state; 70 void pan_connection_state_changed(btpan_connection_state_t state, bt_status_t error, const bt_bdaddr_t *bd_addr, int local_role, int remote_role) { argument 71 pan_connection_state = state;
|
/system/core/libpixelflinger/ |
H A D | clear.cpp | 42 c->state.clear.dirty = GGL_STENCIL_BUFFER_BIT | 45 c->state.clear.depth = FIXED_ONE; 99 const uint32_t l = c->state.scissor.left; 100 const uint32_t t = c->state.scissor.top; 101 uint32_t w = c->state.scissor.right - l; 102 uint32_t h = c->state.scissor.bottom - t; 108 if (c->state.buffers.color.format == 0) 111 if (c->state.buffers.depth.format == 0) 114 if (c->state.buffers.stencil.format == 0) 118 if (c->state [all...] |
H A D | pixelflinger.cpp | 106 ggl_set_surface(c, &c->state.texture[tmu].surface, surface); 112 if (surface->format != c->state.buffers.color.format) 115 if (surface->width > c->state.buffers.coverageBufferSize) { 117 free(c->state.buffers.coverage); 118 c->state.buffers.coverage = (int16_t*)malloc(surface->width * 2); 119 c->state.buffers.coverageBufferSize = 120 c->state.buffers.coverage ? surface->width : 0; 122 ggl_set_surface(c, &(c->state.buffers.color), surface); 123 if (c->state.buffers.read.format == 0) { 124 ggl_set_surface(c, &(c->state [all...] |
H A D | raster.cpp | 44 c->state.raster.x = x; 45 c->state.raster.y = y; 59 surface_t* cb = &(c->state.buffers.color); 72 GGLint xd = gglFixedToIntRound(c->state.raster.x); 73 GGLint yd = gglFixedToIntRound(c->state.raster.y); 76 if (xd < GGLint(c->state.scissor.left)) { 77 GGLint offset = GGLint(c->state.scissor.left) - xd; 78 xd = GGLint(c->state.scissor.left); 82 if (yd < GGLint(c->state.scissor.top)) { 83 GGLint offset = GGLint(c->state [all...] |
H A D | picker.cpp | 39 const uint32_t enables = c->state.enables; 40 needs_t new_needs(c->state.needs); 44 new_needs.n |= GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT); 50 uint32_t n = GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT); 53 uint32_t src = c->state.blend.src; 54 uint32_t dst = c->state.blend.dst; 55 uint32_t src_alpha = c->state.blend.src_alpha; 56 uint32_t dst_alpha = c->state.blend.dst_alpha; 57 const GGLFormat& cbf = c->formats[ c->state.buffers.color.format ]; 84 if (c->state [all...] |
/system/bt/btif/src/ |
H A D | btif_sm.c | 24 * Description: Generic BTIF state machine API 46 btif_sm_state_t state; member in struct:__anon686 70 ** Description Initializes the state machine with the state handlers 75 ** Returns Returns a pointer to the initialized state machine handle. 90 p_cb->state = initial_state; 93 /* Send BTIF_SM_ENTER_EVT to the initial state */ 103 ** Description Tears down the state machine 124 ** Description Fetches the current state of the state machin 185 btif_sm_change_state(btif_sm_handle_t handle, btif_sm_state_t state) argument [all...] |
H A D | btif_debug_conn.c | 32 btif_debug_conn_state_t state; member in struct:conn_event_t 51 static char *format_state(const btif_debug_conn_state_t state) { argument 52 switch (state) { 67 void btif_debug_conn_state(const bt_bdaddr_t bda, const btif_debug_conn_state_t state, argument 73 evt->state = state; 92 format_state(evt->state), 95 if (evt->state == BTIF_DEBUG_DISCONNECTED)
|
/system/bt/btif/include/ |
H A D | btif_debug_conn.h | 30 // Report a connection state change 31 void btif_debug_conn_state(const bt_bdaddr_t bda, const btif_debug_conn_state_t state,
|
/system/bt/hci/include/ |
H A D | hci_audio.h | 21 // Audio state definitions. 36 // Set the audio state on the controller for SCO (PCM, WBS, ...) using the 38 void set_audio_state(uint16_t handle, sco_codec_t codec, sco_state_t state);
|
/system/core/libmincrypt/ |
H A D | sha.c | 56 A = ctx->state[0]; 57 B = ctx->state[1]; 58 C = ctx->state[2]; 59 D = ctx->state[3]; 60 E = ctx->state[4]; 81 ctx->state[0] += A; 82 ctx->state[1] += B; 83 ctx->state[2] += C; 84 ctx->state[3] += D; 85 ctx->state[ [all...] |
H A D | sha256.c | 77 A = ctx->state[0]; 78 B = ctx->state[1]; 79 C = ctx->state[2]; 80 D = ctx->state[3]; 81 E = ctx->state[4]; 82 F = ctx->state[5]; 83 G = ctx->state[6]; 84 H = ctx->state[7]; 104 ctx->state[0] += A; 105 ctx->state[ [all...] |
/system/bt/bta/include/ |
H A D | bta_ag_co.h | 53 ** state - Audio state 63 extern void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state, 67 extern void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state);
|
/system/bt/stack/rfcomm/ |
H A D | rfc_mx_fsm.c | 21 * This file contains state machine and action routines for multiplexer 61 ** Description This function sends multiplexor events through the state 69 switch (p_mcb->state) 108 ** IDLE state. This state exists when connection is being 132 p_mcb->state = RFC_MX_STATE_WAIT_CONN_CNF; 139 RFCOMM_TRACE_ERROR ("Mx error state %d event %d", p_mcb->state, event); 149 p_mcb->state = RFC_MX_STATE_CONFIGURE; 167 RFCOMM_TRACE_EVENT ("RFCOMM MX ignored - evt:%d in state [all...] |
/system/bt/bta/ag/ |
H A D | bta_ag_sco.c | 47 static char *bta_ag_sco_state_str(UINT8 state); 186 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; 206 APPL_TRACE_DEBUG ("bta_ag_sco_disc_cback(): sco_idx: 0x%x p_cur_scb: 0x%08x sco.state: %d", sco_idx, bta_ag_cb.sco.p_curr_scb, bta_ag_cb.sco.state); 208 APPL_TRACE_DEBUG ("bta_ag_sco_disc_cback(): scb[0] addr: 0x%08x in_use: %u sco_idx: 0x%x sco state: %u", 209 &bta_ag_cb.scb[0], bta_ag_cb.scb[0].in_use, bta_ag_cb.scb[0].sco_idx, bta_ag_cb.scb[0].state); 210 APPL_TRACE_DEBUG ("bta_ag_sco_disc_cback(): scb[1] addr: 0x%08x in_use: %u sco_idx: 0x%x sco state: %u", 211 &bta_ag_cb.scb[1], bta_ag_cb.scb[1].in_use, bta_ag_cb.scb[1].sco_idx, bta_ag_cb.scb[1].state); 278 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; 375 bta_ag_cb.sco.state 1725 bta_ag_sco_state_str(UINT8 state) argument [all...] |
/system/bt/stack/btm/ |
H A D | btm_sco.c | 152 /* Reject the connect request if refused by caller or wrong state */ 157 p_sco->state = (p_sco->state == SCO_ST_W4_CONN_RSP) ? SCO_ST_LISTENING 178 p_sco->state = SCO_ST_CONNECTING; 334 p_ccb->state == SCO_ST_CONNECTED) 371 BTM_TRACE_WARNING ("BTM_WriteScoData, invalid sco index: %d at state [%d]", 372 sco_inx, btm_cb.sco_cb.sco_db[sco_inx].state); 603 if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) 604 || (p->state [all...] |
/system/core/libnativebridge/ |
H A D | native_bridge.cc | 44 kNotSetup, // Initial state. 57 static const char* GetNativeBridgeStateString(NativeBridgeState state) { argument 58 switch (state) { 76 // Current state of the native bridge. 77 static NativeBridgeState state = NativeBridgeState::kNotSetup; member in namespace:android 163 state = NativeBridgeState::kClosed; 174 if (state != NativeBridgeState::kNotSetup) { 178 GetNativeBridgeStateString(state)); 217 state = NativeBridgeState::kOpened; 220 return state [all...] |
/system/bt/btcore/src/ |
H A D | module.c | 46 static void set_module_state(const module_t *module, module_state_t state); 110 module_state_t state = get_module_state(module); local 111 assert(state <= MODULE_STATE_STARTED); 114 if (state < MODULE_STATE_STARTED) 126 module_state_t state = get_module_state(module); local 127 assert(state <= MODULE_STATE_INITIALIZED); 130 if (state < MODULE_STATE_INITIALIZED) 162 static void set_module_state(const module_t *module, module_state_t state) { argument 173 *state_ptr = state;
|