Home
last modified time | relevance | path

Searched refs:PLUGGED_TYPE_NONE (Results 1 – 21 of 21) sorted by relevance

/base/web/webview/test/unittest/battery_mgr_adapter_impl/
Dbattery_mgr_adapter_test.cpp36 BatteryPluggedType g_pluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE;
112 want.SetParam(key, static_cast<int>(BatteryPluggedType::PLUGGED_TYPE_NONE));
178 g_pluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE;
/base/powermgr/battery_lite/interfaces/kits/
Dbattery_info.h81 PLUGGED_TYPE_NONE, enumerator
/base/web/webview/ohos_adapter/battery_mgr_adapter/src/
Dbattery_mgr_client_adapter_impl.cpp59 if ((isChangingType == static_cast<int>(BatteryPluggedType::PLUGGED_TYPE_NONE)) || in OnReceiveEvent()
112 if ((isChangingType == BatteryPluggedType::PLUGGED_TYPE_NONE) || in RequestBatteryInfo()
/base/powermgr/battery_statistics/test/unittest/include/servicetest/
Dstats_service_subscriber_test.h45 pluggedType_ = BatteryPluggedType::PLUGGED_TYPE_NONE; in BatteryInfoReset()
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_subscriber.cpp56 if (pluggedType == static_cast<int32_t>(BatteryPluggedType::PLUGGED_TYPE_NONE) || in OnReceiveEvent()
Dbattery_stats_core.cpp132 …if (plugType == BatteryPluggedType::PLUGGED_TYPE_NONE || plugType == BatteryPluggedType::PLUGGED_T… in Init()
/base/powermgr/battery_lite/test/Interface_test/test/unittest/src/
Dbatterymgr_interfaces_test.cpp81 EXPECT_EQ ((status >= PLUGGED_TYPE_NONE && status <= PLUGGED_TYPE_BUTT), 1)
/base/powermgr/battery_lite/frameworks/native/src/mini/
Dbattery_framework.c79 BatteryPluggedType state = PLUGGED_TYPE_NONE; in GetPluggedType()
/base/powermgr/battery_manager/test/unittest/src/
Dbattery_notify_test.cpp45 const BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE; in SetUp()
180 const BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE;
Dbattery_srv_proxy_mock_test.cpp101 EXPECT_TRUE(pluggedType >= BatteryPluggedType::PLUGGED_TYPE_NONE &&
Dbattery_service_test.cpp267 …pluggedType >= BatteryPluggedType::PLUGGED_TYPE_NONE && pluggedType <= BatteryPluggedType::PLUGGED…
/base/powermgr/battery_manager/services/native/src/
Dbattery_notify.cpp234 if ((info.GetPluggedType() == BatteryPluggedType::PLUGGED_TYPE_NONE) || in PublishPowerConnectedEvent()
266 if ((info.GetPluggedType() != BatteryPluggedType::PLUGGED_TYPE_NONE) && in PublishPowerDisconnectedEvent()
Dbattery_service.cpp57 BatteryPluggedType g_lastPluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE;
296 if (g_lastPluggedType != BatteryPluggedType::PLUGGED_TYPE_NONE && in IsLastPlugged()
305 if (pluggedType != BatteryPluggedType::PLUGGED_TYPE_NONE && in IsNowPlugged()
674 batteryInfo_.SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_NONE); in MockUnplugged()
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
Dstats_service_subscriber_test.cpp151 SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_NONE);
232 SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_NONE);
/base/powermgr/battery_manager/test/systemtest/src/
Dbattery_event_system_test.cpp230 EXPECT_NE(maxVoltage, static_cast<int32_t>(BatteryPluggedType::PLUGGED_TYPE_NONE)) in OnReceiveEvent()
597 …EXPECT_TRUE(BatteryPluggedType::PLUGGED_TYPE_NONE == BatterySrvClient::GetInstance().GetPluggedTyp…
614 …EXPECT_TRUE(BatteryPluggedType::PLUGGED_TYPE_NONE == BatterySrvClient::GetInstance().GetPluggedTyp…
Dbattery_sttest.cpp710 EXPECT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_NONE);
/base/powermgr/battery_manager/test/benchmarktest/
Dbattery_benchmark_test.cpp102 ASSERT_TRUE(pluggedType >= BatteryPluggedType::PLUGGED_TYPE_NONE && in BENCHMARK_F()
/base/powermgr/battery_manager/interfaces/inner_api/native/include/
Dbattery_info.h107 PLUGGED_TYPE_NONE, enumerator
/base/powermgr/battery_lite/frameworks/native/src/small/
Dbattery_framework.c276 BatteryPluggedType state = PLUGGED_TYPE_NONE; in GetPluggedType()
/base/powermgr/battery_manager/frameworks/napi/
Dbattery_info.cpp335 napi_create_int32(env, (int32_t)BatteryPluggedType::PLUGGED_TYPE_NONE, &none); in CreateEnumPluggedType()
/base/powermgr/battery_manager/frameworks/native/test/unittest/src/
Dbattery_client_test.cpp685 info1.SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_NONE);