Home
last modified time | relevance | path

Searched refs:blob (Results 1 - 25 of 158) sorted by relevance

1234567

/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/src/
H A Dblob.cpp18 #include "blob.h"
26 Blob::Blob(const Blob &blob) in Blob() argument
28 blob_ = blob.Data(); in Blob()
31 Blob::Blob(Blob &&blob) in Blob() argument
33 blob_.swap(blob.blob_); in Blob()
36 Blob &Blob::operator=(const Blob &blob) in operator =() argument
39 if (&blob == this) { in operator =()
43 blob_ = blob.Data(); in operator =()
48 Blob &Blob::operator=(Blob &&blob) in operator =() argument
51 if (&blob in operator =()
[all...]
/foundation/distributeddatamgr/kv_store/test/fuzztest/blob_fuzzer/
H A Dblob_fuzzer.cpp23 #include "blob.h"
27 void BlobSelfOption(const Blob &blob) in BlobSelfOption() argument
29 blob.Empty(); in BlobSelfOption()
30 blob.Size(); in BlobSelfOption()
31 blob.Data(); in BlobSelfOption()
32 blob.ToString(); in BlobSelfOption()
33 blob.RawSize(); in BlobSelfOption()
44 void BlobOption(const Blob &blob) in BlobOption() argument
46 BlobSelfOption(blob); in BlobOption()
47 Blob blobTmp(blob); in BlobOption()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/
H A Dtext_blob_test.cpp64 OH_Drawing_TextBlob* blob = OH_Drawing_TextBlobBuilderMake(builder); in OnTestPerformance() local
66 canvas, blob, rand.nextULessThan(bitmapWidth_), rand.nextULessThan(bitmapHeight_)); in OnTestPerformance()
69 OH_Drawing_TextBlobDestroy(blob); in OnTestPerformance()
81 OH_Drawing_TextBlob* blob = OH_Drawing_TextBlobCreateFromText(text.c_str(), len, font, TEXT_ENCODING_UTF8); in OnTestPerformance() local
83 canvas, blob, rand.nextULessThan(bitmapWidth_), rand.nextULessThan(bitmapHeight_)); in OnTestPerformance()
84 OH_Drawing_TextBlobDestroy(blob); in OnTestPerformance()
99 OH_Drawing_TextBlob* blob = in OnTestPerformance() local
102 canvas, blob, rand.nextULessThan(bitmapWidth_), rand.nextULessThan(bitmapHeight_)); in OnTestPerformance()
103 OH_Drawing_TextBlobDestroy(blob); in OnTestPerformance()
115 OH_Drawing_TextBlob* blob in OnTestPerformance() local
129 OH_Drawing_TextBlob* blob = OH_Drawing_TextBlobCreateFromString(text.c_str(), font, TEXT_ENCODING_UTF8); OnTestPerformance() local
163 OH_Drawing_TextBlob* blob = OH_Drawing_TextBlobBuilderMake(builder); OnTestPerformance() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Ddata_value.cpp36 Blob::Blob(Blob &&blob) : ptr_(blob.ptr_), size_(blob.size_) in Blob() argument
38 blob.ptr_ = nullptr; in Blob()
39 blob.size_ = 0; in Blob()
42 Blob &Blob::operator=(Blob &&blob) noexcept
44 if (&blob != this) {
46 ptr_ = blob.ptr_;
47 size_ = blob.size_;
48 blob
171 operator =(const Blob &blob) operator =() argument
177 Set(Blob *&blob) Set() argument
[all...]
/foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include/
H A Dblob.h41 API_EXPORT Blob(const Blob &blob);
46 API_EXPORT Blob &operator=(const Blob &blob);
51 API_EXPORT Blob(Blob &&blob);
56 API_EXPORT Blob &operator=(Blob &&blob);
94 * @brief Return a reference to the data of the blob.
115 * @brief Return the occupied length when write this blob to rawdata.
139 * @brief Change this blob to refer to an empty array.
152 * < 0 if "*this" < "blob".
153 * == 0 if "*this" == "blob".
154 * > 0 if "*this" > "blob"
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/
H A Dskbug_8955.cpp45 auto blob = OH_Drawing_TextBlobCreateFromText("+", 1, font, TEXT_ENCODING_UTF8); // 1 为字符串长度 in OnTestFunction() local
51 OH_Drawing_CanvasDrawTextBlob(canvas, blob, x, y); in OnTestFunction()
53 OH_Drawing_CanvasDrawTextBlob(canvas, blob, x, y); in OnTestFunction()
58 OH_Drawing_TextBlobDestroy(blob); in OnTestFunction()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_sqlite_utils_test.cpp75 * @tc.desc: Get blob size over limit
84 vector<uint8_t> blob; in HWTEST_F() local
85 blob.resize(MAX_BLOB_READ_SIZE + 2); // 2: over limit in HWTEST_F()
86 std::fill(blob.begin(), blob.end(), static_cast<uint8_t>('a')); in HWTEST_F()
88 NativeSqlite::ExecSql(g_db, "INSERT INTO t1 VALUES(?, ?)", [&blob](sqlite3_stmt *stmt) { in HWTEST_F()
90 (void)SQLiteUtils::BindBlobToStatement(stmt, 2, blob); // 2: bind index in HWTEST_F()
104 * @tc.desc: Get blob size equal limit
113 vector<uint8_t> blob; in HWTEST_F() local
114 blob in HWTEST_F()
142 vector<uint8_t> blob; HWTEST_F() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/
H A Dskia_text_blob_test.cpp122 auto blob = SkiaTextBlob::MakeFromRSXform(str, strlen(str), xform, font, TextEncoding::UTF8); in HWTEST_F() local
123 ASSERT_TRUE(blob != nullptr); in HWTEST_F()
124 auto path = SkiaTextBlob::GetDrawingPathforTextBlob(glyphId, blob.get()); in HWTEST_F()
142 auto blob = SkiaTextBlob::MakeFromPosText(str, strlen(str), pos, font, TextEncoding::UTF8); in HWTEST_F() local
143 ASSERT_TRUE(blob != nullptr); in HWTEST_F()
145 SkiaTextBlob::GetDrawingPointsForTextBlob(blob.get(), points); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/text/
H A Dtext_blob.cpp75 void TextBlob::GetDrawingGlyphIDforTextBlob(const TextBlob* blob, std::vector<uint16_t>& glyphIds) in GetDrawingGlyphIDforTextBlob() argument
77 StaticFactory::GetDrawingGlyphIDforTextBlob(blob, glyphIds); in GetDrawingGlyphIDforTextBlob()
80 Path TextBlob::GetDrawingPathforTextBlob(uint16_t glyphId, const TextBlob* blob) in GetDrawingPathforTextBlob() argument
82 return StaticFactory::GetDrawingPathforTextBlob(glyphId, blob); in GetDrawingPathforTextBlob()
85 void TextBlob::GetDrawingPointsForTextBlob(const TextBlob* blob, std::vector<Point>& points) in GetDrawingPointsForTextBlob() argument
87 return StaticFactory::GetDrawingPointsForTextBlob(blob, points); in GetDrawingPointsForTextBlob()
/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/
H A Dtexgine_text_blob_builder.cpp37 auto blob = textBlobBuilder_->Make(); in Make() local
38 if (blob == nullptr) { in Make()
41 tb->SetTextBlob(blob); in Make()
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/impl/
H A Ddrawing_painter_impl.cpp95 void RSCanvasParagraphPainter::DrawSymbolSkiaTxt(RSTextBlob* blob, const RSPoint& offset, in DrawSymbolSkiaTxt() argument
107 hmSymbolRun.DrawSymbol(canvas_, blob, offset, pr.symbol); in DrawSymbolSkiaTxt()
112 hmSymbolRun.DrawSymbol(canvas_, blob, offset, pr.symbol); in DrawSymbolSkiaTxt()
116 hmSymbolRun.DrawSymbol(canvas_, blob, offset, pr.symbol); in DrawSymbolSkiaTxt()
122 hmSymbolRun.DrawSymbol(canvas_, blob, offset, pr.symbol); in DrawSymbolSkiaTxt()
127 void RSCanvasParagraphPainter::drawTextBlob(const std::shared_ptr<RSTextBlob>& blob, SkScalar x, SkScalar y, in drawTextBlob() argument
135 RSTextBlob::GetDrawingPointsForTextBlob(blob.get(), points); in drawTextBlob()
142 DrawSymbolSkiaTxt(blob.get(), offset, pr); in drawTextBlob()
145 canvas_->DrawTextBlob(blob.get(), x, y); in drawTextBlob()
148 canvas_->DrawTextBlob(blob in drawTextBlob()
182 drawTextShadow(const std::shared_ptr<RSTextBlob>& blob, SkScalar x, SkScalar y, SkColor color, SkScalar blurSigma) drawTextShadow() argument
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dpng_exif_metadata_accessor.cpp101 bool PngExifMetadataAccessor::ProcessExifData(DataBuf &blob, std::string chunkType, uint32_t chunkLength) in ProcessExifData() argument
111 return FindTiffFromText(chunkData, chunkType, blob); in ProcessExifData()
113 blob = chunkData; in ProcessExifData()
117 bool PngExifMetadataAccessor::ReadBlob(DataBuf &blob) in ReadBlob() argument
150 if (ProcessExifData(blob, chunkType, chunkLength)) { in ReadBlob()
161 tiffOffset_ = imageStream_->Tell() - static_cast<long>(blob.Size()); in ReadBlob()
169 IMAGE_LOGD("Failed to read the blob."); in Read()
357 uint32_t PngExifMetadataAccessor::WriteBlob(DataBuf &blob) in WriteBlob() argument
368 if (blob.Empty()) { in WriteBlob()
369 IMAGE_LOGE("Image exif blob dat in WriteBlob()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/engine_adapter/
H A Dstatic_factory_test.cpp153 std::shared_ptr<TextBlob> blob = in HWTEST_F() local
155 StaticFactory::GetDrawingGlyphIDforTextBlob(blob.get(), glyphId); in HWTEST_F()
156 ASSERT_TRUE(blob != nullptr); in HWTEST_F()
170 std::shared_ptr<TextBlob> blob = in HWTEST_F() local
173 StaticFactory::GetDrawingPointsForTextBlob(blob.get(), points); in HWTEST_F()
174 ASSERT_TRUE(blob != nullptr); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_text_blob.cpp185 void SkiaTextBlob::GetDrawingGlyphIDforTextBlob(const TextBlob* blob, std::vector<uint16_t>& glyphIds) in GetDrawingGlyphIDforTextBlob() argument
188 if (blob) { in GetDrawingGlyphIDforTextBlob()
189 auto skiaBlobImpl = blob->GetImpl<SkiaTextBlob>(); in GetDrawingGlyphIDforTextBlob()
197 Path SkiaTextBlob::GetDrawingPathforTextBlob(uint16_t glyphId, const TextBlob* blob) in GetDrawingPathforTextBlob() argument
200 if (blob) { in GetDrawingPathforTextBlob()
201 auto skiaBlobImpl = blob->GetImpl<SkiaTextBlob>(); in GetDrawingPathforTextBlob()
212 void SkiaTextBlob::GetDrawingPointsForTextBlob(const TextBlob* blob, std::vector<Point>& points) in GetDrawingPointsForTextBlob() argument
214 if (blob == nullptr) { in GetDrawingPointsForTextBlob()
218 if (blob) { in GetDrawingPointsForTextBlob()
219 auto skiaBlobImpl = blob in GetDrawingPointsForTextBlob()
[all...]
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_insert_test.cpp223 std::vector<uint8_t> blob; in CheckBlob() local
230 ret = resultSet->GetBlob(columnIndex, blob); in CheckBlob()
232 EXPECT_EQ(3, static_cast<int>(blob.size())); in CheckBlob()
233 EXPECT_EQ(1, blob[0]); in CheckBlob()
234 EXPECT_EQ(2, blob[1]); in CheckBlob()
235 EXPECT_EQ(3, blob[2]); in CheckBlob()
467 std::vector<uint8_t> blob; in HWTEST_F() local
477 ret = resultSet->GetBlob(columnIndex, blob); in HWTEST_F()
479 EXPECT_EQ(3, static_cast<int>(blob.size())); in HWTEST_F()
480 EXPECT_EQ(1, blob[ in HWTEST_F()
525 std::vector<uint8_t> blob; HWTEST_F() local
742 std::vector<uint8_t> blob; HWTEST_F() local
[all...]
H A Drdb_store_concurrent_test.cpp282 std::vector<uint8_t> blob; in CheckBlob() local
289 errCode = resultSet.GetBlob(columnIndex, blob); in CheckBlob()
294 if (static_cast<int>(blob.size()) != 3) { in CheckBlob()
298 if (blob[0] != 1 || blob[1] != 2 || blob[3] != 2) { in CheckBlob()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/include/
H A Djpeg_exif_metadata_accessor.h34 bool ReadBlob(DataBuf &blob) override;
36 uint32_t WriteBlob(DataBuf &blob) override;
43 bool GetExifBlob(const DataBuf &blob, uint8_t **dataBlob, uint32_t &size);
H A Dwebp_exif_metadata_accessor.h43 bool ReadBlob(DataBuf &blob) override;
45 uint32_t WriteBlob(DataBuf &blob) override;
49 bool GetExifBlob(const DataBuf &blob, uint8_t **dataBlob, uint32_t &size);
H A Ddng_exif_metadata_accessor.h31 bool ReadBlob(DataBuf &blob) override;
33 uint32_t WriteBlob(DataBuf &blob) override;
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_db_helper.cpp51 bool NetFirewallDbHelper::DomainListToBlob(const std::vector<NetFirewallDomainParam> &vec, std::vector<uint8_t> &blob, in DomainListToBlob() argument
54 blob.clear(); in DomainListToBlob()
60 blob.emplace_back(param.isWildcard ? 1 : 0); in DomainListToBlob()
64 blob.emplace_back(sizePtr[0]); in DomainListToBlob()
65 blob.emplace_back(sizePtr[1]); in DomainListToBlob()
68 blob.insert(blob.end(), domain.begin(), domain.end()); in DomainListToBlob()
70 return blob.size() > 0; in DomainListToBlob()
73 bool NetFirewallDbHelper::BlobToDomainList(const std::vector<uint8_t> &blob, std::vector<NetFirewallDomainParam> &vec) in BlobToDomainList() argument
76 size_t blobSize = blob in BlobToDomainList()
108 ListToBlob(const std::vector<T> &vec, std::vector<uint8_t> &blob) ListToBlob() argument
120 BlobToList(const std::vector<uint8_t> &blob, std::vector<T> &vec) BlobToList() argument
154 std::vector<uint8_t> blob; FillValuesOfFirewallRule() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Dvirtual_cloud_data_translate.h28 Asset BlobToAsset(const std::vector<uint8_t> &blob) override;
29 Assets BlobToAssets(const std::vector<uint8_t> &blob) override;
H A Dvirtual_cloud_data_translate.cpp96 Asset VirtualCloudDataTranslate::BlobToAsset(const std::vector<uint8_t> &blob) in BlobToAsset() argument
98 Parcel parcel(const_cast<uint8_t *>(blob.data()), blob.size()); in BlobToAsset()
103 Assets VirtualCloudDataTranslate::BlobToAssets(const std::vector<uint8_t> &blob) in BlobToAssets() argument
105 std::vector<uint8_t> inputData = blob; in BlobToAssets()
/foundation/filemanagement/storage_service/services/storage_daemon/include/mock/
H A Dbase_key_mock.h40 virtual bool SaveKeyBlob(const KeyBlob &blob, const std::string &path) = 0;
41 virtual bool LoadKeyBlob(KeyBlob &blob, const std::string &path, const uint32_t size) = 0;
61 MOCK_METHOD2(SaveKeyBlob, bool(const KeyBlob &blob, const std::string &path));
62 MOCK_METHOD3(LoadKeyBlob, bool(KeyBlob &blob, const std::string &path, const uint32_t size));
/foundation/filemanagement/storage_service/services/storage_daemon/mock/
H A Dbase_key_mock.cpp142 bool BaseKey::SaveKeyBlob(const KeyBlob &blob, const std::string &path) in SaveKeyBlob() argument
147 return IBaseKeyMoc::baseKeyMoc->SaveKeyBlob(blob, path); in SaveKeyBlob()
150 bool BaseKey::LoadKeyBlob(KeyBlob &blob, const std::string &path, const uint32_t size) in LoadKeyBlob() argument
155 return IBaseKeyMoc::baseKeyMoc->LoadKeyBlob(blob, path, size); in LoadKeyBlob()
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/symbol_engine/
H A Dhm_symbol_run.cpp91 void HMSymbolRun::DrawSymbol(RSCanvas* canvas, RSTextBlob* blob, const RSPoint& offset, const HMSymbolTxt& symbolTxt) in DrawSymbol() argument
93 if (canvas == nullptr || blob == nullptr) { in DrawSymbol()
99 RSTextBlob::GetDrawingGlyphIDforTextBlob(blob, glyphIds); in DrawSymbol()
102 OHOS::Rosen::Drawing::Path path = RSTextBlob::GetDrawingPathforTextBlob(glyphId, blob); in DrawSymbol()
107 path = RSTextBlob::GetDrawingPathforTextBlob(symbolData.symbolInfo_.symbolGlyphId, blob); in DrawSymbol()
124 canvas->DrawTextBlob(blob, offset.GetX(), offset.GetY()); in DrawSymbol()

Completed in 14 milliseconds

1234567