Searched refs:image (Results 1 - 10 of 10) sorted by relevance
/system/extras/verity/fec/tests/ |
H A D | fec.py | 26 def corrupt(image, offset, length): 28 f = os.open(image, os.O_WRONLY) 33 def corruptmax(image, roots): 34 size = os.stat(image).st_size 42 corrupt(image, offset, max_errors) 44 def encode(image, fec, roots): 45 if subprocess.call([ "fec", "--roots= " + str(roots), image, fec ]) != 0: 48 def decode(image, fec, output): 49 return subprocess.call([ "fec", "--decode", image, fec, output ]) 54 def simg2img(image, outpu [all...] |
/system/extras/verity/ |
H A D | BootSignature.java | 77 * Initializes the object for signing an image file 79 * @param length Length of the image, included in the signed data 88 * Initializes the object for verifying a signed image file 155 public byte[] generateSignableImage(byte[] image) throws IOException { argument 157 byte[] signable = Arrays.copyOf(image, image.length + attrs.length); 159 signable[i+image.length] = attrs[i]; 164 public byte[] sign(byte[] image, PrivateKey key) throws Exception { argument 165 byte[] signable = generateSignableImage(image); 169 public boolean verify(byte[] image) throw argument [all...] |
H A D | Utils.java | 285 byte[] image = new byte[(int)length]; 288 offset += fis.read(image, (int)offset, (int)(length - offset)); 291 return image;
|
/system/extras/verity/fec/ |
H A D | image.h | 38 struct image { struct 72 image *ctx; 80 extern bool image_load(const std::vector<std::string>& filename, image *ctx); 81 extern bool image_save(const std::string& filename, image *ctx); 83 extern bool image_ecc_new(const std::string& filename, image *ctx); 84 extern bool image_ecc_load(const std::string& filename, image *ctx); 85 extern bool image_ecc_save(image *ctx); 87 extern bool image_process(image_proc_func f, image *ctx); 89 extern void image_init(image *ctx); 90 extern void image_free(image *ct [all...] |
H A D | Android.mk | 9 LOCAL_SRC_FILES := main.cpp image.cpp
|
H A D | image.cpp | 37 #include "image.h" 47 void image_init(image *ctx) 52 void image_free(image *ctx) 67 static void calculate_rounds(uint64_t size, image *ctx) 83 image *ctx = (image *)priv; 94 static void file_image_load(const std::vector<int>& fds, image *ctx) 145 bool image_load(const std::vector<std::string>& filenames, image *ctx) 173 bool image_save(const std::string& filename, image *ctx) 192 bool image_ecc_new(const std::string& filename, image *ct [all...] |
H A D | main.cpp | 33 #include "image.h" 45 struct image *fcx = ctx->ctx; 62 struct image *fcx = ctx->ctx; 137 static int print_size(image& ctx) 173 static int encode(image& ctx, const std::vector<std::string>& inp_filenames, 215 static int decode(image& ctx, const std::vector<std::string>& inp_filenames, 276 image ctx;
|
/system/update_engine/scripts/ |
H A D | brillo_update_payload | 19 # image to the target_image 20 # --target_image the target image that should be sent to clients 141 "Path to the target image that should be sent to clients." 143 "Optional: Path to a source image. If specified, this makes a delta update." 202 # Path to the postinstall config file in target image if exists. 205 # The fingerprint of zlib in the source image. 274 # extract_image <image> <partitions_array> 276 # Detect the format of the |image| file and extract its updatable partitions 280 local image="$1" 284 local magic=$(head --bytes=4 "${image}" | hexdum [all...] |
/system/core/healthd/ |
H A D | Android.mk | 113 define _add-charger-image 128 $(eval $(call _add-charger-image,$(_img)))) 136 _add-charger-image :=
|
/system/update_engine/ |
H A D | Android.mk | 807 # Generate a prebuilt module that installs a sample image from the compressed 811 define ue-unittest-sample-image 825 $(call ue-unittest-sample-image,disk_ext2_1k.img) 826 $(call ue-unittest-sample-image,disk_ext2_4k.img) 827 $(call ue-unittest-sample-image,disk_ext2_4k_empty.img) 828 $(call ue-unittest-sample-image,disk_ext2_unittest.img)
|
Completed in 138 milliseconds