/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 | 48 parse_state state; in ParseData() local 49 state.filename = filename.c_str(); in ParseData() 50 state.line = 0; in ParseData() 51 state.ptr = &data_copy[0]; in ParseData() 52 state.nexttoken = 0; in ParseData() 58 switch (next_token(&state)) { in ParseData() 65 state.line++; in ParseData() 76 parse_error(&state, "%s\n", ret_err.c_str()); in ParseData() 81 if (!section_parser->ParseLineSection(args, state.filename, in ParseData() 82 state.line, &ret_err)) { in ParseData() [all …]
|
/system/update_engine/payload_consumer/ |
D | delta_performer_integration_test.cc | 304 DeltaState *state, in GenerateDeltaFile() argument 306 EXPECT_TRUE(utils::MakeTempFile("a_img.XXXXXX", &state->a_img, nullptr)); in GenerateDeltaFile() 307 EXPECT_TRUE(utils::MakeTempFile("b_img.XXXXXX", &state->b_img, nullptr)); in GenerateDeltaFile() 312 utils::MakeTempFile("result_img.XXXXXX", &state->result_img, nullptr)); in GenerateDeltaFile() 313 test_utils::CreateExtImageAtPath(state->a_img, nullptr); in GenerateDeltaFile() 315 state->image_size = utils::FileSize(state->a_img); in GenerateDeltaFile() 340 ScopedLoopMounter b_mounter(state->a_img, &a_mnt, 0); in GenerateDeltaFile() 378 EXPECT_TRUE(base::CopyFile(base::FilePath(state->a_img), in GenerateDeltaFile() 379 base::FilePath(state->b_img))); in GenerateDeltaFile() 384 brillo::Blob ones(state->image_size, 0xff); in GenerateDeltaFile() [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/core/adb/ |
D | fdevent.cpp | 90 std::string state; in dump_fde() local 91 if (fde->state & FDE_ACTIVE) { in dump_fde() 92 state += "A"; in dump_fde() 94 if (fde->state & FDE_PENDING) { in dump_fde() 95 state += "P"; in dump_fde() 97 if (fde->state & FDE_CREATED) { in dump_fde() 98 state += "C"; in dump_fde() 100 if (fde->state & FDE_READ) { in dump_fde() 101 state += "R"; in dump_fde() 103 if (fde->state & FDE_WRITE) { in dump_fde() [all …]
|
/system/bt/hci/src/ |
D | low_power_manager.c | 70 static low_power_mode_state_t state; variable 109 if (state != LPM_DISABLED) { in wake_assert() 134 if (state == LPM_DISABLING) { in enable() 139 } else if (state == LPM_ENABLING) { in enable() 144 } else if (state == LPM_ENABLED && enable) { in enable() 146 } else if (state == LPM_DISABLED && !enable) { in enable() 150 state = enable ? LPM_ENABLING : LPM_DISABLING; in enable() 151 if (state == LPM_ENABLING) in enable() 158 if (state == LPM_ENABLED && wake_state == LPM_WAKE_ASSERTED) { in allow_device_sleep() 169 if (state == LPM_ENABLED && transmit_is_done) { in wake_deassert() [all …]
|
/system/bt/stack/rfcomm/ |
D | rfc_mx_fsm.c | 69 switch (p_mcb->state) in rfc_mx_sm_execute() 135 p_mcb->state = RFC_MX_STATE_WAIT_CONN_CNF; in rfc_mx_sm_state_idle() 142 RFCOMM_TRACE_ERROR ("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_idle() 152 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_idle() 170 RFCOMM_TRACE_EVENT ("RFCOMM MX ignored - evt:%d in state:%d", event, p_mcb->state); in rfc_mx_sm_state_idle() 190 RFCOMM_TRACE_ERROR ("Mx error state %d event %d", p_mcb->state, event); in rfc_mx_sm_state_wait_conn_cnf() 202 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf() 207 p_mcb->state = RFC_MX_STATE_CONFIGURE; in rfc_mx_sm_state_wait_conn_cnf() 212 p_mcb->state = RFC_MX_STATE_IDLE; in rfc_mx_sm_state_wait_conn_cnf() 217 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/tpm/trunks/ |
D | trunks_client.cc | 95 scoped_ptr<trunks::TpmState> state = factory->GetTpmState(); in DumpStatus() local 96 trunks::TPM_RC result = state->Initialize(); in DumpStatus() 103 state->IsOwnerPasswordSet() ? "true" : "false"); in DumpStatus() 105 state->IsEndorsementPasswordSet() ? "true" : "false"); in DumpStatus() 107 state->IsLockoutPasswordSet() ? "true" : "false"); in DumpStatus() 109 state->IsOwned() ? "true" : "false"); in DumpStatus() 111 state->IsInLockout() ? "true" : "false"); in DumpStatus() 113 state->IsPlatformHierarchyEnabled() ? "true" : "false"); in DumpStatus() 115 state->IsStorageHierarchyEnabled() ? "true" : "false"); in DumpStatus() 117 state->IsEndorsementHierarchyEnabled() ? "true" : "false"); in DumpStatus() [all …]
|
/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 | 50 static char *bta_ag_sco_state_str(UINT8 state); 183 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_conn_cback() 202 …: 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() 205 … &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() 207 … &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() 270 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_disc_cback() 367 bta_ag_cb.sco.state = BTA_AG_SCO_OPENING_ST; in bta_ag_esco_connreq_cback() 376 bta_ag_cb.sco.state = BTA_AG_SCO_OPEN_XFER_ST; in bta_ag_esco_connreq_cback() 382 bta_ag_cb.sco.state = BTA_AG_SCO_LISTEN_ST; in bta_ag_esco_connreq_cback() 714 UINT8 in_state = p_sco->state; in bta_ag_sco_event() [all …]
|
/system/connectivity/shill/ |
D | pending_activation_store.cc | 50 string StateToString(PendingActivationStore::State state) { in StateToString() argument 51 switch (state) { in StateToString() 129 int state = 0; in GetActivationState() local 130 if (!storage_->GetInt(IdentifierTypeToGroupId(type), identifier, &state)) { in GetActivationState() 134 if (state <= 0 || state >= kStateMax) { in GetActivationState() 139 return static_cast<State>(state); in GetActivationState() 145 State state) { in SetActivationState() argument 146 SLOG(this, 2) << __func__ << ": State=" << StateToString(state) << ", " in SetActivationState() 152 if (state == kStateUnknown) { in SetActivationState() 156 if (state < 0 || state >= kStateMax) { in SetActivationState() [all …]
|
/system/extras/mmap-perf/ |
D | mmapPerf.cpp | 113 static void benchRandomRead(benchmark::State& state) { in benchRandomRead() argument 115 while (state.KeepRunning()) { in benchRandomRead() 119 state.SetBytesProcessed(state.iterations() * pageSize); in benchRandomRead() 123 static void benchRandomWrite(benchmark::State& state) { in benchRandomWrite() argument 125 while (state.KeepRunning()) { in benchRandomWrite() 129 state.SetBytesProcessed(state.iterations() * pageSize); in benchRandomWrite() 133 static void benchLinearRead(benchmark::State& state) { in benchLinearRead() argument 136 while (state.KeepRunning()) { in benchLinearRead() 140 state.SetBytesProcessed(state.iterations() * pageSize); in benchLinearRead() 144 static void benchLinearWrite(benchmark::State& state) { in benchLinearWrite() argument [all …]
|
/system/media/brillo/audio/audioservice/ |
D | audio_device_handler.cpp | 72 int state = 0; in GetInitialAudioDeviceState() local 73 int bytes_read = file.ReadAtCurrentPos(reinterpret_cast<char*>(&state), 1); in GetInitialAudioDeviceState() 74 state -= '0'; in GetInitialAudioDeviceState() 79 VLOG(1) << "Initial audio jack state is " << state; in GetInitialAudioDeviceState() 81 bool headphone = state & kHeadPhoneMask; in GetInitialAudioDeviceState() 83 bool microphone = (state & kMicrophoneMask) >> 1; in GetInitialAudioDeviceState() 89 audio_devices_t device, audio_policy_dev_state_t state) { in NotifyAudioPolicyService() argument 96 << state; in NotifyAudioPolicyService() 97 aps_->setDeviceConnectionState(device, state, "", ""); in NotifyAudioPolicyService() 101 audio_policy_dev_state_t state = AUDIO_POLICY_DEVICE_STATE_AVAILABLE; in ConnectAudioDevice() local [all …]
|
/system/bt/btif/src/ |
D | btif_sm.c | 39 btif_sm_state_t state; member 68 p_cb->state = initial_state; in btif_sm_init() 117 return p_cb->state; in btif_sm_get_state() 144 if (p_cb->p_handlers[p_cb->state](event, data) == FALSE) in btif_sm_dispatch() 163 bt_status_t btif_sm_change_state(btif_sm_handle_t handle, btif_sm_state_t state) in btif_sm_change_state() argument 175 if (p_cb->p_handlers[p_cb->state](BTIF_SM_EXIT_EVT, NULL) == FALSE) in btif_sm_change_state() 179 p_cb->state = state; in btif_sm_change_state() 182 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 52 static char *format_state(const btif_debug_conn_state_t state) { in format_state() argument 53 switch (state) { in format_state() 68 void btif_debug_conn_state(const bt_bdaddr_t bda, const btif_debug_conn_state_t state, in btif_debug_conn_state() argument 74 evt->state = state; in btif_debug_conn_state() 93 format_state(evt->state), in btif_debug_conn_dump() 96 if (evt->state == BTIF_DEBUG_DISCONNECTED) in btif_debug_conn_dump()
|
/system/bt/stack/btm/ |
D | btm_sco.c | 162 p_sco->state = (p_sco->state == SCO_ST_W4_CONN_RSP) ? SCO_ST_LISTENING 183 p_sco->state = SCO_ST_CONNECTING; 337 p_ccb->state == SCO_ST_CONNECTED) 375 sco_inx, btm_cb.sco_cb.sco_db[sco_inx].state); 587 tBTM_PM_STATE state; 606 if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) 607 || (p->state == SCO_ST_PEND_UNPARK)) 619 if ((p->state == SCO_ST_LISTENING) && (!p->rem_bd_known)) 627 if (p->state == SCO_ST_UNUSED) 635 if ((btm_read_power_mode_state(p->esco.data.bd_addr, &state) == BTM_SUCCESS)) [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 170 state = NativeBridgeState::kClosed; in CloseNativeBridge() 180 if (state != NativeBridgeState::kNotSetup) { in LoadNativeBridge() 184 GetNativeBridgeStateString(state)); in LoadNativeBridge() 223 state = NativeBridgeState::kOpened; in LoadNativeBridge() 226 return state == NativeBridgeState::kOpened; in LoadNativeBridge() 258 if (state != NativeBridgeState::kOpened) { in PreInitializeNativeBridge() 278 state = NativeBridgeState::kPreInitialized; in PreInitializeNativeBridge() [all …]
|
/system/bt/service/ |
D | logging_helpers.cpp | 26 const char *BtAvConnectionStateText(const btav_connection_state_t state) { in BtAvConnectionStateText() argument 27 switch (state) { in BtAvConnectionStateText() 37 const char *BtAvAudioStateText(const btav_audio_state_t state) { in BtAvAudioStateText() argument 38 switch (state) { in BtAvAudioStateText() 57 const char *BtStateText(const bt_state_t state) { in BtStateText() argument 58 switch (state) { in BtStateText() 66 const char *BtDiscoveryStateText(const bt_discovery_state_t state) { in BtDiscoveryStateText() argument 67 switch (state) { in BtDiscoveryStateText()
|