Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 59) sorted by relevance

123

/base/update/updater/services/diffpatch/diff/
Dimage_diff.cpp35 static size_t GetHeaderSize(const ImageBlock &block) in GetHeaderSize() argument
37 switch (block.type) { in GetHeaderSize()
43 return sizeof(uint32_t) + sizeof(uint32_t) + block.newInfo.length; in GetHeaderSize()
70 ImageBlock block = { in MakePatch() local
75 updateBlocks_.push_back(std::move(block)); in MakePatch()
96 ImageBlock block = { in SplitImage() local
101 updateBlocks_.push_back(std::move(block)); in SplitImage()
104 ImageBlock block = { in SplitImage() local
109 updateBlocks_.push_back(std::move(block)); in SplitImage()
114 std::fstream &blockPatchFile, size_t &dataOffset, ImageBlock &block) const in WriteHeader()
[all …]
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_ring_buffer.h99 DfxRingBufferBlock<T> block; in Read() local
120 block.SetStart(&(data[read_position])); in Read()
121 block.SetLength(reads_to_end); in Read()
127 block.SetStart(&(data[read_position])); in Read()
128 block.SetLength(num_reads_requested); in Read()
157 block.SetStart(&(data[read_position])); in Read()
158 block.SetLength(max_num_reads); in Read()
161 return block; in Read()
/base/update/updater/test/unittest/test_data/updater/
Dfstab.updater4 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
5 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
6 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ext4 nosuid,nodev,noatime,barrier=1,da…
7 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
8 /dev/block/platform/soc/10100000.himci.eMMC/by-name/misc /misc none none wait
9 /dev/block/platform/soc/100f0000.himci.SD/mmcblk1p1 /sdcard vfat rw wait
/base/update/updater/test/unittest/applypatch_test/
Dblockset_unittest.cpp45 BlockSet block(std::vector<BlockPair> {BlockPair{0, 1}});
47 size_t countOfRanges = block.CountOfRanges();
49 auto itBegin = block.Begin();
50 auto itEnd = block.End();
51 auto itCBegin = block.CBegin();
52 auto itCEnd = block.CEnd();
53 auto itCrBegin = block.CrBegin();
54 auto itCrEnd = block.CrEnd();
65 auto ret = block.VerifySha256(buffer, block.TotalBlockSize(), sha256);
72 BlockSet block(std::vector<BlockPair> {BlockPair{0, 1}});
[all …]
/base/hiviewdfx/hiappevent/test/unittest/common/native/
Dhiappevent_cache_test.cpp60 auto block = AppEventCache::GetInstance()->GetBlock(TEST_BLOCK); variable
61 ASSERT_NE(block, nullptr);
104 auto block = AppEventCache::GetInstance()->GetBlock(TEST_BLOCK); variable
105 ASSERT_EQ(block, nullptr);
138 auto block = AppEventCache::GetInstance()->GetBlock(TEST_BLOCK); variable
139 ASSERT_NE(block, nullptr);
144 result = block->Add(TEST_PACKAGE);
157 result = block->Take(TEST_PACKAGE.size(), packages);
162 result = block->Remove(1);
165 result = block->GetStat(statPair);
[all …]
/base/update/updater/test/unittest/test_data/mount_unitest/
DFormatPartition1.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos / ext4 nosuid,nodev,noatime,barrier=1,data=…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ntfs nosuid,nodev,noatime,barrie…
18 /dev/block/platform/soc/10100000.himci.eMMC/by-name/misc /misc f2fs ro,barrier=1 wait
DGetMountStatusForPath1.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ext4 nosuid,nodev,noatime,barrier=1,da…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
18 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata1 /data/mount2 ext4 ro,barrier=1 wait
DMountForPath1.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/misc /misc ext4 ro,barrier=1 wait
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data1 ntfs nosuid,nodev,noatime,barri…
DReadFstabFromFile3.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ntfs nosuid,nodev,noatime,barrier=1,da…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
DSetupPartitions2.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system / ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /tmp ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/misc /misc ext4 ro,barrier=1 wait
DReadFstabFromFile1.fstable15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ntfs nosuid,nodev,noatime,barrier=1,da…
18 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
DReadFstabFromFile2.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ntfs nosuid,nodev,noatime,barrier=1,da…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
DGetMountFlags1.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ntfs nosuid,nodev,noatime,barrier=1,da…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
DFindFstabItemForPath1.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ntfs nosuid,nodev,noatime,barrier=1,da…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
DGetItemForMountPoint2.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ext4 nosuid,nodev,noatime,barrier=1,da…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
DGetBlockDeviceByMountPoint1.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ext4 nosuid,nodev,noatime,barrier=1,da…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
DReadFstabFromFile5.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ntfs nosuid,nodev,noatime,barrier=1,da…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
DReadFstabFromFile4.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ntfs nosuid,nodev,noatime,barrier=1,da…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
DFindFstabItemForMountPoint1.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos /hos ntfs nosuid,nodev,noatime,barrier=1,da…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrie…
/base/update/updater/test/fuzztest/fuzz_src_data/
DFormatPartition_fuzzer.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/hos / ext4 nosuid,nodev,noatime,barrier=1,data=…
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ntfs nosuid,nodev,noatime,barrie…
18 /dev/block/platform/soc/10100000.himci.eMMC/by-name/misc /misc f2fs ro,barrier=1 wait
DMountForPath_fuzzer.fstable14 /dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
15 /dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
16 /dev/block/platform/soc/10100000.himci.eMMC/by-name/misc /misc ext4 ro,barrier=1 wait
17 /dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data1 ntfs nosuid,nodev,noatime,barri…
/base/update/updater/services/diffpatch/
Ddiff_main.cpp24 int block; member
49 diffParams.block = atoi(optarg); in main()
60 if (diffParams.block != 1) { in main()
/base/update/updater/services/script/script_interpreter/
Dscript_yacc.y111 %type <UScriptStatementList*> block statement_list
129 function_definition: FUNCTION IDENTIFIER LP arglist RP block
134 FUNCTION IDENTIFIER LP RP block
311 block:LC RC
343 …atement: FOR LP expression_option SEMICOLON expression_option SEMICOLON expression_option RP block
348 while_statement: WHILE LP expression_option RP block
353 if_statement: IF LP expression RP block
357 | IF LP expression RP block ELSE if_statement
361 | IF LP expression RP block ELSE block
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
Dhap_signing_block_utils_test.cpp53 char block[TEST_FILE_BLOCK_LENGTH] = {0}; in CreatTestZipFile() local
56 hapFile.write(block, sizeof(block)); in CreatTestZipFile()
66 hapFile.write(block, sizeof(block)); in CreatTestZipFile()
70 … long long signBlockSize = (sizeof(HapSubSignBlockHead) + sizeof(block)) * TEST_FILE_BLOCK_COUNT + in CreatTestZipFile()
80 hapFile.write(block, sizeof(block)); in CreatTestZipFile()
85 unsigned int centralDirLen = sizeof(block); in CreatTestZipFile()
95 signInfo.hapSignatureBlock.PutData(0, block, sizeof(block)); in CreatTestZipFile()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/watcher/
Dapp_event_watcher.cpp51 auto block = AppEventCache::GetInstance()->GetBlock(name_); in ProcessEvent() local
52 if (block == nullptr) { in ProcessEvent()
56 if (block->Add(event) != 0) { in ProcessEvent()

123