Home
last modified time | relevance | path

Searched refs:app_uid (Results 1 – 8 of 8) sorted by relevance

/system/bt/btif/src/
Dbtif_uid.c63 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()
Dbtif_sock.c37 … 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()
Dbtif_sock_l2cap.c71 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 …]
Dbtif_sock_rfc.c84 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/
Dbtif_uid.h34 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);
Dbtif_sock_rfc.h35 int* sock_fd, int flags, int app_uid);
37 int channel, int* sock_fd, int flags, int app_uid);
Dbtif_sock_l2cap.h18 int* sock_fd, int flags, int app_uid);
20 int channel, int* sock_fd, int flags, int app_uid);
/system/bt/tools/bdtool/
Dbdtool.c191 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()