Searched refs:enumList (Results 1 – 2 of 2) sorted by relevance
545 static const std::list enumList = { ComponentType::OTA }; in ParseUpgradeFile() local546 PARAM_CHECK(IsValidEnum(enumList, fileType), return ClientStatus::CLIENT_INVALID_PARAM, in ParseUpgradeFile()601 static const std::list enumList = { EventClassify::TASK }; in GetEventClassifyInfoFromArg() local602 PARAM_CHECK(IsValidEnum(enumList, eventClassify), return ClientStatus::CLIENT_INVALID_TYPE, in GetEventClassifyInfoFromArg()
617 bool IsValidEnum(const std::list<T> &enumList, int32_t number) in IsValidEnum() argument619 for (auto i : enumList) { in IsValidEnum()