/system/core/libcutils/ |
H A D | sockets.c | 31 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 D | rfcdefs.h | 69 #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 D | avct_api.h | 108 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 D | rfc_ts_frames.c | 46 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 D | rfc_int.h | 82 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 D | rfc_l2cap_if.c | 350 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 D | debuggerd.cpp | 185 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 D | avrc_api.c | 191 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 D | property_service.cpp | 267 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 D | graphics.h | 454 * @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 D | avct_api.c | 413 UINT16 AVCT_MsgReq(UINT8 handle, UINT8 label, UINT8 cr, BT_HDR *p_msg) argument 446 ul_msg.cr = cr;
|
H A D | avct_int.h | 117 UINT8 cr; member in struct:__anon782
|
H A D | avct_lcb_act.c | 605 AVCT_BLD_HDR(p, p_data->ul_msg.label, pkt_type, p_data->ul_msg.cr);
|
/system/bt/bta/jv/ |
H A D | bta_jv_act.c | 967 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);
|