/foundation/ability/form_fwk/test/fuzztest/formproviderdata_fuzzer/ |
H A D | formproviderdata_fuzzer.cpp | 44 std::string picName(data, size); in DoSomethingInterestingWithMyAPI() 47 formProviderData.AddImageData(picName, datas, sizes); in DoSomethingInterestingWithMyAPI() 49 formProviderData.AddImageData(picName, fd); in DoSomethingInterestingWithMyAPI() 51 formProviderData.RemoveImageData(picName); in DoSomethingInterestingWithMyAPI() 65 formProviderData.WriteImageDataToParcel(parcel, picName, datas, sizes); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/form_fwk/interfaces/inner_api/src/ |
H A D | form_provider_data.cpp | 116 * @param picName Indicates the name of the image to add. 119 void FormProviderData::AddImageData(const std::string &picName, const std::shared_ptr<char> &data, int32_t size) in AddImageData() argument 121 if ((picName.length() == 0) || (!data)) { in AddImageData() 126 rawImageBytesMap_[picName] = std::make_pair(data, size); in AddImageData() 133 * @param picName Indicates the name of the image to add. 136 void FormProviderData::AddImageData(const std::string &picName, int fd) in AddImageData() argument 168 AddImageData(picName, data, size); in AddImageData() 192 * @brief Removes data of an image with the specified {@code picName} from this {@code FormProviderData} instance. 193 * @param picName Indicates the name of the image to remove. 195 void FormProviderData::RemoveImageData(std::string picName) in RemoveImageData() argument 314 auto picName = Str16ToStr8(parcel.ReadString16()); ReadFromParcel() local 394 WriteImageDataToParcel(Parcel &parcel, const std::string &picName, const std::shared_ptr<char> &data, int32_t size) const WriteImageDataToParcel() argument [all...] |
H A D | form_js_info.cpp | 210 auto picName = Str16ToStr8(parcel.ReadString16()); in ReadImageData() local 211 HILOG_INFO("picName:%{public}s", picName.c_str()); in ReadImageData() 212 imageDataMap[picName] = formAshmem; in ReadImageData()
|
/foundation/ability/form_fwk/interfaces/inner_api/include/ |
H A D | form_provider_data.h | 85 * @param picName Indicates the name of the image to add. 88 void AddImageData(const std::string &picName, int fd); 97 * @brief Removes data of an image with the specified {@code picName} from this {@code FormProviderData} instance. 98 * @param picName Indicates the name of the image to remove. 100 void RemoveImageData(std::string picName); 184 bool WriteImageDataToParcel(Parcel &parcel, const std::string &picName, const std::shared_ptr<char> &data, 189 * @param picName Indicates the name of the image to add. 192 void AddImageData(const std::string &picName, const std::shared_ptr<char> &data, int32_t size);
|
/foundation/ability/form_fwk/test/unittest/fms_form_provider_data_test/ |
H A D | fms_form_provider_data_test.cpp | 181 std::string picName = "image"; in HWTEST_F() local 185 formProviderData.AddImageData(picName, data, 1); in HWTEST_F() 200 std::string picName = "image"; in HWTEST_F() local 201 formProviderData.AddImageData(picName, 1); in HWTEST_F() 206 EXPECT_EQ(true, formProviderData.WriteImageDataToParcel(parcel, picName, data, 1)); in HWTEST_F() 236 std::string picName = "abc"; in HWTEST_F() local 239 formProviderData.AddImageData(picName, data, size); in HWTEST_F() 240 formProviderData.RemoveImageData(picName); in HWTEST_F() 366 std::string picName = "imageTest"; in HWTEST_F() local 368 formProviderData.AddImageData(picName, dat in HWTEST_F() 383 std::string picName = ""; HWTEST_F() local 400 std::string picName = "imageTest"; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/form/ |
H A D | sub_container.cpp | 437 auto picName = picNameArray[i]; in UpdateSharedImage() local 438 // save a copy of picName and ReleaseStringUTFChars immediately to avoid memory leak in UpdateSharedImage() 439 picNameCopy = picName; in UpdateSharedImage() 446 LOGE("dup fd fail, fail reason: %{public}s, fd: %{public}d, picName: %{private}s, length: %{public}d", in UpdateSharedImage() 459 const std::string& picName, Ashmem& ashmem, const RefPtr<PipelineBase>& pipelineContext, int len) in GetImageDataFromAshmem() 465 LOGE("MapReadOnlyAshmem fail, fail reason: %{public}s, picName: %{private}s, length: %{public}d, " in GetImageDataFromAshmem() 467 strerror(errno), picName.c_str(), len, ashmem.GetAshmemFd()); in GetImageDataFromAshmem() 472 LOGE("imageData is nullptr, errno is: %{public}s, picName: %{private}s, length: %{public}d, fd: %{public}d", in GetImageDataFromAshmem() 473 strerror(errno), picName.c_str(), len, ashmem.GetAshmemFd()); in GetImageDataFromAshmem() 481 sharedImageManager->AddSharedImage(picName, st in GetImageDataFromAshmem() 458 GetImageDataFromAshmem( const std::string& picName, Ashmem& ashmem, const RefPtr<PipelineBase>& pipelineContext, int len) GetImageDataFromAshmem() argument [all...] |
H A D | sub_container.h | 57 const std::string& picName, Ashmem& ashmem, const RefPtr<PipelineBase>& pipelineContext, int len);
|
/foundation/arkui/ace_engine/frameworks/base/resource/ |
H A D | shared_image_manager.cpp | 33 auto clearImageDataCallback = [wp = AceType::WeakClaim(this), picName = name, dataSize]() { in GenerateClearImageDataCallback() 40 sharedImageManager->sharedImageMap_.erase(picName); in GenerateClearImageDataCallback() 44 sharedImageManager->cancelableCallbackMap_.erase(picName); in GenerateClearImageDataCallback()
|
/foundation/ability/form_fwk/services/src/ |
H A D | form_cache_mgr.cpp | 300 const std::string& picName, const sptr<Ashmem> &ashmem, int32_t len, std::vector<uint8_t> &value) in GetImageDataFromAshmem() 302 HILOG_DEBUG("GetImageDataFromAshmem start picName:%{public}s", picName.c_str()); in GetImageDataFromAshmem() 304 HILOG_ERROR("null ashmem when picName:%{public}s", picName.c_str()); in GetImageDataFromAshmem() 310 HILOG_ERROR("MapReadOnlyAshmem fail, fail reason:%{public}s, picName:%{public}s", in GetImageDataFromAshmem() 311 strerror(errno), picName.c_str()); in GetImageDataFromAshmem() 322 HILOG_ERROR("ReadFromAshmem failed picName:%{public}s", picName.c_str()); in GetImageDataFromAshmem() 299 GetImageDataFromAshmem( const std::string& picName, const sptr<Ashmem> &ashmem, int32_t len, std::vector<uint8_t> &value) GetImageDataFromAshmem() argument
|
/foundation/ability/form_fwk/services/include/ |
H A D | form_cache_mgr.h | 71 const std::string& picName, const sptr<Ashmem> &ashmem, int32_t len, std::vector<uint8_t> &value);
|
/foundation/ability/form_fwk/test/unittest/fms_form_provider_data_new_leg_test/ |
H A D | fms_form_provider_data_new_leg_test.cpp | 76 std::string picName = "image"; in HWTEST_F() local 81 EXPECT_EQ(false, formProviderData.WriteImageDataToParcel(parcel, picName, data, 1)); in HWTEST_F() 96 std::string picName = "image"; in HWTEST_F() local 100 formProviderData.AddImageData(picName, data, 1); in HWTEST_F()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | ace_container.cpp | 2853 auto picName = picNameArray[i]; in UpdateSharedImage() local 2854 // save a copy of picName and ReleaseStringUTFChars immediately to avoid memory leak in UpdateSharedImage() 2855 picNameCopy = picName; in UpdateSharedImage() 2862 LOGE("dup fd fail, fail reason: %{public}s, fd: %{public}d, picName: %{private}s, length: %{public}d", in UpdateSharedImage() 2875 const std::string& picName, Ashmem& ashmem, const RefPtr<PipelineBase>& pipelineContext, int len) in GetImageDataFromAshmem() 2881 LOGE("MapReadOnlyAshmem fail, fail reason: %{public}s, picName: %{private}s, length: %{public}d, " in GetImageDataFromAshmem() 2883 strerror(errno), picName.c_str(), len, ashmem.GetAshmemFd()); in GetImageDataFromAshmem() 2888 LOGE("imageData is nullptr, errno is: %{public}s, picName: %{private}s, length: %{public}d, fd: %{public}d", in GetImageDataFromAshmem() 2889 strerror(errno), picName.c_str(), len, ashmem.GetAshmemFd()); in GetImageDataFromAshmem() 2897 sharedImageManager->AddSharedImage(picName, st in GetImageDataFromAshmem() 2874 GetImageDataFromAshmem( const std::string& picName, Ashmem& ashmem, const RefPtr<PipelineBase>& pipelineContext, int len) GetImageDataFromAshmem() argument [all...] |
H A D | ace_container.h | 573 const std::string& picName, Ashmem& ashmem, const RefPtr<PipelineBase>& pipelineContext, int len);
|