Home
last modified time | relevance | path

Searched refs:Block (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/adb/
Dtypes_test.cpp244 static Block block_from_header(amessage& header) { in block_from_header()
245 Block b{sizeof(amessage)}; in block_from_header()
259 static std::vector<Block> packets_to_blocks(const std::vector<apacket>& packets) { in packets_to_blocks()
260 std::vector<Block> blocks; in packets_to_blocks()
263 Block header{sizeof(amessage)}; in packets_to_blocks()
269 Block payload{p.msg.data_length}; in packets_to_blocks()
283 void runAndVerifyAPacketTest(std::vector<Block>& traffic, const std::vector<apacket>& expected) { in runAndVerifyAPacketTest()
311 blocks.emplace(blocks.begin(), Block{0}); in TEST()
312 blocks.emplace_back(Block{0}); in TEST()
353 std::vector<Block> blocks; in TEST()
[all …]
Dtypes.h35 struct Block { struct
38 Block() = default; argument
40 explicit Block(size_t size) { allocate(size); } in Block() argument
42 explicit Block(const std::string& s) : Block(s.begin(), s.end()) {} in Block() argument
45 Block(Iterator begin, Iterator end) : Block(end - begin) { in Block() argument
49 Block(const Block& copy) = delete;
50 Block(Block&& move) noexcept in Block() function
56 Block& operator=(const Block& copy) = delete; argument
57 Block& operator=(Block&& move) noexcept {
66 ~Block() = default;
[all …]
Dcompression_utils.h47 void Append(Block&& block) { input_buffer_.append(std::move(block)); } in Append()
69 void Append(Block input) { input_buffer_.append(std::move(input)); } in Append()
79 virtual EncodeResult Encode(Block* output) = 0;
113 EncodeResult Encode(Block* output) final { in Encode()
188 EncodeResult Encode(Block* output) final { in Encode()
230 Block output_block_;
294 Block header(LZ4F_HEADER_SIZE_MAX); in LZ4Encoder()
309 EncodeResult Encode(Block* output) final { in Encode()
330 Block encode_block(encode_block_size); in Encode()
353 Block final_block(encode_block_size + 4); in Encode()
[all …]
Dapacket_reader.h35 AddResult add_bytes(Block&& block) noexcept;
45 Block header_{sizeof(amessage)};
Dapacket_reader.cpp33 APacketReader::AddResult APacketReader::add_bytes(Block&& block) noexcept { in add_bytes()
60 packet_->payload = Block{0}; in add_bytes()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/block/read/
DBlockMatcher.java22 public class BlockMatcher implements ArgumentMatcher<Block> {
24 private final Block mBlock;
26 public BlockMatcher(Block block) { in BlockMatcher()
31 public boolean matches(Block block) { in matches()
DBlockTest.java36 Block block = new Block(id, type, new BlockData(blockDataBuffer)); in visit()
37 Block.BlockVisitor mockVisitor = mock(Block.BlockVisitor.class); in visit()
/packages/modules/GeoTZ/s2storage/tools/src/java/com/android/storage/tools/block/dump/
DBlockDumper.java19 import com.android.storage.block.read.Block;
24 public final class BlockDumper extends SingleFileDumper implements Block.BlockVisitor {
31 public void visit(Block block) { in visit()
DBlockFileDumper.java21 import com.android.storage.block.read.Block;
58 public void visitBlock(Block block) throws VisitException { in visitBlock()
/packages/modules/GeoTZ/tzs2storage/tools/src/java/com/android/storage/tools/block/dump/
DBlockDumper.java19 import com.android.storage.block.read.Block;
24 public final class BlockDumper extends SingleFileDumper implements Block.BlockVisitor {
31 public void visit(Block block) { in visit()
DBlockFileDumper.java21 import com.android.storage.block.read.Block;
58 public void visitBlock(Block block) throws VisitException { in visitBlock()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/block/read/
DBlock.java26 public final class Block { class
35 public Block(int id, int type, BlockData blockData) { in Block() method in Block
60 void visit(Block block) throws VisitException; in visit()
DBlockFileReader.java145 public Block getBlock(int blockId) throws IOException { in getBlock()
150 return new Block(blockId, blockInfo.getType(), EMPTY_BLOCK_DATA); in getBlock()
198 return new Block(actualId, actualType, blockData); in getBlock()
221 void visitBlock(Block block) throws VisitException; in visitBlock()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/block/
DBlockFileTest.java25 import com.android.storage.block.read.Block;
74 Block block1 = bfr.getBlock(0); in testReadWrite()
87 Block block2 = bfr.getBlock(1); in testReadWrite()
142 Block block1111 = bfr.getBlock(0); in visit()
143 Block block2222 = bfr.getBlock(1); in visit()
/packages/modules/adb/daemon/
Dusb.cpp98 using IoReadBlock = IoBlock<Block>;
99 using IoWriteBlock = IoBlock<std::shared_ptr<Block>>;
184 auto header = std::make_shared<Block>(sizeof(packet->msg)); in Write()
194 auto payload = std::make_shared<Block>(std::move(packet->payload)); in Write()
468 block->payload = Block(kUsbReadSize); in PrepareReadBlock()
611 IoWriteBlock CreateWriteBlock(std::shared_ptr<Block> payload, size_t offset, size_t len, in CreateWriteBlock()
628 IoWriteBlock CreateWriteBlock(Block&& payload, uint64_t id) { in CreateWriteBlock()
630 return CreateWriteBlock(std::make_shared<Block>(std::move(payload)), 0, len, id); in CreateWriteBlock()
Dfile_sync_service.cpp281 Block buffer(SYNC_DATA_MAX); in handle_send_file_data()
315 Block block(msg.data.size); in handle_send_file_data()
680 Block input(SYNC_DATA_MAX); in recv_impl()
695 Block output; in recv_impl()
/packages/services/Telephony/utils/satellite/s2storage/src/readonly/java/com/android/telephony/sats2range/read/
DSatS2RangeFileReader.java19 import com.android.storage.block.read.Block;
74 Block firstBlock = mBlockFileReader.getBlock(headerBlockId); in initialize()
181 Block block = mBlockFileReader.getBlock(prefix + mFileFormat.getSuffixTableBlockIdOffset()); in getSuffixTableBlockForPrefix()
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/include/
Doi_string.h84 void OI_MemSet(void* Block, uint8_t Val, uint32_t Size);
91 void OI_MemZero(void* Block, uint32_t Size);
/packages/modules/GeoTZ/tzs2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/read/
DTzS2RangeFileReader.java19 import com.android.storage.block.read.Block;
79 Block firstBlock = mBlockFileReader.getBlock(headerBlockId); in initialize()
187 Block block = mBlockFileReader.getBlock(prefix + mFileFormat.getSuffixTableBlockIdOffset()); in getSuffixTableBlockForPrefix()
/packages/modules/Bluetooth/system/gd/rust/topshim/macros/src/
Dlib.rs8 use syn::{parse_macro_input, Block, FnArg, Ident, Pat, Path, Stmt, Token, Type};
38 let block: Block = input.parse()?; in parse()
/packages/modules/adb/client/
Dfile_sync_client.cpp363 Block buf; in SendSend2()
415 Block buf; in SendRecv2()
686 Block input(SYNC_DATA_MAX); in SendLargeFile()
704 Block output; in SendLargeFile()
960 Block acknowledgement_buffer_;
1172 Block buffer(SYNC_DATA_MAX); in sync_recv_v2()
1222 Block block(msg.data.size); in sync_recv_v2()
/packages/modules/Virtualization/guest/encryptedstore/
DREADME.md13 derived from the VM secret and AES256 cipher with HCTR2 mode. The Block level encryption ensures
/packages/modules/Bluetooth/system/gd/packet/parser/
Dlanguage_l.ll50 /* Block Comment */
/packages/modules/Virtualization/guest/vmbase_example/src/
Dpci.rs50 DeviceType::Block => { in check_pci()
/packages/modules/GeoTZ/s2storage/
DREADME.md22 Block file format information

12