Home
last modified time | relevance | path

Searched refs:objectId (Results 1 - 25 of 38) sorted by relevance

12

/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/
H A Dremote_object.h97 static RemoteObject Object(std::string className, std::optional<RemoteObjectId> objectId = std::nullopt,
100 return RemoteObject(RemoteObjectType::ObjectT {std::move(className), objectId, std::move(description)});
104 std::optional<RemoteObjectId> objectId = std::nullopt)
106 return RemoteObject(RemoteObjectType::ArrayT {std::move(className), objectId, length});
110 std::optional<RemoteObjectId> objectId = std::nullopt)
112 return RemoteObject(RemoteObjectType::FunctionT {std::move(className), objectId, std::move(name), length});
H A Dremote_object_type.h43 std::optional<RemoteObjectId> objectId; member
49 std::optional<RemoteObjectId> objectId; member
55 std::optional<RemoteObjectId> objectId; member
H A Dremote_object.cpp71 return object->objectId; in GetObjectId()
74 return array->objectId; in GetObjectId()
77 return function->objectId; in GetObjectId()
151 if (auto objectId = GetObjectId()) { in ToJson()
152 AddProperty(result, "objectId", std::to_string(*objectId)); in ToJson()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/
H A Dcalling_methods_test_4.cpp43 ets_method objectId = env_->Getp_method(cls, "object_method", ":LA;"); in TEST_F() local
44 ASSERT_NE(objectId, nullptr); in TEST_F()
64 EXPECT_DEATH(env_->CallObjectMethod(nullptr, objectId), ""); in TEST_F()
78 EXPECT_DEATH(env_->CallObjectMethod(nullptr, objectId), ""); in TEST_F()
98 ets_method objectId = env_->Getp_method(cls, "object_method", ":LA;"); in TEST_F() local
99 ASSERT_NE(objectId, nullptr); in TEST_F()
115 EXPECT_DEATH(env_->CallObjectMethodArray(nullptr, objectId, nullptr), ""); in TEST_F()
130 EXPECT_DEATH(env_->CallObjectMethodArray(nullptr, objectId, nullptr), ""); in TEST_F()
193 ets_method objectId = env_->Getp_method(cls, "object_method", ":LA;"); in TEST_F() local
194 ASSERT_NE(objectId, nullpt in TEST_F()
245 ets_method objectId = env_->Getp_method(cls, "object_method", ":LA;"); TEST_F() local
[all...]
H A Dcalling_methods_test_5.cpp43 ets_method objectId = env_->Getp_method(cls, "object_method", ":LA;"); in TEST_F() local
44 ASSERT_NE(objectId, nullptr); in TEST_F()
65 EXPECT_DEATH(env_->CallNonvirtualObjectMethod(nullptr, cls, objectId), ""); in TEST_F()
99 ets_method objectId = env_->Getp_method(cls, "object_method", ":LA;"); in TEST_F() local
100 ASSERT_NE(objectId, nullptr); in TEST_F()
136 EXPECT_DEATH(env_->CallNonvirtualObjectMethod(nullptr, cls, objectId), ""); in TEST_F()
H A Dcalling_methods_test_3.cpp130 ets_method objectId = env_->GetStaticp_method(cls, "object_method", ":LA;"); in TEST_F() local
131 ASSERT_NE(objectId, nullptr); in TEST_F()
152 ASSERT_EQ(objectId, objectIdNoSig); in TEST_F()
178 ets_method objectId = env_->GetStaticp_method(cls, "object_method", ":LA;"); in TEST_F() local
179 ASSERT_NE(objectId, nullptr); in TEST_F()
202 ets_object aObj = env_->CallStaticObjectMethod(cls, objectId); in TEST_F()
228 ets_method objectId = env_->GetStaticp_method(cls, "object_method", ":LA;"); in TEST_F() local
229 ASSERT_NE(objectId, nullptr); in TEST_F()
243 ets_object aObjFromArrayFunc = env_->CallObjectMethodArray(cls, objectId, nullptr); in TEST_F()
320 ets_method objectId in TEST_F() local
367 ets_method objectId = env_->GetStaticp_method(cls, "object_method", ":LA;"); TEST_F() local
407 ets_method objectId = env_->GetStaticp_method(cls, "object_method", ":LA;"); TEST_F() local
[all...]
H A Dcalling_methods_test_2.cpp44 ets_method objectId = env_->Getp_method(cls, "object_method", ":LA;"); in TEST_F() local
45 ASSERT_NE(objectId, nullptr); in TEST_F()
66 ASSERT_EQ(objectId, objectIdNoSig); in TEST_F()
94 ets_method objectId = env_->Getp_method(cls, "object_method", ":LA;"); in TEST_F() local
95 ASSERT_NE(objectId, nullptr); in TEST_F()
118 ets_object aObj = env_->CallObjectMethod(obj, objectId); in TEST_F()
150 ets_method objectId = env_->Getp_method(cls, "object_method", ":LA;"); in TEST_F() local
151 ASSERT_NE(objectId, nullptr); in TEST_F()
166 ets_object aObjFromArrayFunc = env_->CallObjectMethodArray(obj, objectId, nullptr); in TEST_F()
238 ets_method objectId in TEST_F() local
[all...]
H A Dcalling_methods_test_8.cpp47 ets_method objectId = env_->Getp_method(cCls, "object_method", ":LA;"); in TEST_F() local
48 ASSERT_NE(objectId, nullptr); in TEST_F()
59 EXPECT_DEATH(CallNonvirtualObjectMethodListHelper(env_, nullptr, cCls, objectId, nullptr), ""); in TEST_F()
77 EXPECT_DEATH(CallNonvirtualObjectMethodListHelper(env_, nullptr, cCls, objectId, nullptr), ""); in TEST_F()
H A Dcalling_methods_test_7.cpp47 ets_method objectId = env_->Getp_method(cCls, "object_method", ":LA;"); in TEST_F() local
48 ASSERT_NE(objectId, nullptr); in TEST_F()
62 EXPECT_DEATH(env_->CallNonvirtualObjectMethodArray(nullptr, cCls, objectId, nullptr), ""); in TEST_F()
77 EXPECT_DEATH(env_->CallNonvirtualObjectMethodArray(nullptr, cCls, objectId, nullptr), ""); in TEST_F()
H A Dcalling_methods_test_6.cpp45 ets_method objectId = env_->Getp_method(cCls, "object_method", ":LA;"); in TEST_F() local
46 ASSERT_NE(objectId, nullptr); in TEST_F()
55 ets_object aObj = env_->CallNonvirtualObjectMethod(obj, cCls, objectId); in TEST_F()
68 ets_object aObjFromArrayFunc = env_->CallNonvirtualObjectMethodArray(obj, cCls, objectId, nullptr); in TEST_F()
76 ets_object aObjFromListFunc = CallNonvirtualObjectMethodListHelper(env_, obj, cCls, objectId); in TEST_F()
/arkcompiler/toolchain/tooling/client/manager/
H A Dvariable_manager.cpp108 for (const auto& [objectId, type] : innerMap) { in PrintRootAndImmediateChildren()
109 std::cout << " Object ID: " << objectId << ", Type: " << type << std::endl; in PrintRootAndImmediateChildren()
130 TreeNode* Tree::FindNodeWithObjectId(int32_t objectId) const in FindNodeWithObjectId()
132 return FindNodeWithObjectIdRecursive(root_.get(), objectId); in FindNodeWithObjectId()
159 TreeNode* Tree::FindNodeWithObjectIdRecursive(TreeNode* node, int32_t objectId) const in FindNodeWithObjectIdRecursive()
168 if (innerMap.find(objectId) != innerMap.end()) { in FindNodeWithObjectIdRecursive()
175 if (descriptor && descriptor->GetValue() && descriptor->GetValue()->GetObjectId() == objectId) { in FindNodeWithObjectIdRecursive()
182 TreeNode* foundNode = FindNodeWithObjectIdRecursive(child.get(), objectId); in FindNodeWithObjectIdRecursive()
287 TreeNode* VariableManager::FindNodeWithObjectId(int32_t objectId) in FindNodeWithObjectId() argument
289 return variableInfo_.FindNodeWithObjectId(objectId); in FindNodeWithObjectId()
[all...]
H A Dstack_manager.cpp61 for (const auto& [objectId, type] : scopes) { in PrintScopeChainInfo()
62 std::cout << " Object ID: " << objectId << ", Type: " << type << std::endl; in PrintScopeChainInfo()
H A Dwatch_manager.cpp58 void WatchManager::GetPropertiesCommand(const int32_t &watchInfoIndex, const std::string &objectId) in GetPropertiesCommand() argument
71 params->Add("objectId", objectId.c_str()); in GetPropertiesCommand()
173 std::string objectId; in ShowWatchResult() local
174 ret = result->GetString("objectId", &objectId); in ShowWatchResult()
183 GetPropertiesCommand(it->second, objectId); in ShowWatchResult()
H A Dvariable_manager.h60 TreeNode* FindNodeWithObjectId(int32_t objectId) const;
70 TreeNode* FindNodeWithObjectIdRecursive(TreeNode* node, int32_t objectId) const;
84 TreeNode* FindNodeWithObjectId(int32_t objectId);
H A Dwatch_manager.h37 void GetPropertiesCommand(const int32_t &watchInfoIndex, const std::string &objectId);
/arkcompiler/toolchain/tooling/client/domain/
H A Druntime_client.h45 void SetObjectId(const std::string &objectId) in SetObjectId() argument
47 objectId_ = objectId; in SetObjectId()
/arkcompiler/toolchain/tooling/agent/
H A Dheapprofiler_impl.cpp146 HeapSnapshotObjectId objectId; in GetHeapObjectId() local
147 DispatchResponse response = heapprofiler_->GetHeapObjectId(*params, &objectId); in GetHeapObjectId()
148 GetHeapObjectIdReturns result(std::move(objectId)); in GetHeapObjectId()
343 HeapSnapshotObjectId *objectId) in GetHeapObjectId()
345 ASSERT(objectId != nullptr); in GetHeapObjectId()
346 *objectId = 0; in GetHeapObjectId()
342 GetHeapObjectId([[maybe_unused]] const GetHeapObjectIdParams &params, HeapSnapshotObjectId *objectId) GetHeapObjectId() argument
/arkcompiler/toolchain/tooling/test/client_utils/
H A Dtest_util.cpp216 std::string objectId; in SendMessage() local
217 ret = watchResult->GetString("objectId", &objectId); in SendMessage()
221 SessionManager::getInstance().GetCurrentSession()->GetWatchManager().GetPropertiesCommand(0, objectId); in SendMessage()
/arkcompiler/toolchain/tooling/base/
H A Dpt_params.cpp735 std::string objectId; in Create() local
736 ret = params.GetString("objectId", &objectId); in Create()
738 if (!ToolchainUtils::StrToInt32(objectId, paramsObject->objectId_)) { in Create()
739 error += "Failed to convert 'objectId' from string to int;"; in Create()
742 error += "Unknown or wrong type of 'objectId';"; in Create()
798 std::string objectId; in Create() local
799 ret = params.GetString("objectId", &objectId); in Create()
801 if (!ToolchainUtils::StrToInt32(objectId, paramsObjec in Create()
1014 std::string objectId; Create() local
1037 std::string objectId; Create() local
[all...]
/arkcompiler/toolchain/tooling/test/
H A Ddebugger_params_test.cpp388 // abnormal params of params.sub-key=["objectId":10] in HWTEST_F_L0()
389 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"objectId":10}})"; in HWTEST_F_L0()
393 // abnormal params of params.sub-key=["objectId":true] in HWTEST_F_L0()
394 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"objectId":true}})"; in HWTEST_F_L0()
398 // abnormal params of params.sub-key=["objectId":“10”] in HWTEST_F_L0()
399 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"objectId":"10"}})"; in HWTEST_F_L0()
410 // abnormal params of params.sub-key=["objectId":10] in HWTEST_F_L0()
411 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"objectId":10}})"; in HWTEST_F_L0()
415 // abnormal params of params.sub-key=["objectId":true] in HWTEST_F_L0()
416 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"objectId" in HWTEST_F_L0()
[all...]
H A Dheapprofiler_impl_test.cpp130 HeapSnapshotObjectId objectId; in HWTEST_F_L0() local
131 DispatchResponse response = heapProfiler->GetHeapObjectId(params, &objectId); in HWTEST_F_L0()
292 std::string msg = std::string() + R"({"id":0,"method":"HeapProfiler.getHeapObjectId","params":{"objectId":true}})"; in HWTEST_F_L0()
296 msg = std::string() + R"({"id":0,"method":"HeapProfiler.getHeapObjectId","params":{"objectId":"0"}})"; in HWTEST_F_L0()
315 "objectId":001}})"; in HWTEST_F_L0()
319 msg = std::string() + R"({"id":0,"method":"HeapProfiler.getObjectByHeapObjectId","params":{"objectId":"001", in HWTEST_F_L0()
H A Druntime_impl_test.cpp142 std::string msg = std::string() + R"({"id":0,"method":"Rumtime.getProperties","params":{"objectId":0}})"; in HWTEST_F_L0()
147 msg = std::string() + R"({"id":0,"method":"Rumtime.getProperties","params":{"objectId":"0"}})"; in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
H A Dinspector_server.cpp503 auto objectId = ParseNumericId<RemoteObjectId>(params, "objectId"); in OnCallRuntimeGetProperties()
504 if (!objectId) { in OnCallRuntimeGetProperties()
505 LOG(INFO, DEBUGGER) << objectId.Error(); in OnCallRuntimeGetProperties()
515 for (auto &descriptor : handler(thread, *objectId, generatePreview)) { in OnCallRuntimeGetProperties()
H A Dinspector.cpp442 std::vector<PropertyDescriptor> Inspector::GetProperties(PtThread thread, RemoteObjectId objectId, bool generatePreview) in GetProperties() argument
453 it->second.RequestToObjectRepository([objectId, generatePreview, &properties](auto &objectRepository) { in GetProperties()
454 properties = objectRepository.GetProperties(objectId, generatePreview); in GetProperties()
459 LOG(INFO, DEBUGGER) << "Failed to resolve object id: " << objectId; in GetProperties()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
H A Dobject_repository.cpp101 static auto GetObjectProperties(NameT className, DescT description, const char *objectId) in GetObjectProperties() argument
106 JsonProperty<JsonObject::StringT> {"objectId", objectId}); in GetObjectProperties()

Completed in 15 milliseconds

12