Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 258) sorted by relevance

1234567891011

/system/core/libpixelflinger/codeflinger/
DArm64Disassembler.cpp134 static void decode_token(uint32_t code, char *token, char *instr_part) in decode_token() argument
137 sprintf(instr_part, "0x%x", bits_unsigned(code, 21,10)); in decode_token()
139 sprintf(instr_part, "0x%x", bits_unsigned(code, 20,5)); in decode_token()
141 sprintf(instr_part, "lsl #%d", bits_unsigned(code, 23,22) * 12); in decode_token()
145 sprintf(instr_part, "%s", shift2_table[bits_unsigned(code, 23,22)]); in decode_token()
148 sprintf(instr_part, "%d", bits_unsigned(code, 22,21) * 16); in decode_token()
150 sprintf(instr_part, "%d", bits_unsigned(code, 15,10)); in decode_token()
152 sprintf(instr_part, "%d", bits_unsigned(code, 12,12) * 2); in decode_token()
154 sprintf(instr_part, "%d", bits_unsigned(code, 12,12) * 3); in decode_token()
156 sprintf(instr_part, "%d", bits_unsigned(code, 12,10)); in decode_token()
[all …]
/system/bt/bta/ag/
Dbta_ag_rfc.c42 void bta_ag_port_cback_1(UINT32 code, UINT16 port_handle);
43 void bta_ag_port_cback_2(UINT32 code, UINT16 port_handle);
44 void bta_ag_port_cback_3(UINT32 code, UINT16 port_handle);
46 void bta_ag_mgmt_cback_1(UINT32 code, UINT16 port_handle);
47 void bta_ag_mgmt_cback_2(UINT32 code, UINT16 port_handle);
48 void bta_ag_mgmt_cback_3(UINT32 code, UINT16 port_handle);
88 static void bta_ag_port_cback(UINT32 code, UINT16 port_handle, UINT16 handle) in bta_ag_port_cback() argument
91 UNUSED(code); in bta_ag_port_cback()
120 static void bta_ag_mgmt_cback(UINT32 code, UINT16 port_handle, UINT16 handle) in bta_ag_mgmt_cback() argument
128 code, port_handle, handle); in bta_ag_mgmt_cback()
[all …]
Dbta_ag_cmd.c60 #define AT_SET_RES_CB(res_cb, c, p, i) {res_cb.code = c; res_cb.p_arg = p; res_cb.int_arg = i;}
65 UINT8 code; member
335 static void bta_ag_send_result(tBTA_AG_SCB *p_scb, UINT8 code, char *p_arg, in bta_ag_send_result() argument
350 strlcpy(p, bta_ag_result_tbl[code].p_res, sizeof(buf) - 2); in bta_ag_send_result()
355 switch(code) in bta_ag_send_result()
370 p += strlen(bta_ag_result_tbl[code].p_res); in bta_ag_send_result()
373 if (bta_ag_result_tbl[code].fmt == BTA_AG_RES_FMT_INT) in bta_ag_send_result()
377 else if (bta_ag_result_tbl[code].fmt == BTA_AG_RES_FMT_STR) in bta_ag_send_result()
430 strcpy(p, bta_ag_result_tbl[m_res_cb->res_cb[res_idx].code].p_res); in bta_ag_send_multi_result()
431 p += strlen(bta_ag_result_tbl[m_res_cb->res_cb[res_idx].code].p_res); in bta_ag_send_multi_result()
[all …]
/system/core/libpixelflinger/tests/arch-mips64/disassembler/
Dmips64_disassembler_test.cpp38 uint32_t code; member
120 uint32_t code; member
137 uint32_t code; member
156 mips_disassem(&test->code, instr, 0); in main()
162 "Actual : %s\n", test->code, test->instr, instr); in main()
170 mips_disassem(&test->code, instr, 0); in main()
183 "Actual : %s\n", test->code, temp, instr); in main()
191 mips_disassem(&test->code, instr, 0); in main()
204 "Actual : '%s'\n", test->code, temp, instr); in main()
/system/update_engine/common/
Daction_processor.cc108 ErrorCode code) { in ActionComplete() argument
111 delegate_->ActionCompleted(this, actionptr, code); in ActionComplete()
113 current_action_->ActionCompleted(code); in ActionComplete()
119 << " with code " << utils::ErrorCodeToString(code); in ActionComplete()
120 if (!actions_.empty() && code != ErrorCode::kSuccess) { in ActionComplete()
128 suspended_error_code_ = code; in ActionComplete()
131 StartNextActionOrFinish(code); in ActionComplete()
134 void ActionProcessor::StartNextActionOrFinish(ErrorCode code) { in StartNextActionOrFinish() argument
137 delegate_->ProcessingDone(this, code); in StartNextActionOrFinish()
Derror_code_utils.cc26 string ErrorCodeToString(ErrorCode code) { in ErrorCodeToString() argument
31 if ((static_cast<int>(code) & static_cast<int>(ErrorCode::kSpecialFlags)) && in ErrorCodeToString()
32 (static_cast<int>(code) & ~static_cast<int>(ErrorCode::kSpecialFlags))) in ErrorCodeToString()
33 code = static_cast<ErrorCode>( in ErrorCodeToString()
34 static_cast<int>(code) & ~static_cast<int>(ErrorCode::kSpecialFlags)); in ErrorCodeToString()
35 switch (code) { in ErrorCodeToString()
149 return "Unknown error: " + base::UintToString(static_cast<unsigned>(code)); in ErrorCodeToString()
Dhttp_common.cc27 const char *GetHttpResponseDescription(HttpResponseCode code) { in GetHttpResponseDescription() argument
29 HttpResponseCode code; in GetHttpResponseDescription() member
60 if ((is_found = (http_response_table[i].code == code))) in GetHttpResponseDescription()
Daction_processor.h89 void ActionComplete(AbstractAction* actionptr, ErrorCode code);
95 void StartNextActionOrFinish(ErrorCode code);
129 ErrorCode code) {} in ProcessingDone() argument
139 ErrorCode code) {} in ActionCompleted() argument
/system/core/libsysutils/src/
DSocketClient.cpp54 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { in sendMsg() argument
55 return sendMsg(code, msg, addErrno, mUseCmdNum); in sendMsg()
58 int SocketClient::sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum) { in sendMsg() argument
64 ret = asprintf(&buf, "%d %d %s (%s)", code, getCmdNum(), msg, strerror(errno)); in sendMsg()
66 ret = asprintf(&buf, "%d %s (%s)", code, msg, strerror(errno)); in sendMsg()
70 ret = asprintf(&buf, "%d %d %s", code, getCmdNum(), msg); in sendMsg()
72 ret = asprintf(&buf, "%d %s", code, msg); in sendMsg()
84 int SocketClient::sendBinaryMsg(int code, const void *data, int len) { in sendBinaryMsg() argument
89 snprintf(buf, 4, "%.3d", code); in sendBinaryMsg()
108 int SocketClient::sendCode(int code) { in sendCode() argument
[all …]
/system/core/libpixelflinger/tests/arch-arm64/disassembler/
Darm64_diassembler_test.cpp32 int arm64_disassemble(uint32_t code, char* instr);
36 uint32_t code; member
301 arm64_disassemble(test->code, instr); in main()
307 "Actual : %s\n", test->code, test->instr, instr); in main()
/system/bt/service/common/bluetooth/binder/
DIBluetoothGattClientCallback.cpp38 uint32_t code, in onTransact() argument
42 VLOG(2) << "IBluetoothGattClientCallback: " << code; in onTransact()
46 switch (code) { in onTransact()
54 return BBinder::onTransact(code, data, reply, flags); in onTransact()
DIBluetoothCallback.cpp38 uint32_t code, in onTransact() argument
42 VLOG(2) << "IBluetoothCallback transaction: " << code; in onTransact()
46 switch (code) { in onTransact()
59 return BBinder::onTransact(code, data, reply, flags); in onTransact()
DIBluetoothGattClient.cpp39 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) { in onTransact() argument
40 VLOG(2) << "IBluetoothGattClient: " << code; in onTransact()
44 switch (code) { in onTransact()
62 return BBinder::onTransact(code, data, reply, flags); in onTransact()
/system/extras/tests/workloads/
Dcapture.sh63 code=$4
65 case $code in
72 (--) echo unknown code=$code;;
/system/core/include/sysutils/
DSocketClient.h48 int sendMsg(int code, const char *msg, bool addErrno);
49 int sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum);
54 int sendCode(int code);
59 int sendBinaryMsg(int code, const void *data, int len);
/system/bt/service/
Dlogging_helpers.cpp22 #define CASE_RETURN_TEXT(code) \ argument
23 case code: \
24 return #code
134 const char *BtAclText(const bt_acl_state_t code) { in BtAclText() argument
135 switch (code) { in BtAclText()
/system/bt/bta/hf_client/
Dbta_hf_client_rfc.c43 static void bta_hf_client_port_cback(UINT32 code, UINT16 port_handle) in bta_hf_client_port_cback() argument
45 UNUSED(code); in bta_hf_client_port_cback()
71 static void bta_hf_client_mgmt_cback(UINT32 code, UINT16 port_handle) in bta_hf_client_mgmt_cback() argument
76code, port_handle, bta_hf_client_cb.scb.conn_handle, bta_hf_client_cb.scb.serv_handle); in bta_hf_client_mgmt_cback()
79 if ((code != PORT_SUCCESS) && (port_handle != bta_hf_client_cb.scb.conn_handle)) in bta_hf_client_mgmt_cback()
85 if (code == PORT_SUCCESS) in bta_hf_client_mgmt_cback()
/system/vold/
Dvdc.cpp152 int code = atoi(strtok(res, " ")); in do_monitor() local
153 if (code >= 200 && code < 600) { in do_monitor()
156 if (code == 200) { in do_monitor()
159 return code; in do_monitor()
/system/core/toolbox/
Dgetevent.c212 static void print_event(int type, int code, int value, int print_flags) in print_event() argument
223 code_label = get_label(syn_labels, code); in print_event()
226 code_label = get_label(key_labels, code); in print_event()
230 code_label = get_label(rel_labels, code); in print_event()
233 code_label = get_label(abs_labels, code); in print_event()
234 switch(code) { in print_event()
240 code_label = get_label(msc_labels, code); in print_event()
243 code_label = get_label(led_labels, code); in print_event()
246 code_label = get_label(snd_labels, code); in print_event()
249 code_label = get_label(sw_labels, code); in print_event()
[all …]
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action_unittest.cc85 void ProcessingDone(const ActionProcessor* processor, ErrorCode code) { in ProcessingDone() argument
93 ErrorCode code) { in ActionCompleted() argument
96 code_ = code; in ActionCompleted()
100 ErrorCode code() const { return code_; } in code() function in chromeos_update_engine::FilesystemVerifierActionTestDelegate
221 EXPECT_EQ(ErrorCode::kError, delegate.code()); in DoTest()
222 return (ErrorCode::kError == delegate.code()); in DoTest()
226 EXPECT_EQ(expected_exit_code, delegate.code()); in DoTest()
227 return (expected_exit_code == delegate.code()); in DoTest()
229 EXPECT_EQ(ErrorCode::kSuccess, delegate.code()); in DoTest()
252 ErrorCode code) { in ActionCompleted() argument
[all …]
Ddownload_action.cc301 ErrorCode code = in TransferComplete() local
303 if (code == ErrorCode::kSuccess && delta_performer_.get()) { in TransferComplete()
304 code = delta_performer_->VerifyPayload(install_plan_.payload_hash, in TransferComplete()
306 if (code != ErrorCode::kSuccess) { in TransferComplete()
316 if (code == ErrorCode::kSuccess && HasOutputPipe()) in TransferComplete()
318 processor_->ActionComplete(this, code); in TransferComplete()
/system/extras/perfprofd/quipper/base/
Dcompiler_specific.h55 #define NON_EXPORTED_BASE(code) MSVC_SUPPRESS_WARNING(4275) \ argument
56 code
66 #define NON_EXPORTED_BASE(code) code argument
/system/core/healthd/
Dhealthd_mode_charger.cpp459 static int set_key_callback(int code, int value, void *data) in set_key_callback() argument
465 if (code > KEY_MAX) in set_key_callback()
469 if (charger->keys[code].down == down) in set_key_callback()
475 charger->keys[code].timestamp = now; in set_key_callback()
476 charger->keys[code].down = down; in set_key_callback()
477 charger->keys[code].pending = true; in set_key_callback()
479 LOGV("[%" PRId64 "] key[%d] down\n", now, code); in set_key_callback()
481 int64_t duration = now - charger->keys[code].timestamp; in set_key_callback()
485 now, code, secs, msecs); in set_key_callback()
496 set_key_callback(ev->code, ev->value, charger); in update_input_state()
[all …]
/system/tpm/attestation/
Dattestation.gyp27 # We need this include dir because we include all the local code as
37 # Use -fPIC so this code can be linked into a shared library.
57 # A library for common code.
79 # A library for client code.
83 # Use -fPIC so this code can be linked into a shared library.
121 # A library for server code.
/system/netd/server/
Dndc.c162 int code; in do_monitor() local
167 code = atoi(tmp); in do_monitor()
171 if (code >= 200 && code < 600) in do_monitor()

1234567891011