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 583 of file AdbClient.cpp.
Definition at line 587 of file AdbClient.cpp.
References error(), lldb_private::Status::FromErrorString(), and lldb_private::platform_android::AdbClient::m_conn.
|
private |
Definition at line 430 of file AdbClient.cpp.
References error(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::FileSpec::GetPath(), kRECV, PullFileChunk(), and SendSyncRequest().
|
private |
Definition at line 465 of file AdbClient.cpp.
References error(), lldb_private::Status::FromErrorStringWithFormat(), 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 521 of file AdbClient.cpp.
References lldb::eByteOrderLittle, error(), lldb_private::Status::FromErrorStringWithFormat(), 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 579 of file AdbClient.cpp.
References lldb_private::platform_android::AdbClient::m_conn.
|
virtual |
Definition at line 558 of file AdbClient.cpp.
|
private |
Definition at line 633 of file AdbClient.cpp.
References error(), lldb_private::Status::FromErrorStringWithFormat(), 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 565 of file AdbClient.cpp.
|
private |
Definition at line 665 of file AdbClient.cpp.
References lldb_private::platform_android::AdbClient::m_conn.
|
private |
Definition at line 618 of file AdbClient.cpp.
References lldb::eByteOrderLittle, error(), lldb_private::DataExtractor::GetU32(), kSyncPacketLen, and lldb_private::platform_android::AdbClient::ReadAllBytes().
|
private |
Definition at line 600 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 572 of file AdbClient.cpp.
|
friend |
Definition at line 36 of file AdbClient.h.
|
private |
Definition at line 75 of file AdbClient.h.