/system/libufdt/ |
D | ufdt_node_pool.c | 73 struct ufdt_node_pool_block_header *block = pool->first_block; in ufdt_node_pool_destruct() local 74 while (block != NULL) { in ufdt_node_pool_destruct() 75 if (block->alloc_entry_cnt != 0) is_leak = 1; in ufdt_node_pool_destruct() 77 struct ufdt_node_pool_block_header *next_block = block->next_block; in ufdt_node_pool_destruct() 78 dto_free(block); in ufdt_node_pool_destruct() 79 block = next_block; in ufdt_node_pool_destruct() 95 struct ufdt_node_pool_block_header *block = in _ufdt_node_pool_create_block() local 99 struct ufdt_node_pool_entry_header **next_ptr = &block->first_free_entry; in _ufdt_node_pool_create_block() 111 block->next_block = NULL; in _ufdt_node_pool_create_block() 112 block->alloc_entry_cnt = 0; in _ufdt_node_pool_create_block() [all …]
|
/system/update_engine/lz4diff/ |
D | lz4diff_compress.cc | 36 for (const auto& block : block_info) { in TryCompressBlob() local 37 CHECK_EQ(uncompressed_size, block.uncompressed_offset) in TryCompressBlob() 39 uncompressed_size += block.uncompressed_length; in TryCompressBlob() 50 for (const auto& block : block_info) { in TryCompressBlob() local 52 blob.substr(block.uncompressed_offset, block.uncompressed_length); in TryCompressBlob() 53 if (!block.IsCompressed()) { in TryCompressBlob() 59 block_buffer.resize(block.compressed_length); in TryCompressBlob() 62 compressed_offset += block.compressed_length; in TryCompressBlob() 71 switch (int src_size = uncompressed_size - block.uncompressed_offset; in TryCompressBlob() 79 block.compressed_length, in TryCompressBlob() [all …]
|
/system/tools/hidl/host_utils/ |
D | Formatter.cpp | 63 Formatter& Formatter::block(const std::function<void(void)>& func) { in block() function in android::Formatter 81 Formatter& Formatter::sIf(const std::string& cond, const std::function<void(void)>& block) { in sIf() argument 83 return this->block(block); in sIf() 86 Formatter& Formatter::sElseIf(const std::string& cond, const std::function<void(void)>& block) { in sElseIf() argument 88 return this->block(block); in sElseIf() 91 Formatter& Formatter::sElse(const std::function<void(void)>& block) { in sElse() argument 93 return this->block(block); in sElse() 96 Formatter& Formatter::sFor(const std::string& stmts, const std::function<void(void)>& block) { in sFor() argument 98 return this->block(block); in sFor() 101 Formatter& Formatter::sTry(const std::function<void(void)>& block) { in sTry() argument [all …]
|
/system/update_engine/payload_generator/ |
D | erofs_filesystem.cc | 76 static constexpr bool IsBlockCompressed(const struct erofs_map_blocks& block) { in IsBlockCompressed() argument 80 return block.m_flags & EROFS_MAP_ENCODED && in IsBlockCompressed() 81 block.m_algorithmformat != Z_EROFS_COMPRESSION_SHIFTED; in IsBlockCompressed() 90 struct erofs_map_blocks block {}; in FillExtentInfo() struct 91 block.m_la = 0; in FillExtentInfo() 92 block.index = UINT_MAX; in FillExtentInfo() 95 auto last_pa = block.m_pa; in FillExtentInfo() 97 while (block.m_la < inode->i_size) { in FillExtentInfo() 98 auto error = ErofsMapBlocks(inode, &block, EROFS_GET_BLOCKS_FIEMAP); in FillExtentInfo() 100 block.m_la += block.m_llen; in FillExtentInfo() [all …]
|
/system/nfc/src/nfc/tags/ |
D | rw_mfc.cc | 92 static tNFC_STATUS rw_mfc_readBlock(int block); 105 static tNFC_STATUS rw_mfc_formatBlock(int block); 108 static tNFC_STATUS rw_mfc_writeBlock(int block); 140 p_mfc->last_block_accessed.block = 1; in RW_MfcFormatNDef() 141 p_mfc->next_block.block = 1; in RW_MfcFormatNDef() 143 status = rw_mfc_formatBlock(p_mfc->next_block.block); in RW_MfcFormatNDef() 162 static tNFC_STATUS rw_mfc_formatBlock(int block) { in rw_mfc_formatBlock() argument 166 int sectorlength = block / 4; in rw_mfc_formatBlock() 169 LOG(VERBOSE) << __func__ << ": block : " << block; in rw_mfc_formatBlock() 171 if (block > 128) { in rw_mfc_formatBlock() [all …]
|
D | rw_t1t.cc | 808 tNFC_STATUS RW_T1tRead(uint8_t block, uint8_t byte) { in RW_T1tRead() argument 819 RW_T1T_BLD_ADD((addr), (block), (byte)); in RW_T1tRead() 837 tNFC_STATUS RW_T1tWriteErase(uint8_t block, uint8_t byte, uint8_t new_byte) { in RW_T1tWriteErase() argument 848 (block != T1T_CC_BLOCK) && (byte != T1T_CC_RWA_OFFSET)) { in RW_T1tWriteErase() 852 if ((block >= T1T_STATIC_BLOCKS) || (byte >= T1T_BLOCK_SIZE)) { in RW_T1tWriteErase() 854 block, byte); in RW_T1tWriteErase() 857 if ((block == T1T_UID_BLOCK) || (block == T1T_RES_BLOCK)) { in RW_T1tWriteErase() 859 "RW_T1tWriteErase - Cannot write to Locked block: %u", block); in RW_T1tWriteErase() 863 RW_T1T_BLD_ADD((addr), (block), (byte)); in RW_T1tWriteErase() 867 if (block < T1T_BLOCKS_PER_SEGMENT) { in RW_T1tWriteErase() [all …]
|
D | rw_t2t_ndef.cc | 50 static void rw_t2t_update_cb(uint16_t block, uint8_t* p_write_block, 61 static tNFC_STATUS rw_t2t_write_ndef_next_block(uint16_t block, 64 static tNFC_STATUS rw_t2t_read_ndef_next_block(uint16_t block); 66 static bool rw_t2t_is_read_before_write_block(uint16_t block, 316 uint16_t block; in rw_t2t_handle_lock_read_rsp() local 354 block = (uint16_t)(lock_offset / T2T_BLOCK_LEN); in rw_t2t_handle_lock_read_rsp() 355 block -= block % T2T_READ_BLOCKS; in rw_t2t_handle_lock_read_rsp() 357 if (NFC_STATUS_OK != rw_t2t_read((uint16_t)block)) { in rw_t2t_handle_lock_read_rsp() 794 uint16_t block; in rw_t2t_read_locks() local 814 block = (uint16_t)(offset / T2T_BLOCK_LEN); in rw_t2t_read_locks() [all …]
|
/system/core/libsparse/ |
D | backed_block.cpp | 27 unsigned int block; member 68 return bb->block; in backed_block_block() 167 if (!bb->next || bb->next->block > start->block) { in backed_block_list_move() 185 assert(a->block < b->block); in merge_bb() 194 if (a->block + block_len != b->block) { in merge_bb() 238 if (bbl->data_blocks->block > new_bb->block) { in queue_bb() 247 if (bbl->last_used && new_bb->block > bbl->last_used->block) in queue_bb() 253 for (; bb->next && bb->next->block < new_bb->block; bb = bb->next) in queue_bb() 274 unsigned int block) { in backed_block_add_fill() argument 280 bb->block = block; in backed_block_add_fill() [all …]
|
/system/unwinding/libunwindstack/ |
D | MemoryXz.cpp | 73 for (XzBlock& block : blocks_) { in Init() 74 if (!Decompress(&block)) { in Init() 77 memcpy(data.get() + offset, block.decompressed_data.get(), block.decompressed_size); in Init() 78 offset += block.decompressed_size; in Init() 104 XzBlock* block = &blocks_[i]; in Read() local 105 if (block->decompressed_data == nullptr) { in Read() 106 if (!Decompress(block)) { in Read() 111 size_t copy_bytes = std::min<size_t>(size, block->decompressed_size - offset); in Read() 112 memcpy(dst, block->decompressed_data.get() + offset, copy_bytes); in Read() 199 const CXzBlockSizes& block = stream.blocks[b]; in ReadBlocks() local [all …]
|
/system/nfc/src/adaptation/ |
D | libmain.cc | 33 std::string getFilenameForBlock(const unsigned block) { in getFilenameForBlock() argument 35 return StringPrintf("%s/%s%u", nfc_storage_path.c_str(), bin.c_str(), block); in getFilenameForBlock() 84 extern void nfa_nv_co_read(uint8_t* pBuffer, uint16_t nbytes, uint8_t block) { in nfa_nv_co_read() argument 85 std::string filename = getFilenameForBlock(block); in nfa_nv_co_read() 101 nfa_nv_ci_read(actualReadData, NFA_NV_CO_OK, block); in nfa_nv_co_read() 104 nfa_nv_ci_read(0, NFA_NV_CO_FAIL, block); in nfa_nv_co_read() 108 nfa_nv_ci_read(0, NFA_NV_CO_FAIL, block); in nfa_nv_co_read() 132 uint8_t block) { in nfa_nv_co_write() argument 133 std::string filename = getFilenameForBlock(block); in nfa_nv_co_write() 224 for (auto block : verify_blocks) { in verify_stack_non_volatile_store() local [all …]
|
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/ |
D | snapshot_reader_test.cpp | 54 std::string block(kBlockSize, 0); in WriteBaseDevice() local 55 ASSERT_TRUE(android::base::ReadFully(random, block.data(), block.size())); in WriteBaseDevice() 56 ASSERT_TRUE(android::base::WriteFully(base_->fd, block.data(), block.size())); in WriteBaseDevice() 57 base_blocks_.emplace_back(std::move(block)); in WriteBaseDevice() 84 std::string block(kBlockSize, 0); in TestBlockReads() local 86 ASSERT_EQ(reader->Read(block.data(), block.size()), kBlockSize); in TestBlockReads() 87 ASSERT_EQ(block, base_blocks_[i]); in TestBlockReads() 102 std::string block(kBlockSize, 0); in TestBlockReads() local 104 ASSERT_EQ(reader->Read(block.data(), block.size()), kBlockSize); in TestBlockReads() 105 ASSERT_EQ(block, base_blocks_[0]); in TestBlockReads() [all …]
|
/system/tools/hidl/host_utils/include/hidl-util/ |
D | Formatter.h | 32 void group(const std::function<void(void)>& block); 104 Formatter& block(const std::function<void(void)>& func); 117 Formatter& sIf(const std::string& cond, const std::function<void(void)>& block); 118 Formatter& sElseIf(const std::string& cond, const std::function<void(void)>& block); 119 Formatter& sElse(const std::function<void(void)>& block); 124 Formatter& sFor(const std::string& stmts, const std::function<void(void)>& block); 134 Formatter& sTry(const std::function<void(void)>& block); 135 Formatter& sCatch(const std::string& exception, const std::function<void(void)>& block); 136 Formatter& sFinally(const std::function<void(void)>& block); 141 Formatter& sWhile(const std::string& cond, const std::function<void(void)>& block); [all …]
|
/system/keymaster/key_blob_utils/ |
D | ocb.c | 150 typedef __m128i block; typedef 159 static inline block swap_if_le(block b) { in swap_if_le() 160 block a = _mm_shuffle_epi32(b, _MM_SHUFFLE(0, 1, 2, 3)); in swap_if_le() 166 static inline block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset() 167 block hi = _mm_load_si128((__m128i*)(KtopStr + 0)); /* hi = B A */ in gen_offset() 168 block lo = _mm_loadu_si128((__m128i*)(KtopStr + 1)); /* lo = C B */ in gen_offset() 178 static inline block double_block(block bl) { in double_block() 188 typedef vector unsigned block; typedef 194 block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset() 197 block bl; in gen_offset() [all …]
|
/system/sepolicy/prebuilts/api/32.0/public/ |
D | update_verifier.te | 5 # Allow update_verifier to reach block devices in /dev/block. 12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 15 # Read /sys/block/dm-X/dm/name (which is a symlink to 16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
|
/system/sepolicy/prebuilts/api/33.0/public/ |
D | update_verifier.te | 5 # Allow update_verifier to reach block devices in /dev/block. 12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 15 # Read /sys/block/dm-X/dm/name (which is a symlink to 16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
|
/system/sepolicy/prebuilts/api/202404/public/ |
D | update_verifier.te | 5 # Allow update_verifier to reach block devices in /dev/block. 12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 15 # Read /sys/block/dm-X/dm/name (which is a symlink to 16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
|
/system/sepolicy/prebuilts/api/34.0/public/ |
D | update_verifier.te | 5 # Allow update_verifier to reach block devices in /dev/block. 12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 15 # Read /sys/block/dm-X/dm/name (which is a symlink to 16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
|
/system/sepolicy/prebuilts/api/31.0/public/ |
D | update_verifier.te | 5 # Allow update_verifier to reach block devices in /dev/block. 12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 15 # Read /sys/block/dm-X/dm/name (which is a symlink to 16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | update_verifier.te | 5 # Allow update_verifier to reach block devices in /dev/block. 12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 15 # Read /sys/block/dm-X/dm/name (which is a symlink to 16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
|
/system/tools/hidl/ |
D | CompoundType.cpp | 245 out.block([&] { in emitSafeUnionReaderWriterForInterfaces() 264 out.block([&] { in emitSafeUnionReaderWriterForInterfaces() 270 out.block([&] { in emitSafeUnionReaderWriterForInterfaces() 295 out.block([&] { in emitSafeUnionReaderWriterForInterfaces() 330 out.block([&] { in emitReaderWriter() 510 out.block([&] { in emitSafeUnionTypeDeclarations() 566 out.block([&] { in emitSafeUnionTypeDeclarations() 802 out.block([&] { in emitPackageTypeHeaderDefinitions() 821 out.block([&] { in emitPackageTypeHeaderDefinitions() 842 out.block([&] { in emitPackageTypeHeaderDefinitions() [all …]
|
/system/sepolicy/prebuilts/api/30.0/public/ |
D | update_verifier.te | 5 # Allow update_verifier to reach block devices in /dev/block. 12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 15 # Read /sys/block/dm-X/dm/name (which is a symlink to 16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
|
/system/core/libsparse/include/sparse/ |
D | sparse.h | 78 int sparse_file_add_data(struct sparse_file* s, void* data, uint64_t len, unsigned int block); 96 unsigned int block); 119 uint64_t len, unsigned int block); 145 unsigned int block); 225 int (*write)(void *priv, const void *data, size_t len, unsigned int block,
|
/system/keymaster/km_openssl/ |
D | iso18033kdf.cpp | 44 for (size_t block = 0; block < num_blocks; block++) { in GenerateKey() local 57 !Uint32ToBigEndianByteArray(block + start_counter_, counter.get()) || in GenerateKey() 71 size_t block_start = digest_size_ * block; in GenerateKey()
|
/system/sepolicy/private/ |
D | update_verifier.te | 18 # Allow update_verifier to reach block devices in /dev/block. 25 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 28 # Read /sys/block/dm-X/dm/name (which is a symlink to 29 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
|
/system/sepolicy/prebuilts/api/33.0/private/ |
D | snapuserd.te | 13 # Allow snapuserd to reach block devices in /dev/block. 16 # Read /sys/block to find all the DM directories like (/sys/block/dm-X). 19 # Read /sys/block/dm-X/dm/name (which is a symlink to 20 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between 25 # Reading and writing to /dev/block/dm-* (device-mapper) nodes.
|