Lines Matching refs:t
47 static void adb_disconnected(void* unused, atransport* t);
130 static void adb_disconnected(void* unused, atransport* t) { in adb_disconnected() argument
137 adbd_send_key_message_locked("DC", t->auth_key); in adb_disconnected()
139 connected_keys.erase(std::remove(connected_keys.begin(), connected_keys.end(), t->auth_key), in adb_disconnected()
169 void adbd_auth_confirm_key(atransport* t) { in adbd_auth_confirm_key() argument
171 adb_transport = t; in adbd_auth_confirm_key()
172 t->AddDisconnect(&adb_disconnect); in adbd_auth_confirm_key()
183 adbd_send_key_message_locked("PK", t->auth_key); in adbd_auth_confirm_key()
220 void adbd_notify_framework_connected_key(atransport* t) { in adbd_notify_framework_connected_key() argument
222 adb_transport = t; in adbd_notify_framework_connected_key()
223 t->AddDisconnect(&adb_disconnect); in adbd_notify_framework_connected_key()
227 if (std::find(connected_keys.begin(), connected_keys.end(), t->auth_key) == in adbd_notify_framework_connected_key()
229 connected_keys.push_back(t->auth_key); in adbd_notify_framework_connected_key()
232 adbd_send_key_message_locked("CK", t->auth_key); in adbd_notify_framework_connected_key()
262 void send_auth_request(atransport* t) { in send_auth_request() argument
265 if (!adbd_auth_generate_token(t->token, sizeof(t->token))) { in send_auth_request()
273 p->msg.data_length = sizeof(t->token); in send_auth_request()
274 p->payload.assign(t->token, t->token + sizeof(t->token)); in send_auth_request()
275 send_packet(p, t); in send_auth_request()
278 void adbd_auth_verified(atransport* t) { in adbd_auth_verified() argument
280 handle_online(t); in adbd_auth_verified()
281 send_connect(t); in adbd_auth_verified()