Lines Matching defs:AdbdAuthContext
78 struct AdbdAuthContext { struct
84 explicit AdbdAuthContext(AdbdAuthCallbacksV1* callbacks) : next_id_(0), callbacks_(*callbacks) { in AdbdAuthContext() function
119 uint64_t NextId() { return next_id_++; } in NextId()
121 void DispatchPendingPrompt() REQUIRES(mutex_) { in DispatchPendingPrompt()
143 void UpdateFrameworkWritable() REQUIRES(mutex_) { in UpdateFrameworkWritable()
159 void ReplaceFrameworkFd(unique_fd new_fd) REQUIRES(mutex_) { in ReplaceFrameworkFd()
184 void HandlePacket(std::string_view packet) EXCLUDES(mutex_) { in HandlePacket()
208 void AllowUsbDevice(std::string_view buf) EXCLUDES(mutex_) { in AllowUsbDevice()
229 void DenyUsbDevice(std::string_view buf) EXCLUDES(mutex_) { in DenyUsbDevice()
237 void KeyRemoved(std::string_view buf) EXCLUDES(mutex_) { in KeyRemoved()
242 bool SendPacket() REQUIRES(mutex_) { in SendPacket()
298 void Run() { in Run()
393 static constexpr const char* key_paths[] = {"/adb_keys", "/data/misc/adb/adb_keys"};
394 void IteratePublicKeys(bool (*callback)(void*, const char*, size_t), void* opaque) { in IteratePublicKeys()
412 uint64_t PromptUser(std::string_view public_key, void* arg) EXCLUDES(mutex_) { in PromptUser()
422 uint64_t NotifyAuthenticated(std::string_view public_key) EXCLUDES(mutex_) { in NotifyAuthenticated()
431 void NotifyDisconnected(uint64_t id) EXCLUDES(mutex_) { in NotifyDisconnected()
442 uint64_t NotifyTlsDeviceConnected(AdbTransportType type, in NotifyTlsDeviceConnected()
454 void NotifyTlsDeviceDisconnected(AdbTransportType type, uint64_t id) EXCLUDES(mutex_) { in NotifyTlsDeviceDisconnected()
485 .cb = std::bind(&AdbdAuthContext::KeyRemoved, this, std::placeholders::_1)}); in InitFrameworkHandlers() argument
498 unique_fd epoll_fd_;
499 unique_fd event_fd_;
500 unique_fd sock_fd_;
501 unique_fd framework_fd_;
525 AdbdAuthContext* adbd_auth_new(AdbdAuthCallbacks* callbacks) { in adbd_auth_new() argument