Searched refs:cr (Results 1 - 14 of 14) sorted by relevance

/system/core/libcutils/
H A Dsockets.c31 struct ucred cr; local
32 socklen_t len = sizeof(cr);
33 int n = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len);
40 if ((cr.uid != AID_ROOT) && (cr.uid != AID_SHELL)) {
41 ALOGE("untrusted userid on other end of socket: userid %d\n", cr.uid);
/system/bt/stack/include/
H A Drfcdefs.h69 #define RFCOMM_PARSE_CTRL_FIELD(ea, cr, dlci, p_data) \
72 cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; \
77 #define RFCOMM_FORMAT_CTRL_FIELD(p_data, ea, cr, dlci) \
78 *p_data++ = ea | cr | (dlci << RFCOMM_SHIFT_DLCI)
100 #define RFCOMM_FRAME_IS_CMD(initiator, cr) \
101 (( (initiator) && !(cr)) || (!(initiator) && (cr)))
103 #define RFCOMM_FRAME_IS_RSP(initiator, cr) \
104 (( (initiator) && (cr)) || (!(initiator) && !(cr)))
[all...]
H A 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/bt/stack/rfcomm/
H A Drfc_ts_frames.c46 UINT8 cr = RFCOMM_CR(p_mcb->is_initiator, TRUE); local
55 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI);
59 *p_data = RFCOMM_SABME_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci);
78 UINT8 cr = RFCOMM_CR(p_mcb->is_initiator, FALSE); local
87 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI);
91 *p_data = RFCOMM_UA_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci);
110 UINT8 cr = RFCOMM_CR(p_mcb->is_initiator, FALSE); local
119 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI);
123 *p_data = RFCOMM_DM_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci);
142 UINT8 cr local
173 UINT8 cr = RFCOMM_CR(p_mcb->is_initiator, TRUE); local
547 UINT8 cr = RFCOMM_CR(p_mcb->is_initiator, TRUE); local
706 UINT8 ea, cr, mx_len; local
[all...]
H A Drfc_int.h82 UINT8 cr; member in struct:__anon1249
115 UINT8 cr; member in struct:__anon1249::__anon1250::__anon1254
261 #define RFCOMM_SABME_FCS(p_data, cr, dlci) rfc_sabme_fcs[cr][dlci]
262 #define RFCOMM_UA_FCS(p_data, cr, dlci) rfc_ua_fcs[cr][dlci]
263 #define RFCOMM_DM_FCS(p_data, cr, dlci) rfc_dm_fcs[cr][dlci]
264 #define RFCOMM_DISC_FCS(p_data, cr, dlci) rfc_disc_fcs[cr][dlc
[all...]
H A Drfc_l2cap_if.c350 if (( p_mcb->is_initiator && !rfc_cb.rfc.rx_frame.cr)
351 || (!p_mcb->is_initiator && rfc_cb.rfc.rx_frame.cr))
/system/core/debuggerd/
H A Ddebuggerd.cpp185 ucred cr; local
186 socklen_t len = sizeof(cr);
187 int status = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len);
202 ALOGE("timed out reading tid (from pid=%d uid=%d)\n", cr.pid, cr.uid);
210 ALOGE("read failure? %s (pid=%d uid=%d)\n", strerror(errno), cr.pid, cr.uid);
214 ALOGE("invalid crash request of size %d (from pid=%d uid=%d)\n", status, cr.pid, cr.uid);
220 out_request->pid = cr
[all...]
/system/bt/stack/avrc/
H A Davrc_api.c191 UINT8 cr = AVCT_RSP; local
238 cr = AVCT_RSP;
247 AVCT_MsgReq( handle, label, cr, p_pkt);
372 static UINT8 avrc_proc_far_msg(UINT8 handle, UINT8 label, UINT8 cr, BT_HDR **pp_pkt, argument
409 if (pkt_type != AVRC_PKT_SINGLE && cr == AVCT_RSP)
505 if (cr == AVCT_CMD)
521 else if (cr == AVCT_RSP && req_continue == TRUE)
548 static void avrc_msg_cback(UINT8 handle, UINT8 label, UINT8 cr, argument
566 if (cr == AVCT_CMD &&
577 if (cr
988 UINT8 cr = AVCT_CMD; local
[all...]
/system/core/init/
H A Dproperty_service.cpp267 struct ucred cr; local
270 socklen_t cr_size = sizeof(cr);
281 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cr, &cr_size) < 0) {
292 ERROR("sys_prop: timeout waiting for uid=%d to send property message.\n", cr.uid);
296 ERROR("sys_prop: error waiting for uid=%d to send property message: %s\n", cr.uid, strerror(errno));
330 msg.name + 4, msg.value, cr.uid, cr.gid, cr.pid);
337 cr.uid, msg.name);
/system/core/include/system/
H A Dgraphics.h454 * @y, @cb, and @cr point to the first byte of their respective planes.
470 void *cr; member in struct:android_ycbcr
/system/bt/stack/avct/
H A Davct_api.c413 UINT16 AVCT_MsgReq(UINT8 handle, UINT8 label, UINT8 cr, BT_HDR *p_msg) argument
446 ul_msg.cr = cr;
H A Davct_int.h117 UINT8 cr; member in struct:__anon782
H A Davct_lcb_act.c605 AVCT_BLD_HDR(p, p_data->ul_msg.label, pkt_type, p_data->ul_msg.cr);
/system/bt/bta/jv/
H A Dbta_jv_act.c967 tBTA_JV_API_CREATE_RECORD *cr = &(p_data->create_record); local
972 bta_jv_cb.p_dm_cback(BTA_JV_CREATE_RECORD_EVT, (tBTA_JV *)&evt_data, cr->user_data);

Completed in 1131 milliseconds