LLDB mainline
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb_private::platform_android::AdbClient::SyncService Class Reference

#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< Connectionm_conn
 

Friends

class AdbClient
 

Detailed Description

Definition at line 35 of file AdbClient.h.

Constructor & Destructor Documentation

◆ ~SyncService()

AdbClient::SyncService::~SyncService ( )
virtualdefault

◆ SyncService()

AdbClient::SyncService::SyncService ( std::unique_ptr< Connection > &&  conn)
explicitprotected

Definition at line 567 of file AdbClient.cpp.

Member Function Documentation

◆ executeCommand()

Status AdbClient::SyncService::executeCommand ( const std::function< Status()> &  cmd)
private

Definition at line 571 of file AdbClient.cpp.

References error(), and lldb_private::platform_android::AdbClient::m_conn.

◆ internalPullFile()

Status AdbClient::SyncService::internalPullFile ( const FileSpec remote_file,
const FileSpec local_file 
)
private

◆ internalPushFile()

Status AdbClient::SyncService::internalPushFile ( const FileSpec local_file,
const FileSpec remote_file 
)
private

◆ internalStat()

Status AdbClient::SyncService::internalStat ( const FileSpec remote_file,
uint32_t &  mode,
uint32_t &  size,
uint32_t &  mtime 
)
private

◆ IsConnected()

bool AdbClient::SyncService::IsConnected ( ) const

Definition at line 563 of file AdbClient.cpp.

References lldb_private::platform_android::AdbClient::m_conn.

◆ PullFile()

Status AdbClient::SyncService::PullFile ( const FileSpec remote_file,
const FileSpec local_file 
)
virtual

Definition at line 542 of file AdbClient.cpp.

◆ PullFileChunk()

Status AdbClient::SyncService::PullFileChunk ( std::vector< char > &  buffer,
bool &  eof 
)
private

◆ PushFile()

Status AdbClient::SyncService::PushFile ( const FileSpec local_file,
const FileSpec remote_file 
)

Definition at line 549 of file AdbClient.cpp.

◆ ReadAllBytes()

Status AdbClient::SyncService::ReadAllBytes ( void *  buffer,
size_t  size 
)
private

Definition at line 646 of file AdbClient.cpp.

References lldb_private::platform_android::AdbClient::m_conn.

◆ ReadSyncHeader()

Status AdbClient::SyncService::ReadSyncHeader ( std::string &  response_id,
uint32_t &  data_len 
)
private

◆ SendSyncRequest()

Status AdbClient::SyncService::SendSyncRequest ( const char *  request_id,
const uint32_t  data_len,
const void *  data 
)
private

◆ Stat()

Status AdbClient::SyncService::Stat ( const FileSpec remote_file,
uint32_t &  mode,
uint32_t &  size,
uint32_t &  mtime 
)
virtual

Definition at line 556 of file AdbClient.cpp.

Friends And Related Function Documentation

◆ AdbClient

friend class AdbClient
friend

Definition at line 36 of file AdbClient.h.

Member Data Documentation

◆ m_conn

std::unique_ptr<Connection> lldb_private::platform_android::AdbClient::SyncService::m_conn
private

Definition at line 75 of file AdbClient.h.


The documentation for this class was generated from the following files: