Lines Matching full:events
153 bool ParseData(cJSON* events, std::vector<DeviceEvent>& eventData) in ParseData() argument
155 if (!cJSON_IsArray(events)) { in ParseData()
156 MMI_HILOGE("The events is not array"); in ParseData()
159 int32_t eventsSize = cJSON_GetArraySize(events); in ParseData()
161 cJSON* eventInfo = cJSON_GetArrayItem(events, i); in ParseData()
165 MMI_HILOGE("Failed to parse events"); in ParseData()
171 MMI_HILOGE("Events is error"); in ParseData()
224 << ",events:["; in ToString()
225 for (const auto &item : events) { in ToString()
257 cJSON *events = nullptr; in DataInit() local
258 if (cJSON_HasObjectItem(deviceInfo, "events")) { in DataInit()
259 events = cJSON_GetObjectItem(deviceInfo, "events"); in DataInit()
261 events = cJSON_GetObjectItem(deviceInfo, "singleEvent"); in DataInit()
263 if (!cJSON_IsArray(events)) { in DataInit()
264 MMI_HILOGE("The events is not array"); in DataInit()
267 if (!ParseData(events, deviceItem.events)) { in DataInit()