/system/incremental_delivery/incfs/ |
D | MountRegistry.cpp | 78 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 for (auto bindIt : roots[index].binds) { in removeRoot() [all …]
|
/system/extras/libfec/include/fec/ |
D | ecc.h | 30 #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()
|
D | io.h | 49 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/extras/verity/fec/tests/ |
D | fec.py | 24 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/ |
D | fec_open.cpp | 37 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 …]
|
D | fec_read.cpp | 142 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()
|
D | fec_private.h | 70 int roots; member
|
/system/tools/hidl/scripts/ |
D | hal-queries.sh | 94 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/ |
D | image.cpp | 147 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 …]
|
D | main.cpp | 55 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()
|
D | image.h | 50 int roots; member
|
/system/incremental_delivery/incfs/include/ |
D | MountRegistry.h | 81 iterator begin() const { return iterator(roots.begin()); } in begin() 82 iterator end() const { return iterator(roots.end()); } in end() 83 size_t size() const { return roots.size(); } in size() 84 bool empty() const { return roots.empty(); } in empty() 100 std::vector<Root> roots; variable
|
/system/extras/libfec/test/ |
D | test_rs.c | 31 #define FEC_PARAMS(roots) \ argument 32 8, 0x11d, 0, 1, (roots), 0
|
D | fec_unittest.cpp | 187 ASSERT_EQ(2, ecc_metadata.roots); in TEST_F()
|
/system/ca-certificates/google/ |
D | README | 2 manually synchronized with https://pki.google.com/roots.pem. See
|
/system/tools/hidl/ |
D | README.md | 27 Some defaults for package roots are also provided
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 214 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/ |
D | README.md | 68 …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/ |
D | payload_generation_config_android.cc | 216 part.verity.fec_roots = ecc_data.roots; in LoadVerityConfig()
|
/system/update_engine/ |
D | update_metadata.proto | 305 // The number of FEC roots.
|
/system/update_engine/update_engine/ |
D | update_metadata.proto | 305 // The number of FEC roots.
|