Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 359) sorted by relevance

12345678910>>...15

/system/netd/server/
DFwmarkServer.cpp102 FwmarkCommand command; in processClient() local
105 char buf[sizeof(command) + sizeof(connectInfo)]; in processClient()
116 memcpy(&command, buf, sizeof(command)); in processClient()
117 memcpy(&connectInfo, buf + sizeof(command), sizeof(connectInfo)); in processClient()
119 size_t expectedLen = sizeof(command); in processClient()
120 if (hasDestinationAddress(command.cmdId, mRedirectSocketCalls)) { in processClient()
130 if (command.cmdId == FwmarkCommand::QUERY_USER_ACCESS) { in processClient()
134 return mNetworkController->checkUserNetworkAccess(command.uid, command.netId); in processClient()
137 if (command.cmdId == FwmarkCommand::SET_COUNTERSET) { in processClient()
138 return mTrafficCtrl->setCounterSet(command.trafficCtrlInfo, command.uid, client->getUid()); in processClient()
[all …]
DFirewallController.cpp115 std::string command = in setFirewallType() local
121 res = execIptablesRestore(V4V6, command.c_str()); in setFirewallType()
135 std::string command = in resetFirewall() local
142 return (execIptablesRestore(V4V6, command.c_str()) == 0) ? 0 : -EREMOTEIO; in resetFirewall()
166 std::string command = "*filter\n"; in enableChildChains() local
168 StringAppendF(&command, "%s %s -j %s\n", (enable ? "-A" : "-D"), parent, name); in enableChildChains()
170 StringAppendF(&command, "COMMIT\n"); in enableChildChains()
172 return execIptablesRestore(V4V6, command); in enableChildChains()
205 std::string command = Join(std::vector<std::string> { in setInterfaceRule() local
211 return (execIptablesRestore(V4V6, command) == 0) ? 0 : -EREMOTEIO; in setInterfaceRule()
[all …]
DIptablesRestoreController.cpp207 const std::string& command, in sendCommand() argument
237 if (!android::base::WriteFully((*process)->stdIn, command.data(), command.length())) { in sendCommand()
247 if (!drainAndWaitForAck(*process, command, output)) { in sendCommand()
256 const std::string& command) { in maybeLogStderr() argument
263 ALOGE("%s\n", command.c_str()); in maybeLogStderr()
272 const std::string& command, in drainAndWaitForAck() argument
342 maybeLogStderr(process, command); in drainAndWaitForAck()
347 int IptablesRestoreController::execute(const IptablesTarget target, const std::string& command, in execute() argument
360 res |= sendCommand(IPTABLES_PROCESS, command, output); in execute()
363 res |= sendCommand(IP6TABLES_PROCESS, command, output); in execute()
/system/extras/profcollectd/
Dprofcollectctl.cpp49 std::string command(argv[1]); in main() local
50 if (command == "start") { in main()
53 } else if (command == "stop") { in main()
56 } else if (command == "once") { in main()
59 } else if (command == "process") { in main()
62 } else if (command == "reconfig") { in main()
65 } else if (command == "help") { in main()
68 PrintHelp("Unknown command: " + command); in main()
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Ddual_mode_controller.cc253 void DualModeController::SniffSubrating(CommandPacketView command) { in SniffSubrating() argument
255 gd_hci::ConnectionManagementCommandView::Create(command)); in SniffSubrating()
388 void DualModeController::Reset(CommandPacketView command) { in Reset() argument
389 auto command_view = gd_hci::ResetView::Create(command); in Reset()
400 void DualModeController::ReadBufferSize(CommandPacketView command) { in ReadBufferSize() argument
401 auto command_view = gd_hci::ReadBufferSizeView::Create(command); in ReadBufferSize()
413 void DualModeController::ReadEncryptionKeySize(CommandPacketView command) { in ReadEncryptionKeySize() argument
415 gd_hci::SecurityCommandView::Create(command)); in ReadEncryptionKeySize()
424 void DualModeController::HostBufferSize(CommandPacketView command) { in HostBufferSize() argument
425 auto command_view = gd_hci::HostBufferSizeView::Create(command); in HostBufferSize()
[all …]
/system/core/logcat/tests/
Dlogcat_test.cpp130 std::string command = android::base::StringPrintf( in TEST() local
134 ASSERT_TRUE(NULL != (fp = popen(command.c_str(), "r"))); in TEST()
774 static testing::AssertionResult IsFalse(int ret, const char* command) { in IsFalse() argument
776 << "ret=" << ret << " command=\"" << command << "\"") in IsFalse()
788 char command[sizeof(buf) + sizeof(comm)]; in TEST() local
789 snprintf(command, sizeof(command), comm, buf); in TEST()
792 EXPECT_FALSE(IsFalse(ret = system(command), command)); in TEST()
794 snprintf(command, sizeof(command), "ls -s %s 2>/dev/null", buf); in TEST()
797 EXPECT_TRUE(NULL != (fp = popen(command, "r"))); in TEST()
821 snprintf(command, sizeof(command), "rm -rf %s", buf); in TEST()
[all …]
/system/libufdt/utils/src/
Dmkdtimg.c34 const char *command; member
47 static const struct command_info *search_command(const char *command) { in search_command() argument
49 for (info = command_infos; info->command != NULL; info++) { in search_command()
50 if (strcmp(command, info->command) == 0) { in search_command()
54 if (info->command == NULL) { in search_command()
55 fprintf(stderr, "Unknown command: %s\n", command); in search_command()
63 for (info = command_infos; info->command != NULL; info++) { in print_all_commands()
67 fprintf(out_fp, "%s", info->command); in print_all_commands()
79 for (info = command_infos; info->command != NULL; info++) { in output_all_usage()
122 const char *command = argv[1]; in main() local
[all …]
/system/netd/tests/
Dtest_utils.cpp40 std::vector<std::string> runCommand(const std::string& command) { in runCommand() argument
42 FILE* f = popen(command.c_str(), "r"); // NOLINT(cert-env33-c) in runCommand()
62 std::string command = StringPrintf("%s %s rule list", IP_PATH, ipVersion); in listIpRules() local
63 return runCommand(command); in listIpRules()
67 std::string command = StringPrintf("%s -w -n -L %s", binary, chainName); in listIptablesRule() local
68 return runCommand(command); in listIptablesRule()
87 std::string command = StringPrintf("%s %s route ls table %s", IP_PATH, ipVersion, table); in listIpRoutes() local
88 return runCommand(command); in listIpRoutes()
/system/netd/client/
DNetdClient.cpp141 FwmarkCommand command = {FwmarkCommand::ON_ACCEPT, 0, 0, 0}; in netdClientAccept4() local
142 if (int error = FwmarkClient().send(&command, acceptedSocket, nullptr)) { in netdClientAccept4()
152 FwmarkCommand command = {FwmarkCommand::ON_CONNECT, 0, 0, 0}; in netdClientConnect() local
156 error = FwmarkClient().send(&command, sockfd, &connectInfo); in netdClientConnect()
158 error = FwmarkClient().send(&command, sockfd, nullptr); in netdClientConnect()
176 FwmarkCommand command = {FwmarkCommand::ON_CONNECT_COMPLETE, /* netId (ignored) */ 0, in netdClientConnect() local
179 FwmarkClient().send(&command, sockfd, &connectInfo); in netdClientConnect()
211 FwmarkCommand command = {FwmarkCommand::ON_SENDMMSG, 0, 0, 0}; in netdClientSendmmsg() local
212 FwmarkClient().send(&command, sockfd, &sendmmsgInfo); in netdClientSendmmsg()
226 FwmarkCommand command = {FwmarkCommand::ON_SENDMSG, 0, 0, 0}; in netdClientSendmsg() local
[all …]
/system/extras/simpleperf/
Dcommand_test.cpp33 TEST(command, CreateCommandInstance) { in TEST() argument
41 TEST(command, GetAllCommands) { in TEST() argument
49 TEST(command, GetValueForOption) { in TEST() argument
50 MockCommand command; in TEST() local
55 ASSERT_TRUE(command.GetUintOption({"-s", "156"}, &i, &value, 0, in TEST()
61 ASSERT_TRUE(command.GetUintOption({"-s", "156k"}, &i, &value, 0, in TEST()
65 ASSERT_FALSE(command.GetUintOption({"-s"}, &i, &value)); in TEST()
67 ASSERT_FALSE(command.GetUintOption({"-s", "0"}, &i, &value, 1)); in TEST()
69 ASSERT_FALSE(command.GetUintOption({"-s", "156"}, &i, &value, 0, 155)); in TEST()
72 ASSERT_TRUE(command.GetDoubleOption({"-s", "3.2"}, &i, &double_value, 0, 4)); in TEST()
[all …]
/system/bt/vendor_libs/test_vendor_lib/test/
Dpacket_stream_unittest.cc72 std::unique_ptr<CommandPacket> command = packet_stream_.ReceiveCommand(socketpair_fds_[0]); in CheckedReceiveCommand() local
74 const vector<uint8_t> received_payload = command->GetPayload(); in CheckedReceiveCommand()
78 EXPECT_EQ(packet.size(), command->GetPacketSize()); in CheckedReceiveCommand()
79 EXPECT_EQ(DATA_TYPE_COMMAND, command->GetType()); in CheckedReceiveCommand()
80 EXPECT_EQ(opcode, command->GetOpcode()); in CheckedReceiveCommand()
81 EXPECT_EQ(static_cast<size_t>(payload_size + 1), command->GetPayloadSize()); in CheckedReceiveCommand()
/system/bt/hci/src/
Dhci_layer.cc77 BT_HDR* command; member
313 static void transmit_command(BT_HDR* command, in transmit_command() argument
319 uint8_t* stream = command->data + command->offset; in transmit_command()
323 wait_entry->command = command; in transmit_command()
328 command->event = MSG_STACK_TO_HC_HCI_CMD; in transmit_command()
333 static future_t* transmit_command_futured(BT_HDR* command) { in transmit_command_futured() argument
338 uint8_t* stream = command->data + command->offset; in transmit_command_futured()
341 wait_entry->command = command; in transmit_command_futured()
345 command->event = MSG_STACK_TO_HC_HCI_CMD; in transmit_command_futured()
398 buffer_allocator->free(wait_entry->command); in enqueue_command()
[all …]
/system/core/adb/daemon/
Dabb_service.cpp31 unique_fd sendCommand(std::string_view command);
43 unique_fd AbbProcess::sendCommand(std::string_view command) { in sendCommand() argument
56 if (!SendProtocolString(socket_fd_, command)) { in sendCommand()
88 unique_fd execute_abb_command(std::string_view command) { in execute_abb_command() argument
89 return abbp->sendCommand(command); in execute_abb_command()
Dshell_service_test.cpp47 void StartTestSubprocess(const char* command, SubprocessType type,
51 void StartTestCommandInProcess(std::string name, Command command, SubprocessProtocol protocol);
63 const char* command, SubprocessType type, SubprocessProtocol protocol) { in StartTestSubprocess() argument
64 command_fd_ = StartSubprocess(command, nullptr, type, protocol); in StartTestSubprocess()
71 void ShellServiceTest::StartTestCommandInProcess(std::string name, Command command, in StartTestCommandInProcess() argument
73 command_fd_ = StartCommandInProcess(std::move(name), std::move(command), protocol); in StartTestCommandInProcess()
212 for (std::string command : commands) { in TEST_F() local
214 command.push_back('\n'); in TEST_F()
215 memcpy(protocol->data(), command.data(), command.length()); in TEST_F()
216 ASSERT_TRUE(protocol->Write(ShellProtocol::kIdStdin, command.length())); in TEST_F()
[all …]
/system/tools/aidl/tests/
Daidl_integration_test.py55 def run(self, command, background=False, ignore_status=False): argument
70 command = '( %s ) </dev/null >/dev/null 2>&1 &' % command
71 return self.adb('shell %s' % pipes.quote(command),
74 def adb(self, command, ignore_status=False): argument
87 command = 'adb %s' % command
88 p = subprocess.Popen(command, shell=True, close_fds=True,
93 raise subprocess.CalledProcessError(p.returncode, command)
/system/bt/gd/security/test/
Dfake_hci_layer.h48 …: command(std::move(command_packet)), waiting_for_status_(false), on_complete(std::move(on_complet… in CommandQueueEntry()
52 …: command(std::move(command_packet)), waiting_for_status_(true), on_status(std::move(on_status_fun… in CommandQueueEntry()
54 std::unique_ptr<CommandPacketBuilder> command; variable
64 void EnqueueCommand(std::unique_ptr<CommandPacketBuilder> command, in EnqueueCommand() argument
66 …auto command_queue_entry = std::make_unique<CommandQueueEntry>(std::move(command), std::move(on_st… in EnqueueCommand()
70 void EnqueueCommand(std::unique_ptr<CommandPacketBuilder> command, in EnqueueCommand() argument
72 …auto command_queue_entry = std::make_unique<CommandQueueEntry>(std::move(command), std::move(on_co… in EnqueueCommand()
/system/tools/hidl/c2hal/test/
Dbuild_all.py55 command = ["c2hal",
60 command += ["-g"]
62 command += [path_join(path, header)]
64 res = call(command)
/system/bt/gd/hci/
Dcontroller_test.cc59 void EnqueueCommand(std::unique_ptr<CommandPacketBuilder> command, in EnqueueCommand() argument
61 …->Post(common::BindOnce(&TestHciLayer::HandleCommand, common::Unretained(this), std::move(command), in EnqueueCommand()
65 void EnqueueCommand(std::unique_ptr<CommandPacketBuilder> command, in EnqueueCommand() argument
73 CommandPacketView command = CommandPacketView::Create(packet_view); in HandleCommand() local
74 ASSERT_TRUE(command.IsValid()); in HandleCommand()
78 switch (command.GetOpCode()) { in HandleCommand()
110 ReadLocalExtendedFeaturesView read_command = ReadLocalExtendedFeaturesView::Create(command); in HandleCommand()
177 auto view = SetEventMaskView::Create(command); in HandleCommand()
186 command_queue_.push(command); in HandleCommand()
242 CommandPacketView command = command_queue_.front(); in GetCommand() local
[all …]
/system/core/init/
Daction.cpp136 for (const auto& command : commands_) { in CheckAllCommands() local
137 if (auto result = command.CheckCommand(); !result.ok()) { in CheckAllCommands()
138 LOG(ERROR) << "Command '" << command.BuildCommandString() << "' (" << filename_ << ":" in CheckAllCommands()
139 << command.line() << ") failed: " << result.error(); in CheckAllCommands()
146 void Action::ExecuteOneCommand(std::size_t command) const { in ExecuteOneCommand()
149 Command cmd = commands_[command]; in ExecuteOneCommand()
159 void Action::ExecuteCommand(const Command& command) const { in ExecuteCommand()
161 auto result = command.InvokeFunc(subcontext_); in ExecuteCommand()
168 std::string cmd_str = command.BuildCommandString(); in ExecuteCommand()
171 << ":" << command.line() << ") took " << duration.count() << "ms and " in ExecuteCommand()
/system/connectivity/wificond/net/
Dnetlink_manager.cpp492 uint32_t command = packet->GetCommand(); in BroadcastHandler() local
494 if (command == NL80211_CMD_NEW_SCAN_RESULTS || in BroadcastHandler()
497 command == NL80211_CMD_SCAN_ABORTED) { in BroadcastHandler()
502 if (command == NL80211_CMD_SCHED_SCAN_RESULTS || in BroadcastHandler()
503 command == NL80211_CMD_SCHED_SCAN_STOPPED) { in BroadcastHandler()
516 if (command == NL80211_CMD_CONNECT || in BroadcastHandler()
517 command == NL80211_CMD_ASSOCIATE || in BroadcastHandler()
518 command == NL80211_CMD_ROAM || in BroadcastHandler()
519 command == NL80211_CMD_DISCONNECT || in BroadcastHandler()
520 command == NL80211_CMD_DISASSOCIATE) { in BroadcastHandler()
[all …]
/system/update_engine/
Dfake_p2p_manager_configuration.h61 void SetInitctlStartCommand(const std::vector<std::string>& command) { in SetInitctlStartCommand() argument
62 initctl_start_args_ = command; in SetInitctlStartCommand()
67 void SetInitctlStopCommand(const std::vector<std::string>& command) { in SetInitctlStopCommand() argument
68 initctl_stop_args_ = command; in SetInitctlStopCommand()
/system/libziparchive/cli-tests/
Dzipinfo.test10 command: zipinfo -1 $FILES/example.zip | sort
22 command: zipinfo $FILES/example.zip | head -2
29 command: zipinfo $FILES/example.zip | tail -1
36 command: zipinfo $FILES/example.zip d1/ | sed s/17-Jun-/2017-06-/
43 command: zipinfo $FILES/example.zip d1/d2/empty.txt | sed s/17-Jun-/2017-06-/
50 command: zipinfo $FILES/example.zip d1/d2/x.txt | sed s/17-Jun-/2017-06-/
Dunzip.test10 command: unzip -l $FILES/example.zip d1/d2/x.txt
22 command: unzip -lq $FILES/example.zip d1/d2/x.txt
33 command: unzip -lv $FILES/example.zip d1/d2/x.txt
45 command: unzip -v $FILES/example.zip d1/d2/x.txt
57 command: unzip -q $FILES/example.zip d1/d2/a.txt && cat d1/d2/a.txt
64 command: unzip -q $FILES/example.zip
77 command: unzip -q -o $FILES/example.zip d1/d2/a.txt && cat d1/d2/a.txt
85 command: unzip -q -n $FILES/example.zip d1/d2/a.txt && cat d1/d2/a.txt
93 command: unzip -q -d will-be-created $FILES/example.zip d1/d2/a.txt
101 command: unzip -q -d oh-no/will-not-be-created $FILES/example.zip d1/d2/a.txt 2> stderr ; echo $? >…
[all …]
/system/core/fastboot/device/
Dfastboot_device.cpp149 char command[FB_RESPONSE_SZ + 1]; in ExecuteCommands() local
151 auto bytes_read = transport_->Read(command, FB_RESPONSE_SZ); in ExecuteCommands()
156 command[bytes_read] = '\0'; in ExecuteCommands()
158 LOG(INFO) << "Fastboot command: " << command; in ExecuteCommands()
162 if (android::base::StartsWith(command, "oem ")) { in ExecuteCommands()
163 args = {command}; in ExecuteCommands()
166 args = android::base::Split(command, ":"); in ExecuteCommands()
/system/bt/build/toolchain/gcc/
DBUILD.gn22command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} -c {{source}…
32command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} -c {{sourc…
42 command = "rm -f {{output}} && ar rcs {{output}} @$rspfile"
57 command =
80command = "$cxx {{ldflags}} -o $outfile -Wl,--start-group @$rspfile {{solibs}} -Wl,--end-group {{l…
89 command = "touch {{output}}"
94 command = "cp -af {{source}} {{output}}"

12345678910>>...15