Android-cuttlefish cvd tool
|
#include <misc_service.h>
Public Member Functions | |
MiscService (int32_t service_id, ChannelMonitor *channel_monitor, ThreadLooper *thread_looper) | |
~MiscService ()=default | |
MiscService (const MiscService &)=delete | |
MiscService & | operator= (const MiscService &)=delete |
void | HandleGetIMEI (const Client &client, std::string &command) |
void | HandleTimeUpdate (const Client &client, std::string &command) |
void | TimeUpdate () |
void | SetTimeZone (std::string timezone) |
![]() | |
virtual | ~ModemService ()=default |
ModemService (const ModemService &)=delete | |
ModemService & | operator= (const ModemService &)=delete |
bool | HandleModemCommand (const Client &client, std::string command) |
void | CloseRemoteConnection (ClientId remote_client) |
Private Member Functions | |
void | ParseTimeZone () |
long | TimeZoneOffset (time_t *utctime) |
void | FixTimeZone (std::string &line) |
std::vector< CommandHandler > | InitializeCommandHandlers () |
Private Attributes | |
std::string | timezone_ |
Additional Inherited Members | |
![]() | |
static constexpr char | kCmeErrorOperationNotAllowed [] = "+CME ERROR: 3" |
static constexpr char | kCmeErrorOperationNotSupported [] = "+CME ERROR: 4" |
static constexpr char | kCmeErrorSimNotInserted [] = "+CME ERROR: 10" |
static constexpr char | kCmeErrorSimPinRequired [] = "+CME ERROR: 11" |
static constexpr char | kCmeErrorSimPukRequired [] = "+CME ERROR: 12" |
static constexpr char | kCmeErrorSimBusy [] = "+CME ERROR: 14" |
static constexpr char | kCmeErrorIncorrectPassword [] = "+CME ERROR: 16" |
static constexpr char | kCmeErrorMemoryFull [] = "+CME ERROR: 20" |
static constexpr char | kCmeErrorInvalidIndex [] = "+CME ERROR: 21" |
static constexpr char | kCmeErrorNotFound [] = "+CME ERROR: 22" |
static constexpr char | kCmeErrorInvalidCharactersInTextString [] |
static constexpr char | kCmeErrorNoNetworkService [] = "+CME ERROR: 30" |
static constexpr char | kCmeErrorNetworkNotAllowedEmergencyCallsOnly [] |
static constexpr char | kCmeErrorInCorrectParameters [] = "+CME ERROR: 50" |
static constexpr char | kCmeErrorNetworkNotAttachedDueToMTFunctionalRestrictions [] |
static constexpr char | kCmeErrorFixedDialNumberOnlyAllowed [] |
static constexpr char | kCmsErrorOperationNotAllowed [] = "+CMS ERROR: 302" |
static constexpr char | kCmsErrorOperationNotSupported [] = "+CMS ERROR: 303" |
static constexpr char | kCmsErrorInvalidPDUModeParam [] = "+CMS ERROR: 304" |
static constexpr char | kCmsErrorSCAddressUnknown [] = "+CMS ERROR: 304" |
static constexpr std::pair< int, int > | kRemotePortRange {6520, 6527} |
![]() | |
ModemService (int32_t service_id, std::vector< CommandHandler > command_handlers, ChannelMonitor *channel_monitor, ThreadLooper *thread_looper) | |
void | HandleCommandDefaultSupported (const Client &client) |
void | SendUnsolicitedCommand (std::string unsol_command) |
cuttlefish::SharedFD | ConnectToRemoteCvd (std::string port) |
void | SendCommandToRemote (ClientId remote_client, std::string response) |
![]() | |
static std::string | GetHostId () |
![]() | |
int32_t | service_id_ |
const std::vector< CommandHandler > | command_handlers_ |
ThreadLooper * | thread_looper_ |
ChannelMonitor * | channel_monitor_ |
cuttlefish::MiscService::MiscService | ( | int32_t | service_id, |
ChannelMonitor * | channel_monitor, | ||
ThreadLooper * | thread_looper | ||
) |
|
default |
|
delete |
|
private |
void cuttlefish::MiscService::HandleGetIMEI | ( | const Client & | client, |
std::string & | command | ||
) |
void cuttlefish::MiscService::HandleTimeUpdate | ( | const Client & | client, |
std::string & | command | ||
) |
|
private |
|
delete |
|
private |
void cuttlefish::MiscService::SetTimeZone | ( | std::string | timezone | ) |
void cuttlefish::MiscService::TimeUpdate | ( | ) |
|
private |
|
private |