Searched refs:DeviceStateCache (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/foundation/resourceschedule/device_standby/services/test/unittest/ |
H A D | standby_service_unit_test.cpp | 1150 DeviceStateCache::GetInstance()->deviceState_ = {true, true, false}; 1151 EXPECT_EQ(DeviceStateCache::GetInstance()->GetDeviceState(type), false); 1153 type = DeviceStateCache::DEVICE_STATE_NUM; 1154 EXPECT_EQ(DeviceStateCache::GetInstance()->GetDeviceState(type), false); 1157 EXPECT_EQ(DeviceStateCache::GetInstance()->GetDeviceState(type), true); 1170 EXPECT_EQ(DeviceStateCache::GetInstance()->SetDeviceState(type, enabled), false); 1172 type = DeviceStateCache::DEVICE_STATE_NUM; 1173 EXPECT_EQ(DeviceStateCache::GetInstance()->SetDeviceState(type, enabled), false); 1176 DeviceStateCache::GetInstance()->deviceState_ = {true, true, false}; 1180 DeviceStateCache::GetInstance()->deviceState_ = {true, true, false}; [all …]
|
/ohos5.0/foundation/resourceschedule/device_standby/services/core/src/ |
H A D | standby_service_impl.cpp | 961 DeviceStateCache::GetInstance()->SetDeviceState(static_cast<int32_t>(type), enabled); in ReportDeviceStateChanged() 988 DeviceStateCache::GetInstance()->SetDeviceState( in HandleCallStateChanged() 997 DeviceStateCache::GetInstance()->SetDeviceState( in HandleP2PStateChanged() 1444 IMPLEMENT_SINGLE_INSTANCE(DeviceStateCache); 1446 DeviceStateCache::DeviceStateCache() in DeviceStateCache() function in OHOS::DevStandbyMgr::DeviceStateCache 1451 DeviceStateCache::~DeviceStateCache() {} in ~DeviceStateCache() 1453 bool DeviceStateCache::SetDeviceState(int32_t type, bool enabled) in SetDeviceState() 1467 bool DeviceStateCache::GetDeviceState(int32_t type) in GetDeviceState()
|
/ohos5.0/foundation/resourceschedule/device_standby/services/ |
H A D | libstandby_service.versionscript | 31 *DeviceStateCache*;
|
/ohos5.0/foundation/resourceschedule/device_standby/services/core/include/ |
H A D | standby_service_impl.h | 210 class DeviceStateCache { 211 DECLARE_SINGLE_INSTANCE(DeviceStateCache);
|