LLDB mainline
|
#include <AdbClient.h>
Public Member Functions | |
virtual | ~SyncService () |
virtual Status | PullFile (const FileSpec &remote_file, const FileSpec &local_file) |
Status | PushFile (const FileSpec &local_file, const FileSpec &remote_file) |
virtual Status | Stat (const FileSpec &remote_file, uint32_t &mode, uint32_t &size, uint32_t &mtime) |
bool | IsConnected () const |
Protected Member Functions | |
SyncService (std::unique_ptr< Connection > &&conn) | |
Private Member Functions | |
Status | SendSyncRequest (const char *request_id, const uint32_t data_len, const void *data) |
Status | ReadSyncHeader (std::string &response_id, uint32_t &data_len) |
Status | PullFileChunk (std::vector< char > &buffer, bool &eof) |
Status | ReadAllBytes (void *buffer, size_t size) |
Status | internalPullFile (const FileSpec &remote_file, const FileSpec &local_file) |
Status | internalPushFile (const FileSpec &local_file, const FileSpec &remote_file) |
Status | internalStat (const FileSpec &remote_file, uint32_t &mode, uint32_t &size, uint32_t &mtime) |
Status | executeCommand (const std::function< Status()> &cmd) |
Private Attributes | |
std::unique_ptr< Connection > | m_conn |
Friends | |
class | AdbClient |
Definition at line 35 of file AdbClient.h.
|
virtualdefault |
|
explicitprotected |
Definition at line 567 of file AdbClient.cpp.
Definition at line 571 of file AdbClient.cpp.
References error(), and lldb_private::platform_android::AdbClient::m_conn.
|
private |
Definition at line 426 of file AdbClient.cpp.
References error(), lldb_private::FileSpec::GetPath(), kRECV, PullFileChunk(), and SendSyncRequest().
|
private |
Definition at line 459 of file AdbClient.cpp.
References error(), lldb_private::FileSpec::GetPath(), lldb_private::FileSystem::Instance(), kDATA, kDefaultMode, kDONE, kFAIL, kMaxPushData, kOKAY, kSEND, and lldb_private::platform_android::AdbClient::ReadAllBytes().
|
private |
Definition at line 508 of file AdbClient.cpp.
References lldb::eByteOrderLittle, error(), lldb_private::DataExtractor::GetData(), lldb_private::FileSpec::GetPath(), lldb_private::DataExtractor::GetU32(), kSTAT, and lldb_private::platform_android::AdbClient::ReadAllBytes().
bool AdbClient::SyncService::IsConnected | ( | ) | const |
Definition at line 563 of file AdbClient.cpp.
References lldb_private::platform_android::AdbClient::m_conn.
|
virtual |
Definition at line 542 of file AdbClient.cpp.
|
private |
Definition at line 617 of file AdbClient.cpp.
References error(), kDATA, kDONE, kFAIL, and lldb_private::platform_android::AdbClient::ReadAllBytes().
Referenced by internalPullFile().
Status AdbClient::SyncService::PushFile | ( | const FileSpec & | local_file, |
const FileSpec & | remote_file | ||
) |
Definition at line 549 of file AdbClient.cpp.
|
private |
Definition at line 646 of file AdbClient.cpp.
References lldb_private::platform_android::AdbClient::m_conn.
|
private |
Definition at line 602 of file AdbClient.cpp.
References lldb::eByteOrderLittle, error(), lldb_private::DataExtractor::GetU32(), kSyncPacketLen, and lldb_private::platform_android::AdbClient::ReadAllBytes().
|
private |
Definition at line 584 of file AdbClient.cpp.
References lldb_private::DataEncoder::AppendData(), lldb_private::DataEncoder::AppendU32(), lldb::eByteOrderLittle, error(), lldb_private::DataEncoder::GetData(), kSyncPacketLen, and lldb_private::platform_android::AdbClient::m_conn.
Referenced by internalPullFile().
|
virtual |
Definition at line 556 of file AdbClient.cpp.
|
friend |
Definition at line 36 of file AdbClient.h.
|
private |
Definition at line 75 of file AdbClient.h.