Home
last modified time | relevance | path

Searched refs:roots (Results 1 – 21 of 21) sorted by relevance

/system/extras/libfec/include/fec/
Decc.h30 #define FEC_PARAMS(roots) \ argument
35 (roots), /* polynomial degree (number of roots) */ \
57 inline uint64_t fec_ecc_get_size(uint64_t file_size, int roots) in fec_ecc_get_size() argument
60 FEC_RSM - roots) in fec_ecc_get_size()
61 * roots * FEC_BLOCKSIZE in fec_ecc_get_size()
Dio.h49 uint32_t roots; member
65 uint32_t roots; member
91 int flags, int roots);
127 int roots = FEC_DEFAULT_ROOTS) : handle_(nullptr, fec_close) { in handle_()
128 open(fn, mode, flags, roots); in handle_()
136 int roots = FEC_DEFAULT_ROOTS)
139 int rc = fec_open(&fh, fn.c_str(), mode, flags, roots);
/system/incremental_delivery/incfs/
DMountRegistry.cpp78 roots.swap(other.roots); in swap()
83 roots.clear(); in clear()
97 if (index >= int(roots.size()) || roots[index].empty()) { in rootIndex()
113 return roots[index].path; in rootFor()
126 const auto& root = roots[index]; in rootAndSubpathFor()
131 const auto index = roots.size(); in addRoot()
134 roots.push_back({std::move(absolute), path::normalize(backingDir), {it}}); in addRoot()
145 if (index >= int(roots.size())) { in removeRoot()
147 << " out of bounds (total roots count is " << roots.size(); in removeRoot()
151 if (index + 1 == int(roots.size())) { in removeRoot()
[all …]
/system/extras/verity/fec/tests/
Dfec.py24 roots = 2 variable
33 def corruptmax(image, roots): argument
37 rounds = int(math.ceil(float(blocks) / (255 - roots)))
39 max_errors = int(math.floor(rounds * roots / 2)) * blocksize
44 def encode(image, fec, roots): argument
45 if subprocess.call([ "fec", "--roots= " + str(roots), image, fec ]) != 0:
70 encode(image, temp_fec.name, roots)
71 corruptmax(temp_cor.name, roots)
/system/extras/libfec/
Dfec_open.cpp37 using size_func = uint64_t (*)(uint64_t size, int roots);
42 static int find_offset(uint64_t file_size, int roots, uint64_t *offset, in find_offset() argument
56 uint64_t mi = get_appr_size(file_size, roots); in find_offset()
62 uint64_t total = mi + get_real_size(mi, roots); in find_offset()
134 if (header.roots == 0 || header.roots >= FEC_RSM) { in parse_ecc_header()
135 error("invalid ecc roots: %u", header.roots); in parse_ecc_header()
138 if (f->ecc.roots != (int)header.roots) { in parse_ecc_header()
139 error("unexpected number of roots: %d vs %u", f->ecc.roots, in parse_ecc_header()
140 header.roots); in parse_ecc_header()
143 if (header.fec_size % header.roots || in parse_ecc_header()
[all …]
Dfec_read.cpp142 if (use_erasures && neras <= e->roots) { in __ecc_read()
145 } else if (use_erasures && neras <= e->roots && in __ecc_read()
163 if (!raw_pread(f->fd, &ecc_data[i * FEC_RSM + e->rsn], e->roots, in __ecc_read()
164 e->start + (i + rsb) * e->roots)) { in __ecc_read()
192 check(rc <= (use_erasures ? e->roots : e->roots / 2)); in __ecc_read()
213 rs.reset(init_rs_char(FEC_PARAMS(f->ecc.roots))); in ecc_init()
Dfec_private.h70 int roots; member
/system/tools/hidl/scripts/
Dhal-queries.sh94 declare -A roots
95 roots["android.hardware"]="hardware/interfaces"
96 roots["android.system"]="system/hardware/interfaces"
97 roots["android.frameworks"]="frameworks/hardware/interfaces"
98 roots["android.hidl"]="system/libhidl/transport"
107 local roots=(
/system/extras/verity/fec/
Dimage.cpp147 assert(ctx->roots > 0 && ctx->roots < FEC_RSM); in image_load()
148 ctx->rs_n = FEC_RSM - ctx->roots; in image_load()
197 ctx->fec_size = ctx->rounds * ctx->roots * FEC_BLOCKSIZE; in image_ecc_new()
250 if (p->roots == 0 || p->roots >= FEC_RSM) { in image_ecc_load()
251 FATAL("invalid roots in '%s': %u\n", filename.c_str(), p->roots); in image_ecc_load()
254 if (p->fec_size % p->roots || p->fec_size % FEC_BLOCKSIZE) { in image_ecc_load()
258 ctx->roots = (int)p->roots; in image_ecc_load()
259 ctx->rs_n = FEC_RSM - ctx->roots; in image_ecc_load()
303 f->roots = ctx->roots; in image_ecc_save()
396 args[i].fec_pos = current * ctx->roots; in image_process()
[all …]
Dmain.cpp55 ctx->fec_pos += fcx->roots; in encode_rs()
63 uint8_t data[fcx->rs_n + fcx->roots]; in decode_rs()
73 memcpy(&data[fcx->rs_n], &fcx->fec[ctx->fec_pos], fcx->roots); in decode_rs()
88 ctx->fec_pos += fcx->roots; in decode_rs()
139 printf("%" PRIu64 "\n", fec_ecc_get_size(ctx.inp_size, ctx.roots)); in print_size()
278 ctx.roots = FEC_DEFAULT_ROOTS; in main()
319 ctx.roots = (int)parse_arg(optarg, "roots", FEC_RSM); in main()
367 assert(ctx.roots > 0 && ctx.roots < FEC_RSM); in main()
Dimage.h50 int roots; member
/system/incremental_delivery/incfs/include/
DMountRegistry.h77 iterator begin() const { return iterator(roots.begin()); } in begin()
78 iterator end() const { return iterator(roots.end()); } in end()
79 size_t size() const { return roots.size(); } in size()
80 bool empty() const { return roots.empty(); } in empty()
97 std::vector<Root> roots; variable
/system/extras/libfec/test/
Dtest_rs.c31 #define FEC_PARAMS(roots) \ argument
32 8, 0x11d, 0, 1, (roots), 0
Dfec_unittest.cpp187 ASSERT_EQ(2, ecc_metadata.roots); in TEST_F()
/system/ca-certificates/google/
DREADME2 manually synchronized with https://pki.google.com/roots.pem. See
/system/tools/hidl/
DREADME.md27 Some defaults for package roots are also provided
/system/core/fs_mgr/
Dfs_mgr_verity.cpp214 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table()
219 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table()
/system/memory/libmemunreachable/
DREADME.md68 …11. A list of all roots is produced from globals (.data and .bss sections of binaries), and regist…
69 12. The mark-and-sweep pass is performed starting from roots.
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc216 part.verity.fec_roots = ecc_data.roots; in LoadVerityConfig()
/system/update_engine/
Dupdate_metadata.proto289 // The number of FEC roots.
/system/update_engine/update_engine/
Dupdate_metadata.proto289 // The number of FEC roots.