Home
last modified time | relevance | path

Searched refs:GetEntity (Results 1 – 25 of 73) sorted by relevance

123

/ohos5.0/base/powermgr/battery_statistics/test/unittest/src/servicetest/
H A Dstats_service_core_test.cpp145 EXPECT_EQ(nullptr, statsCore->GetEntity(
152 EXPECT_EQ(nullptr, statsCore->GetEntity(
161 EXPECT_EQ(nullptr, statsCore->GetEntity(
163 EXPECT_EQ(nullptr, statsCore->GetEntity(
170 EXPECT_EQ(nullptr, statsCore->GetEntity(
177 EXPECT_EQ(nullptr, statsCore->GetEntity(
184 EXPECT_EQ(nullptr, statsCore->GetEntity(
202 EXPECT_EQ(nullptr, statsCore->GetEntity(
207 EXPECT_EQ(nullptr, statsCore->GetEntity(
214 EXPECT_EQ(nullptr, statsCore->GetEntity(
[all …]
/ohos5.0/base/powermgr/battery_statistics/services/native/src/entities/
H A Duid_entity.cpp83 auto cameraEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_CAMERA); in CalculateForCommon()
85 auto audioEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_AUDIO); in CalculateForCommon()
86 auto sensorEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_SENSOR); in CalculateForCommon()
87 auto gnssEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_GNSS); in CalculateForCommon()
88 auto cpuEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_CPU); in CalculateForCommon()
90 auto alarmEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_ALARM); in CalculateForCommon()
126 auto userEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_USER); in Calculate()
189 auto audioEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_AUDIO); in GetPowerForCommon()
191 auto gnssEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_GNSS); in GetPowerForCommon()
192 auto cpuEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_CPU); in GetPowerForCommon()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Decs_animation.cpp128 return node->GetEntity(); in UpdateTrackTargets()
131 return targetNode->GetEntity(); in UpdateTrackTargets()
260 UpdateTrackTargets(*ecs_, GetEntity(), entity); in Retarget()
358 SetRootEntity(node->GetEntity()); in TryResolveAnimationRoot()
361 return node ? node->GetEntity() : Entity {}; in TryResolveAnimationRoot()
446 if (nameManager_->HasComponent(GetEntity())) { in OnAnimationNameChanged()
569 if (t->GetEntity() == track) { in GatherAnimationTracks()
647 if (other->GetEntity() != track.GetEntity()) { in OnAnimationTimestampsChanged()
696 UpdateAnimationTrackDuration(track->GetEntity()); in AddKey()
705 OnAnimationTrackChanged(*track, track->GetEntity()); in AddKey()
[all …]
H A Dsubmeshhandler.cpp90 if (ecsObject && ecsObject->GetEntity() == entity) { in GetMaterialFromEntity()
184 self->GetEntity(), index, value); in SetRenderSortLayerOrder()
210 entity = ecsObject->GetEntity(); in SetMaterialToEcs()
214 sceneHolder->SetMaterial(self->GetEntity(), entity, index); in SetMaterialToEcs()
242 … sceneHolder->SetSubmeshAABBMin(self->GetEntity(), index, vec); in SetAABBMin()
275 … sceneHolder->SetSubmeshAABBMax(self->GetEntity(), index, vec); in SetAABBMax()
315 … sceneHolder->RemoveSubmesh(self->GetEntity(), index); in RemoveSubmesh()
328 CORE_NS::Entity GetEntity() const override in GetEntity() function in __anonca9c1dc40110::SubMeshHandler
H A Dcamera_impl.cpp140 … SceneHolder()->SetRenderSize(renderSize.x, renderSize.y, ecsObject->GetEntity().id); in CompleteInitialization()
228 auto ent = ecs0->GetEntity(); in CompleteInitialization()
259 … [source = interface_cast<SCENE_NS::IEcsObject>(camera)->GetEntity(), in AddMultiviewCamera()
260 … target = GetSelf<SCENE_NS::IEcsObject>()->GetEntity()](auto sh) { in AddMultiviewCamera()
300 … [source = interface_cast<SCENE_NS::IEcsObject>(camera)->GetEntity(), in RemoveMultiviewCamera()
301 … target = GetSelf<SCENE_NS::IEcsObject>()->GetEntity()](auto sh) { in RemoveMultiviewCamera()
321 … if (sh->ScreenToWorld(ret, self->GetEntity(), screenCoordinate)) { in ScreenToWorld()
354 … if (sh->WorldToScreen(ret, self->GetEntity(), worldCoordinate)) { in WorldToScreen()
388 if (sh->RayCastFromCamera(ret, self->GetEntity(), pos)) { in RayCastFromCamera()
431 … if (sh->RayCastFromCamera(ret, self->GetEntity(), pos, layerMask)) { in RayCastFromCamera()
[all …]
H A Dasset_loader.cpp64 const auto entity = node.GetEntity(); in AddNodeToCollectionRecursive()
365 auto targetEntity = ec_.GetEntity(entityTarget); in LoadJsonEntityCollection()
368 targetEntity = ec_.GetSubCollection(--subcollectionCount)->GetEntity(entityTarget); in LoadJsonEntityCollection()
474 auto ent = nodeComponentManager->GetEntity(i); in ImportSceneFromGltf()
522 return targetNode->GetEntity(); in UpdateTrackTargets()
561 auto targetEntity = ec_.GetEntity(entityTarget); in GltfImportFinished()
564 targetEntity = ec_.GetSubCollection(--subcollectionCount)->GetEntity(entityTarget); in GltfImportFinished()
592 if (!loadNode || loadNode->GetEntity() == Entity {}) { in GltfImportFinished()
597 if (!loadNode || loadNode->GetEntity() == Entity {}) { in GltfImportFinished()
604 Entity entity = loadNode->GetEntity(); in GltfImportFinished()
H A Dmaterial_impl.cpp140 [e = ecsObject_->GetEntity(), w = BASE_NS::weak_ptr(sceneHolder)] { in Activate()
158 [e = ecsObject_->GetEntity(), w = BASE_NS::weak_ptr(sceneHolder)] { in Deactivate()
245 [uri, entityId = EcsObject()->GetEntity().id, arrayIndex](auto sh) { in ApplyTextureInfoImage()
258 … [entity = EcsObject()->GetEntity(), arrayIndex](auto sh) { in ApplyTextureInfoImage()
455 [entity = EcsObject()->GetEntity(), arrayIx, w_info](SceneHolder::Ptr sh) { in CheckImageHandle()
954 auto entity = EcsObject()->GetEntity(); in UpdateInputs()
1136 … EcsObject()->GetEntity(), SceneHolder::ShaderType::DEPTH_SHADER, DepthShader()->GetValue()); in CompleteInitialization()
1147 … EcsObject()->GetEntity(), SceneHolder::ShaderType::DEPTH_SHADER, DepthShaderState()->GetValue()); in CompleteInitialization()
1194 … EcsObject()->GetEntity(), SceneHolder::ShaderType::DEPTH_SHADER, DepthShader()->GetValue()); in CompleteInitialization()
1270 ->GetEntity(), in SetImage()
[all …]
H A Dnode_impl.cpp152 … [path, index, e = ecsObject_->GetEntity(), weak_sh = BASE_NS::weak_ptr(sceneHolder)] { in Activate()
312 CORE_NS::Entity NodeImpl::GetEntity() const in GetEntity() function in NodeImpl
315 return ecsObject_->GetEntity(); in GetEntity()
364 … auto clone = sceneHolder->CloneEntity(self->EcsObject()->GetEntity(), name, false); in CloneEcs()
483 … sceneHolder->RenameEntity(self->EcsObject()->GetEntity(), name); in RenameEntity()
747 auto entity = ecsNode->GetEntity(); in SetPathWithEcsNode()
1161 sceneHolder->SetMesh(self->GetEntity(), meshObject->GetEntity()); in SetMeshToEngine()
1214 auto entity = ecsObject_->GetEntity(); in ReleaseEntityOwnership()
1300 … if (sh->GetTransformComponentAABB(ret, self->GetEntity(), isRecursive)) { in GetTransformComponentAABB()
1389 auto entityName = sceneHolder->GetMeshName(self->GetEntity()); in InitializeMesh()
[all …]
H A Dmesh_impl.cpp116 … EcsObject()->GetEntity(), META_ACCESS_PROPERTY(SubMeshes), GetSelf<INodeEcsInterfacePrivate>()); in CompleteInitialization()
313 auto entityName = SceneHolder()->GetMaterialName(EcsObject()->GetEntity(), index); in GetMaterial()
331 … auto entityName = sceneHolder->GetMaterialName(self->GetEntity(), index); in GetMaterial()
399 … auto existingEntity = privateIntf->EcsObject()->GetEntity(); in UpdateMeshFromArrays()
449 … [source = interface_pointer_cast<SCENE_NS::ISubMeshPrivate>(submesh)->GetEntity(), in CloneSubmesh()
452 privateIntf->EcsObject()->GetEntity(), source, index); in CloneSubmesh()
H A Dintf_submesh_bridge.h38 virtual CORE_NS::Entity GetEntity() const = 0;
47 virtual CORE_NS::Entity GetEntity() const = 0;
H A Dscene_holder.cpp541 auto entity = node->GetEntity(); in CreateCamera()
989 entity = ecsNode->GetEntity(); in FindMesh()
1053 entity = ecsNode->GetEntity(); in FindMaterial()
1058 entity = created->GetEntity(); in FindMaterial()
1115 entity = ecsNode->GetEntity(); in FindAnimation()
1148 auto entity = ecsObject->GetEntity(); in UpdateAttachments()
1501 auto entity = cameraObject->GetEntity(); in ChangeCamera()
2627 auto nodeEntity = node->GetEntity(); in CreateMultiMeshInstance()
2653 auto entity = child->GetEntity(); in IsMultiMeshChild()
2694 auto entity = child->GetEntity(); in SetMeshMultimeshArray()
[all …]
H A Dentity_collection.cpp104 EntityReference EntityCollection::GetEntity(size_t collectionIndex) const in GetEntity() function in EntityCollection
113 EntityReference EntityCollection::GetEntity(string_view localContextId) const in GetEntity() function in EntityCollection
128 auto ret = GetEntity(localContextId); in GetEntityRecursive()
336 if (collections_[i]->GetEntity("/") == entity) { in GetSubCollectionIndexByRoot()
464 if (collection->GetEntity("/") == entity) { in isSubCollectionRoot()
596 if (!CORE_NS::EntityUtil::IsValid(targetCollection->GetEntity(postFixed))) { in AddEntityToSubcollection()
643 auto root = sc->GetEntity("/"); in CloneEntitiesFromCollection()
H A Dgraphicsstate_impl.cpp62 … mat->GetEntity(), (SceneHolder::ShaderType)type, st); in SetGraphicsState()
82 … sceneHolder->GetGraphicsState(mat->GetEntity(), (SceneHolder::ShaderType)type, ret); in GetGraphicsState()
H A Dsubmesh_impl.cpp144 CORE_NS::Entity GetEntity() const override in GetEntity() function in __anon6656fe970110::SubMeshImpl
148 return first->GetEntity(); in GetEntity()
H A Dmultimesh_impl.cpp112 … sceneHolder->SetMeshMultimeshArray(mm, mesh->EcsObject()->GetEntity()); in Build()
144 mm, material->EcsObject()->GetEntity()); in Build()
H A Dpostprocess_impl.cpp150 CORE_NS::Entity GetEntity() override in GetEntity() function in __anon9c5c9b250110::PostProcessImpl
153 return ecsObject_->GetEntity(); in GetEntity()
161 if (ecsObject_ && ecsObject_->GetEntity() == entity) { in SetEntity()
H A Dintf_postprocess_private.h29 virtual CORE_NS::Entity GetEntity() = 0;
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Dnode_system.cpp109 if (componentManager.HasComponent(node.GetEntity())) { in RecursivelyLookupNodesByComponent()
248 const auto currEntity = curNode->GetEntity(); in IsAncestorOf()
268 Entity GetEntity() const override in GetEntity() function in NodeSystem::SceneNode
303 nodeAccess_.SetParent(node.GetEntity(), *this); in AddChild()
314 nodeAccess_.SetParent(node.GetEntity(), *this); in InsertChild()
763 const auto newParent = node.GetEntity(); in SetParent()
833 auto entity = nodeComponentManager_.GetEntity(i); in Refresh()
1076 nodes.push_back(node.GetEntity()); in CloneNode()
1139 const auto entity = destroy->GetEntity(); in DestroyNode()
1144 entityManager.Destroy(destroy->GetEntity()); in DestroyNode()
[all …]
/ohos5.0/base/notification/common_event_service/test/systemtest/common/acts/actsCESMatchingSkillsTest/
H A DactsCESMatchingSkillsTest.cpp77 EXPECT_EQ(entity, matchingSkills.GetEntity(0));
79 EXPECT_EQ(false, entity == matchingSkills.GetEntity(1000));
120 EXPECT_EQ(entity, matchingSkills.GetEntity(0));
122 EXPECT_EQ(false, entity == matchingSkills.GetEntity(1000));
163 EXPECT_EQ(entity, matchingSkills.GetEntity(0));
165 EXPECT_EQ(false, entity == matchingSkills.GetEntity(1000));
166 EXPECT_EQ(true, "" == matchingSkills.GetEntity(1000));
218 EXPECT_EQ(entity, matchingSkills.GetEntity(0));
221 EXPECT_EQ(true, "" == matchingSkills.GetEntity(1000));
288 EXPECT_EQ(entityRemove, matchingSkills.GetEntity(1));
[all …]
/ohos5.0/base/notification/common_event_service/frameworks/native/test/unittest/
H A Dmatching_skills_test.cpp73 EXPECT_EQ(entity, matchSkills.GetEntity(0));
75 EXPECT_EQ(false, entity == matchSkills.GetEntity(MAX_COUNT));
240 EXPECT_EQ("", matchSkills.GetEntity(index));
258 EXPECT_EQ("", matchSkills.GetEntity(index));
276 EXPECT_EQ("event.unit.test", matchSkills.GetEntity(index));
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/
H A Dintf_ecs_object.h40 virtual CORE_NS::Entity GetEntity() const = 0;
68 virtual CORE_NS::Entity GetEntity() const = 0;
H A Dintf_ecs_animation.h32 virtual CORE_NS::Entity GetEntity() const = 0; in SCENE_BEGIN_NAMESPACE()
55 virtual CORE_NS::Entity GetEntity() const = 0;
H A Dintf_entity_collection.h67 virtual CORE_NS::EntityReference GetEntity(size_t collectionIndex) const = 0; in SCENE_BEGIN_NAMESPACE()
68 virtual CORE_NS::EntityReference GetEntity(BASE_NS::string_view localContextId) const = 0; in SCENE_BEGIN_NAMESPACE()
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/entity/
H A Dentity_factory.h39 WifiDirectEntity& GetEntity(InnerLink::LinkType type) in GetEntity() function
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Duri_lookup.cpp40 if (Entity entity = uriManager.GetEntity(i); entityManager.IsAlive(entity)) { in LookupResourceByUri()

123