Home
last modified time | relevance | path

Searched refs:r_pos (Results 1 – 2 of 2) sorted by relevance

/device/google/cuttlefish/host/commands/modem_simulator/
Dchannel_monitor.cpp172 size_t pos = 0, r_pos = 0; // '\r' or '\n' in ReadCommand() local
173 while (r_pos != std::string::npos) { in ReadCommand()
175 r_pos = commands.find('\032', pos); // In sms, find ctrl-z in ReadCommand()
177 r_pos = commands.find('\r', pos); in ReadCommand()
179 if (r_pos != std::string::npos) { in ReadCommand()
180 auto command = commands.substr(pos, r_pos - pos); in ReadCommand()
185 pos = r_pos + 1; // Skip '\r' in ReadCommand()
/device/google/cuttlefish/host/commands/modem_simulator/unittest/
Dservice_test.cpp133 size_t pos = 0, r_pos = 0; // '\r' or '\n' in ReadCommandResponse() local
134 while (r_pos != std::string::npos) { in ReadCommandResponse()
135 r_pos = commands.find('\r', pos); in ReadCommandResponse()
136 if (r_pos != std::string::npos) { in ReadCommandResponse()
137 auto command = commands.substr(pos, r_pos - pos); in ReadCommandResponse()
149 pos = r_pos + 1; // skip '\r' in ReadCommandResponse()