Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 23 of 23) sorted by relevance

/system/bt/stack/include/
Drfcdefs.h69 #define RFCOMM_PARSE_CTRL_FIELD(ea, cr, dlci, p_data) \ argument
72 (cr) = (*(p_data)&RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; \
77 #define RFCOMM_FORMAT_CTRL_FIELD(p_data, ea, cr, dlci) \ argument
78 (*(p_data)++ = (ea) | (cr) | ((dlci) << RFCOMM_SHIFT_DLCI))
92 #define RFCOMM_FRAME_IS_CMD(initiator, cr) \ argument
93 (((initiator) && !(cr)) || (!(initiator) && (cr)))
95 #define RFCOMM_FRAME_IS_RSP(initiator, cr) \ argument
96 (((initiator) && (cr)) || (!(initiator) && !(cr)))
Davct_api.h109 typedef void(tAVCT_MSG_CBACK)(uint8_t handle, uint8_t label, uint8_t cr,
273 extern uint16_t AVCT_MsgReq(uint8_t handle, uint8_t label, uint8_t cr,
/system/extras/bootctl/
Dbootctl.cpp78 return [=](CommandResult cr){ in generate_callback() argument
79 *crp = cr; in generate_callback()
83 static int handle_return(const Return<void> &ret, CommandResult cr, const char* errStr) { in handle_return() argument
87 } else if (!cr.success) { in handle_return()
88 fprintf(stderr, errStr, cr.errMsg.c_str()); in handle_return()
96 CommandResult cr; in do_mark_boot_successful() local
97 Return<void> ret = module->markBootSuccessful(generate_callback(&cr)); in do_mark_boot_successful()
98 return handle_return(ret, cr, "Error marking as having booted successfully: %s\n"); in do_mark_boot_successful()
104 CommandResult cr; in do_set_active_boot_slot() local
105 Return<void> ret = module->setActiveBootSlot(slot_number, generate_callback(&cr)); in do_set_active_boot_slot()
[all …]
/system/core/init/
Dproperty_service.cpp99 const ucred* cr; member
114 const char* source_context, const ucred& cr) { in CheckMacPerms() argument
122 audit_data.cr = &cr; in CheckMacPerms()
260 ucred cr = {.pid = 1, .uid = 0, .gid = 0}; in InitPropertySet() local
262 result = HandlePropertySet(name, value, kInitContext.c_str(), cr, &error); in InitPropertySet()
397 const std::string& source_context, const ucred& cr) { in CheckControlPropertyPerms() argument
411 … if (CheckMacPerms(control_string_legacy, target_context_legacy, source_context.c_str(), cr)) { in CheckControlPropertyPerms()
422 return CheckMacPerms(control_string_full, target_context_full, source_context.c_str(), cr); in CheckControlPropertyPerms()
427 const std::string& source_context, const ucred& cr, std::string* error) { in HandlePropertySet() argument
434 if (!CheckControlPropertyPerms(name, value, source_context, cr)) { in HandlePropertySet()
[all …]
Dproperty_service.h30 const std::string& source_context, const ucred& cr, std::string* error);
Dhost_init_stubs.h56 const std::string& source_context, const ucred& cr, std::string* error);
Dsubcontext.cpp307 ucred cr = {.pid = pid_, .uid = 0, .gid = 0}; in Execute() local
309 if (HandlePropertySet(property.name(), property.value(), context_, cr, &error) != 0) { in Execute()
/system/core/libcutils/
Dsockets_unix.cpp49 ucred cr; in socket_peer_is_trusted() local
50 socklen_t len = sizeof(cr); in socket_peer_is_trusted()
51 int n = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len); in socket_peer_is_trusted()
58 if ((cr.uid != AID_ROOT) && (cr.uid != AID_SHELL)) { in socket_peer_is_trusted()
59 ALOGE("untrusted userid on other end of socket: userid %d\n", cr.uid); in socket_peer_is_trusted()
/system/bt/stack/rfcomm/
Drfc_ts_frames.cc44 uint8_t cr = RFCOMM_CR(p_mcb->is_initiator, true); in rfc_send_sabme() local
51 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_sabme()
56 RFCOMM_SABME_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme()
72 uint8_t cr = RFCOMM_CR(p_mcb->is_initiator, false); in rfc_send_ua() local
79 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_ua()
83 *p_data = RFCOMM_UA_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua()
99 uint8_t cr = RFCOMM_CR(p_mcb->is_initiator, false); in rfc_send_dm() local
106 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_dm()
110 *p_data = RFCOMM_DM_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_dm()
126 uint8_t cr = RFCOMM_CR(p_mcb->is_initiator, true); in rfc_send_disc() local
[all …]
Drfc_int.h85 uint8_t cr; member
113 uint8_t cr; member
253 #define RFCOMM_SABME_FCS(p_data, cr, dlci) rfc_sabme_fcs[cr][dlci] argument
254 #define RFCOMM_UA_FCS(p_data, cr, dlci) rfc_ua_fcs[cr][dlci] argument
255 #define RFCOMM_DM_FCS(p_data, cr, dlci) rfc_dm_fcs[cr][dlci] argument
256 #define RFCOMM_DISC_FCS(p_data, cr, dlci) rfc_disc_fcs[cr][dlci] argument
263 #define RFCOMM_SABME_FCS(p_data, cr, dlci) rfc_calc_fcs(3, p_data) argument
264 #define RFCOMM_UA_FCS(p_data, cr, dlci) rfc_calc_fcs(3, p_data) argument
265 #define RFCOMM_DM_FCS(p_data, cr, dlci) rfc_calc_fcs(3, p_data) argument
266 #define RFCOMM_DISC_FCS(p_data, cr, dlci) rfc_calc_fcs(3, p_data) argument
Drfc_l2cap_if.cc324 if ((p_mcb->is_initiator && !rfc_cb.rfc.rx_frame.cr) || in RFCOMM_BufDataInd()
325 (!p_mcb->is_initiator && rfc_cb.rfc.rx_frame.cr)) { in RFCOMM_BufDataInd()
/system/bt/stack/avrc/
Davrc_api.cc308 uint8_t cr = AVCT_RSP; in avrc_send_continue_frag() local
341 return AVCT_MsgReq(handle, label, cr, p_pkt); in avrc_send_continue_frag()
452 static uint8_t avrc_proc_far_msg(uint8_t handle, uint8_t label, uint8_t cr, in avrc_proc_far_msg() argument
484 if (pkt_type != AVRC_PKT_SINGLE && cr == AVCT_RSP) { in avrc_proc_far_msg()
573 if (cr == AVCT_CMD) { in avrc_proc_far_msg()
584 } else if (cr == AVCT_RSP) { in avrc_proc_far_msg()
620 static void avrc_msg_cback(uint8_t handle, uint8_t label, uint8_t cr, in avrc_msg_cback() argument
635 if (cr == AVCT_CMD && (p_pkt->layer_specific & AVCT_DATA_CTRL && in avrc_msg_cback()
643 if (cr == AVCT_REJ) { in avrc_msg_cback()
649 } else if (cr == AVCT_RSP) { in avrc_msg_cback()
[all …]
/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test_utils.h64 uint8_t GetAddressField(bool ea, bool cr, uint8_t dlci);
117 uint8_t command_type, bool cr, const std::vector<uint8_t>& data);
210 std::vector<uint8_t> CreateQuickDataPacket(uint8_t dlci, bool cr,
226 std::vector<uint8_t> CreateQuickDataPacket(uint8_t dlci, bool cr,
Dstack_rfcomm_test_utils.cc35 uint8_t GetAddressField(bool ea, bool cr, uint8_t dlci) { in GetAddressField() argument
45 address.set(1, cr); in GetAddressField()
97 uint8_t command_type, bool cr, const std::vector<uint8_t>& data) { in CreateMultiplexerControlFrame() argument
102 header.set(1, cr); in CreateMultiplexerControlFrame()
200 std::vector<uint8_t> CreateQuickDataPacket(uint8_t dlci, bool cr, in CreateQuickDataPacket() argument
204 uint8_t address_field = GetAddressField(true, cr, dlci); in CreateQuickDataPacket()
214 std::vector<uint8_t> CreateQuickDataPacket(uint8_t dlci, bool cr, in CreateQuickDataPacket() argument
219 return CreateQuickDataPacket(dlci, cr, l2cap_lcid, acl_handle, credits, data); in CreateQuickDataPacket()
Dstack_rfcomm_test.cc411 bool cr, const std::string& message, in SendAndVerifyOutgoingTransmission() argument
416 CreateQuickDataPacket(GetDlci(is_initiator, scn), cr, lcid, acl_handle, in SendAndVerifyOutgoingTransmission()
429 bool cr, const std::string& message, in ReceiveAndVerifyIncomingTransmission() argument
435 CreateQuickDataPacket(GetDlci(is_initiator, scn), cr, lcid, acl_handle, in ReceiveAndVerifyIncomingTransmission()
/system/extras/simpleperf/
Dcmd_dumprecord.cpp196 CallChainRecord& cr = *static_cast<CallChainRecord*>(r.get()); in DumpDataSection() local
198 for (size_t i = 0; i < cr.ip_nr; ++i) { in DumpDataSection()
202 get_symbol_function(cr.pid, cr.tid, cr.ips[i], dso_name, symbol_name, vaddr_in_file); in DumpDataSection()
/system/bt/stack/avct/
Davct_api.cc386 uint16_t AVCT_MsgReq(uint8_t handle, uint8_t label, uint8_t cr, BT_HDR* p_msg) { in AVCT_MsgReq() argument
416 ul_msg.cr = cr; in AVCT_MsgReq()
Davct_bcb_act.cc202 ul_msg.cr = (uint8_t)((p_bcb->p_tx_msg->layer_specific & 0xFF00) >> 8); in avct_bcb_open_ind()
423 (p_data->ul_msg.cr << 8) + p_data->ul_msg.label; in avct_bcb_discard_msg()
472 AVCT_BUILD_HDR(p, p_data->ul_msg.label, pkt_type, p_data->ul_msg.cr); in avct_bcb_send_msg()
Davct_int.h119 uint8_t cr; member
Davct_lcb_act.cc522 AVCT_BUILD_HDR(p, p_data->ul_msg.label, pkt_type, p_data->ul_msg.cr); in avct_lcb_send_msg()
/system/core/debuggerd/tombstoned/
Dtombstoned.cpp302 ucred cr = {}; in crash_request_cb() local
303 socklen_t len = sizeof(cr); in crash_request_cb()
304 int ret = getsockopt(sockfd, SOL_SOCKET, SO_PEERCRED, &cr, &len); in crash_request_cb()
310 crash->crash_pid = cr.pid; in crash_request_cb()
/system/core/libsystem/include/system/
Dgraphics.h85 void *cr; member
/system/timezone/input_data/android/
Dcountryzones.txt1037 isoCode:"cr"