Home
last modified time | relevance | path

Searched refs:socket (Results 1 - 14 of 14) sorted by relevance

/ide/tools/previewer/util/
H A DTraceTool.cpp25 if (socket != nullptr) { in InitPipe()
26 socket.reset(); in InitPipe()
27 ELOG("TraceTool::InitPipe socket is not null"); in InitPipe()
30 socket = std::make_unique<LocalSocket>(); in InitPipe()
31 if (socket == nullptr) { in InitPipe()
32 FLOG("TraceTool::Connect socket memory allocation failed!"); in InitPipe()
35 if (!socket->ConnectToServer(socket->GetTracePipeName(name), LocalSocket::READ_WRITE)) { in InitPipe()
51 *(GetInstance().socket) << value.ToString(); in SendTraceData()
71 TraceTool::TraceTool() : socket(nullpt
[all...]
H A DTraceTool.h37 std::unique_ptr<LocalSocket> socket; member in TraceTool
/ide/tools/previewer/cli/
H A DCommandLine.h28 CommandLine(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket);
109 TouchPressCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket);
119 TouchMoveCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket);
129 TouchReleaseCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket);
139 MouseWheelCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket);
149 BackClickedCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket);
158 RestartCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket);
167 PowerCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket);
178 VolumeCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket);
189 BarometerCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket);
[all...]
H A DCommandLineFactory.h31 const LocalSocket& socket);
36 CreateObject(CommandLine::CommandType, const Json2::Value&, const LocalSocket& socket);
39 std::unique_ptr<CommandLine> (*)(CommandLine::CommandType, const Json2::Value&, const LocalSocket& socket)>;
H A DCommandLineInterface.cpp32 CommandLineInterface::CommandLineInterface() : socket(nullptr) {} in CommandLineInterface()
38 if (socket != nullptr) { in InitPipe()
39 socket.reset(); in InitPipe()
40 ELOG("CommandLineInterface::InitPipe socket is not null"); in InitPipe()
43 socket = std::make_unique<LocalSocket>(); in InitPipe()
44 if (socket == nullptr) { in InitPipe()
45 FLOG("CommandLineInterface::Connect socket memory allocation failed!"); in InitPipe()
48 if (!socket->ConnectToServer(socket->GetCommandPipeName(name), LocalSocket::READ_WRITE)) { in InitPipe()
62 *(GetInstance().socket) << valu in SendJsonData()
[all...]
H A DCommandLine.cpp39 CommandLine::CommandLine(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) in CommandLine() argument
40 : args(arg), cliSocket(socket), type(commandType), commandName("") in CommandLine()
209 TouchPressCommand::TouchPressCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) in TouchPressCommand() argument
210 : CommandLine(commandType, arg, socket) in TouchPressCommand()
238 MouseWheelCommand::MouseWheelCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) in MouseWheelCommand() argument
239 : CommandLine(commandType, arg, socket) in MouseWheelCommand()
272 TouchReleaseCommand::TouchReleaseCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) in TouchReleaseCommand() argument
273 : CommandLine(commandType, arg, socket) in TouchReleaseCommand()
312 TouchMoveCommand::TouchMoveCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) in TouchMoveCommand() argument
313 : CommandLine(commandType, arg, socket) in TouchMoveCommand()
333 PowerCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) PowerCommand() argument
369 VolumeCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) VolumeCommand() argument
391 BarometerCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) BarometerCommand() argument
427 ResolutionSwitchCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) ResolutionSwitchCommand() argument
495 OrientationCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) OrientationCommand() argument
524 ColorModeCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) ColorModeCommand() argument
555 FontSelectCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) FontSelectCommand() argument
575 MemoryRefreshCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) MemoryRefreshCommand() argument
597 LoadDocumentCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) LoadDocumentCommand() argument
674 ReloadRuntimePageCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) ReloadRuntimePageCommand() argument
698 CurrentRouterCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) CurrentRouterCommand() argument
712 LoadContentCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) LoadContentCommand() argument
726 LanguageCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) LanguageCommand() argument
774 SupportedLanguagesCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) SupportedLanguagesCommand() argument
801 LocationCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) LocationCommand() argument
854 DistributedCommunicationsCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) DistributedCommunicationsCommand() argument
896 KeepScreenOnStateCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) KeepScreenOnStateCommand() argument
932 WearingStateCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) WearingStateCommand() argument
965 BrightnessModeCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) BrightnessModeCommand() argument
1004 ChargeModeCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) ChargeModeCommand() argument
1043 BrightnessCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) BrightnessCommand() argument
1083 HeartRateCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) HeartRateCommand() argument
1126 StepCountCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) StepCountCommand() argument
1166 InspectorJSONTree(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) InspectorJSONTree() argument
1182 InspectorDefault(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) InspectorDefault() argument
1195 ExitCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) ExitCommand() argument
1209 DeviceTypeCommand(CommandLine::CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) DeviceTypeCommand() argument
1218 ResolutionCommand(CommandLine::CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) ResolutionCommand() argument
1227 BackClickedCommand(CommandLine::CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) BackClickedCommand() argument
1242 RestartCommand(CommandLine::CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) RestartCommand() argument
1255 FastPreviewMsgCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) FastPreviewMsgCommand() argument
1269 DropFrameCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) DropFrameCommand() argument
1355 KeyPressCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) KeyPressCommand() argument
1447 PointEventCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) PointEventCommand() argument
1483 FoldStatusCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) FoldStatusCommand() argument
1525 AvoidAreaCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) AvoidAreaCommand() argument
1593 AvoidAreaChangedCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) AvoidAreaChangedCommand() argument
[all...]
H A DCommandLineFactory.cpp78 CommandLine::CommandType type, const Json2::Value& val, const LocalSocket& socket) in CreateCommandLine()
85 socket << commandResult.ToStyledString(); in CreateCommandLine()
94 std::unique_ptr<CommandLine> cmdLine = typeMap[command](type, val, socket); in CreateCommandLine()
104 const Json2::Value& args, const LocalSocket& socket) in CreateObject()
106 return std::make_unique<T>(type, args, socket); in CreateObject()
77 CreateCommandLine(std::string command, CommandLine::CommandType type, const Json2::Value& val, const LocalSocket& socket) CreateCommandLine() argument
103 CreateObject(CommandLine::CommandType type, const Json2::Value& args, const LocalSocket& socket) CreateObject() argument
H A DCommandLineInterface.h50 std::unique_ptr<LocalSocket> socket; member in CommandLineInterface
/ide/tools/previewer/test/unittest/cli/
H A DCommandLineTest.cpp36 static std::unique_ptr<LocalSocket> socket; member in __anon21::CommandLineTest
40 socket = std::make_unique<LocalSocket>(); in SetUpTestCase()
67 std::unique_ptr<LocalSocket> CommandLineTest::socket = nullptr; member in __anon21::CommandLineTest
75 BackClickedCommand command(type, args, *socket); in TEST_F()
85 InspectorJSONTree command(type, args, *socket); in TEST_F()
95 InspectorDefault command(type, args, *socket); in TEST_F()
107 OrientationCommand command1(type, args1, *socket); in TEST_F()
113 OrientationCommand command2(type, args2, *socket); in TEST_F()
119 OrientationCommand command3(type, args3, *socket); in TEST_F()
125 OrientationCommand command4(type, args4, *socket); in TEST_F()
[all...]
H A DCommandLineFactoryTest.cpp42 std::unique_ptr<LocalSocket> socket = std::make_unique<LocalSocket>(); in TEST() local
47 CommandLineFactory::CreateCommandLine(commandNameNull, commandType, jsonData, *socket); in TEST()
51 CommandLineFactory::CreateCommandLine(commandName, commandType, jsonData, *socket); in TEST()
H A DCommandLineInterfaceTest.cpp148 // socket is null in TEST()
150 std::unique_ptr<LocalSocket> temp = std::move(CommandLineInterface::GetInstance().socket); in TEST()
151 CommandLineInterface::GetInstance().socket = nullptr; in TEST()
154 CommandLineInterface::GetInstance().socket = std::move(temp); in TEST()
392 std::unique_ptr<LocalSocket> temp = std::move(CommandLineInterface::GetInstance().socket); in TEST()
393 CommandLineInterface::GetInstance().socket = nullptr; in TEST()
396 CommandLineInterface::GetInstance().socket = std::move(temp); in TEST()
/ide/tools/previewer/util/unix/
H A DLocalSocket.cpp19 #include <sys/socket.h>
40 socketHandle = socket(AF_UNIX, SOCK_STREAM, 0); in ConnectToServer()
42 ELOG("Request socket failed"); in ConnectToServer()
47 ELOG("connect socket failed"); in ConnectToServer()
/ide/tools/previewer/test/unittest/mock_lite/
H A DVirtualScreenImplTest.cpp47 socket = std::make_unique<LocalSocket>(); in SetUpTestCase()
50 static std::unique_ptr<LocalSocket> socket; member in __anon48::VirtualScreenImplTest
57 std::unique_ptr<LocalSocket> VirtualScreenImplTest::socket = nullptr; member in __anon48::VirtualScreenImplTest
/ide/tools/previewer/test/unittest/mock/
H A DVirtualScreenImplTest.cpp52 socket = std::make_unique<LocalSocket>(); in SetUpTestCase()
55 static std::unique_ptr<LocalSocket> socket; member in __anon31::VirtualScreenImplTest
62 std::unique_ptr<LocalSocket> VirtualScreenImplTest::socket = nullptr; member in __anon31::VirtualScreenImplTest

Completed in 14 milliseconds