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