/system/core/init/ |
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) { in parse_subsystem() argument 100 parse_error(state, "invalid subsystem name '%s'\n", args[1]); in parse_subsystem() 106 parse_error(state, "ignored duplicate definition of subsystem '%s'\n", in parse_subsystem() 113 parse_error(state, "out of memory\n"); in parse_subsystem() 122 static void parse_line_subsystem(struct parse_state *state, int nargs, in parse_line_subsystem() argument 125 struct ueventd_subsystem *s = (ueventd_subsystem*) state->context; in parse_line_subsystem() 140 parse_error(state, "invalid devname '%s'\n", args[1]); in parse_line_subsystem() 147 parse_error(state, "dirname '%s' does not start with '/'\n", in parse_line_subsystem() 152 parse_error(state, "invalid option '%s'\n", args[0]); in parse_line_subsystem() [all …]
|
D | parser.cpp | 9 void parse_error(struct parse_state *state, const char *fmt, ...) in parse_error() argument 15 snprintf(buf, 128, "%s: %d: ", state->filename, state->line); in parse_error() 26 int next_token(struct parse_state *state) in next_token() argument 28 char *x = state->ptr; in next_token() 31 if (state->nexttoken) { in next_token() 32 int t = state->nexttoken; in next_token() 33 state->nexttoken = 0; in next_token() 40 state->ptr = x; in next_token() 44 state->ptr = x; in next_token() 54 state->ptr = x+1; in next_token() [all …]
|
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) in parse_import() argument 335 struct listnode *import_list = (listnode*) state->priv; in parse_import() 347 state->line, state->filename); in parse_import() 357 static void parse_new_section(struct parse_state *state, int kw, in parse_new_section() argument 364 state->context = parse_service(state, nargs, args); in parse_new_section() 365 if (state->context) { in parse_new_section() [all …]
|
/system/core/libpixelflinger/ |
D | clear.cpp | 42 c->state.clear.dirty = GGL_STENCIL_BUFFER_BIT | in ggl_init_clear() 45 c->state.clear.depth = FIXED_ONE; in ggl_init_clear() 99 const uint32_t l = c->state.scissor.left; in ggl_clear() 100 const uint32_t t = c->state.scissor.top; in ggl_clear() 101 uint32_t w = c->state.scissor.right - l; in ggl_clear() 102 uint32_t h = c->state.scissor.bottom - t; in ggl_clear() 108 if (c->state.buffers.color.format == 0) in ggl_clear() 111 if (c->state.buffers.depth.format == 0) in ggl_clear() 114 if (c->state.buffers.stencil.format == 0) in ggl_clear() 118 if (c->state.clear.dirty & GGL_COLOR_BUFFER_BIT) { in ggl_clear() [all …]
|
D | pixelflinger.cpp | 106 ggl_set_surface(c, &c->state.texture[tmu].surface, surface); in ggl_bindTextureLod() 112 if (surface->format != c->state.buffers.color.format) in ggl_colorBuffer() 115 if (surface->width > c->state.buffers.coverageBufferSize) { in ggl_colorBuffer() 117 free(c->state.buffers.coverage); in ggl_colorBuffer() 118 c->state.buffers.coverage = (int16_t*)malloc(surface->width * 2); in ggl_colorBuffer() 119 c->state.buffers.coverageBufferSize = in ggl_colorBuffer() 120 c->state.buffers.coverage ? surface->width : 0; in ggl_colorBuffer() 122 ggl_set_surface(c, &(c->state.buffers.color), surface); in ggl_colorBuffer() 123 if (c->state.buffers.read.format == 0) { in ggl_colorBuffer() 124 ggl_set_surface(c, &(c->state.buffers.read), surface); in ggl_colorBuffer() [all …]
|
D | picker.cpp | 39 const uint32_t enables = c->state.enables; in ggl_pick() 40 needs_t new_needs(c->state.needs); in ggl_pick() 44 new_needs.n |= GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT); in ggl_pick() 50 uint32_t n = GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT); in ggl_pick() 53 uint32_t src = c->state.blend.src; in ggl_pick() 54 uint32_t dst = c->state.blend.dst; in ggl_pick() 55 uint32_t src_alpha = c->state.blend.src_alpha; in ggl_pick() 56 uint32_t dst_alpha = c->state.blend.dst_alpha; in ggl_pick() 57 const GGLFormat& cbf = c->formats[ c->state.buffers.color.format ]; in ggl_pick() 84 if (c->state.blend.alpha_separate) { in ggl_pick() [all …]
|
D | raster.cpp | 44 c->state.raster.x = x; in ggl_rasterPos2x() 45 c->state.raster.y = y; in ggl_rasterPos2x() 59 surface_t* cb = &(c->state.buffers.color); in ggl_copyPixels() 72 GGLint xd = gglFixedToIntRound(c->state.raster.x); in ggl_copyPixels() 73 GGLint yd = gglFixedToIntRound(c->state.raster.y); in ggl_copyPixels() 76 if (xd < GGLint(c->state.scissor.left)) { in ggl_copyPixels() 77 GGLint offset = GGLint(c->state.scissor.left) - xd; in ggl_copyPixels() 78 xd = GGLint(c->state.scissor.left); in ggl_copyPixels() 82 if (yd < GGLint(c->state.scissor.top)) { in ggl_copyPixels() 83 GGLint offset = GGLint(c->state.scissor.top) - yd; in ggl_copyPixels() [all …]
|
/system/core/libmincrypt/ |
D | sha256.c | 77 A = ctx->state[0]; in SHA256_Transform() 78 B = ctx->state[1]; in SHA256_Transform() 79 C = ctx->state[2]; in SHA256_Transform() 80 D = ctx->state[3]; in SHA256_Transform() 81 E = ctx->state[4]; in SHA256_Transform() 82 F = ctx->state[5]; in SHA256_Transform() 83 G = ctx->state[6]; in SHA256_Transform() 84 H = ctx->state[7]; in SHA256_Transform() 104 ctx->state[0] += A; in SHA256_Transform() 105 ctx->state[1] += B; in SHA256_Transform() [all …]
|
D | sha.c | 56 A = ctx->state[0]; in SHA1_Transform() 57 B = ctx->state[1]; in SHA1_Transform() 58 C = ctx->state[2]; in SHA1_Transform() 59 D = ctx->state[3]; in SHA1_Transform() 60 E = ctx->state[4]; in SHA1_Transform() 81 ctx->state[0] += A; in SHA1_Transform() 82 ctx->state[1] += B; in SHA1_Transform() 83 ctx->state[2] += C; in SHA1_Transform() 84 ctx->state[3] += D; in SHA1_Transform() 85 ctx->state[4] += E; in SHA1_Transform() [all …]
|
/system/bt/stack/rfcomm/ |
D | rfc_mx_fsm.c | 69 switch (p_mcb->state) in rfc_mx_sm_execute() 132 p_mcb->state = RFC_MX_STATE_WAIT_CONN_CNF; in rfc_mx_sm_state_idle() 139 RFCOMM_TRACE_ERROR ("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_idle() 149 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_idle() 167 RFCOMM_TRACE_EVENT ("RFCOMM MX ignored - evt:%d in state:%d", event, p_mcb->state); in rfc_mx_sm_state_idle() 187 RFCOMM_TRACE_ERROR ("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_wait_conn_cnf() 199 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf() 204 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_wait_conn_cnf() 209 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf() 214 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf() [all …]
|
D | rfc_port_if.c | 85 if (p_mcb->state != RFC_MX_STATE_CONNECTED) in RFCOMM_DlcEstablishReq() 113 if ((p_mcb->state != RFC_MX_STATE_CONNECTED) && (result == RFCOMM_SUCCESS)) in RFCOMM_DlcEstablishRsp() 153 if (p_mcb->state != RFC_MX_STATE_CONNECTED) in RFCOMM_ParNegReq() 196 if (p_mcb->state != RFC_MX_STATE_CONNECTED) in RFCOMM_ParNegRsp() 217 if (p_mcb->state != RFC_MX_STATE_CONNECTED) in RFCOMM_PortNegReq() 253 if (p_mcb->state != RFC_MX_STATE_CONNECTED) in RFCOMM_PortNegRsp() 277 if ((p_port->state != PORT_STATE_OPENED) in RFCOMM_ControlReq() 278 || (p_port->rfc.state != RFC_STATE_OPENED)) in RFCOMM_ControlReq() 309 if ((p_port->state != PORT_STATE_OPENED) in RFCOMM_FlowReq() 310 || (p_port->rfc.state != RFC_STATE_OPENED)) in RFCOMM_FlowReq() [all …]
|
/system/bt/hci/src/ |
D | low_power_manager.c | 69 static low_power_mode_state_t state; variable 108 if (state != LPM_DISABLED) { in wake_assert() 133 if (state == LPM_DISABLING) { in enable() 138 } else if (state == LPM_ENABLING) { in enable() 143 } else if (state == LPM_ENABLED && enable) { in enable() 145 } else if (state == LPM_DISABLED && !enable) { in enable() 149 state = enable ? LPM_ENABLING : LPM_DISABLING; in enable() 155 if (state == LPM_ENABLED && wake_state == LPM_WAKE_ASSERTED) { in allow_device_sleep() 166 if (state == LPM_ENABLED && transmit_is_done) { in wake_deassert() 174 state = LPM_DISABLED; in reset_state() [all …]
|
D | hci_audio.c | 28 void set_audio_state(uint16_t handle, sco_codec_t codec, sco_state_t state) in set_audio_state() argument 30 LOG_INFO("%s handle:%d codec:0x%x state:%d", __func__, handle, codec, state); in set_audio_state() 36 audio_state.state = state; in set_audio_state()
|
/system/bt/btif/co/ |
D | bta_ag_co.c | 64 void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state, tBTA_AG_PEER_CODEC codec) in bta_ag_co_audio_state() argument 66 void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state) in bta_ag_co_audio_state() 69 BTIF_TRACE_DEBUG("bta_ag_co_audio_state: handle %d, state %d", handle, state); in bta_ag_co_audio_state() 70 switch (state) in bta_ag_co_audio_state() 76 set_audio_state(handle, codec, state); in bta_ag_co_audio_state() 87 set_audio_state(handle, codec, state); in bta_ag_co_audio_state() 89 set_audio_state(handle, BTA_AG_CODEC_CVSD, state); in bta_ag_co_audio_state() 97 handle, app_id, state, codec); in bta_ag_co_audio_state() 100 handle, app_id, state); in bta_ag_co_audio_state()
|
/system/bt/bta/ag/ |
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; in bta_ag_sco_conn_cback() 206 …: 0x%x p_cur_scb: 0x%08x sco.state: %d", sco_idx, bta_ag_cb.sco.p_curr_scb, bta_ag_cb.sco.state); in bta_ag_sco_disc_cback() 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); in bta_ag_sco_disc_cback() 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); in bta_ag_sco_disc_cback() 278 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_disc_cback() 375 bta_ag_cb.sco.state = BTA_AG_SCO_OPENING_ST; in bta_ag_esco_connreq_cback() 384 bta_ag_cb.sco.state = BTA_AG_SCO_OPEN_XFER_ST; in bta_ag_esco_connreq_cback() 390 bta_ag_cb.sco.state = BTA_AG_SCO_LISTEN_ST; in bta_ag_esco_connreq_cback() 728 UINT8 in_state = p_sco->state; in bta_ag_sco_event() [all …]
|
/system/bt/test/suite/support/ |
D | adapter.c | 25 static bt_state_t state; variable 33 return state; in adapter_get_state() 64 void acl_state_changed(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_acl_state_t state) { in acl_state_changed() argument 65 acl_state = state; in acl_state_changed() 71 state = new_state; in adapter_state_changed() 89 bt_bond_state_t state) { in bond_state_changed() argument 90 bond_state = state; in bond_state_changed() 100 void discovery_state_changed(bt_discovery_state_t state) { in discovery_state_changed() argument 101 discovery_state = state; in discovery_state_changed()
|
/system/bt/btif/src/ |
D | btif_sm.c | 46 btif_sm_state_t state; member 90 p_cb->state = initial_state; in btif_sm_init() 139 return p_cb->state; in btif_sm_get_state() 166 if (p_cb->p_handlers[p_cb->state](event, data) == FALSE) in btif_sm_dispatch() 185 bt_status_t btif_sm_change_state(btif_sm_handle_t handle, btif_sm_state_t state) in btif_sm_change_state() argument 197 if (p_cb->p_handlers[p_cb->state](BTIF_SM_EXIT_EVT, NULL) == FALSE) in btif_sm_change_state() 201 p_cb->state = state; in btif_sm_change_state() 204 if (p_cb->p_handlers[p_cb->state](BTIF_SM_ENTER_EVT, NULL) == FALSE) in btif_sm_change_state()
|
D | btif_debug_conn.c | 32 btif_debug_conn_state_t state; member 51 static char *format_state(const btif_debug_conn_state_t state) { in format_state() argument 52 switch (state) { in format_state() 67 void btif_debug_conn_state(const bt_bdaddr_t bda, const btif_debug_conn_state_t state, in btif_debug_conn_state() argument 73 evt->state = state; in btif_debug_conn_state() 92 format_state(evt->state), in btif_debug_conn_dump() 95 if (evt->state == BTIF_DEBUG_DISCONNECTED) in btif_debug_conn_dump()
|
/system/core/adb/ |
D | fdevent.cpp | 64 fde->state & FDE_READ ? 'R' : ' ', in dump_fde() 65 fde->state & FDE_WRITE ? 'W' : ' ', in dump_fde() 66 fde->state & FDE_ERROR ? 'E' : ' ', in dump_fde() 91 .state = 0, 158 active = (fde->state & FDE_EVENTMASK) != 0; in fdevent_update() 168 fde->state = (fde->state & FDE_STATEMASK) | events; in fdevent_update() 227 if(fde->state & FDE_PENDING) continue; in fdevent_process() 228 fde->state |= FDE_PENDING; in fdevent_process() 294 fde->state = (fde->state & FDE_STATEMASK) | events; in fdevent_update() 413 fde->fd, fde->events, fde->state); in fdevent_process() [all …]
|
/system/core/libnativebridge/ |
D | native_bridge.cc | 57 static const char* GetNativeBridgeStateString(NativeBridgeState state) { in GetNativeBridgeStateString() argument 58 switch (state) { in GetNativeBridgeStateString() 77 static NativeBridgeState state = NativeBridgeState::kNotSetup; variable 163 state = NativeBridgeState::kClosed; in CloseNativeBridge() 174 if (state != NativeBridgeState::kNotSetup) { in LoadNativeBridge() 178 GetNativeBridgeStateString(state)); in LoadNativeBridge() 217 state = NativeBridgeState::kOpened; in LoadNativeBridge() 220 return state == NativeBridgeState::kOpened; in LoadNativeBridge() 252 if (state != NativeBridgeState::kOpened) { in PreInitializeNativeBridge() 272 state = NativeBridgeState::kPreInitialized; in PreInitializeNativeBridge() [all …]
|
/system/bt/stack/btm/ |
D | btm_sco.c | 157 p_sco->state = (p_sco->state == SCO_ST_W4_CONN_RSP) ? SCO_ST_LISTENING in btm_esco_conn_rsp() 178 p_sco->state = SCO_ST_CONNECTING; in btm_esco_conn_rsp() 334 p_ccb->state == SCO_ST_CONNECTED) in BTM_WriteScoData() 372 sco_inx, btm_cb.sco_cb.sco_db[sco_inx].state); in BTM_WriteScoData() 603 if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) in BTM_CreateSco() 604 || (p->state == SCO_ST_PEND_UNPARK)) in BTM_CreateSco() 616 if ((p->state == SCO_ST_LISTENING) && (!p->rem_bd_known)) in BTM_CreateSco() 624 if (p->state == SCO_ST_UNUSED) in BTM_CreateSco() 639 p->state = SCO_ST_PEND_UNPARK; in BTM_CreateSco() 682 if( p->state != SCO_ST_PEND_UNPARK ) in BTM_CreateSco() [all …]
|
D | btm_pm.c | 215 if(mode == p_cb->state) /* the requested mode is current mode */ in BTM_SetPowerMode() 246 BTM_TRACE_DEBUG( "btm_pm state:0x%x, pm_pend_link: %d", p_cb->state, btm_cb.pm_pend_link); in BTM_SetPowerMode() 249 if( (p_cb->state == BTM_PM_STS_HOLD) || in BTM_SetPowerMode() 250 (p_cb->state == BTM_PM_STS_PENDING) || in BTM_SetPowerMode() 256 p_cb->state |= BTM_PM_STORED_MASK; in BTM_SetPowerMode() 294 *p_mode = btm_cb.pm_mode_db[acl_ind].state; in BTM_ReadPowerMode() 326 if(BTM_PM_STS_ACTIVE == btm_cb.pm_mode_db[acl_ind].state || in BTM_SetSsrParams() 327 BTM_PM_STS_SNIFF == btm_cb.pm_mode_db[acl_ind].state) in BTM_SetSsrParams() 394 p_db->state = BTM_PM_ST_ACTIVE; in btm_pm_sm_alloc() 396 BTM_TRACE_DEBUG( "btm_pm_sm_alloc ind:%d st:%d", ind, p_db->state); in btm_pm_sm_alloc() [all …]
|
/system/bt/audio_a2dp_hw/ |
D | audio_a2dp_hw.c | 104 a2dp_state_t state; member 438 common->state = AUDIO_A2DP_STATE_STOPPED; in a2dp_stream_common_init() 446 INFO("state %d", common->state); in start_audio_datapath() 453 int oldstate = common->state; in start_audio_datapath() 454 common->state = AUDIO_A2DP_STATE_STARTING; in start_audio_datapath() 461 common->state = oldstate; in start_audio_datapath() 467 common->state = oldstate; in start_audio_datapath() 477 common->state = oldstate; in start_audio_datapath() 481 common->state = AUDIO_A2DP_STATE_STARTED; in start_audio_datapath() 489 int oldstate = common->state; in stop_audio_datapath() [all …]
|
/system/bt/stack/smp/ |
D | smp_api.c | 106 SMP_TRACE_EVENT ("SMP_Register state=%d", smp_cb.state); in SMP_Register() 136 __FUNCTION__, p_cb->state, p_cb->br_state, p_cb->flags); in SMP_Pair() 137 if (p_cb->state != SMP_STATE_IDLE || p_cb->flags & SMP_PAIR_FLAGS_WE_STARTED_DD || in SMP_Pair() 178 __func__, p_cb->state, p_cb->br_state, p_cb->flags); in SMP_BR_PairWith() 180 if (p_cb->state != SMP_STATE_IDLE || in SMP_BR_PairWith() 221 BTM_TRACE_EVENT ("SMP_CancelPair state=%d flag=0x%x ", p_cb->state, p_cb->flags); in SMP_PairCancel() 222 if ( (p_cb->state != SMP_STATE_IDLE) && in SMP_PairCancel() 266 if (smp_cb.state != SMP_STATE_WAIT_APP_RSP || in SMP_SecurityGrant() 300 SMP_TRACE_WARNING ("SMP_PasskeyReply() - Wrong State: %d", p_cb->state); in SMP_PasskeyReply() 357 SMP_TRACE_WARNING ("%s() - Wrong State: %d", __FUNCTION__,p_cb->state); in SMP_ConfirmReply() [all …]
|
/system/bt/stack/avdt/ |
D | avdt_ad.c | 135 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_st(UINT8 type, tAVDT_CCB *p_ccb, UINT8 state) in avdt_ad_tc_tbl_by_st() argument 148 (p_tbl->state == state)) in avdt_ad_tc_tbl_by_st() 165 (p_tbl->state == state)) in avdt_ad_tc_tbl_by_st() 175 (p_tbl->state == state)) in avdt_ad_tc_tbl_by_st() 273 if (p_tbl->state == AVDT_AD_ST_UNUSED) in avdt_ad_tc_tbl_alloc() 287 p_tbl->state = AVDT_AD_ST_IDLE; in avdt_ad_tc_tbl_alloc() 330 close.old_tc_state = p_tbl->state; in avdt_ad_tc_close_ind() 332 p_tbl->state = AVDT_AD_ST_UNUSED; in avdt_ad_tc_close_ind() 377 p_tbl->state = AVDT_AD_ST_OPEN; in avdt_ad_tc_open_ind() 575 p_tbl->state = AVDT_AD_ST_ACP; in avdt_ad_open_req() [all …]
|