/device/google/cuttlefish/host/commands/modem_simulator/unittest/ |
D | service_test.cpp | 101 void SendCommand(std::string command, std::string prefix = "") { in SendCommand() argument 103 modem_simulator_->DispatchCommand(*modem_side_, command); in SendCommand() 137 auto command = commands.substr(pos, r_pos - pos); in ReadCommandResponse() local 138 if (command.size() > 0) { // "\r\r" ? in ReadCommandResponse() 139 LOG(DEBUG) << "AT< " << command; in ReadCommandResponse() 140 if (IsFinalResponseSuccess(command) || IsFinalResponseError(command)) { in ReadCommandResponse() 141 response.push_back(command); in ReadCommandResponse() 143 } else if (IsIntermediateResponse(command)) { in ReadCommandResponse() 144 response.push_back(command); in ReadCommandResponse() 192 std::string command = "AT+CCHO="; in openLogicalChannel() local [all …]
|
D | command_parser_test.cpp | 21 std::string command = "AT+SPUSATENVECMD=\"D3078202018190014E\""; in TEST() local 23 cuttlefish::CommandParser cmd(command); in TEST() 30 std::string command = "AT+SPUSATENVECMD=\"D3078202018190014E\""; in TEST() local 32 cuttlefish::CommandParser cmd(command); in TEST() 39 std::string command = "+COPS: 0,1,\"CMCC\",7"; in TEST() local 41 cuttlefish::CommandParser cmd(command); in TEST() 48 std::string command = "+COPS: 0,1,\"CMCC\",7"; in TEST() local 49 cuttlefish::CommandParser cmd(command); in TEST() 58 std::string command = "+COPS: 0,1,\"CMCC\",7"; in TEST() local 60 cuttlefish::CommandParser cmd(command); in TEST() [all …]
|
/device/google/cuttlefish/host/libs/avb/ |
D | avb.cpp | 57 Command command(avbtool_path_); in GenerateAddHashFooter() local 58 command.AddParameter(kAddHashFooter); in GenerateAddHashFooter() 60 command.AddParameter("--algorithm"); in GenerateAddHashFooter() 61 command.AddParameter(algorithm_); in GenerateAddHashFooter() 64 command.AddParameter("--key"); in GenerateAddHashFooter() 65 command.AddParameter(key_); in GenerateAddHashFooter() 67 command.AddParameter("--image"); in GenerateAddHashFooter() 68 command.AddParameter(image_path); in GenerateAddHashFooter() 69 command.AddParameter("--partition_name"); in GenerateAddHashFooter() 70 command.AddParameter(partition_name); in GenerateAddHashFooter() [all …]
|
/device/google/cuttlefish/host/commands/run_cvd/launch/ |
D | secure_env.cpp | 38 Command command(SecureEnvBinary()); in SecureEnv() local 39 command.AddParameter("-confui_server_fd=", in SecureEnv() 41 command.AddParameter("-snapshot_control_fd=", in SecureEnv() 58 command.AddParameter("-keymaster_fd_out=", fifos[0]); in SecureEnv() 59 command.AddParameter("-keymaster_fd_in=", fifos[1]); in SecureEnv() 60 command.AddParameter("-gatekeeper_fd_out=", fifos[2]); in SecureEnv() 61 command.AddParameter("-gatekeeper_fd_in=", fifos[3]); in SecureEnv() 62 command.AddParameter("-oemlock_fd_out=", fifos[4]); in SecureEnv() 63 command.AddParameter("-oemlock_fd_in=", fifos[5]); in SecureEnv() 64 command.AddParameter("-keymint_fd_out=", fifos[6]); in SecureEnv() [all …]
|
D | casimir.cpp | 41 Command command(ProcessRestarterBinary()); in Casimir() local 42 command.AddParameter("-when_killed"); in Casimir() 43 command.AddParameter("-when_dumped"); in Casimir() 44 command.AddParameter("-when_exited_with_failure"); in Casimir() 45 command.AddParameter("--"); in Casimir() 47 command.AddParameter(CasimirBinary()); in Casimir() 48 command.AddParameter("--nci-port"); in Casimir() 49 command.AddParameter(config.casimir_nci_port()); in Casimir() 50 command.AddParameter("--rf-port"); in Casimir() 51 command.AddParameter(config.casimir_rf_port()); in Casimir() [all …]
|
D | vhost_device_vsock.cpp | 48 Command command(ProcessRestarterBinary()); in Commands() local 49 command.AddParameter("-when_killed"); in Commands() 50 command.AddParameter("-when_dumped"); in Commands() 51 command.AddParameter("-when_exited_with_failure"); in Commands() 52 command.AddParameter("--"); in Commands() 53 command.AddParameter(HostBinaryPath("vhost_device_vsock")); in Commands() 54 command.AddEnvironmentVariable("RUST_BACKTRACE", "1"); in Commands() 55 command.AddEnvironmentVariable("RUST_LOG", "debug"); in Commands() 67 command.AddParameter("--vm"); in Commands() 68 command.AddParameter(param); in Commands() [all …]
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | modem_service.cpp | 26 CommandHandler::CommandHandler(const std::string& command, f_func handler) in CommandHandler() argument 27 : command_prefix(command), in CommandHandler() 31 CommandHandler::CommandHandler(const std::string& command, p_func handler) in CommandHandler() argument 32 : command_prefix(command), in CommandHandler() 36 int CommandHandler::Compare(const std::string& command) const { in Compare() 39 result = command.compare(2, command_prefix.size(), command_prefix); // skip "AT" in Compare() 41 result = command.compare(2, command.size(), command_prefix); in Compare() 47 std::string& command) const { in HandleCommand() 49 (*p_command_handler)(client, command); in HandleCommand() 67 std::string command) { in HandleModemCommand() argument [all …]
|
D | sms_service.cpp | 141 void SmsService::HandleWriteSMSToSim(const Client& client, std::string& command) { in HandleWriteSMSToSim() argument 144 CommandParser cmd(command); in HandleWriteSMSToSim() 163 void SmsService::HandleDeleteSmsOnSim(const Client& client, std::string& command) { in HandleDeleteSmsOnSim() argument 164 CommandParser cmd(command); in HandleDeleteSmsOnSim() 198 void SmsService::HandleBroadcastConfig(const Client& client, std::string& command) { in HandleBroadcastConfig() argument 201 CommandParser cmd(command); in HandleBroadcastConfig() 243 void SmsService::HandleSetSmscAddress(const Client& client, std::string& command) { in HandleSetSmscAddress() argument 244 CommandParser cmd(command); in HandleSetSmscAddress() 262 std::string command = "AT+REMOTESMS=" + pdu + "\r"; in SendSmsToRemote() local 265 remote_client->Write(command.data(), command.size()); in SendSmsToRemote() [all …]
|
D | sim_service.h | 40 void HandleChangeOrEnterPIN(const Client& client, const std::string& command); 41 void HandleSIM_IO(const Client& client, const std::string& command); 42 void HandleCSIM_IO(const Client& client, const std::string& command); 45 void HandleFacilityLock(const Client& client, const std::string& command); 47 const std::string& command); 49 const std::string& command); 51 const std::string& command); 52 void HandleChangePassword(const Client& client, const std::string& command); 53 void HandleQueryRemainTimes(const Client& client, const std::string& command); 55 const std::string& command); [all …]
|
D | sms_service.h | 35 void HandleSendSMS(const Client& client, std::string& command); 36 void HandleSendSMSPDU(const Client& client, std::string& command); 37 void HandleSMSAcknowledge(const Client& client, std::string& command); 38 void HandleWriteSMSToSim(const Client& client, std::string& command); 39 void HandleDeleteSmsOnSim(const Client& client, std::string& command); 40 void HandleBroadcastConfig(const Client& client, std::string& command); 42 void HandleSetSmscAddress(const Client& client, std::string& command); 43 void HandleWriteSMSPduToSim(const Client& client, std::string& command); 44 void HandleReceiveRemoteSMS(const Client& client, std::string& command);
|
D | network_service.h | 41 void HandleRadioPower(const Client& client, std::string& command); 46 void HandleSetNetworkSelectionMode(const Client& client, std::string& command); 47 void HandleVoiceNetworkRegistration(const Client& client, std::string& command); 48 void HandleDataNetworkRegistration(const Client& client, std::string& command); 51 void HandleSetPreferredNetworkType(const Client& client, std::string& command); 52 void HandleNetworkRegistration(cuttlefish::SharedFD client, std::string& command); 55 std::string& command); 56 void HandleReceiveRemoteCTEC(const Client& client, std::string& command); 57 void HandleReceiveRemoteSignal(const Client& client, std::string& command); 311 void HandleIdentifierDisclosure(const std::string& command); [all …]
|
D | network_service.cpp | 308 void NetworkService::HandleRadioPower(const Client& client, std::string& command) { in HandleRadioPower() argument 309 CommandParser cmd(command); in HandleRadioPower() 591 void NetworkService::HandleSetNetworkSelectionMode(const Client& client, std::string& command) { in HandleSetNetworkSelectionMode() argument 595 CommandParser cmd(command); in HandleSetNetworkSelectionMode() 826 std::string& command) { in HandleVoiceNetworkRegistration() argument 830 CommandParser cmd(command); in HandleVoiceNetworkRegistration() 897 std::string& command) { in HandleDataNetworkRegistration() argument 902 CommandParser cmd(command); in HandleDataNetworkRegistration() 904 if (command.find("CGREG") != std::string::npos) { in HandleDataNetworkRegistration() 906 } else if (command.find("CEREG") != std::string::npos){ in HandleDataNetworkRegistration() [all …]
|
D | sim_service.cpp | 929 const std::string& command) { in HandleSIM_IO() argument 933 CommandParser cmd(command); in HandleSIM_IO() 1086 const std::string& command) { in HandleCSIM_IO() argument 1089 CommandParser cmd(command); in HandleCSIM_IO() 1162 const std::string& command) { in HandleChangeOrEnterPIN() argument 1165 CommandParser cmd(command); in HandleChangeOrEnterPIN() 1367 const std::string& command) { in HandleFacilityLock() argument 1368 CommandParser cmd(command); in HandleFacilityLock() 1438 const std::string& command) { in HandleOpenLogicalChannel() argument 1441 CommandParser cmd(command); in HandleOpenLogicalChannel() [all …]
|
D | call_service.h | 35 void HandleDial(const Client& client, const std::string& command); 39 void HandleHangup(const Client& client, const std::string& command); 40 void HandleMute(const Client& client, const std::string& command); 41 void HandleSendDtmf(const Client& client, const std::string& command); 42 void HandleCancelUssd(const Client& client, const std::string& command); 43 void HandleEmergencyMode(const Client& client, const std::string& command); 44 void HandleRemoteCall(const Client& client, const std::string& command);
|
/device/google/cuttlefish/host/commands/metrics_launcher/ |
D | metrics_launcher.cpp | 41 std::string command; in MetricsLauncherMain() local 42 std::getline(std::cin, command); in MetricsLauncherMain() 44 if (command == "start") { in MetricsLauncherMain() 46 } else if (command == "stop") { in MetricsLauncherMain() 48 } else if (command == "boot") { in MetricsLauncherMain() 50 } else if (command == "lock") { in MetricsLauncherMain() 52 } else if (command == "exit") { in MetricsLauncherMain() 55 LOG(ERROR) << "Unknown command: " << command; in MetricsLauncherMain()
|
/device/google/contexthub/util/nanotool/ |
D | nanotool.cpp | 55 NanotoolCommand command = NanotoolCommand::Poll; member 164 && (args->command == NanotoolCommand::Disable in ValidateArgs() 165 || args->command == NanotoolCommand::Calibrate in ValidateArgs() 166 || args->command == NanotoolCommand::Test in ValidateArgs() 167 || args->command == NanotoolCommand::Poll)) { in ValidateArgs() 174 if (args->command == NanotoolCommand::Flash in ValidateArgs() 182 if (args->command == NanotoolCommand::Poll) { in ValidateArgs() 195 if (args->command == NanotoolCommand::Calibrate) { in ValidateArgs() 318 args->command = StrToCommand(optarg); in ParseArgs() 319 if (args->command == NanotoolCommand::Invalid) { in ParseArgs() [all …]
|
/device/google/cuttlefish_vmm/qemu/third_party/rust/crates/pkg-config/src/ |
D | lib.rs | 130 Command { command: String, cause: io::Error }, 135 Failure { command: String, output: Output }, 142 command: String, 173 ref command, in fmt() 201 …that require pkg-config.", command = command, instructions = instructions, crate_name = crate_name) in fmt() 203 _ => write!(f, "Failed to run command `{}`, because: {}", command, cause), in fmt() 208 ref command, in fmt() 214 command, output.status, name, env::var("CARGO_PKG_NAME").unwrap_or_default(), in fmt() 219 ref command, in fmt() 225 command, output.status in fmt() [all …]
|
/device/google/cuttlefish/host/frontend/webrtc/html_client/js/ |
D | adb.js | 55 function createAdbMessage(command, arg0, arg1, payload) { argument 58 setU32LE(array, 0, command); 63 setU32LE(array, 20, command ^ 0xffffffff); 78 function adbShell(command) { argument 79 let destination = utf8Encoder.encode('shell:' + command); 137 let command = getU32LE(array, 0); 140 if (command != ((magic ^ 0xffffffff) >>> 0)) { 142 console.error('command = ' + command + ', magic = ' + magic); 162 switch (command) {
|
/device/google/cuttlefish/common/libs/security/ |
D | gatekeeper_channel_windows.cpp | 107 uint32_t command, const gatekeeper::GateKeeperMessage& message) { in SendRequest() argument 108 return SendMessage(command, false, message); in SendRequest() 112 uint32_t command, const gatekeeper::GateKeeperMessage& message) { in SendResponse() argument 113 return SendMessage(command, true, message); in SendResponse() 118 uint32_t command, bool is_response, in SendMessage() argument 123 LOG(WARNING) << "Sending large message with id: " << command in SendMessage() 127 auto to_send_result = transport::CreateMessage(command, is_response, payload_size); in SendMessage() 208 LOG(WARNING) << "Received large message with id: " << message_header.command in ReceiveMessage() 212 auto message_result = transport::CreateMessage(message_header.command, in ReceiveMessage()
|
D | gatekeeper_channel_sharedfd.cpp | 29 uint32_t command, const gatekeeper::GateKeeperMessage& message) { in SendRequest() argument 30 return SendMessage(command, false, message); in SendRequest() 34 uint32_t command, const gatekeeper::GateKeeperMessage& message) { in SendResponse() argument 35 return SendMessage(command, true, message); in SendResponse() 38 bool SharedFdGatekeeperChannel::SendMessage(uint32_t command, bool is_response, in SendMessage() argument 40 LOG(DEBUG) << "Sending message with id: " << command; in SendMessage() 42 auto to_send_result = transport::CreateMessage(command, payload_size); in SendMessage()
|
D | keymaster_channel_sharedfd.cpp | 38 AndroidKeymasterCommand command, const keymaster::Serializable& message) { in SendRequest() argument 39 return SendMessage(command, false, message); in SendRequest() 43 AndroidKeymasterCommand command, const keymaster::Serializable& message) { in SendResponse() argument 44 return SendMessage(command, true, message); in SendResponse() 48 AndroidKeymasterCommand command, bool is_response, in SendMessage() argument 51 LOG(VERBOSE) << "Sending message with id: " << command << " and size " in SendMessage() 53 auto to_send = CreateKeymasterMessage(command, is_response, payload_size); in SendMessage()
|
/device/google/trout/tools/tracing/tooling/ |
D | prepare_tracing.py | 23 def subprocess_run(command, shell=True): argument 26 result = subprocess.run(command, shell=shell, stdout=subprocess.PIPE, check=True) 52 command = f'source {qnx_env_file} && qcc -Vgcc_ntoaarch64le {filepath} -o {clock_util}' 53 subprocess_run(command) 55 command = f'scp -F /dev/null {clock_util} root@{qnx_ip}:/bin/' 56 subprocess_run(command) 63 command = ['push', aaos_time_util, '/vendor/bin/android.automotive.time_util'] 64 adb_run(serial_num, command)
|
/device/google/cuttlefish/guest/hals/ril/reference-ril/ |
D | atchannel.c | 672 static int at_send_command_full_nolock (const char *command, ATCommandType type, in at_send_command_full_nolock() argument 684 err = writeline (command); in at_send_command_full_nolock() 739 static int at_send_command_full (const char *command, ATCommandType type, in at_send_command_full() argument 754 err = at_send_command_full_nolock(command, type, in at_send_command_full() 779 int at_send_command (const char *command, ATResponse **pp_outResponse) in at_send_command() argument 783 err = at_send_command_full (command, NO_RESULT, NULL, in at_send_command() 790 int at_send_command_singleline (const char *command, in at_send_command_singleline() argument 796 err = at_send_command_full (command, SINGLELINE, responsePrefix, in at_send_command_singleline() 813 int at_send_command_numeric (const char *command, in at_send_command_numeric() argument 818 err = at_send_command_full (command, NUMERIC, NULL, in at_send_command_numeric() [all …]
|
/device/google/cuttlefish/host/commands/health/ |
D | health.cpp | 118 cuttlefish::Command command(instance.crosvm_binary()); in main() local 119 command.AddParameter("battery"); in main() 120 command.AddParameter("goldfish"); in main() 121 command.AddParameter(key); in main() 122 command.AddParameter(value); in main() 123 command.AddParameter(GetControlSocketPath(*config)); in main() 126 auto ret = RunWithManagedStdio(std::move(command), NULL, &output, &error); in main()
|
/device/google/cuttlefish/host/frontend/webrtc/libdevice/ |
D | data_channels.cpp | 181 auto command = evt["command"].asString(); in OnMessageInner() local 183 if (command == "device_state") { in OnMessageInner() 192 } else if (command.rfind("camera_", 0) == 0) { in OnMessageInner() 195 } else if (command == "display") { in OnMessageInner() 201 LOG(VERBOSE) << "Control command: " << command << " (" << button_state in OnMessageInner() 203 if (command == "power") { in OnMessageInner() 205 } else if (command == "back") { in OnMessageInner() 207 } else if (command == "home") { in OnMessageInner() 209 } else if (command == "menu") { in OnMessageInner() 211 } else if (command == "volumedown") { in OnMessageInner() [all …]
|