Searched refs:command (Results 1 - 25 of 133) sorted by relevance

123456

/system/core/logcat/tests/
H A Dliblogcat_test.cpp20 #define logcat_popen(context, command) android_logcat_popen(&(context), command)
22 #define logcat_system(command) android_logcat_system(command)
H A Dlogcat_test.cpp42 #define logcat_popen(context, command) popen((command), "r")
44 #define logcat_system(command) system(command)
134 std::string command = android::base::StringPrintf( local
138 ASSERT_TRUE(NULL != (fp = logcat_popen(ctx, command.c_str())));
800 static testing::AssertionResult IsFalse(int ret, const char* command) { argument
802 << "ret=" << ret << " command=\"" << command << "\"")
814 char command[sizeo local
860 char command[sizeof(tmp_out_dir) + sizeof(logcat_cmd)]; local
919 char command[sizeof(tmp_out_dir) + sizeof(logcat_cmd) + sizeof(log_filename)]; local
1046 char command[sizeof(tmp_out_dir) + sizeof(logcat_cmd) + local
1118 char command[strlen(tmp_out_dir) + strlen(logcat_cmd) + local
1186 char command[strlen(cleanup_cmd) + strlen(tmp_out_dir_form)]; local
1193 static const char command[] = logcat_executable local
1743 reportedSecurity(const char* command) argument
1764 commandOutputSize(const char* command) argument
[all...]
/system/tpm/trunks/aidl/android/trunks/
H A DITrunks.aidl22 oneway void SendCommand(in byte[] command, in ITrunksClient client);
23 byte[] SendCommandAndWait(in byte[] command);
/system/tpm/trunks/
H A Dtpm_handle.h36 // std::string response = handle.SendCommandAndWait(command);
47 void SendCommand(const std::string& command,
49 std::string SendCommandAndWait(const std::string& command) override;
52 // Writes a |command| to /dev/tpm0 and reads the |response|. Returns
54 TPM_RC SendCommandInternal(const std::string& command, std::string* response);
H A Dtpm_handle.cc60 void TpmHandle::SendCommand(const std::string& command, argument
62 callback.Run(SendCommandAndWait(command));
65 std::string TpmHandle::SendCommandAndWait(const std::string& command) { argument
67 TPM_RC result = SendCommandInternal(command, &response);
74 TPM_RC TpmHandle::SendCommandInternal(const std::string& command, argument
77 int result = HANDLE_EINTR(write(fd_, command.data(), command.length()));
82 if (static_cast<size_t>(result) != command.length()) {
84 << command.length();
H A Dcommand_transceiver.h34 // Sends a TPM |command| asynchronously. When a |response| is received,
38 virtual void SendCommand(const std::string& command,
41 // Sends a TPM |command| synchronously (i.e. waits for a response) and returns
44 virtual std::string SendCommandAndWait(const std::string& command) = 0;
H A Dtpm_simulator_handle.h29 // Sends command requests to an in-process software TPM. All commands are
37 // std::string response = handle.SendCommandAndWait(command);
48 void SendCommand(const std::string& command,
50 std::string SendCommandAndWait(const std::string& command) override;
H A Dresource_manager_test.cc76 // Builds a well-formed command.
118 // Builds a well-formed command authorization section.
150 std::string command = CreateCommand(TPM_CC_Load, input_handles, local
155 EXPECT_CALL(transceiver_, SendCommandAndWait(command))
157 std::string actual_response = resource_manager_.SendCommandAndWait(command);
167 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local
179 resource_manager_.SendCommandAndWait(command);
185 std::string command = CreateCommand(TPM_CC_StartAuthSession, input_handles, local
190 EXPECT_CALL(transceiver_, SendCommandAndWait(command))
192 std::string actual_response = resource_manager_.SendCommandAndWait(command);
198 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local
234 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local
245 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local
260 std::string command = CreateCommand(TPM_CC_Load, input_handles, local
282 std::string command = CreateCommand(TPM_CC_Sign, input_handles, local
302 std::string command = CreateCommand(TPM_CC_FlushContext, kNoHandles, local
338 std::string command = CreateCommand(TPM_CC_Sign, input_handles, local
354 std::string command = CreateCommand(TPM_CC_Sign, input_handles, local
365 std::string command = local
391 std::string command = local
424 std::string command = local
442 std::string command = local
464 std::string command = local
484 std::string command = CreateCommand(TPM_CC_FlushContext, kNoHandles, local
508 std::string command = CreateCommand(TPM_CC_Sign, input_handles, local
528 std::string command = local
564 std::string command = CreateCommand(TPM_CC_Sign, input_handles, local
583 std::string command = local
597 std::string command = local
606 std::string command = local
628 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local
671 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local
729 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local
739 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local
761 std::string command = CreateCommand(TPM_CC_Startup, kNoHandles, local
768 std::string command = local
[all...]
H A Dtrunks_binder_service.cc31 // If |command| is a valid command protobuf, provides the |command_data| and
33 bool ParseCommandProto(const std::vector<uint8_t>& command, argument
36 if (!request_proto.ParseFromArray(command.data(), command.size()) ||
37 !request_proto.has_command() || request_proto.command().empty()) {
40 *command_data = request_proto.command();
78 const std::vector<uint8_t>& command,
84 if (!ParseCommandProto(command, &command_data)) {
85 LOG(ERROR) << "TrunksBinderService: Bad command dat
77 SendCommand( const std::vector<uint8_t>& command, const android::sp<android::trunks::ITrunksClient>& client) argument
106 SendCommandAndWait( const std::vector<uint8_t>& command, std::vector<uint8_t>* response) argument
[all...]
H A Dtpm_simulator_handle.cc58 void TpmSimulatorHandle::SendCommand(const std::string& command, argument
60 callback.Run(SendCommandAndWait(command));
63 std::string TpmSimulatorHandle::SendCommandAndWait(const std::string& command) { argument
67 std::string mutable_command(command);
68 ExecuteCommand(command.size(), reinterpret_cast<unsigned char*>(
H A Dbackground_command_transceiver.h56 void SendCommand(const std::string& command,
58 std::string SendCommandAndWait(const std::string& command) override;
61 // Sends a |command| to the |next_transceiver_| and invokes a |callback| with
62 // the command response.
63 void SendCommandTask(const std::string& command,
H A Dbackground_command_transceiver.cc60 const std::string& command,
70 command, background_callback);
73 next_transceiver_->SendCommand(command, callback);
78 const std::string& command) {
90 command, callback);
95 return next_transceiver_->SendCommandAndWait(command);
100 const std::string& command,
102 next_transceiver_->SendCommand(command, callback);
59 SendCommand( const std::string& command, const ResponseCallback& callback) argument
77 SendCommandAndWait( const std::string& command) argument
99 SendCommandTask( const std::string& command, const ResponseCallback& callback) argument
H A Dtrunks_binder_proxy.h43 void SendCommand(const std::string& command,
45 std::string SendCommandAndWait(const std::string& command) override;
H A Dtrunks_ftdi_spi.h42 void SendCommand(const std::string& command,
44 std::string SendCommandAndWait(const std::string& command) override;
93 void SendCommand(const std::string& command,
95 std::string SendCommandAndWait(const std::string& command) {
/system/libufdt/utils/src/
H A Dmkdtimg.c34 const char *command; member in struct:command_info
47 static const struct command_info *search_command(const char *command) { argument
49 for (info = command_infos; info->command != NULL; info++) {
50 if (strcmp(command, info->command) == 0) {
54 if (info->command == NULL) {
55 fprintf(stderr, "Unknown command: %s\n", command);
63 for (info = command_infos; info->command != NULL; info++) {
67 fprintf(out_fp, "%s", info->command);
122 const char *command = argv[1]; local
[all...]
/system/netd/server/
H A DFwmarkServer.cpp94 FwmarkCommand command; local
98 { &command, sizeof(command) },
120 if (!((command.cmdId != FwmarkCommand::ON_CONNECT_COMPLETE && messageLength == sizeof(command))
121 || (command.cmdId == FwmarkCommand::ON_CONNECT_COMPLETE
122 && messageLength == sizeof(command) + sizeof(connectInfo)))) {
128 if (command.cmdId == FwmarkCommand::QUERY_USER_ACCESS) {
132 return mNetworkController->checkUserNetworkAccess(command.uid, command
[all...]
H A DFirewallController.cpp99 std::string command = local
105 res = execIptablesRestore(V4V6, command.c_str());
119 std::string command = local
126 return execIptablesRestore(V4V6, command.c_str());
150 std::string command = "*filter\n"; local
152 StringAppendF(&command, "%s %s -j %s\n", (enable ? "-A" : "-D"), parent, name);
154 StringAppendF(&command, "COMMIT\n");
156 return execIptablesRestore(V4V6, command);
189 std::string command = Join(std::vector<std::string> { local
195 return execIptablesRestore(V4V6, command);
249 std::string command = "*filter\\n"; local
[all...]
/system/netd/client/
H A DNetdClient.cpp70 FwmarkCommand command = {FwmarkCommand::ON_ACCEPT, 0, 0, 0}; local
71 if (int error = FwmarkClient().send(&command, acceptedSocket, nullptr)) {
82 FwmarkCommand command = {FwmarkCommand::ON_CONNECT, 0, 0, 0}; local
83 if (int error = FwmarkClient().send(&command, sockfd, nullptr)) {
94 // Send an ON_CONNECT_COMPLETE command that includes sockaddr and connect latency for reporting
98 FwmarkCommand command = {FwmarkCommand::ON_CONNECT_COMPLETE, /* netId (ignored) */ 0, local
101 FwmarkClient().send(&command, sockfd, &connectInfo);
215 FwmarkCommand command = {FwmarkCommand::SELECT_NETWORK, netId, 0, 0}; local
216 return FwmarkClient().send(&command, socketFd, nullptr);
231 FwmarkCommand command local
239 FwmarkCommand command = {FwmarkCommand::SELECT_FOR_USER, 0, uid, 0}; local
244 FwmarkCommand command = {FwmarkCommand::QUERY_USER_ACCESS, netId, uid, 0}; local
249 FwmarkCommand command = {FwmarkCommand::TAG_SOCKET, 0, uid, tag}; local
254 FwmarkCommand command = {FwmarkCommand::UNTAG_SOCKET, 0, 0, 0}; local
259 FwmarkCommand command = {FwmarkCommand::SET_COUNTERSET, 0, uid, counterSet}; local
264 FwmarkCommand command = {FwmarkCommand::DELETE_TAGDATA, 0, uid, tag}; local
[all...]
/system/core/logcat/include/log/
H A Dlogcat.h40 * It also serves as the basis for the logcat command.
67 * (output redirect to a file) is present in the command. The error file
84 * The command supports 2>&1 (mix content) and 2>/dev/null (drop content) for
93 * Kill the command thread ASAP (if any), and free up all associated resources.
109 * a wrapper for a reasonable wait until output has subsided for command
112 int android_logcat_system(const char* command);
113 FILE* android_logcat_popen(android_logcat_context* ctx, const char* command);
/system/extras/simpleperf/
H A Dcommand_test.cpp19 #include "command.h"
31 TEST(command, CreateCommandInstance) {
39 TEST(command, GetAllCommands) {
/system/bt/hci/include/
H A Dlow_power_manager.h34 // Performs |command| synchronized on the thread that was provided
36 void (*post_command)(low_power_command_t command);
/system/core/init/
H A Dreboot.h39 bool HandlePowerctlMessage(const std::string& command);
/system/tools/hidl/c2hal/test/
H A Dbuild_all.py55 command = ["c2hal",
60 command += ["-g"]
62 command += [path_join(path, header)]
64 res = call(command)
/system/update_engine/
H A Dfake_p2p_manager_configuration.h63 void SetInitctlStartCommand(const std::vector<std::string>& command) { argument
64 initctl_start_args_ = command;
69 void SetInitctlStopCommand(const std::vector<std::string>& command) { argument
70 initctl_stop_args_ = command;
94 // A string for generating the p2p-client command. See the
/system/tools/aidl/tests/
H A Dintegration-test.py31 """Represents the result of running a shell command."""
37 exit_status: integer exit code of shell command
38 stdout: string stdout of shell command
39 stderr: string stderr of shell command
70 def run(self, command, background=False, ignore_status=False):
71 """Run a command on the device via adb shell.
74 command: string containing a shell command to run.
75 background: True iff we should run this command in the background.
76 ignore_status: True iff we should ignore the command'
[all...]

Completed in 2933 milliseconds

123456