/bootable/recovery/tests/unit/ |
D | asn1_decoder_test.cpp | 27 asn1_context ctx(empty, sizeof(empty)); in TEST() local 29 ASSERT_EQ(nullptr, ctx.asn1_constructed_get()); in TEST() 30 ASSERT_FALSE(ctx.asn1_constructed_skip_all()); in TEST() 31 ASSERT_EQ(0, ctx.asn1_constructed_type()); in TEST() 32 ASSERT_EQ(nullptr, ctx.asn1_sequence_get()); in TEST() 33 ASSERT_EQ(nullptr, ctx.asn1_set_get()); in TEST() 34 ASSERT_FALSE(ctx.asn1_sequence_next()); in TEST() 38 ASSERT_FALSE(ctx.asn1_oid_get(&junk, &length)); in TEST() 39 ASSERT_FALSE(ctx.asn1_octet_string_get(&junk, &length)); in TEST() 44 asn1_context ctx(truncated, sizeof(truncated)); in TEST() local [all …]
|
D | package_test.cpp | 90 SHA_CTX ctx; in TEST_F() local 91 SHA1_Init(&ctx); in TEST_F() 92 std::vector<HasherUpdateCallback> hashers{ std::bind(&SHA1_Update, &ctx, std::placeholders::_1, in TEST_F() 97 SHA1_Final(calculated_sha.data(), &ctx); in TEST_F()
|
/bootable/libbootloader/gbl/toolchain/ |
D | gbl_toolchain.bzl | 40 def _gbl_clang_cc_toolchain_config_impl(ctx): 42 builtin_includes = ctx.attr.builtin_includes or [LLVM_PREBUILTS_C_INCLUDE] 45 "--target={}".format(ctx.attr.target_system_triple), 50 ] + ["-I{}".format(inc) for inc in builtin_includes] + ctx.attr.cc_flags), 53 ctx = ctx, 55 toolchain_identifier = "{}_id".format(ctx.attr.cc_toolchain_name), 57 target_system_name = ctx.attr.target_system_triple, 58 target_cpu = ctx.attr.target_cpu, 84 flag_sets = [_flag_set(ctx.attr.ld_flags)] if ctx.attr.ld_flags else [], 181 def _prebuilt_binary_impl(ctx): [all …]
|
D | gbl_workspace_util.bzl | 149 # Ignore native BUILD file as we'll use override from `ctx.attr.build_file` instead.
|
/bootable/libbootloader/gbl/ |
D | readme.bzl | 21 def _readme_test_rule_impl(ctx): 81 out_file = ctx.actions.declare_file("%s.script" % ctx.attr.name) 82 in_files = [s for d in ctx.attr.deps for s in d[CrateInfo].srcs.to_list()] 83 readme = ctx.attr.readme 84 args = ctx.actions.args() 98 ctx.actions.run_shell(
|
/bootable/libbootloader/gbl/libgbl/src/ |
D | lib.rs | 460 let mut oneshot_status = slot_cursor.ctx.get_oneshot_status(); in lvb_inner() 461 slot_cursor.ctx.clear_oneshot_status(); in lvb_inner() 465 Ok(_) => oneshot_status = slot_cursor.ctx.get_oneshot_status(), in lvb_inner() 472 None | Some(OneShot::Bootloader) => slot_cursor.ctx.get_boot_target(), in lvb_inner() 486 let _ = slot_cursor.ctx.set_slot_unbootable( in lvb_inner() 497 let _ = slot_cursor.ctx.mark_boot_attempt(); in lvb_inner() 532 let token = slot_cursor.ctx.mark_boot_attempt().map_err(|_| Error::OperationProhibited)?; in lvb_inner()
|
D | slots.rs | 415 pub ctx: M, field 423 self.ctx.write_back(&mut self.block_dev); in drop()
|
/bootable/deprecated-ota/applypatch/ |
D | applypatch.cpp | 365 SHA_CTX ctx; in GenerateTarget() local 366 SHA1_Init(&ctx); in GenerateTarget() 367 SinkFn sink = [&patched, &ctx](const unsigned char* data, size_t len) { in GenerateTarget() 368 SHA1_Update(&ctx, data, len); in GenerateTarget() 386 SHA1_Final(patched.sha1, &ctx); in GenerateTarget()
|
/bootable/libbootloader/gbl/libefi/defs/ |
D | types.h | 79 typedef void (*EfiEventNotify)(EfiEvent event, void* ctx);
|
/bootable/recovery/otautil/ |
D | verifier.cpp | 72 asn1_context ctx(pkcs7_der, pkcs7_der_len); in read_pkcs7() local 74 std::unique_ptr<asn1_context> pkcs7_seq(ctx.asn1_sequence_get()); in read_pkcs7()
|
/bootable/libbootloader/gbl/libgbl/src/slots/ |
D | fuchsia.rs | 656 let mut cursor = Cursor { ctx: sb, block_dev: &mut block_dev }; in test_writeback_with_cursor() 657 assert!(cursor.ctx.set_active_slot('b'.into()).is_ok()); in test_writeback_with_cursor() 658 abr_data = cursor.ctx.get_data().clone(); in test_writeback_with_cursor()
|
/bootable/deprecated-ota/updater/ |
D | blockimg.cpp | 2109 SHA_CTX ctx; in RangeSha1Fn() local 2110 SHA1_Init(&ctx); in RangeSha1Fn() 2128 SHA1_Update(&ctx, buffer.data(), BLOCKSIZE); in RangeSha1Fn() 2132 SHA1_Final(digest, &ctx); in RangeSha1Fn()
|
/bootable/libbootloader/gbl/libefi/src/ |
D | lib.rs | 592 unsafe extern "C" fn efi_event_cb(event: EfiEvent, ctx: *mut core::ffi::c_void) { in efi_event_cb() 595 let event_cb = unsafe { (ctx as *mut EventNotify).as_mut() }.unwrap(); in efi_event_cb()
|