Home
last modified time | relevance | path

Searched refs:uint32_t (Results 1 – 24 of 24) sorted by relevance

/bootable/recovery/fuse_sideload/include/
Dfuse_provider.h31 FuseDataProvider(uint64_t file_size, uint32_t block_size) in FuseDataProvider()
39 uint32_t fuse_block_size() const { in fuse_block_size()
44 virtual bool ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size,
45 uint32_t start_block) const = 0;
57 uint32_t fuse_block_size_ = 0;
63 FuseFileDataProvider(const std::string& path, uint32_t block_size);
66 uint32_t block_size);
68 bool ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size,
69 uint32_t start_block) const override;
87 uint32_t fuse_block_size);
[all …]
/bootable/recovery/minui/
Dgraphics.cpp39 static uint32_t gr_current = ~0;
40 static constexpr uint32_t alpha_mask = 0xff000000;
80 static inline uint32_t pixel_blend(uint8_t alpha, uint32_t pix) { in pixel_blend()
83 uint32_t pix_r = pix & 0xff; in pixel_blend()
84 uint32_t pix_g = pix & 0xff00; in pixel_blend()
85 uint32_t pix_b = pix & 0xff0000; in pixel_blend()
86 uint32_t cur_r = gr_current & 0xff; in pixel_blend()
87 uint32_t cur_g = gr_current & 0xff00; in pixel_blend()
88 uint32_t cur_b = gr_current & 0xff0000; in pixel_blend()
90 uint32_t out_r = (pix_r * (255 - alpha) + cur_r * alpha) / 255; in pixel_blend()
[all …]
Dgraphics_drm.h44 uint32_t handle) in GRSurfaceDrm()
49 uint32_t fb_id{ 0 };
50 uint32_t handle{ 0 };
67 drmModeConnector* FindMainMonitor(int fd, drmModeRes* resources, uint32_t* mode_index);
Dgraphics_drm.cpp60 static int drm_format_to_bpp(uint32_t format) { in drm_format_to_bpp()
80 uint32_t format; in Create()
113 uint32_t handles[4], pitches[4], offsets[4]; in Create()
240 uint32_t* mode_index) { in FindMainMonitor()
322 uint32_t selected_mode; in Init()
Devents.cpp88 static int inotify_cb(int fd, __unused uint32_t epevents) { in inotify_cb()
254 int ev_get_input(int fd, uint32_t epevents, input_event* ev) { in ev_get_input()
/bootable/recovery/fuse_sideload/
Dfuse_provider.cpp36 FuseFileDataProvider::FuseFileDataProvider(const std::string& path, uint32_t block_size) { in FuseFileDataProvider()
53 uint32_t block_size) { in CreateFromFile()
57 bool FuseFileDataProvider::ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size, in ReadBlockAlignedData()
58 uint32_t start_block) const { in ReadBlockAlignedData()
81 FuseBlockDataProvider::FuseBlockDataProvider(uint64_t file_size, uint32_t fuse_block_size, in FuseBlockDataProvider()
83 uint32_t source_block_size, RangeSet ranges) in FuseBlockDataProvider()
93 bool FuseBlockDataProvider::ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size, in ReadBlockAlignedData()
94 uint32_t start_block) const { in ReadBlockAlignedData()
136 const std::string& block_map_path, uint32_t fuse_block_size) { in CreateFromBlockMap()
Dfuse_sideload.cpp83 uint32_t block_size; // block size that the adb host is using to send the file to us
84 uint32_t file_blocks; // file size in block_size blocks
89 uint32_t curr_block; // cache the block most recently read from the host
153 uint32_t mode) { in fill_attr()
228 static int fetch_block(fuse_data* fd, uint32_t block) { in fetch_block()
239 uint32_t fetch_size = fd->block_size; in fetch_block()
284 uint32_t size = req->size; in handle_read()
303 uint32_t block = offset / fd->block_size; in handle_read()
315 uint32_t block_offset = offset - (block * fd->block_size); in handle_read()
350 uint32_t block_size = provider->fuse_block_size(); in run_fuse_sideload()
/bootable/recovery/minadbd/
Dfuse_adb_provider.h26 FuseAdbDataProvider(int fd, uint64_t file_size, uint32_t block_size) in FuseAdbDataProvider()
29 bool ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size,
30 uint32_t start_block) const override;
Dfuse_adb_provider.cpp26 bool FuseAdbDataProvider::ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size, in ReadBlockAlignedData()
27 uint32_t start_block) const { in ReadBlockAlignedData()
Dfuse_adb_provider_test.cpp47 uint32_t block = 1234U; in TEST()
/bootable/recovery/otautil/include/otautil/
Dsysutil.h53 uint32_t block_size() const { in block_size()
63 BlockMapData(const std::string& path, uint64_t file_size, uint32_t block_size, in BlockMapData()
72 uint32_t block_size_ = 0;
/bootable/recovery/minadbd/include/minadbd/
Dtypes.h41 enum class MinadbdCommandStatus : uint32_t {
46 enum class MinadbdCommand : uint32_t {
/bootable/recovery/tests/unit/
Dfuse_sideload_test.cpp36 FuseTestDataProvider(uint64_t file_size, uint32_t block_size) in FuseTestDataProvider()
40 bool ReadBlockAlignedData(uint8_t*, uint32_t, uint32_t) const override { in ReadBlockAlignedData() argument
/bootable/recovery/otautil/
Dsysutil.cpp54 uint32_t blksize; in ParseBlockMapFile()
72 if (blocks > std::numeric_limits<uint32_t>::max() || range_count == 0 || in ParseBlockMapFile()
138 uint32_t blksize = block_map_data.block_size(); in MapBlockFile()
/bootable/recovery/minui/include/minui/
Dminui.h153 using ev_callback = std::function<int(int fd, uint32_t epevents)>;
169 int ev_get_input(int fd, uint32_t epevents, input_event* ev);
/bootable/recovery/install/
Dadb_install.cpp70 auto cmd_code = android::base::get_unaligned<uint32_t>(cmd_code_string.c_str()); in ParseMinadbdCommand()
71 if (cmd_code >= static_cast<uint32_t>(MinadbdCommand::kError)) { in ParseMinadbdCommand()
179 LOG(INFO) << "Command " << static_cast<uint32_t>(command_type) << " finished with " << result; in HandleMessageFromMinadbd()
Dwipe_device.cpp54 uint32_t length = entry.uncompressed_length; in GetWipePartitionList()
Dinstall.cpp86 uint32_t length = entry.uncompressed_length; in ReadMetadataFromPackage()
249 uint32_t properties_entry_length = properties_entry.uncompressed_length; in SetUpAbUpdateCommands()
/bootable/recovery/bootloader_message/include/bootloader_message/
Dbootloader_message.h90 uint32_t magic;
/bootable/recovery/recovery_ui/include/recovery_ui/
Dui.h227 int OnInputEvent(int fd, uint32_t epevents);
/bootable/recovery/applypatch/
Dimgdiff.cpp811 if (get_unaligned<uint32_t>(&file_content_[i]) == 0x06054b50) { in GetZipFileSize()
1255 if (sz - pos >= 4 && get_unaligned<uint32_t>(file_content_.data() + pos) == 0x00088b1f) { in Initialize()
1321 size_t footer_size = get_unaligned<uint32_t>(file_content_.data() + footer_index); in Initialize()
1347 get_unaligned<uint32_t>(file_content_.data() + pos + data_len) == 0x00088b1f) { in Initialize()
/bootable/recovery/update_verifier/
Dupdate_verifier.cpp316 uint32_t current_slot = module->getCurrentSlot(); in update_verifier()
/bootable/recovery/recovery_ui/
Dui.cpp223 int RecoveryUI::OnInputEvent(int fd, uint32_t epevents) { in OnInputEvent()
/bootable/recovery/updater/
Dblockimg.cpp2194 time_t mount_time = *reinterpret_cast<uint32_t*>(&block0_buffer[0x400 + 0x2C]); in CheckFirstBlockFn()