Searched refs:PLUGGED_TYPE_NONE (Results 1 – 21 of 21) sorted by relevance
36 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;
81 PLUGGED_TYPE_NONE, enumerator
59 if ((isChangingType == static_cast<int>(BatteryPluggedType::PLUGGED_TYPE_NONE)) || in OnReceiveEvent()112 if ((isChangingType == BatteryPluggedType::PLUGGED_TYPE_NONE) || in RequestBatteryInfo()
45 pluggedType_ = BatteryPluggedType::PLUGGED_TYPE_NONE; in BatteryInfoReset()
56 if (pluggedType == static_cast<int32_t>(BatteryPluggedType::PLUGGED_TYPE_NONE) || in OnReceiveEvent()
132 …if (plugType == BatteryPluggedType::PLUGGED_TYPE_NONE || plugType == BatteryPluggedType::PLUGGED_T… in Init()
81 EXPECT_EQ ((status >= PLUGGED_TYPE_NONE && status <= PLUGGED_TYPE_BUTT), 1)
79 BatteryPluggedType state = PLUGGED_TYPE_NONE; in GetPluggedType()
45 const BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE; in SetUp()180 const BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE;
101 EXPECT_TRUE(pluggedType >= BatteryPluggedType::PLUGGED_TYPE_NONE &&
267 …pluggedType >= BatteryPluggedType::PLUGGED_TYPE_NONE && pluggedType <= BatteryPluggedType::PLUGGED…
234 if ((info.GetPluggedType() == BatteryPluggedType::PLUGGED_TYPE_NONE) || in PublishPowerConnectedEvent()266 if ((info.GetPluggedType() != BatteryPluggedType::PLUGGED_TYPE_NONE) && in PublishPowerDisconnectedEvent()
57 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()
151 SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_NONE);232 SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_NONE);
230 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…
710 EXPECT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_NONE);
102 ASSERT_TRUE(pluggedType >= BatteryPluggedType::PLUGGED_TYPE_NONE && in BENCHMARK_F()
107 PLUGGED_TYPE_NONE, enumerator
276 BatteryPluggedType state = PLUGGED_TYPE_NONE; in GetPluggedType()
335 napi_create_int32(env, (int32_t)BatteryPluggedType::PLUGGED_TYPE_NONE, &none); in CreateEnumPluggedType()
685 info1.SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_NONE);