/system/bt/btif/src/ |
D | btif_uid.c | 63 static uid_set_node_t* uid_set_find_or_create_node(uid_set_t* set, int32_t app_uid) { in uid_set_find_or_create_node() argument 65 while (node && node->data.app_uid != app_uid) { in uid_set_find_or_create_node() 71 node->data.app_uid = app_uid; in uid_set_find_or_create_node() 78 void uid_set_add_tx(uid_set_t* set, int32_t app_uid, uint64_t bytes) { in uid_set_add_tx() argument 79 if (app_uid == -1 || bytes == 0) { in uid_set_add_tx() 84 uid_set_node_t* node = uid_set_find_or_create_node(set, app_uid); in uid_set_add_tx() 89 void uid_set_add_rx(uid_set_t* set, int32_t app_uid, uint64_t bytes) { in uid_set_add_rx() argument 90 if (app_uid == -1 || bytes == 0) { in uid_set_add_rx() 95 uid_set_node_t* node = uid_set_find_or_create_node(set, app_uid); in uid_set_add_rx() 128 data->app_uid = -1; in uid_set_read_and_clear()
|
D | btif_sock.c | 37 … const char *service_name, const uint8_t *uuid, int channel, int *sock_fd, int flags, int app_uid); 38 …_addr, btsock_type_t type, const uint8_t *uuid, int channel, int *sock_fd, int flags, int app_uid); 120 …ar *service_name, const uint8_t *service_uuid, int channel, int *sock_fd, int flags, int app_uid) { in btsock_listen() argument 131 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, flags, app_uid); in btsock_listen() 134 status = btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); in btsock_listen() 149 …addr, btsock_type_t type, const uint8_t *uuid, int channel, int *sock_fd, int flags, int app_uid) { in btsock_connect() argument 159 status = btsock_rfc_connect(bd_addr, uuid, channel, sock_fd, flags, app_uid); in btsock_connect() 163 status = btsock_l2cap_connect(bd_addr, channel, sock_fd, flags, app_uid); in btsock_connect()
|
D | btif_sock_l2cap.c | 71 int app_uid; // The UID of the app who requested this socket member 325 sock->app_uid = -1; in btsock_l2cap_alloc_l() 474 accept_rs->app_uid = sock->app_uid; in on_srv_l2cap_psm_connect_l() 522 accept_rs->app_uid = sock->app_uid; in on_srv_l2cap_le_connect_l() 653 int app_uid = -1; in on_l2cap_write_done() local 658 app_uid = sock->app_uid; in on_l2cap_write_done() 667 uid_set_add_tx(uid_set, app_uid, len); in on_l2cap_write_done() 678 int app_uid = -1; in on_l2cap_write_fixed_done() local 682 app_uid = sock->app_uid; in on_l2cap_write_fixed_done() 690 uid_set_add_tx(uid_set, app_uid, len); in on_l2cap_write_fixed_done() [all …]
|
D | btif_sock_rfc.c | 84 int app_uid; // UID of the app for which this socket was created. member 211 slot->app_uid = -1; in alloc_rfc_slot() 248 accept_rs->app_uid = srv_rs->app_uid; in create_srv_accept_rfc_slot() 263 …ar *service_name, const uint8_t *service_uuid, int channel, int *sock_fd, int flags, int app_uid) { in btsock_rfc_listen() argument 309 slot->app_uid = app_uid; in btsock_rfc_listen() 319 …daddr_t *bd_addr, const uint8_t *service_uuid, int channel, int *sock_fd, int flags, int app_uid) { in btsock_rfc_connect() argument 369 slot->app_uid = app_uid; in btsock_rfc_connect() 546 int app_uid = -1; in on_rfc_write_done() local 551 app_uid = slot->app_uid; in on_rfc_write_done() 559 uid_set_add_tx(uid_set, app_uid, p->len); in on_rfc_write_done() [all …]
|
/system/bt/btif/include/ |
D | btif_uid.h | 34 void uid_set_add_tx(uid_set_t* set, int32_t app_uid, uint64_t bytes); 35 void uid_set_add_rx(uid_set_t* set, int32_t app_uid, uint64_t bytes);
|
D | btif_sock_rfc.h | 35 int* sock_fd, int flags, int app_uid); 37 int channel, int* sock_fd, int flags, int app_uid);
|
D | btif_sock_l2cap.h | 18 int* sock_fd, int flags, int app_uid); 20 int channel, int* sock_fd, int flags, int app_uid);
|
/system/bt/tools/bdtool/ |
D | bdtool.c | 191 const int app_uid = 0; in main() local 204 …or = sock->listen(BTSOCK_RFCOMM, "meow", (const uint8_t *)&HFP_AG_UUID, 0, &rfcomm_fd, 0, app_uid); in main() 211 error = sock->listen(BTSOCK_SCO, NULL, NULL, 5, &sock_fd, 0, app_uid); in main() 232 …onnect(&bt_remote_bdaddr, BTSOCK_RFCOMM, (const uint8_t *)&HFP_AG_UUID, 0, &rfcomm_fd, 0, app_uid); in main() 243 error = sock->connect(&bt_remote_bdaddr, BTSOCK_SCO, NULL, 5, &sock_fd, 0, app_uid); in main()
|