Home
last modified time | relevance | path

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

/base/powermgr/battery_statistics/test/unittest/src/servicetest/
Dstats_service_core_test.cpp66 EXPECT_EQ(nullptr, statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_INVALID));
67 EXPECT_NE(nullptr, statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP));
68 EXPECT_NE(nullptr, statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH));
69 EXPECT_NE(nullptr, statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_IDLE));
70 EXPECT_NE(nullptr, statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE));
71 EXPECT_NE(nullptr, statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN));
72 EXPECT_NE(nullptr, statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_USER));
73 EXPECT_NE(nullptr, statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI));
74 EXPECT_NE(nullptr, statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_CAMERA));
75 EXPECT_NE(nullptr, statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_FLASHLIGHT));
[all …]
Dstats_service_alarm_test.cpp217 auto alarmEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_ALARM);
255 auto uidEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP);
Dstats_service_powermgr_test.cpp409 auto sensorEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_SENSOR);
456 auto wakelockEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_WAKELOCK);
Dstats_service_audio_test.cpp347 auto audioEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_AUDIO);
Dstats_service_camera_test.cpp778 auto cameraEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_CAMERA);
819 auto flashlightEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_FLASHLIGHT);
Dstats_service_location_test.cpp471 auto gnssEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_GNSS);
Dstats_service_bluetooth_test.cpp1464 auto bluetoothEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH);
/base/powermgr/battery_statistics/services/native/src/entities/
Duid_entity.cpp65 auto bluetoothEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); in CalculateForConnectivity()
78 auto cameraEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_CAMERA); in CalculateForCommon()
79 auto flashlightEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_FLASHLIGHT); in CalculateForCommon()
80 auto audioEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_AUDIO); in CalculateForCommon()
81 auto sensorEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_SENSOR); in CalculateForCommon()
82 auto gnssEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_GNSS); in CalculateForCommon()
83 auto cpuEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_CPU); in CalculateForCommon()
84 auto wakelockEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_WAKELOCK); in CalculateForCommon()
85 auto alarmEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_ALARM); in CalculateForCommon()
119 auto userEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_USER); in Calculate()
[all …]
Dbluetooth_entity.cpp431 auto uidEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP); in GetBluetoothUidPower()
/base/notification/common_event_service/frameworks/native/test/unittest/
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));
/base/notification/common_event_service/test/systemtest/common/acts/actsCESMatchingSkillsTest/
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));
220 EXPECT_EQ(false, entity == matchingSkills.GetEntity(1000));
221 EXPECT_EQ(true, "" == matchingSkills.GetEntity(1000));
[all …]
/base/notification/common_event_service/interfaces/inner_api/
Dmatching_skills.h44 std::string GetEntity(size_t index) const;
/base/notification/common_event_service/test/fuzztest/matchingskills_fuzzer/
Dmatchingskills_fuzzer.cpp61 matchingSkills.GetEntity(index); in DoSomethingInterestingWithMyAPI()
/base/powermgr/battery_statistics/services/native/src/
Dcpu_time_reader.cpp231 … g_statsService->GetBatteryStatsCore()->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP); in ReadUidCpuActiveTime()
314 …auto uidEntity = g_statsService->GetBatteryStatsCore()->GetEntity(BatteryStatsInfo::CONSUMPTION_TY… in ReadUidCpuClusterTime()
452 … g_statsService->GetBatteryStatsCore()->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP); in ReadUidCpuFreqTime()
536 … g_statsService->GetBatteryStatsCore()->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP); in ReadUidCpuTime()
Dbattery_stats_core.cpp169 std::shared_ptr<BatteryStatsEntity> BatteryStatsCore::GetEntity(const BatteryStatsInfo::Consumption… in GetEntity() function in OHOS::PowerMgr::BatteryStatsCore
/base/powermgr/battery_statistics/services/native/include/
Dbattery_stats_core.h55 std::shared_ptr<BatteryStatsEntity> GetEntity(const BatteryStatsInfo::ConsumptionType& type);
/base/notification/common_event_service/frameworks/native/src/
Dmatching_skills.cpp35 std::string MatchingSkills::GetEntity(size_t index) const in GetEntity() function in OHOS::EventFwk::MatchingSkills
/base/notification/common_event_service/services/src/
Dcommon_event_subscriber_manager.cpp179 …entities = entities + separator + record->eventSubscribeInfo->GetMatchingSkills().GetEntity(entity… in DumpDetailed()
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/
Dcommon_event_services_system_test.cpp2436 EXPECT_EQ(matchingSkills.GetEntity(0), entity);
/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/
DactsCESManagertest.cpp3019 if (!(matchingSkills.GetEntity(0) == entity)) {