Searched refs:charger (Results 1 - 3 of 3) sorted by relevance
/foundation/resourceschedule/work_scheduler/frameworks/extension/src/ |
H A D | js_work_scheduler_extension.cpp | 237 void SetChargerTypeInfo(napi_env env, napi_value workInfoData, WorkCondition::Charger charger) in SetChargerTypeInfo() argument 239 if (charger != WorkCondition::Charger::CHARGING_UNKNOWN) { in SetChargerTypeInfo() 240 if (charger == WorkCondition::Charger::CHARGING_UNPLUGGED) { in SetChargerTypeInfo() 250 napi_create_int32(env, charger, &chargerTypeValue); in SetChargerTypeInfo() 354 WorkCondition::Charger charger = workInfo.GetChargerType(); in OnWorkStart() local 379 SetChargerTypeInfo(env, workInfoData, charger); in OnWorkStart() 406 WorkCondition::Charger charger = workInfo.GetChargerType(); in OnWorkStop() local 431 SetChargerTypeInfo(env, workInfoData, charger); in OnWorkStop()
|
/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/src/ |
H A D | common.cpp | 480 WorkCondition::Charger charger = workInfo-> GetChargerType(); in GetConditionInfo() local 481 if (charger != WorkCondition::Charger::CHARGING_UNKNOWN) { in GetConditionInfo() 483 if (charger == WorkCondition::Charger::CHARGING_UNPLUGGED) { in GetConditionInfo() 490 napi_create_int32(env, static_cast<int32_t>(charger), &napiChargerType); in GetConditionInfo()
|
/foundation/resourceschedule/work_scheduler/frameworks/src/ |
H A D | work_info.cpp | 220 WorkCondition::Charger charger = WorkCondition::Charger(enumVal); in GetChargerType() local 221 return WorkCondition::Charger(charger); in GetChargerType()
|
Completed in 4 milliseconds