/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 | 31 ::RegisterPluginResponse& response) override; 33 ::UnregisterPluginResponse& response) override; 34 …and(SocketContext& context, ::GetCommandRequest& request, ::GetCommandResponse& response) override; 36 ::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 | 117 RegisterPluginResponse response; in RegisterPlugin() local 123 if (commandPoller_->RegisterPlugin(request, response)) { in RegisterPlugin() 124 if (response.status() == ResponseStatus::OK) { in RegisterPlugin() 125 … PROFILER_LOG_DEBUG(LOG_CORE, "%s:response.plugin_id() = %d", __func__, response.plugin_id()); in RegisterPlugin() 126 pluginIds_[pluginInfo.name] = response.plugin_id(); in RegisterPlugin() 127 …pluginModules_.insert(std::pair<uint32_t, std::shared_ptr<PluginModule>>(response.plugin_id(), plu… in RegisterPlugin() 186 UnregisterPluginResponse response; in RemovePlugin() local 187 if (commandPoller_->UnregisterPlugin(request, response)) { in RemovePlugin() 188 if (response.status() != ResponseStatus::OK) { in RemovePlugin() 383 NotifyResultResponse response; in SubmitResult() local [all …]
|
/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/device/services/profiler_service/src/ |
D | profiler_service.cpp | 32 #define CHECK_REQUEST_RESPONSE(context, request, response) \ argument 36 CHECK_POINTER_NOTNULL(response, "response ptr invalid!"); \ 81 ::GetCapabilitiesResponse* response) in GetCapabilities() argument 83 CHECK_REQUEST_RESPONSE(context, request, response); in GetCapabilities() 89 response->set_status(StatusCode::OK); in GetCapabilities() 91 *response->add_capabilities() = capabilities[i]; in GetCapabilities() 238 ::CreateSessionResponse* response) in CreateSession() argument 240 CHECK_REQUEST_RESPONSE(context, request, response); in CreateSession() 345 response->set_status(0); in CreateSession() 346 response->set_session_id(sessionId); in CreateSession() [all …]
|
/developtools/profiler/device/services/profiler_service/include/ |
D | profiler_service.h | 46 ::GetCapabilitiesResponse* response) override; 51 ::CreateSessionResponse* response) override; 56 ::StartSessionResponse* response) override; 66 ::StopSessionResponse* response) override; 71 ::DestroySessionResponse* response) override; 76 ::KeepSessionResponse* response) override;
|
/developtools/profiler/device/services/shared_memory/test/unittest/ |
D | shared_memory_block_test.cpp | 163 NotifyResultResponse response; variable 164 response.set_status(ResponseStatus::OK); 165 ASSERT_TRUE(shareMemoryBlock.PutMessage(response, "test")); 166 EXPECT_EQ(shareMemoryBlock.GetDataSize(), response.ByteSizeLong()); 167 response.ParseFromArray(shareMemoryBlock.GetDataPoint(), shareMemoryBlock.GetDataSize()); 168 ASSERT_TRUE(response.status() == ResponseStatus::OK); 199 NotifyResultResponse response; variable 200 response.set_status(ResponseStatus::OK); 201 ASSERT_TRUE(shareMemoryBlock.PutMessage(response, "test")); 202 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/trace/component/ |
D | SpQuerySQL.ts | 38 private response: HTMLDivElement | undefined; property in SpQuerySQL 52 this.response = this.shadowRoot?.querySelector('#dataResult') as HTMLDivElement; 70 this.response!.innerHTML = ''; 152 this.response!.innerHTML = ''; 160 this.response!.innerHTML = ''; 177 this.response!.appendChild(this.queryTableEl!); 221 this.response!.innerHTML = ''; 288 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/profiler/device/services/plugin_service/test/unittest/ |
D | plugin_service_test.cpp | 39 bool OnGetCommandResponse(SocketContext& context, ::GetCommandResponse& response) override in OnGetCommandResponse() argument 81 RegisterPluginResponse response; variable 88 ASSERT_TRUE(response.status() != ResponseStatus::OK); 89 pluginId_ = response.plugin_id(); 321 RegisterPluginResponse response; variable 328 ASSERT_TRUE(response.status() != ResponseStatus::OK); 329 pluginId_ = response.plugin_id(); 464 RegisterPluginResponse response; variable 471 ASSERT_TRUE(response.status() != ResponseStatus::OK); 472 pluginId_ = response.plugin_id(); [all …]
|
/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/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/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/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/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/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/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/smartperf_host/trace_streamer/sdk/demo_sdk/rpc/ |
D | demo_rpc_server.cpp | 40 std::string response = "ok\r\n"; in DemoSqlOperate() local 42 response = "dberror\r\n"; in DemoSqlOperate() 44 retCallBack(response, SEND_FINISH, 0); in DemoSqlOperate()
|
/developtools/profiler/device/services/ipc/include/ |
D | ipc_generator_impl.h | 34 bool AddMethod(std::string method, std::string request, std::string response) in AddMethod() argument 43 responseList_[methodCount_] = response; in AddMethod()
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | hook_manager.cpp | 141 RegisterPluginResponse response; in RegisterAgentPlugin() local 143 if (commandPoller_->RegisterPlugin(request, response)) { in RegisterAgentPlugin() 144 if (response.status() == ResponseStatus::OK) { in RegisterAgentPlugin() 145 PROFILER_LOG_DEBUG(LOG_CORE, "response.plugin_id() = %d", response.plugin_id()); in RegisterAgentPlugin() 146 agentIndex_ = response.plugin_id(); in RegisterAgentPlugin() 165 UnregisterPluginResponse response; in UnregisterAgentPlugin() local 166 if (commandPoller_->UnregisterPlugin(request, response)) { in UnregisterAgentPlugin() 167 CHECK_TRUE(response.status() == ResponseStatus::OK, false, "UnregisterPlugin FAIL 1"); in UnregisterAgentPlugin()
|
/developtools/smartperf_host/ide/src/trace/ |
D | SpApplicationPublicFunc.ts | 435 .then((response) => response.json())
|