Home
last modified time | relevance | path

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

12345678910>>...12

/foundation/ability/idl_tool/test/cmd_test/
H A Dcmd_test.py69 def exec_command_check(command, expect_result, exp_status):
70 status, exec_result = subprocess.getstatusoutput(command)
73 print_failure(f"[{caller_class}:{caller_function}:{caller_lineno}][{command}][{status}:{exp_status}]"
79 f"[{caller_class}:{caller_function}:{caller_lineno}][{command}]{expect_result}")
81 f"[{caller_class}:{caller_function}:{caller_lineno}][{command}]{exec_result}")
113 expect_result += " -h, --help Display command line options\n"
154 command = f"{self.cmd} -h"
155 ret = exec_command_check(command, expect_result, RetStatus.OK)
156 command = f"{self.cmd} --help"
157 ret &= exec_command_check(command, expect_resul
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/
H A Dimage_state_manager.cpp27 void ImageStateManager::HandleCommand(ImageLoadingCommand command) in HandleCommand() argument
31 HandleCommandByUnloadedState(command); in HandleCommand()
34 HandleCommandByDataLoadingState(command); in HandleCommand()
37 HandleCommandByDataReadyState(command); in HandleCommand()
40 HandleCommandByMakeCanvasImageState(command); in HandleCommand()
43 HandleCommandByLoadSuccessState(command); in HandleCommand()
46 HandleCommandByLoadFailState(command); in HandleCommand()
49 TAG_LOGW(AceLogTag::ACE_IMAGE, "unknown command: %{public}d", command); in HandleCommand()
54 #define CASE_OF_STATE_TRANSITION(command, nextStat
74 HandleCommandByUnloadedState(ImageLoadingCommand command) HandleCommandByUnloadedState() argument
82 HandleCommandByDataLoadingState(ImageLoadingCommand command) HandleCommandByDataLoadingState() argument
91 HandleCommandByDataReadyState(ImageLoadingCommand command) HandleCommandByDataReadyState() argument
99 HandleCommandByMakeCanvasImageState(ImageLoadingCommand command) HandleCommandByMakeCanvasImageState() argument
108 HandleCommandByLoadSuccessState(ImageLoadingCommand command) HandleCommandByLoadSuccessState() argument
116 HandleCommandByLoadFailState(ImageLoadingCommand command) HandleCommandByLoadFailState() argument
[all...]
H A Dimage_state_manager.h56 void HandleCommand(ImageLoadingCommand command);
60 void HandleCommandByUnloadedState(ImageLoadingCommand command);
61 void HandleCommandByDataLoadingState(ImageLoadingCommand command);
62 void HandleCommandByDataReadyState(ImageLoadingCommand command);
63 void HandleCommandByMakeCanvasImageState(ImageLoadingCommand command);
64 void HandleCommandByLoadSuccessState(ImageLoadingCommand command);
65 void HandleCommandByLoadFailState(ImageLoadingCommand command);
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Dbandwidth_manager.cpp115 std::string command; in InitDefaultBwChainRules() local
121 command = "-t filter -A INPUT -j " + chainName; in InitDefaultBwChainRules()
123 (IptablesWrapper::GetInstance()->RunCommand(IPTYPE_IPV4, command) == NETMANAGER_ERROR); in InitDefaultBwChainRules()
125 command = "-t filter -A OUTPUT -j " + chainName; in InitDefaultBwChainRules()
127 (IptablesWrapper::GetInstance()->RunCommand(IPTYPE_IPV4, command) == NETMANAGER_ERROR); in InitDefaultBwChainRules()
131 command = "-t filter -A " + chainName + " -p esp -j RETURN"; in InitDefaultBwChainRules()
133 (IptablesWrapper::GetInstance()->RunCommand(IPTYPE_IPV4, command) == NETMANAGER_ERROR); in InitDefaultBwChainRules()
134 command = in InitDefaultBwChainRules()
137 (IptablesWrapper::GetInstance()->RunCommand(IPTYPE_IPV4, command) == NETMANAGER_ERROR); in InitDefaultBwChainRules()
145 std::string command; in InitDefaultListBoxChainRules() local
174 std::string command; InitDefaultAlertChainRules() local
208 std::string command = "-t filter -N " + FetchChainName(chain); IptablesNewChain() local
215 std::string command = "-t filter -N " + chainName; IptablesNewChain() local
223 std::string command = "-t filter -F " + FetchChainName(chain); IptablesDeleteChain() local
236 std::string command = "-t filter -F " + chainName; IptablesDeleteChain() local
249 std::string command; SetGlobalAlert() local
277 std::string command; SetCostlyAlert() local
308 std::string command; EnableDataSaver() local
336 std::string command; SetIfaceQuotaDetail() local
417 std::string command; RemoveIfaceQuota() local
472 std::string command; AddDeniedList() local
490 std::string command; RemoveDeniedList() local
509 std::string command; AddAllowedList() local
528 std::string command; RemoveAllowedList() local
[all...]
H A Dfirewall_manager.cpp30 bool SetFireWallCommand(const std::string &chainName, std::string command) in SetFireWallCommand() argument
34 (IptablesWrapper::GetInstance()->RunCommand(IPTYPE_IPV4V6, command) == NETMANAGER_ERROR); in SetFireWallCommand()
36 command = "-t filter -A " + chainName + " -i lo -j RETURN"; in SetFireWallCommand()
38 (IptablesWrapper::GetInstance()->RunCommand(IPTYPE_IPV4V6, command) == NETMANAGER_ERROR); in SetFireWallCommand()
39 command = "-t filter -A " + chainName + " -o lo -j RETURN"; in SetFireWallCommand()
41 (IptablesWrapper::GetInstance()->RunCommand(IPTYPE_IPV4V6, command) == NETMANAGER_ERROR); in SetFireWallCommand()
42 command = "-t filter -A " + chainName + " -p tcp --tcp-flags RST RST -j RETURN"; in SetFireWallCommand()
44 (IptablesWrapper::GetInstance()->RunCommand(IPTYPE_IPV4V6, command) == NETMANAGER_ERROR); in SetFireWallCommand()
198 std::string command = "-t filter -A INPUT -j " + chainName; in InitDefaultRules() local
200 (IptablesWrapper::GetInstance()->RunCommand(IPTYPE_IPV4V6, command) in InitDefaultRules()
214 std::string command = "-t filter -F " + chainName; ClearAllRules() local
251 std::string command = "-t filter -N " + FetchChainName(chain); IptablesNewChain() local
259 std::string command = "-t filter -F " + FetchChainName(chain); IptablesDeleteChain() local
272 std::string command = IptablesSetRule() local
288 std::string command; SetUidsAllowedListChain() local
337 std::string command; SetUidsDeniedListChain() local
374 std::string command; EnableChain() local
[all...]
/foundation/multimedia/av_session/frameworks/native/ohavsession/test/unittest/
H A Doh_av_session_callbackimpl_test.cpp62 AVSession_ControlCommand command = CONTROL_CMD_PLAY; in HWTEST_F() local
63 OH_AVSessionCallback_OnCommand callback = [](OH_AVSession* session, AVSession_ControlCommand command, in HWTEST_F()
68 g_ohAVSessionCallbackImpl.SetPlayCallback(avsession, command, callback, (void *)(&userData)); in HWTEST_F()
70 avsession, command, callback); in HWTEST_F()
86 AVSession_ControlCommand command = CONTROL_CMD_PLAY; in HWTEST_F() local
87 OH_AVSessionCallback_OnCommand callback = [](OH_AVSession* session, AVSession_ControlCommand command, in HWTEST_F()
93 avsession, command, callback, (void *)(&userData)); in HWTEST_F()
109 AVSession_ControlCommand command = CONTROL_CMD_PLAY; in HWTEST_F() local
110 OH_AVSessionCallback_OnCommand callback = [](OH_AVSession* session, AVSession_ControlCommand command, in HWTEST_F()
116 avsession, command, callbac in HWTEST_F()
133 AVSession_ControlCommand command = CONTROL_CMD_PLAY; HWTEST_F() local
157 AVSession_ControlCommand command = CONTROL_CMD_PLAY; HWTEST_F() local
180 AVSession_ControlCommand command = CONTROL_CMD_PLAY; HWTEST_F() local
204 AVSession_ControlCommand command = CONTROL_CMD_PLAY; HWTEST_F() local
227 AVSession_ControlCommand command = CONTROL_CMD_PLAY; HWTEST_F() local
251 AVSession_ControlCommand command = CONTROL_CMD_PLAY; HWTEST_F() local
274 AVSession_ControlCommand command = CONTROL_CMD_PLAY; HWTEST_F() local
[all...]
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/processor/
H A Dp2p_v1_processor.h21 #include "command/connect_command.h"
22 #include "command/disconnect_command.h"
23 #include "command/force_disconnect_command.h"
24 #include "command/negotiate_command.h"
38 bool CanAcceptNegotiateDataAtState(WifiDirectCommand &command) override;
39 void HandleCommandAfterTerminate(WifiDirectCommand &command) override;
66 void ProcessConnectCommand(std::shared_ptr<ConnectCommand> &command);
67 void ProcessDisconnectCommand(std::shared_ptr<DisconnectCommand> &command);
68 void ProcessForceDisconnectCommand(std::shared_ptr<ForceDisconnectCommand> &command);
70 void ProcessNegotiateCommandAtAvailableState(std::shared_ptr<NegotiateCommand> &command);
[all...]
H A Dp2p_v1_processor.cpp113 bool P2pV1Processor::CanAcceptNegotiateDataAtState(WifiDirectCommand &command) in CanAcceptNegotiateDataAtState() argument
119 auto nc = dynamic_cast<NegotiateCommand *>(&command); in CanAcceptNegotiateDataAtState()
127 void P2pV1Processor::HandleCommandAfterTerminate(WifiDirectCommand &command) in HandleCommandAfterTerminate() argument
130 auto nc = dynamic_cast<NegotiateCommand *>(&command); in HandleCommandAfterTerminate()
169 .Handle<std::shared_ptr<ConnectCommand>>([this](std::shared_ptr<ConnectCommand> &command) { in AvailableState()
170 ProcessConnectCommand(command); in AvailableState()
172 .Handle<std::shared_ptr<DisconnectCommand>>([this](std::shared_ptr<DisconnectCommand> &command) { in AvailableState()
173 ProcessDisconnectCommand(command); in AvailableState()
175 .Handle<std::shared_ptr<NegotiateCommand>>([this](std::shared_ptr<NegotiateCommand> &command) { in AvailableState()
176 ProcessNegotiateCommandAtAvailableState(command); in AvailableState()
252 ProcessConnectCommand(std::shared_ptr<ConnectCommand> &command) ProcessConnectCommand() argument
288 ProcessDisconnectCommand(std::shared_ptr<DisconnectCommand> &command) ProcessDisconnectCommand() argument
339 ProcessForceDisconnectCommand(std::shared_ptr<ForceDisconnectCommand> &command) ProcessForceDisconnectCommand() argument
370 ProcessNegotiateCommandAtAvailableState(std::shared_ptr<NegotiateCommand> &command) ProcessNegotiateCommandAtAvailableState() argument
419 ProcessNegotiateCommandAtWaitingReqResponseState(std::shared_ptr<NegotiateCommand> &command) ProcessNegotiateCommandAtWaitingReqResponseState() argument
444 ProcessNegotiateCommandAtWaitingRequestState(std::shared_ptr<NegotiateCommand> &command) ProcessNegotiateCommandAtWaitingRequestState() argument
465 ProcessNegotiateCommandAtWaitingReuseResponseState(std::shared_ptr<NegotiateCommand> &command) ProcessNegotiateCommandAtWaitingReuseResponseState() argument
487 ProcessNegotiateCommandAtWaitingAuthHandShakeState(std::shared_ptr<NegotiateCommand> &command) ProcessNegotiateCommandAtWaitingAuthHandShakeState() argument
533 ProcessNegotiateCommandAtWaitingClientJoiningState(std::shared_ptr<NegotiateCommand> &command) ProcessNegotiateCommandAtWaitingClientJoiningState() argument
562 ProcessNegotiateCommandCommon(std::shared_ptr<NegotiateCommand> &command) ProcessNegotiateCommandCommon() argument
786 ProcessConnectRequest(std::shared_ptr<NegotiateCommand> &command) ProcessConnectRequest() argument
832 ProcessConnectRequestAsGo(std::shared_ptr<NegotiateCommand> &command, LinkInfo::LinkMode myRole) ProcessConnectRequestAsGo() argument
921 ProcessConnectRequestAsGc(std::shared_ptr<NegotiateCommand> &command, LinkInfo::LinkMode myRole) ProcessConnectRequestAsGc() argument
1096 ProcessNoAvailableInterface(std::shared_ptr<NegotiateCommand> &command, LinkInfo::LinkMode myRole) ProcessNoAvailableInterface() argument
1123 ProcessConflictRequest(std::shared_ptr<NegotiateCommand> &command) ProcessConflictRequest() argument
1161 ProcessReuseRequest(std::shared_ptr<NegotiateCommand> &command) ProcessReuseRequest() argument
1200 ProcessReuseResponse(std::shared_ptr<NegotiateCommand> &command) ProcessReuseResponse() argument
1239 ProcessDisconnectRequest(std::shared_ptr<NegotiateCommand> &command) ProcessDisconnectRequest() argument
1266 ProcessForceDisconnectRequest(std::shared_ptr<NegotiateCommand> &command) ProcessForceDisconnectRequest() argument
1275 ProcessGetInterfaceInfoRequest(std::shared_ptr<NegotiateCommand> &command) ProcessGetInterfaceInfoRequest() argument
1286 ProcessAuthHandShakeRequest(std::shared_ptr<NegotiateCommand> &command) ProcessAuthHandShakeRequest() argument
1395 ProcessConnectResponseAtWaitingReqResponseState(std::shared_ptr<NegotiateCommand> &command) ProcessConnectResponseAtWaitingReqResponseState() argument
1414 ProcessConnectResponseAtWaitingClientJoiningState(std::shared_ptr<NegotiateCommand> &command) ProcessConnectResponseAtWaitingClientJoiningState() argument
1432 ProcessConnectResponseAsGo(std::shared_ptr<NegotiateCommand> &command) ProcessConnectResponseAsGo() argument
1471 ProcessConnectResponseAsNone(std::shared_ptr<NegotiateCommand> &command) ProcessConnectResponseAsNone() argument
1501 ProcessConnectResponseWithGoInfoAsNone(std::shared_ptr<NegotiateCommand> &command) ProcessConnectResponseWithGoInfoAsNone() argument
1526 ProcessConnectResponseWithGcInfoAsNone(std::shared_ptr<NegotiateCommand> &command) ProcessConnectResponseWithGcInfoAsNone() argument
1541 ProcessConnectResponseAtWaitAuthHandShake(std::shared_ptr<NegotiateCommand> &command) ProcessConnectResponseAtWaitAuthHandShake() argument
[all...]
H A Dnull_processor.cpp35 executor_->WaitEvent().Handle<std::shared_ptr<ConnectCommand>>([this] (auto &command) { in Run()
36 command->OnFailure(SOFTBUS_CONN_NULL_PROCESSOR_ERR); in Run()
38 }).Handle<std::shared_ptr<DisconnectCommand>>([this] (auto &command) { in Run()
39 command->OnSuccess(); in Run()
41 }).Handle<std::shared_ptr<NegotiateCommand>>([this] (auto &command) { in Run()
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/
H A Dwifi_direct_scheduler.cpp19 #include "command/connect_command.h"
20 #include "command/command_factory.h"
21 #include "command/disconnect_command.h"
22 #include "command/negotiate_command.h"
36 auto command = CommandFactory::GetInstance().CreateConnectCommand(info, callback); in ConnectDevice() local
37 command->SetRetried(markRetried); in ConnectDevice()
40 auto ret = ScheduleActiveCommand(command, executor); in ConnectDevice()
41 CONN_CHECK_AND_RETURN_RET_LOGE(ret == SOFTBUS_OK, ret, CONN_WIFI_DIRECT, "schedule active command failed"); in ConnectDevice()
43 CONN_LOGI(CONN_WIFI_DIRECT, "commandId=%{public}u", command->GetId()); in ConnectDevice()
44 executor->SendEvent(command); in ConnectDevice()
64 ConnectDevice(const std::shared_ptr<ConnectCommand> &command, bool markRetried) ConnectDevice() argument
71 auto command = CommandFactory::GetInstance().CreateDisconnectCommand(info, callback); DisconnectDevice() local
92 auto command = CommandFactory::GetInstance().CreateForceDisconnectCommand(info, callback); ForceDisconnectDevice() local
128 auto command = *itc; ProcessNextCommand() local
159 ScheduleActiveCommand(const std::shared_ptr<WifiDirectCommand> &command, std::shared_ptr<WifiDirectExecutor> &executor) ScheduleActiveCommand() argument
[all...]
H A Dwifi_direct_scheduler.h26 #include "command/wifi_direct_command.h"
27 #include "command/connect_command.h"
41 int ConnectDevice(const std::shared_ptr<ConnectCommand> &command, bool markRetried = false);
47 void ProcessNegotiateData(const std::string &remoteDeviceId, Command &command) in ProcessNegotiateData() argument
54 if (it->second->CanAcceptNegotiateData(command)) { in ProcessNegotiateData()
55 CONN_LOGI(CONN_WIFI_DIRECT, "send command to executor=%{public}s, commandId=%{public}d", in ProcessNegotiateData()
56 aDeviceId.c_str(), command.GetId()); in ProcessNegotiateData()
57 it->second->SendEvent(std::make_shared<Command>(command)); in ProcessNegotiateData()
61 CONN_LOGI(CONN_WIFI_DIRECT, "push command to list, commandId=%{public}u", command in ProcessNegotiateData()
106 QueueCommandFront(Command &command) QueueCommandFront() argument
114 QueueCommandBack(Command &command) QueueCommandBack() argument
132 auto &command = *cit; FetchAndDispatchCommand() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/
H A Drs_surface_node.cpp21 #include "command/rs_base_node_command.h"
22 #include "command/rs_node_command.h"
23 #include "command/rs_surface_node_command.h"
90 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeCreateWithConfig>( in Create() local
92 transactionProxy->AddCommand(command, isWindow); in Create()
104 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeCreate>(node->GetId(), in Create() local
107 transactionProxy->AddCommand(command, false); in Create()
110 transactionProxy->AddCommand(command, isWindow); in Create()
113 command = std::make_unique<RSSurfaceNodeConnectToNodeInRenderService>(node->GetId()); in Create()
114 transactionProxy->AddCommand(command, isWindo in Create()
167 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeSetSurfaceNodeType>(GetId(), CreateNodeInRenderThread() local
227 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeMarkUIHidden>(GetId(), isHidden); MarkUIHidden() local
237 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeUpdateSurfaceDefaultSize>( OnBoundsSizeChanged() local
261 std::unique_ptr<RSCommand> command = SetLeashPersistentId() local
279 std::unique_ptr<RSCommand> command = SetSecurityLayer() local
297 std::unique_ptr<RSCommand> command = SetSkipLayer() local
315 std::unique_ptr<RSCommand> command = SetSnapshotSkipLayer() local
333 std::unique_ptr<RSCommand> command = SetFingerprint() local
351 std::unique_ptr<RSCommand> command = SetColorSpace() local
361 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeCreate>(GetId(), CreateTextureExportRenderNodeInRT() local
378 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeSetIsTextureExportNode>(GetId(), SetIsTextureExportNode() local
409 std::unique_ptr<RSCommand> command = SetAbilityBGAlpha() local
419 std::unique_ptr<RSCommand> command = SetIsNotifyUIBufferAvailable() local
469 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeSetAnimationFinished>(GetId()); SetAnimationFinished() local
512 std::unique_ptr<RSCommand> command = std::make_unique<RSurfaceNodeSetSurfaceId>(GetId(), SetSurfaceIdToRenderNode() local
608 std::unique_ptr<RSCommand> command = SetContainerWindow() local
627 std::unique_ptr<RSCommand> command = std::make_unique<RSSetFreeze>(GetId(), isFreeze); SetFreeze() local
667 std::unique_ptr<RSCommand> command = std::make_unique<RSBaseNodeDestroy>(GetId()); ~RSSurfaceNode() local
675 std::unique_ptr<RSCommand> command = std::make_unique<RSBaseNodeDestroy>(GetId()); ~RSSurfaceNode() local
683 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeAttachToDisplay>(GetId(), screenId); AttachToDisplay() local
698 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeDetachToDisplay>(GetId(), screenId); DetachToDisplay() local
720 std::unique_ptr<RSCommand> command = std::make_unique<RSSurfaceNodeSetHardwareAndFixRotation>(GetId(), flag); SetForceHardwareAndFixRotation() local
730 std::unique_ptr<RSCommand> command = SetBootAnimation() local
752 std::unique_ptr<RSCommand> command = SetGlobalPositionEnabled() local
786 std::unique_ptr<RSCommand> command = CreateSurfaceExt() local
801 std::unique_ptr<RSCommand> command = MarkUiFrameAvailable() local
884 std::unique_ptr<RSCommand> command = SetForceUIFirst() local
894 std::unique_ptr<RSCommand> command = SetAncoFlags() local
903 std::unique_ptr<RSCommand> command = SetHDRPresent() local
915 std::unique_ptr<RSCommand> command = SetSkipDraw() local
940 std::unique_ptr<RSCommand> command = SetWatermarkEnabled() local
958 std::unique_ptr<RSCommand> command = SetAbilityState() local
[all...]
H A Drs_display_node.cpp23 #include "command/rs_display_node_command.h"
37 std::unique_ptr<RSCommand> command = std::make_unique<RSDisplayNodeCreate>(node->GetId(), displayNodeConfig); in Create() local
40 transactionProxy->AddCommand(command, true); in Create()
60 std::unique_ptr<RSCommand> command = std::make_unique<RSDisplayNodeAddToTree>(GetId()); in AddDisplayNodeToTree() local
63 transactionProxy->AddCommand(command, true); in AddDisplayNodeToTree()
70 std::unique_ptr<RSCommand> command = std::make_unique<RSDisplayNodeRemoveFromTree>(GetId()); in RemoveDisplayNodeFromTree() local
73 transactionProxy->AddCommand(command, true); in RemoveDisplayNodeFromTree()
121 std::unique_ptr<RSCommand> command = std::make_unique<RSDisplayNodeSetScreenId>(GetId(), screenId); in SetScreenId() local
124 transactionProxy->AddCommand(command, true); in SetScreenId()
146 std::unique_ptr<RSCommand> command in OnBoundsSizeChanged() local
155 std::unique_ptr<RSCommand> command = std::make_unique<RSDisplayNodeSetDisplayOffset>(GetId(), offsetX, offsetY); SetDisplayOffset() local
166 std::unique_ptr<RSCommand> command = std::make_unique<RSDisplayNodeSetSecurityDisplay>(GetId(), isSecurityDisplay); SetSecurityDisplay() local
183 std::unique_ptr<RSCommand> command = std::make_unique<RSDisplayNodeSetDisplayMode>(GetId(), displayNodeConfig); SetDisplayNodeMirrorConfig() local
212 std::unique_ptr<RSCommand> command = std::make_unique<RSDisplayNodeSetScreenRotation>(GetId(), screenRotation); SetScreenRotation() local
241 std::unique_ptr<RSCommand> command = std::make_unique<RSDisplayNodeSetBootAnimation>(GetId(), isBootAnimation); SetBootAnimation() local
255 std::unique_ptr<RSCommand> command = std::make_unique<RSDisplayNodeSetNodePid>(GetId(), oldScbPids, currentScbPid); SetScbNodePid() local
[all...]
H A Drs_canvas_node.cpp22 #include "command/rs_canvas_node_command.h"
23 #include "command/rs_node_command.h"
56 std::unique_ptr<RSCommand> command = std::make_unique<RSCanvasNodeCreate>(node->GetId(), isTextureExportNode); in Create() local
57 transactionProxy->AddCommand(command, node->IsRenderServiceNode()); in Create()
89 std::unique_ptr<RSCommand> command = std::make_unique<RSCanvasNodeClearRecording>(GetId()); in BeginRecording() local
90 transactionProxy->AddCommand(command, IsRenderServiceNode()); in BeginRecording()
102 std::unique_ptr<RSCommand> command = std::make_unique<RSCanvasNodeCreate>(GetId(), true); in CreateTextureExportRenderNodeInRT() local
105 transactionProxy->AddCommand(command, false); in CreateTextureExportRenderNodeInRT()
129 std::unique_ptr<RSCommand> command = std::make_unique<RSCanvasNodeUpdateRecording>(GetId(), recording, in FinishRecording() local
132 transactionProxy->AddCommand(command, IsRenderServiceNod in FinishRecording()
155 std::unique_ptr<RSCommand> command = DrawOnNode() local
180 std::unique_ptr<RSCommand> command = std::make_unique<RSSetFreeze>(GetId(), isFreeze); SetFreeze() local
[all...]
H A Drs_root_node.cpp18 #include "command/rs_root_node_command.h"
64 std::unique_ptr<RSCommand> command = std::make_unique<RSRootNodeCreate>(node->GetId(), isTextureExportNode); in Create() local
65 transactionProxy->AddCommand(command, node->IsRenderServiceNode()); in Create()
79 std::unique_ptr<RSCommand> command = std::make_unique<RSRootNodeAttachRSSurfaceNode>(GetId(), in AttachRSSurfaceNode() local
81 transactionProxy->AddCommand(command, false); in AttachRSSurfaceNode()
83 std::unique_ptr<RSCommand> command = std::make_unique<RSRootNodeAttachToUniSurfaceNode>(GetId(), in AttachRSSurfaceNode() local
85 transactionProxy->AddCommand(command, true); in AttachRSSurfaceNode()
95 std::unique_ptr<RSCommand> command = std::make_unique<RSRootNodeSetEnableRender>(GetId(), flag); in SetEnableRender() local
96 transactionProxy->AddCommand(command, IsRenderServiceNode()); in SetEnableRender()
110 std::unique_ptr<RSCommand> command in OnBoundsSizeChanged() local
[all...]
H A Drs_proxy_node.cpp18 #include "command/rs_base_node_command.h"
19 #include "command/rs_proxy_node_command.h"
41 std::unique_ptr<RSCommand> command = std::make_unique<RSProxyNodeCreate>(proxyNodeId, targetNodeId); in Create() local
42 transactionProxy->AddCommand(command, node->IsUniRenderEnabled()); in Create()
46 std::unique_ptr<RSCommand> command = std::make_unique<RSProxyNodeCreate>(proxyNodeId, targetNodeId); in Create() local
47 transactionProxy->AddCommand(command, true); in Create()
67 std::unique_ptr<RSCommand> command = std::make_unique<RSBaseNodeDestroy>(proxyNodeId_); in ~RSProxyNode() local
68 transactionProxy->AddCommand(command, IsUniRenderEnabled()); in ~RSProxyNode()
72 command = std::make_unique<RSBaseNodeDestroy>(proxyNodeId_); in ~RSProxyNode()
73 transactionProxy->AddCommand(command, tru in ~RSProxyNode()
96 std::unique_ptr<RSCommand> command = std::make_unique<RSProxyNodeResetContextVariableCache>(proxyNodeId_); ResetContextVariableCache() local
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnet_diag_wrapper.cpp93 NETNATIVE_LOGI("Generate ping command: "); in PingHost()
94 std::string command; in PingHost() local
95 int32_t ret = GeneratePingCommand(pingOption, command); in PingHost()
101 std::thread pingThread([wrapper, command, callback]() { in PingHost()
107 if (wrapper->ExecuteCommandForResult(command, result) != NETMANAGER_SUCCESS) { in PingHost()
123 std::string command = std::string(NETSTAT_CMD_PATH) + OPTION_SPACE + NETSTAT_OPTION_ROUTE_TABLE; in GetRouteTable() local
125 int32_t ret = ExecuteCommandForResult(command, result); in GetRouteTable()
145 std::string command = std::string(NETSTAT_CMD_PATH) + OPTION_SPACE; in GetSocketsInfo() local
148 command = command in GetSocketsInfo()
193 std::string command = std::string(IFCONFIG_CMD_PATH) + OPTION_SPACE; GetInterfaceConfig() local
246 std::string command = std::string(IFCONFIG_CMD_PATH) + OPTION_SPACE + ifaceName + OPTION_SPACE; UpdateInterfaceConfig() local
286 std::string command = std::string(IFCONFIG_CMD_PATH) + OPTION_SPACE + ifaceName + OPTION_SPACE; SetInterfaceActiveState() local
292 ExecuteCommandForResult(const std::string &command, std::string &result) ExecuteCommandForResult() argument
306 GeneratePingCommand(const NetDiagPingOption &pingOption, std::string &command) GeneratePingCommand() argument
[all...]
H A Diptables_wrapper.cpp48 void IptablesWrapper::ExecuteCommand(const std::string &command) in ExecuteCommand() argument
50 NETNATIVE_LOGI("ExecuteCommand %{public}s", AnonymizeIptablesCommand(command).c_str()); in ExecuteCommand()
51 if (CommonUtils::ForkExec(command) == NETMANAGER_ERROR) { in ExecuteCommand()
56 void IptablesWrapper::ExecuteCommandForRes(const std::string &command) in ExecuteCommandForRes() argument
58 NETNATIVE_LOGI("ExecuteCommandForRes %{public}s", AnonymizeIptablesCommand(command).c_str()); in ExecuteCommandForRes()
59 if (CommonUtils::ForkExec(command, &result_) == NETMANAGER_ERROR) { in ExecuteCommandForRes()
64 int32_t IptablesWrapper::RunCommand(const IpType &ipType, const std::string &command) in RunCommand() argument
73 std::string cmd = std::string(IPATBLES_CMD_PATH) + " " + command; in RunCommand()
83 std::string cmd = std::string(IP6TABLES_CMD_PATH) + " " + command; in RunCommand()
95 std::string IptablesWrapper::RunCommandForRes(const IpType &ipType, const std::string &command) in RunCommandForRes() argument
[all...]
/foundation/ability/ability_runtime/tools/test/unittest/aa/
H A Daa_command_test.cpp75 * @tc.desc: Verify the "aa" command.
92 * @tc.desc: Verify the "aa xxx" command.
110 * @tc.desc: Verify the "aa -xxx" command.
128 * @tc.desc: Verify the "aa --xxx" command.
146 * @tc.desc: Verify the "aa help" command.
174 std::string command = ""; in HWTEST_F() local
175 EXPECT_EQ(cmd.MatchOrderString(regexFirst, command), false); in HWTEST_F()
191 std::string command = "test"; in HWTEST_F() local
192 EXPECT_EQ(cmd.MatchOrderString(regexFirst, command), false); in HWTEST_F()
208 std::string command in HWTEST_F() local
224 std::string command = ""; HWTEST_F() local
241 std::string command = ""; HWTEST_F() local
259 std::string command = ""; HWTEST_F() local
277 std::string command = ""; HWTEST_F() local
295 std::string command = ""; HWTEST_F() local
313 std::string command = ""; HWTEST_F() local
331 std::string command = ""; HWTEST_F() local
349 std::string command = ""; HWTEST_F() local
367 std::string command = ""; HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/tools/test/mock/
H A Dmock_ability_manager_stub.cpp58 std::string command = argList[0]; in DumpState() local
59 if (command == "--all" || command == "-a") { in DumpState()
61 } else if (command == "--stack-list" || command == "-l") { in DumpState()
63 } else if (command == "--stack" || command == "-s") { in DumpState()
65 } else if (command == "--mission" || command == "-m") { in DumpState()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/transaction/
H A Drs_transaction_data.cpp18 #include "command/rs_canvas_node_command.h"
19 #include "command/rs_command.h"
20 #include "command/rs_command_factory.h"
98 // to correct actual marshaled command size later, record its position in parcel in Marshalling()
106 auto& [nodeId, followType, command] = payload_[marshallingIndex_]; in Marshalling()
112 if (!command) { in Marshalling()
114 RS_LOGW("failed RSTransactionData::Marshalling, command is nullptr"); in Marshalling()
115 } else if (command->indexVerifier_ != marshallingIndex_) { in Marshalling()
125 success = success && command->Marshalling(parcel); in Marshalling()
133 ROSEN_LOGE("failed RSTransactionData::Marshalling type:%{public}s", command in Marshalling()
198 AddCommand(std::unique_ptr<RSCommand>& command, NodeId nodeId, FollowType followType) AddCommand() argument
207 AddCommand(std::unique_ptr<RSCommand>&& command, NodeId nodeId, FollowType followType) AddCommand() argument
271 auto command = (*func)(parcel); UnmarshallingCommand() local
[all...]
/foundation/ability/ability_runtime/tools/test/systemtest/aa/
H A Dtool_system_test.cpp30 std::string ToolSystemTest::ExecuteCommand(const std::string& command) in ExecuteCommand() argument
33 FILE* file = popen(command.c_str(), "r"); in ExecuteCommand()
53 std::string command = "bm install -p " + bundlePath; in InstallBundle() local
54 std::string commandResult = ExecuteCommand(command); in InstallBundle()
64 std::string command = "bm uninstall -n " + bundleName; in UninstallBundle() local
65 std::string commandResult = ExecuteCommand(command); in UninstallBundle()
76 std::string command = "aa start -d " + device + " -a " + abilityName + " -b " + bundleName; in StartAbility() local
77 std::string commandResult = ExecuteCommand(command); in StartAbility()
H A Daa_command_start_system_test.cpp71 * @tc.desc: Verify the "aa start -d <device-id> -a <ability-name> -b <bundle-name>" command.
82 std::string command = "aa start -d " + STRING_DEVICE_NAME + " -a " + STRING_PAGE_ABILITY_NAME + " -b " + in HWTEST_F() local
84 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F()
95 * @tc.desc: Verify the "aa start -d <device-id> -a <ability-name> -b <bundle-name>" command.
100 std::string command = "aa start -d " + STRING_DEVICE_NAME + " -a " + STRING_PAGE_ABILITY_NAME_INVALID + " -b " + in HWTEST_F() local
102 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F()
110 * @tc.desc: Verify the "aa start -d <device-id> -a <ability-name> -b <bundle-name>" command.
115 std::string command = "aa start -d " + STRING_DEVICE_NAME + " -a " + STRING_SERVICE_ABILITY_NAME_INVALID + " -b " + in HWTEST_F() local
117 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F()
125 * @tc.desc: Verify the "aa start -d <device-id> -a <ability-name> -b <bundle-name> -D" command
137 std::string command = "aa start -d " + STRING_DEVICE_NAME + " -a " + STRING_PAGE_ABILITY_NAME + " -b " + HWTEST_F() local
156 std::string command = "aa start -d " + STRING_DEVICE_NAME + " -a " + STRING_PAGE_ABILITY_NAME_INVALID + " -b " + HWTEST_F() local
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/dumper/src/
H A Ddump_helper.cpp55 for (auto const& command : commands) { in Dump()
57 tmpCommandNode = command; in Dump()
73 std::shared_ptr<CommandNode> command; in ParseCommand() local
76 command = std::make_shared<CommandNode>(GetCommand("ALL_INFO")); in ParseCommand()
77 commands.emplace_back(command); in ParseCommand()
82 command = std::make_shared<CommandNode>(GetCommand(args[i])); in ParseCommand()
83 if (!command->IsVoid()) { in ParseCommand()
84 auto it = find(tmpDumpNames.begin(), tmpDumpNames.end(), command->dumpName); in ParseCommand()
86 ZLOGE("The same command is not allowed"); in ParseCommand()
89 commands.emplace_back(command); in ParseCommand()
113 CommandNode command; GetCommand() local
148 AddHeadNode(std::shared_ptr<CommandNode> &command, std::shared_ptr<CommandNode> &realHeadNode, bool &isAdded) AddHeadNode() argument
162 AddNode(std::shared_ptr<CommandNode> &command, std::shared_ptr<CommandNode> &realHeadNode, bool &isAdded) AddNode() argument
[all...]
/foundation/bundlemanager/bundle_tool/test/systemtest/bm/
H A Dbm_command_dump_system_test.cpp60 * @tc.desc: Verify the "bm dump -a" command.
71 std::string command = "bm dump -a"; in HWTEST_F() local
72 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F()
83 * @tc.desc: Verify the "bm dump -n <bundle-name>" command.
94 std::string command = "bm dump -n " + STRING_BUNDLE_NAME; in HWTEST_F() local
95 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F()
106 * @tc.desc: Verify the "bm dump -n <bundle-name>" command.
111 std::string command = "bm dump -n " + STRING_BUNDLE_NAME_INVALID; in HWTEST_F() local
112 std::string commandResult = ToolSystemTest::ExecuteCommand(command); in HWTEST_F()

Completed in 21 milliseconds

12345678910>>...12