• Home
  • Raw
  • Download

Lines Matching refs:chunk

1736   for (const ImageChunk& chunk : chunks_) {  in ValidateBootImageChecksum()  local
1740 if (chunk.start_index != component_count) { in ValidateBootImageChecksum()
1743 if (chunk.component_count > boot_image_component_count - component_count) { in ValidateBootImageChecksum()
1749 component_count + chunk.component_count); in ValidateBootImageChecksum()
1752 component_count += chunk.component_count; in ValidateBootImageChecksum()
1753 composite_checksum ^= chunk.checksum; in ValidateBootImageChecksum()
1754 boot_image_size += chunk.reservation_size; in ValidateBootImageChecksum()
1834 ImageChunk chunk; in ReadHeader() local
1835 chunk.base_location = base_location; in ReadHeader()
1836 chunk.base_filename = base_filename; in ReadHeader()
1837 chunk.start_index = bcp_index; in ReadHeader()
1838 chunk.component_count = header.GetComponentCount(); in ReadHeader()
1839 chunk.image_space_count = header.GetImageSpaceCount(); in ReadHeader()
1840 chunk.reservation_size = header.GetImageReservationSize(); in ReadHeader()
1841 chunk.checksum = header.GetImageChecksum(); in ReadHeader()
1842 chunk.boot_image_component_count = header.GetBootImageComponentCount(); in ReadHeader()
1843 chunk.boot_image_checksum = header.GetBootImageChecksum(); in ReadHeader()
1844 chunk.boot_image_size = header.GetBootImageSize(); in ReadHeader()
1845 chunks_.push_back(std::move(chunk)); in ReadHeader()
2018 ImageChunk chunk; in CompileExtension() local
2019 chunk.base_location = base_location; in CompileExtension()
2020 chunk.base_filename = base_filename; in CompileExtension()
2021 chunk.profile_file = profile_filename; in CompileExtension()
2022 chunk.start_index = bcp_index; in CompileExtension()
2023 chunk.component_count = header.GetComponentCount(); in CompileExtension()
2024 chunk.image_space_count = header.GetImageSpaceCount(); in CompileExtension()
2025 chunk.reservation_size = header.GetImageReservationSize(); in CompileExtension()
2026 chunk.checksum = header.GetImageChecksum(); in CompileExtension()
2027 chunk.boot_image_component_count = header.GetBootImageComponentCount(); in CompileExtension()
2028 chunk.boot_image_checksum = header.GetBootImageChecksum(); in CompileExtension()
2029 chunk.boot_image_size = header.GetBootImageSize(); in CompileExtension()
2030 chunk.art_fd.reset(art_fd.release()); in CompileExtension()
2031 chunk.vdex_fd.reset(vdex_fd.release()); in CompileExtension()
2032 chunk.oat_fd.reset(oat_fd.release()); in CompileExtension()
2033 chunks_.push_back(std::move(chunk)); in CompileExtension()
2045 const ImageChunk& chunk = chunks_.back(); in CheckAndRemoveLastChunkChecksum() local
2046 size_t component_count = chunk.component_count; in CheckAndRemoveLastChunkChecksum()
2047 size_t checksum = chunk.checksum; in CheckAndRemoveLastChunkChecksum()
2301 const BootImageLayout::ImageChunk& chunk = chunks[i]; in LoadImage() local
2305 DCHECK_LE(chunk.reservation_size, old_reservation_size); in LoadImage()
2306 if (!LoadComponents(chunk, in LoadImage()
2318 size_t new_reservation_size = old_reservation_size - chunk.reservation_size; in LoadImage()
2336 boot_class_path_locations_[chunk.start_index].c_str(), in LoadImage()
2346 << boot_class_path_locations_[chunk.start_index] << ": " << extension_error_msg; in LoadImage()
2350 if (max_image_space_dependencies == chunk.start_index && in LoadImage()
2351 spaces.size() == chunk.start_index + chunk.component_count) { in LoadImage()
2352 max_image_space_dependencies = chunk.start_index + chunk.component_count; in LoadImage()
2945 bool LoadComponents(const BootImageLayout::ImageChunk& chunk, in LoadComponents() argument
2973 bool is_extension = (chunk.start_index != 0u); in LoadComponents()
2975 if (max_image_space_dependencies < chunk.boot_image_component_count) { in LoadComponents()
2978 boot_class_path_locations_[chunk.start_index].c_str(), in LoadComponents()
2980 chunk.boot_image_component_count); in LoadComponents()
2985 chunk.start_index, chunk.image_space_count); in LoadComponents()
2987 ExpandMultiImageLocations(requested_bcp_locations, chunk.base_location, is_extension); in LoadComponents()
2989 ExpandMultiImageLocations(requested_bcp_locations, chunk.base_filename, is_extension); in LoadComponents()
2994 chunk.profile_file, in LoadComponents()
2995 std::move(chunk.art_fd), in LoadComponents()
3003 uint32_t expected_component_count = (i == 0u) ? chunk.component_count : 0u; in LoadComponents()
3004 uint32_t expected_reservation_size = (i == 0u) ? chunk.reservation_size : 0u; in LoadComponents()
3010 if (i == 0 && (chunk.checksum != header.GetImageChecksum() || in LoadComponents()
3011 chunk.image_space_count != header.GetImageSpaceCount() || in LoadComponents()
3012 chunk.boot_image_component_count != header.GetBootImageComponentCount() || in LoadComponents()
3013 chunk.boot_image_checksum != header.GetBootImageChecksum() || in LoadComponents()
3014 chunk.boot_image_size != header.GetBootImageSize())) { in LoadComponents()
3022 chunk.checksum, in LoadComponents()
3023 chunk.image_space_count, in LoadComponents()
3026 chunk.boot_image_component_count, in LoadComponents()
3028 chunk.boot_image_checksum, in LoadComponents()
3030 chunk.boot_image_size, in LoadComponents()
3035 DCHECK_GE(max_image_space_dependencies, chunk.boot_image_component_count); in LoadComponents()
3038 /*pos=*/ 0u, chunk.boot_image_component_count); in LoadComponents()
3040 ImageSpace* space = (*spaces)[spaces->size() - chunk.image_space_count + i].get(); in LoadComponents()
3041 size_t bcp_chunk_size = (chunk.image_space_count == 1u) ? chunk.component_count : 1u; in LoadComponents()
3043 std::move(chunk.vdex_fd), in LoadComponents()
3044 std::move(chunk.oat_fd), in LoadComponents()
3045 boot_class_path_.SubArray(/*pos=*/ chunk.start_index + i, bcp_chunk_size), in LoadComponents()