/developtools/profiler/device/services/plugin_service/src/ |
D | plugin_service_impl.cpp | 28 ::RegisterPluginResponse& response) in RegisterPlugin() argument 47 response.set_status(ResponseStatus::OK); in RegisterPlugin() 48 response.set_plugin_id(pluginService->GetPluginIdByName(pluginInfo.name)); in RegisterPlugin() 52 response.set_status(ResponseStatus::ERR); in RegisterPlugin() 58 ::UnregisterPluginResponse& response) in UnregisterPlugin() argument 64 response.set_status(ResponseStatus::OK); in UnregisterPlugin() 68 response.set_status(ResponseStatus::ERR); in UnregisterPlugin() 73 …l::GetCommand(SocketContext& context, ::GetCommandRequest& request, ::GetCommandResponse& response) in GetCommand() argument 80 ::NotifyResultResponse& response) in NotifyResult() argument 84 response.set_status(ResponseStatus::OK); in NotifyResult() [all …]
|
D | plugin_service_impl.h | 32 ::RegisterPluginResponse& response) override; 35 ::UnregisterPluginResponse& response) override; 36 …and(SocketContext& context, ::GetCommandRequest& request, ::GetCommandResponse& response) override; 38 …SocketContext& context, ::NotifyResultRequest& request, ::NotifyResultResponse& response) override;
|
/developtools/profiler/device/services/plugin_service/test/moduletest/ |
D | plugin_service_test.cpp | 28 … bool OnRegisterPluginResponse(SocketContext& context, ::RegisterPluginResponse& response) override in OnRegisterPluginResponse() argument 30 g_pluginId = response.plugin_id(); in OnRegisterPluginResponse() 33 …bool OnUnregisterPluginResponse(SocketContext& context, ::UnregisterPluginResponse& response) over… in OnUnregisterPluginResponse() argument 37 bool OnGetCommandResponse(SocketContext& context, ::GetCommandResponse& response) override in OnGetCommandResponse() argument 41 bool OnNotifyResultResponse(SocketContext& context, ::NotifyResultResponse& response) override in OnNotifyResultResponse() argument 69 RegisterPluginResponse response; variable 75 ASSERT_TRUE(response.status() != ResponseStatus::OK); 76 g_pluginId = response.plugin_id();
|
/developtools/profiler/device/services/profiler_service/test/unittest/ |
D | profiler_service_test.cpp | 119 StartSessionResponse response; in StartSession() local 123 return service_->StartSession(context_.get(), &request, &response); in StartSession() 129 StopSessionResponse response; in StopSession() local 133 return service_->StopSession(context_.get(), &request, &response); in StopSession() 139 DestroySessionResponse response; in DestroySession() local 143 return service_->DestroySession(context_.get(), &request, &response); in DestroySession() 149 CreateSessionResponse response; in CreateOnlineSession() local 160 auto status = service_->CreateSession(context_.get(), &request, &response); in CreateOnlineSession() 163 return response.session_id(); in CreateOnlineSession() 169 CreateSessionResponse response; in CreateOfflineSession() local [all …]
|
/developtools/profiler/device/plugins/api/src/ |
D | command_poller.cpp | 138 bool CommandPoller::OnGetCommandResponse(SocketContext& context, ::GetCommandResponse& response) in OnGetCommandResponse() argument 144 nrr.set_command_id(response.command_id()); in OnGetCommandResponse() 148 if (response.has_create_session_cmd()) { in OnGetCommandResponse() 149 if (OnCreateSessionCmd(response.create_session_cmd(), context)) { in OnGetCommandResponse() 154 } else if (response.has_destroy_session_cmd()) { in OnGetCommandResponse() 155 if (OnDestroySessionCmd(response.destroy_session_cmd())) { in OnGetCommandResponse() 160 } else if (response.has_start_session_cmd()) { in OnGetCommandResponse() 161 if (OnStartSessionCmd(response.start_session_cmd(), *pr)) { in OnGetCommandResponse() 166 } else if (response.has_stop_session_cmd()) { in OnGetCommandResponse() 167 if (OnStopSessionCmd(response.stop_session_cmd())) { in OnGetCommandResponse() [all …]
|
D | plugin_manager.cpp | 115 RegisterPluginResponse response; in RegisterPlugin() local 121 if (commandPoller_->RegisterPlugin(request, response)) { in RegisterPlugin() 122 if (response.status() == ResponseStatus::OK) { in RegisterPlugin() 123 HILOG_DEBUG(LOG_CORE, "%s:response.plugin_id() = %d", __func__, response.plugin_id()); in RegisterPlugin() 124 pluginIds_[pluginInfo.name] = response.plugin_id(); in RegisterPlugin() 125 …pluginModules_.insert(std::pair<uint32_t, std::shared_ptr<PluginModule>>(response.plugin_id(), plu… in RegisterPlugin() 183 UnregisterPluginResponse response; in RemovePlugin() local 184 if (commandPoller_->UnregisterPlugin(request, response)) { in RemovePlugin() 185 if (response.status() != ResponseStatus::OK) { in RemovePlugin() 382 NotifyResultResponse response; in SubmitResult() local [all …]
|
/developtools/profiler/device/services/shared_memory/test/unittest/ |
D | shared_memory_block_test.cpp | 160 NotifyResultResponse response; variable 161 response.set_status(ResponseStatus::OK); 162 ASSERT_TRUE(shareMemoryBlock.PutMessage(response, "test")); 163 EXPECT_EQ(shareMemoryBlock.GetDataSize(), response.ByteSizeLong()); 164 response.ParseFromArray(shareMemoryBlock.GetDataPoint(), shareMemoryBlock.GetDataSize()); 165 ASSERT_TRUE(response.status() == ResponseStatus::OK); 196 NotifyResultResponse response; variable 197 response.set_status(ResponseStatus::OK); 198 ASSERT_TRUE(shareMemoryBlock.PutMessage(response, "test")); 199 EXPECT_EQ(shareMemoryBlock.GetDataSize(), response.ByteSizeLong()); [all …]
|
D | shared_memory_allocator_test.cpp | 37 …mand(SocketContext& context, ::GetCommandRequest& request, ::GetCommandResponse& response) override in GetCommand() argument 39 SendResponseGetCommandResponse(context, response); in GetCommand() 48 bool OnGetCommandResponse(SocketContext& context, ::GetCommandResponse& response) override in OnGetCommandResponse() argument
|
/developtools/smartperf_host/ide/src/command/ |
D | Cmd.ts | 32 }).then((response) => { 33 if (response.ok) { 34 let result = response.text(); 125 }).then((response) => { 126 if (response.ok) { 127 let result = response.text(); 144 }).then((response) => { 145 callback(response); 165 }).then((response) => { 166 callback(response);
|
/developtools/profiler/host/smartperf/ide/src/command/ |
D | Cmd.ts | 32 }).then((response) => { 33 if (response.ok) { 34 let result = response.text(); 125 }).then((response) => { 126 if (response.ok) { 127 let result = response.text(); 144 }).then((response) => { 145 callback(response); 165 }).then((response) => { 166 callback(response);
|
/developtools/profiler/device/services/profiler_service/src/ |
D | profiler_service.cpp | 33 #define CHECK_REQUEST_RESPONSE(context, request, response) \ argument 37 CHECK_POINTER_NOTNULL(response, "response ptr invalid!"); \ 82 ::GetCapabilitiesResponse* response) in GetCapabilities() argument 84 CHECK_REQUEST_RESPONSE(context, request, response); in GetCapabilities() 90 response->set_status(StatusCode::OK); in GetCapabilities() 92 *response->add_capabilities() = capabilities[i]; in GetCapabilities() 228 ::CreateSessionResponse* response) in CreateSession() argument 230 CHECK_REQUEST_RESPONSE(context, request, response); in CreateSession() 346 response->set_status(0); in CreateSession() 347 response->set_session_id(sessionId); in CreateSession() [all …]
|
/developtools/profiler/device/services/profiler_service/include/ |
D | profiler_service.h | 45 ::GetCapabilitiesResponse* response) override; 50 ::CreateSessionResponse* response) override; 55 ::StartSessionResponse* response) override; 65 ::StopSessionResponse* response) override; 70 ::DestroySessionResponse* response) override; 75 ::KeepSessionResponse* response) override;
|
/developtools/profiler/device/services/plugin_service/test/unittest/ |
D | plugin_service_test.cpp | 39 bool OnGetCommandResponse(SocketContext& context, ::GetCommandResponse& response) override in OnGetCommandResponse() argument 87 RegisterPluginResponse response; variable 94 ASSERT_TRUE(response.status() != ResponseStatus::OK); 95 pluginId_ = response.plugin_id(); 332 RegisterPluginResponse response; variable 339 ASSERT_TRUE(response.status() != ResponseStatus::OK); 340 pluginId_ = response.plugin_id(); 475 RegisterPluginResponse response; variable 482 ASSERT_TRUE(response.status() != ResponseStatus::OK); 483 pluginId_ = response.plugin_id(); [all …]
|
/developtools/smartperf_host/ide/src/trace/component/ |
D | SpQuerySQL.ts | 35 private response: HTMLDivElement | undefined; property in SpQuerySQL 47 this.response = this.shadowRoot?.querySelector('#dataResult') as HTMLDivElement; 63 this.response!.innerHTML = ''; 129 this.response!.innerHTML = ''; 139 this.response!.appendChild(this.queryTableEl!); 149 this.response!.innerHTML = ''; 183 this.response!.innerHTML = '';
|
/developtools/smartperf_host/ide/server/ |
D | smarperfServer.py | 107 response = urllib.request.urlopen(req) 108 content = response.read().decode("utf-8") 111 response = {"success": False, "code": -1, "message": str(e), "data": None} 112 self.wfile.write(bytes(json.dumps(response), "utf-8")) 123 response = {"success": False, "code": -1, "message": str(e), "data": None} 124 self.wfile.write(bytes(json.dumps(response), "utf-8")) 127 …response = {"success": True, "code": 0, "message": "success", "data": {"url": file_name, "size": w… 128 self.wfile.write(bytes(json.dumps(response), "utf-8"))
|
/developtools/integration_verification/tools/fotff/utils/ |
D | http.go | 27 func DoSimpleHttpReqRaw(method string, url string, body []byte, header map[string]string) (response… 33 if response, err = doSimpleHttpReqImpl(method, url, body, header); err == nil { 58 …Impl(method string, url string, body []byte, header map[string]string) (response *http.Response, e…
|
/developtools/profiler/device/services/profiler_service/test/fuzztest/profilercreatesession_fuzzer/ |
D | profilercreatesession_fuzzer.cpp | 30 auto response = std::make_unique<CreateSessionResponse>(); in ProfilerCreateSessionFuzzTest() local 37 profilerService->CreateSession(serverContext.get(), &request, response.get()); in ProfilerCreateSessionFuzzTest()
|
/developtools/profiler/device/services/profiler_service/test/fuzztest/profilerkeepsession_fuzzer/ |
D | profilerkeepsession_fuzzer.cpp | 30 auto response = std::make_unique<KeepSessionResponse>(); in ProfilerKeepSessionFuzzTest() local 37 profilerService->KeepSession(serverContext.get(), &request, response.get()); in ProfilerKeepSessionFuzzTest()
|
/developtools/profiler/device/services/profiler_service/test/fuzztest/profilergetcapabilities_fuzzer/ |
D | profilergetcapabilities_fuzzer.cpp | 30 auto response = std::make_unique<GetCapabilitiesResponse>(); in ProfilerGetCapabilitiesFuzzTest() local 37 profilerService->GetCapabilities(serverContext.get(), &request, response.get()); in ProfilerGetCapabilitiesFuzzTest()
|
/developtools/profiler/device/services/profiler_service/test/fuzztest/profilerstopsession_fuzzer/ |
D | profilerstopsession_fuzzer.cpp | 30 auto response = std::make_unique<StopSessionResponse>(); in ProfilerStopSessionFuzzTest() local 37 profilerService->StopSession(serverContext.get(), &request, response.get()); in ProfilerStopSessionFuzzTest()
|
/developtools/profiler/device/services/profiler_service/test/fuzztest/profilerstartsession_fuzzer/ |
D | profilerstartsession_fuzzer.cpp | 30 auto response = std::make_unique<StartSessionResponse>(); in ProfilerStartSessionFuzzTest() local 37 profilerService->StartSession(serverContext.get(), &request, response.get()); in ProfilerStartSessionFuzzTest()
|
/developtools/profiler/device/services/profiler_service/test/fuzztest/profilerdestroysession_fuzzer/ |
D | profilerdestroysession_fuzzer.cpp | 30 auto response = std::make_unique<DestroySessionResponse>(); in ProfilerDestroySessionFuzzTest() local 37 profilerService->DestroySession(serverContext.get(), &request, response.get()); in ProfilerDestroySessionFuzzTest()
|
/developtools/smartperf_host/trace_streamer/sdk/dubai_sdk/rpc/ |
D | rpc_server.cpp | 40 std::string response = "ok\r\n"; in SqlOperate() local 42 response = "dberror\r\n"; in SqlOperate() 44 resultCallBack(response, SEND_FINISH, 0); in SqlOperate()
|
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/rpc/ |
D | rpc_server.cpp | 40 std::string response = "ok\r\n"; in SqlOperate() local 42 response = "dberror\r\n"; in SqlOperate() 44 resultCallBack(response, SEND_FINISH, 0); in SqlOperate()
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | hook_manager.cpp | 117 RegisterPluginResponse response; in RegisterAgentPlugin() local 119 if (commandPoller_->RegisterPlugin(request, response)) { in RegisterAgentPlugin() 120 if (response.status() == ResponseStatus::OK) { in RegisterAgentPlugin() 121 HILOG_DEBUG(LOG_CORE, "response.plugin_id() = %d", response.plugin_id()); in RegisterAgentPlugin() 122 agentIndex_ = response.plugin_id(); in RegisterAgentPlugin() 141 UnregisterPluginResponse response; in UnregisterAgentPlugin() local 142 if (commandPoller_->UnregisterPlugin(request, response)) { in UnregisterAgentPlugin() 143 CHECK_TRUE(response.status() == ResponseStatus::OK, false, "UnregisterPlugin FAIL 1"); in UnregisterAgentPlugin()
|