/arkcompiler/toolchain/tooling/agent/ |
D | profiler_impl.cpp | 53 DispatchResponse response = profiler_->Disable(); in Disable() local 54 SendResponse(request, response); in Disable() 59 DispatchResponse response = profiler_->Enable(); in Enable() local 60 SendResponse(request, response); in Enable() 65 DispatchResponse response = profiler_->Start(); in Start() local 66 SendResponse(request, response); in Start() 72 DispatchResponse response = profiler_->Stop(&profile); in Stop() local 74 SendResponse(request, response); in Stop() 79 SendResponse(request, response, result); in Stop() 89 DispatchResponse response = profiler_->SetSamplingInterval(*params); in SetSamplingInterval() local [all …]
|
D | heapprofiler_impl.cpp | 55 DispatchResponse response = heapprofiler_->AddInspectedHeapObject(*params); in AddInspectedHeapObject() local 56 SendResponse(request, response); in AddInspectedHeapObject() 61 DispatchResponse response = heapprofiler_->CollectGarbage(); in CollectGarbage() local 62 SendResponse(request, response); in CollectGarbage() 67 DispatchResponse response = heapprofiler_->Enable(); in Enable() local 68 SendResponse(request, response); in Enable() 73 DispatchResponse response = heapprofiler_->Disable(); in Disable() local 74 SendResponse(request, response); in Disable() 86 DispatchResponse response = heapprofiler_->GetHeapObjectId(*params, &objectId); in GetHeapObjectId() local 88 SendResponse(request, response, result); in GetHeapObjectId() [all …]
|
D | tracing_impl.cpp | 46 DispatchResponse response = tracing_->End(); in End() local 47 SendResponse(request, response); in End() 53 DispatchResponse response = tracing_->GetCategories(categories); in GetCategories() local 54 SendResponse(request, response); in GetCategories() 60 DispatchResponse response = tracing_->RecordClockSyncMarker(syncId); in RecordClockSyncMarker() local 61 SendResponse(request, response); in RecordClockSyncMarker() 70 DispatchResponse response = tracing_->RequestMemoryDump(std::move(params), dumpGuid, success); in RequestMemoryDump() local 71 SendResponse(request, response); in RequestMemoryDump() 78 DispatchResponse response = tracing_->Start(std::move(params)); in Start() local 79 SendResponse(request, response); in Start()
|
D | debugger_impl.cpp | 321 DispatchResponse response = debugger_->Enable(*params, &id); in Enable() local 324 SendResponse(request, response, result); in Enable() 329 DispatchResponse response = debugger_->Disable(); in Disable() local 330 SendResponse(request, response); in Disable() 341 DispatchResponse response = debugger_->EvaluateOnCallFrame(*params, &result1); in EvaluateOnCallFrame() local 343 SendResponse(request, response); in EvaluateOnCallFrame() 348 SendResponse(request, response, result); in EvaluateOnCallFrame() 359 DispatchResponse response = debugger_->GetPossibleBreakpoints(*params, &locations); in GetPossibleBreakpoints() local 361 SendResponse(request, response, result); in GetPossibleBreakpoints() 372 DispatchResponse response = debugger_->GetScriptSource(*params, &source); in GetScriptSource() local [all …]
|
D | runtime_impl.cpp | 50 DispatchResponse response = runtime_->Enable(); in Enable() local 51 SendResponse(request, response); in Enable() 56 DispatchResponse response = runtime_->Disable(); in Disable() local 57 SendResponse(request, response); in Disable() 62 DispatchResponse response = runtime_->RunIfWaitingForDebugger(); in RunIfWaitingForDebugger() local 63 SendResponse(request, response); in RunIfWaitingForDebugger() 78 … DispatchResponse response = runtime_->GetProperties(*params, &outPropertyDesc, &outInternalDescs, in GetProperties() local 88 SendResponse(request, response, result); in GetProperties() 101 …DispatchResponse response = runtime_->CallFunctionOn(*params, &outRemoteObject, &outExceptionDetai… in CallFunctionOn() local 107 SendResponse(request, response); in CallFunctionOn() [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | destructureOfVariableSameAsShorthand.ts | 30 get().then((response) => { 31 AssertType(get().then((response) => { // body is never const body = response.data; … 35 AssertType((response) => { // body is never const body = response.data; }, "(Axios… 36 AssertType(response, "AxiosResponse<never>"); 39 const body = response.data; 41 AssertType(response.data, "never"); 54 const response = await get() constant 55 AssertType(response, "AxiosResponse<never>"); 61 const body = response.data; 63 AssertType(response.data, "never");
|
/arkcompiler/toolchain/tooling/ |
D | dispatcher.cpp | 95 DispatchResponse response; in Create() local 96 response.code_ = code; in Create() 97 response.errorMsg_ = msg; in Create() 98 return response; in Create() 103 DispatchResponse response; in Create() local 105 response.code_ = ResponseCode::NOK; in Create() 106 response.errorMsg_ = error.value(); in Create() 108 return response; in Create() 118 DispatchResponse response; in Fail() local 119 response.code_ = ResponseCode::NOK; in Fail() [all …]
|
D | protocol_handler.cpp | 82 void ProtocolHandler::SendResponse(const DispatchRequest &request, const DispatchResponse &response, in SendResponse() argument 86 << (response.IsOk() ? "success" : "failed: " + response.GetMessage()); in SendResponse() 91 if (response.IsOk()) { in SendResponse() 94 resultObj = CreateErrorReply(response); in SendResponse() 120 std::unique_ptr<PtJson> ProtocolHandler::CreateErrorReply(const DispatchResponse &response) in CreateErrorReply() argument 124 if (!response.IsOk()) { in CreateErrorReply() 125 result->Add("code", static_cast<int32_t>(response.GetError())); in CreateErrorReply() 126 result->Add("message", response.GetMessage().c_str()); in CreateErrorReply()
|
D | protocol_handler.h | 45 void SendResponse(const DispatchRequest &request, const DispatchResponse &response, 52 std::unique_ptr<PtJson> CreateErrorReply(const DispatchResponse &response);
|
D | protocol_channel.h | 33 virtual void SendResponse(const DispatchRequest &request, const DispatchResponse &response,
|
D | dispatcher.h | 125 void SendResponse(const DispatchRequest &request, const DispatchResponse &response,
|
/arkcompiler/toolchain/tooling/test/ |
D | heapprofiler_impl_test.cpp | 57 DispatchResponse response = heapProfiler->AddInspectedHeapObject(param); in HWTEST_F_L0() local 58 ASSERT_TRUE(response.GetMessage() == "AddInspectedHeapObject not support now"); in HWTEST_F_L0() 59 ASSERT_TRUE(!response.IsOk()); in HWTEST_F_L0() 66 DispatchResponse response = heapProfiler->CollectGarbage(); in HWTEST_F_L0() local 67 ASSERT_TRUE(response.GetMessage() == ""); in HWTEST_F_L0() 68 ASSERT_TRUE(response.IsOk()); in HWTEST_F_L0() 75 DispatchResponse response = heapProfiler->Enable(); in HWTEST_F_L0() local 76 ASSERT_TRUE(response.GetMessage() == ""); in HWTEST_F_L0() 77 ASSERT_TRUE(response.IsOk()); in HWTEST_F_L0() 84 DispatchResponse response = heapProfiler->Disable(); in HWTEST_F_L0() local [all …]
|
D | profiler_impl_test.cpp | 56 DispatchResponse response = profiler->Disable(); in HWTEST_F_L0() local 57 ASSERT_TRUE(response.GetMessage() == ""); in HWTEST_F_L0() 58 ASSERT_TRUE(response.IsOk()); in HWTEST_F_L0() 65 DispatchResponse response = profiler->Enable(); in HWTEST_F_L0() local 66 ASSERT_TRUE(response.GetMessage() == ""); in HWTEST_F_L0() 67 ASSERT_TRUE(response.IsOk()); in HWTEST_F_L0() 75 DispatchResponse response = profiler->Start(); in HWTEST_F_L0() local 78 ASSERT_TRUE(response.IsOk()); in HWTEST_F_L0() 88 DispatchResponse response = profiler->Stop(&profile); in HWTEST_F_L0() local 89 ASSERT_TRUE(response.GetMessage().find("Stop is failure") != std::string::npos); in HWTEST_F_L0() [all …]
|
D | dispatcher_test.cpp | 114 DispatchResponse response = DispatchResponse::Create(code, msg); in HWTEST_F_L0() local 115 ASSERT_TRUE(response.IsOk()); in HWTEST_F_L0() 116 ASSERT_TRUE(response.GetMessage() == ""); in HWTEST_F_L0() 119 response = DispatchResponse::Create(msg); in HWTEST_F_L0() 120 ASSERT_TRUE(!response.IsOk()); in HWTEST_F_L0() 121 ASSERT_TRUE(response.GetMessage() == "msg"); in HWTEST_F_L0() 124 response = DispatchResponse::Create(error); in HWTEST_F_L0() 125 ASSERT_TRUE(response.IsOk()); in HWTEST_F_L0() 126 ASSERT_TRUE(response.GetMessage() == ""); in HWTEST_F_L0()
|
D | tracing_impl_test.cpp | 56 DispatchResponse response = tracing->End(); in HWTEST_F_L0() local 57 ASSERT_TRUE(response.GetMessage() == "End not support now."); in HWTEST_F_L0() 65 DispatchResponse response = tracing->GetCategories(categories); in HWTEST_F_L0() local 66 ASSERT_TRUE(response.GetMessage() == "GetCategories not support now."); in HWTEST_F_L0() 74 DispatchResponse response = tracing->RecordClockSyncMarker(syncId); in HWTEST_F_L0() local 75 ASSERT_TRUE(response.GetMessage() == "RecordClockSyncMarker not support now."); in HWTEST_F_L0() 85 DispatchResponse response = tracing->RequestMemoryDump(std::move(params), dumpGuid, success); in HWTEST_F_L0() local 86 ASSERT_TRUE(response.GetMessage() == "RequestMemoryDump not support now."); in HWTEST_F_L0() 94 DispatchResponse response = tracing->Start(std::move(params)); in HWTEST_F_L0() local 95 ASSERT_TRUE(response.GetMessage() == "Start not support now."); in HWTEST_F_L0()
|
D | protocol_handler_test.cpp | 101 DispatchResponse response = DispatchResponse::Create(code, msg); in HWTEST_F_L0() local 103 protocol->SendResponse(request, response, returns); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/test/scripts/sdk_test/ |
D | utils.py | 147 with httpx.stream('GET', url) as response: 149 total_length = int(response.headers.get("content-length")) 154 for chunk in response.iter_bytes():
|
/arkcompiler/ets_frontend/test/scripts/auto_xts_test/get_resource/ |
D | spider.py | 57 response = requests.post(url, json=json_data, headers=headers) 58 json_obj = json.loads(response.text)
|
/arkcompiler/toolchain/tooling/test/utils/ |
D | test_channel.h | 36 [[maybe_unused]] const DispatchResponse &response, in SendResponse() argument
|
/arkcompiler/toolchain/build/prebuilts_download/ |
D | prebuilts_download.py | 98 response = urlopen(url) 101 progress.update(task_id, total=int(response.info()["Content-length"])) 104 for data in iter(partial(response.read, download_buffer_size), b""):
|
/arkcompiler/toolchain/websocket/ |
D | websocket.cpp | 197 std::string response; in ProtocolUpgrade() local 205 response = sstream.str(); in ProtocolUpgrade() 206 if (!Send(client_, response.c_str(), response.length(), 0)) { in ProtocolUpgrade()
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
D | cocos_worker_test.js | 6491 var e = "response" in r ? r.response : r.responseText; 10511 this._settings = JSON.parse(s.response); 37252 …200 === n.status || 0 === n.status ? s && s(null, n.response) : s && s(new Error(`${r}${n.status}(… 116812 200 == s.status ? e(new Uint8Array(s.response)) : i(s.status, s.responseText);
|