Lines Matching defs:data
87 void ParseOldConfigFile(cJSON* data, std::vector<BootAnimationConfig>& configs)
91 cJSON* custPicPath = cJSON_GetObjectItem(data, "cust.bootanimation.pics");
96 cJSON* custSoundPath = cJSON_GetObjectItem(data, "cust.bootanimation.sounds");
101 cJSON* custVideoDefaultPath = cJSON_GetObjectItem(data, "cust.bootanimation.video");
106 cJSON* custVideoExtraPath = cJSON_GetObjectItem(data, "cust.bootanimation.video.extra");
111 cJSON* rotateScreenJson = cJSON_GetObjectItem(data, "cust.bootanimation.rotate.screenid");
116 cJSON* rotateDegreeJson = cJSON_GetObjectItem(data, "cust.bootanimation.rotate.degree");
124 void ParseNewConfigFile(cJSON* data, bool& isMultiDisplay, std::vector<BootAnimationConfig>& configs)
127 cJSON* isSupport = cJSON_GetObjectItem(data, "cust.bootanimation.multi_display");
135 cJSON* screens = cJSON_GetObjectItem(data, "screen_config");
175 void ParseVideoExtraPath(cJSON* data, BootAnimationConfig& config)
177 int size = cJSON_GetArraySize(data);
179 cJSON* extraPath = cJSON_GetArrayItem(data, index);
186 void ParseBootDuration(cJSON* data, int32_t& duration)
188 cJSON* durationJson = cJSON_GetObjectItem(data, "cust.bootanimation.duration");
327 auto data = std::make_shared<Rosen::Drawing::Data>();
328 data->BuildFromMalloc(imageStruct->memPtr.memBuffer, bufferLen);
329 if (data->GetData() == nullptr) {
330 LOGE("data memory data is null. update data failed");
333 imageStruct->memPtr.setOwnerShip(data);
336 imageStruct->imageData->MakeFromEncoded(data);