Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 17 of 17) 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)
100 #define RFCOMM_FRAME_IS_CMD(initiator, cr) \ argument
101 (( (initiator) && !(cr)) || (!(initiator) && (cr)))
103 #define RFCOMM_FRAME_IS_RSP(initiator, cr) \ argument
104 (( (initiator) && (cr)) || (!(initiator) && !(cr)))
Davct_api.h108 typedef void (tAVCT_MSG_CBACK)(UINT8 handle, UINT8 label, UINT8 cr,
272 extern UINT16 AVCT_MsgReq(UINT8 handle, UINT8 label, UINT8 cr, BT_HDR *p_msg);
/system/core/libcutils/
Dsockets_unix.cpp33 ucred cr; in socket_peer_is_trusted() local
34 socklen_t len = sizeof(cr); in socket_peer_is_trusted()
35 int n = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len); in socket_peer_is_trusted()
42 if ((cr.uid != AID_ROOT) && (cr.uid != AID_SHELL)) { in socket_peer_is_trusted()
43 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.c44 UINT8 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()
55 *p_data = RFCOMM_SABME_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme()
73 UINT8 cr = RFCOMM_CR(p_mcb->is_initiator, FALSE); in rfc_send_ua() local
80 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_ua()
84 *p_data = RFCOMM_UA_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua()
102 UINT8 cr = RFCOMM_CR(p_mcb->is_initiator, FALSE); in rfc_send_dm() local
109 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_dm()
113 *p_data = RFCOMM_DM_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_dm()
131 UINT8 cr = RFCOMM_CR(p_mcb->is_initiator, TRUE); in rfc_send_disc() local
[all …]
Drfc_int.h82 UINT8 cr; member
115 UINT8 cr; member
259 #define RFCOMM_SABME_FCS(p_data, cr, dlci) rfc_sabme_fcs[cr][dlci] argument
260 #define RFCOMM_UA_FCS(p_data, cr, dlci) rfc_ua_fcs[cr][dlci] argument
261 #define RFCOMM_DM_FCS(p_data, cr, dlci) rfc_dm_fcs[cr][dlci] argument
262 #define RFCOMM_DISC_FCS(p_data, cr, dlci) rfc_disc_fcs[cr][dlci] argument
269 #define RFCOMM_SABME_FCS(p_data, cr, dlci) rfc_calc_fcs(3, p_data) argument
270 #define RFCOMM_UA_FCS(p_data, cr, dlci) rfc_calc_fcs(3, p_data) argument
271 #define RFCOMM_DM_FCS(p_data, cr, dlci) rfc_calc_fcs(3, p_data) argument
272 #define RFCOMM_DISC_FCS(p_data, cr, dlci) rfc_calc_fcs(3, p_data) argument
Drfc_l2cap_if.c351 if (( p_mcb->is_initiator && !rfc_cb.rfc.rx_frame.cr) in RFCOMM_BufDataInd()
352 || (!p_mcb->is_initiator && rfc_cb.rfc.rx_frame.cr)) in RFCOMM_BufDataInd()
/system/core/init/
Dproperty_service.cpp73 static int check_mac_perms(const char *name, char *sctx, struct ucred *cr) in check_mac_perms() argument
89 audit_data.cr = cr; in check_mac_perms()
99 static int check_control_mac_perms(const char *name, char *sctx, struct ucred *cr) in check_control_mac_perms() argument
113 return check_mac_perms(ctl_name, sctx, cr); in check_control_mac_perms()
237 struct ucred cr; in handle_property_set_fd() local
240 socklen_t cr_size = sizeof(cr); in handle_property_set_fd()
251 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cr, &cr_size) < 0) { in handle_property_set_fd()
262 ERROR("sys_prop: timeout waiting for uid=%d to send property message.\n", cr.uid); in handle_property_set_fd()
266 …ERROR("sys_prop: error waiting for uid=%d to send property message: %s\n", cr.uid, strerror(errno)… in handle_property_set_fd()
296 if (check_control_mac_perms(msg.value, source_ctx, &cr)) { in handle_property_set_fd()
[all …]
Dproperty_service.h26 ucred *cr; member
Dinit.cpp540 if (!d || !d->name || !d->cr) { in audit_callback()
546 d->cr->pid, d->cr->uid, d->cr->gid); in audit_callback()
/system/bt/stack/avrc/
Davrc_api.c188 UINT8 cr = AVCT_RSP; in avrc_send_continue_frag() local
220 AVCT_MsgReq( handle, label, cr, p_pkt); in avrc_send_continue_frag()
343 static UINT8 avrc_proc_far_msg(UINT8 handle, UINT8 label, UINT8 cr, BT_HDR **pp_pkt, in avrc_proc_far_msg() argument
376 if (pkt_type != AVRC_PKT_SINGLE && cr == AVCT_RSP) in avrc_proc_far_msg()
469 if (cr == AVCT_CMD) in avrc_proc_far_msg()
485 else if (cr == AVCT_RSP && req_continue == TRUE) in avrc_proc_far_msg()
499 else if (cr == AVCT_RSP && req_continue == FALSE && buf_overflow == TRUE) in avrc_proc_far_msg()
526 static void avrc_msg_cback(UINT8 handle, UINT8 label, UINT8 cr, in avrc_msg_cback() argument
544 if (cr == AVCT_CMD && in avrc_msg_cback()
555 if (cr == AVCT_REJ) in avrc_msg_cback()
[all …]
/system/core/debuggerd/
Ddebuggerd.cpp197 ucred cr; in read_request() local
198 socklen_t len = sizeof(cr); in read_request()
199 int status = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len); in read_request()
214 ALOGE("timed out reading tid (from pid=%d uid=%d)\n", cr.pid, cr.uid); in read_request()
222 ALOGE("read failure? %s (pid=%d uid=%d)\n", strerror(errno), cr.pid, cr.uid); in read_request()
226 ALOGE("invalid crash request of size %d (from pid=%d uid=%d)\n", status, cr.pid, cr.uid); in read_request()
232 out_request->pid = cr.pid; in read_request()
233 out_request->uid = cr.uid; in read_request()
234 out_request->gid = cr.gid; in read_request()
246 …} else if (cr.uid == 0 || (cr.uid == AID_SYSTEM && msg.action == DEBUGGER_ACTION_DUMP_BACKTRACE)) { in read_request()
/system/bt/stack/avct/
Davct_api.c413 UINT16 AVCT_MsgReq(UINT8 handle, UINT8 label, UINT8 cr, BT_HDR *p_msg) in AVCT_MsgReq() argument
446 ul_msg.cr = cr; in AVCT_MsgReq()
Davct_int.h118 UINT8 cr; member
Davct_lcb_act.c592 AVCT_BLD_HDR(p, p_data->ul_msg.label, pkt_type, p_data->ul_msg.cr); in avct_lcb_send_msg()
/system/core/include/system/
Dgraphics.h471 void *cr; member
/system/bt/bta/jv/
Dbta_jv_act.c951 tBTA_JV_API_CREATE_RECORD *cr = &(p_data->create_record); in bta_jv_create_record() local
956 bta_jv_cb.p_dm_cback(BTA_JV_CREATE_RECORD_EVT, (tBTA_JV *)&evt_data, cr->user_data); in bta_jv_create_record()
/system/connectivity/shill/mobile_operator_db/
Dserviceproviders.prototxt2964 country : "cr"
2984 country : "cr"