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.
References m_conn.
Definition at line 587 of file AdbClient.cpp.
References error(), lldb_private::Status::FromErrorString(), and m_conn.
Referenced by PullFile(), PushFile(), and Stat().
|
private |
Definition at line 430 of file AdbClient.cpp.
References error(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::FileSpec::GetPath(), kRECV, PullFileChunk(), and SendSyncRequest().
Referenced by PullFile().
|
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, lldb_private::platform_android::AdbClient::ReadAllBytes(), ReadSyncHeader(), and SendSyncRequest().
Referenced by PushFile().
|
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, lldb_private::platform_android::AdbClient::ReadAllBytes(), SendSyncRequest(), and lldb_private::Status.
Referenced by Stat().
bool AdbClient::SyncService::IsConnected | ( | ) | const |
Definition at line 579 of file AdbClient.cpp.
References m_conn.
|
virtual |
Definition at line 558 of file AdbClient.cpp.
References executeCommand(), and internalPullFile().
Definition at line 633 of file AdbClient.cpp.
References error(), lldb_private::Status::FromErrorStringWithFormat(), kDATA, kDONE, kFAIL, lldb_private::platform_android::AdbClient::ReadAllBytes(), ReadSyncHeader(), and lldb_private::Status.
Referenced by internalPullFile().
Status AdbClient::SyncService::PushFile | ( | const FileSpec & | local_file, |
const FileSpec & | remote_file ) |
Definition at line 565 of file AdbClient.cpp.
References executeCommand(), and internalPushFile().
|
private |
Definition at line 665 of file AdbClient.cpp.
References 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().
Referenced by internalPushFile(), and PullFileChunk().
|
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 m_conn.
Referenced by internalPullFile(), internalPushFile(), and internalStat().
|
virtual |
Definition at line 572 of file AdbClient.cpp.
References executeCommand(), and internalStat().
|
friend |
|
private |
Definition at line 75 of file AdbClient.h.
Referenced by executeCommand(), IsConnected(), ReadAllBytes(), SendSyncRequest(), and SyncService().