/trusty/user/app/storage/ |
D | client.c | 114 enum file_op_result result) { in file_op_result_to_storage_err() argument 115 switch (result) { in file_op_result_to_storage_err() 131 SS_ERR("%s: Unknown file_op_result: %d\n", __func__, result); in file_op_result_to_storage_err() 199 enum storage_err result; in create_file_handle() local 208 result = session_set_files_count(session, handle + 1); in create_file_handle() 209 if (result != STORAGE_NO_ERROR) in create_file_handle() 210 return result; in create_file_handle() 326 enum storage_err result = in storage_transaction_end() local 328 if (result != STORAGE_NO_ERROR) { in storage_transaction_end() 329 return result; in storage_transaction_end() [all …]
|
D | client_tipc.c | 61 enum storage_err result, 67 enum storage_err result); 162 enum storage_err result = storage_file_open( in storage_tipc_file_open() local 166 if (result != STORAGE_NO_ERROR) { in storage_tipc_file_open() 167 return send_result(tipc_session, msg, result); in storage_tipc_file_open() 169 return send_response(tipc_session, result, msg, &resp, sizeof(resp)); in storage_tipc_file_open() 217 enum storage_err result = storage_file_read( in storage_tipc_file_read() local 220 if (result != STORAGE_NO_ERROR) { in storage_tipc_file_read() 221 return send_result(tipc_session, msg, result); in storage_tipc_file_read() 223 return send_response(tipc_session, result, msg, resp, resp_len); in storage_tipc_file_read() [all …]
|
D | aidl_service.cpp | 248 storage_err result = storage_file_list( in readNextFilenames() local 272 return status_from_storage_err(result); in readNextFilenames() 360 storage_err result = in read() local 365 return status_from_storage_err(result); in read() 393 storage_err result = in write() local 396 if (result != storage_err::STORAGE_NO_ERROR) { in write() 397 return status_from_storage_err(result); in write() 419 storage_err result = storage_file_get_size(session->get(), file_handle_, in getSize() local 421 if (result != storage_err::STORAGE_NO_ERROR) { in getSize() 422 return status_from_storage_err(result); in getSize() [all …]
|
/trusty/user/app/keymaster/ |
D | trusty_remote_provisioning_context.cpp | 75 std::vector<uint8_t> result(num_bytes); in DeriveBytesFromHbk() local 79 HKDF(result.data(), num_bytes, // in DeriveBytesFromHbk() 85 return result; in DeriveBytesFromHbk() 112 auto result = std::make_unique<cppbor::Map>(); in CreateDeviceInfo() local 115 return result; in CreateDeviceInfo() 117 ADD_ID_FIELD(result, ids.brand, "brand") in CreateDeviceInfo() 118 ADD_ID_FIELD(result, ids.manufacturer, "manufacturer") in CreateDeviceInfo() 119 ADD_ID_FIELD(result, ids.product, "product") in CreateDeviceInfo() 120 ADD_ID_FIELD(result, ids.model, "model") in CreateDeviceInfo() 121 ADD_ID_FIELD(result, ids.device, "device") in CreateDeviceInfo() [all …]
|
D | second_imei_attestation.cpp | 67 bool result = in validate_second_imei() local 71 return result; in validate_second_imei()
|
/trusty/user/base/lib/googletest/include/ |
D | trusty-gtest.h | 26 void OnTestPartResult(const testing::TestPartResult& result) override { in OnTestPartResult() argument 28 switch (result.type()) { in OnTestPartResult() 41 result.file_name(), result.line_number(), in OnTestPartResult() 42 result.message()); in OnTestPartResult() 59 const testing::TestResult* result = test_info.result(); in OnTestEnd() local 60 if (result->Passed()) { in OnTestEnd() 62 } else if (result->Failed()) { in OnTestEnd() 65 assert(result->Skipped()); in OnTestEnd()
|
/trusty/kernel/app/pactest/ |
D | pactest.h | 26 int pactest_autia(uint64_t address, uint64_t modifier, uint64_t* result); 28 int pactest_autib(uint64_t address, uint64_t modifier, uint64_t* result); 30 int pactest_autda(uint64_t address, uint64_t modifier, uint64_t* result); 32 int pactest_autdb(uint64_t address, uint64_t modifier, uint64_t* result);
|
/trusty/user/base/lib/hwbcc/common/ |
D | swbcc.c | 75 static int dice_result_to_err(DiceResult result) { in dice_result_to_err() argument 76 switch (result) { in dice_result_to_err() 84 return (int)result; in dice_result_to_err() 167 DiceResult result; in swbcc_glob_init() local 182 result = DiceDeriveCdiPrivateKeySeed(NULL, srv_state.dice_root.UDS, in swbcc_glob_init() 184 rc = dice_result_to_err(result); in swbcc_glob_init() 195 result = DiceKeypairFromSeed(NULL, private_key_seed, in swbcc_glob_init() 199 rc = dice_result_to_err(result); in swbcc_glob_init() 210 DiceResult result; in swbcc_init() local 260 result = DiceKeypairFromSeed(srv_state.dice_ctx, session->key_seed, in swbcc_init() [all …]
|
/trusty/vendor/google/aosp/scripts/ |
D | run_tests.py | 100 def add_result(self, result: TestResult): 102 self.test_results.append(result) 103 if result.test_status() == TEST_STATUS.PASSED: 105 if result.retried: 107 elif result.test_status() == TEST_STATUS.FAILED: 110 elif result.test_status() == TEST_STATUS.SKIPPED: 113 if result.retried: 133 for result in self.test_results: 134 match (result.test_status(), result.retried, print_failed_only): 191 for result in self.test_results: [all …]
|
/trusty/user/app/confirmationui/src/ |
D | secure_input_tracker.cpp | 48 Nonce result; in getNonce() local 49 if (trusty_rng_secure_rand(result.data(), result.size()) == NO_ERROR) { in getNonce() 50 return result; in getNonce() 126 std::tuple<ResponseCode, InputResponse> result = {ResponseCode::OK, in processInputEvent() local 128 ResponseCode& rc = std::get<0>(result); in processInputEvent() 129 InputResponse& ir = std::get<1>(result); in processInputEvent() 136 return result; in processInputEvent() 144 return result; in processInputEvent() 151 return result; in processInputEvent() 180 return result; in processInputEvent() [all …]
|
D | trusty_operation.cpp | 61 Hmac result; in hmac256() local 62 if (!HMAC_Final(&hmacCtx, result.data(), nullptr)) { in hmac256() 65 return result; in hmac256() 78 auto result = dispatchCommandMessage(in, out); in handleMsg() local 79 if (!result) { in handleMsg() 86 result = write(Message<ResponseCode>(), out, ResponseCode::SystemError); in handleMsg() 88 *responselen = result.pos() - reinterpret_cast<uint8_t*>(reponse); in handleMsg()
|
/trusty/user/base/lib/storage/rust/src/ |
D | test.rs | 24 let result = Session::new(Port::TestPortNonExistent, false); in connect_fail_no_wait() localVariable 25 assert_eq!(Err(Error::Code(ErrorCode::NotFound)), result); in connect_fail_no_wait() 63 let result = session.read(file_name, data); in read_all_buf_too_small() localVariable 65 assert_eq!(Err(Error::Code(ErrorCode::NotEnoughBuffer)), result); in read_all_buf_too_small() 84 let result = session.read_at(&mut file, 3, data); in read_at() localVariable 87 assert_eq!(Ok(&file_contents[3..8]), result); in read_at() 92 let result = session.read_at(&mut file, 10, data); in read_at() localVariable 95 assert_eq!(Ok(&file_contents[10..]), result); in read_at() 114 let result = session.write_at(&mut file, 7, b"Trusty"); in write_at() localVariable 115 assert_eq!(Ok(()), result); in write_at() [all …]
|
/trusty/user/base/lib/libc-trusty/ |
D | mman.c | 37 void* result; in mmap() local 48 result = (void*)_trusty_mmap(uaddr, size, (uint32_t)prot | flags, in mmap() 50 if (IS_ERR(result)) { in mmap() 59 result = hwasan_tag_memory(result, size); in mmap() 61 return result; in mmap()
|
/trusty/device/arm/generic-arm64/project/qemu/ |
D | lldb_support.py | 119 def trusty_thread_start_hook(debugger, _command, context, result, argument 135 print(f"Could not find symbols file for UUID {uuid}", file=result) 147 def initialize_kernel_lldb_module(debugger, _command, _context, result, argument 149 print("Loading kernel ELF file", file=result) 154 file=result 159 def relocate_kernel_hook(debugger, _command, context, result, _internal_dict): argument 162 print(f"Setting kernel ELF entry point to {hex(new_base)}", file=result)
|
/trusty/user/base/lib/unittest-rust/src/ |
D | asserts.rs | 96 result: &'static str, in assert_err() 100 assert_err_inner(result, &*err, args); in assert_err() 106 result: &'static str, in assert_err_inner() 114 result, in assert_err_inner() 122 result, in assert_err_inner()
|
D | macros.rs | 249 ($result:expr $(,)?) => ({ 250 match ($result) { 253 … $crate::asserts::assert_err(core::stringify!($result), &e, core::option::Option::None); 258 ($result:expr, $($arg:tt)+) => ({ 259 match ($result) { 262 …$crate::asserts::assert_err(core::stringify!($result), &e, core::option::Option::Some(core::format…
|
/trusty/user/app/keymint/ |
D | keybox.rs | 92 let result = keybox_unwrap(&wrapped_data); in unwrap_fake_keybox_data() localVariable 93 expect!(result.is_ok(), "Failed to unwrap data: {:?}", result); in unwrap_fake_keybox_data() 94 let unwrapped_data = result.expect("Couldn't unwrap data"); in unwrap_fake_keybox_data()
|
/trusty/user/base/app/apploader/ |
D | app_version.cpp | 44 StorageFileName result; in get_storage_file_name() local 47 result.data(), result.size(), in get_storage_file_name() 58 assert(static_cast<size_t>(written) == result.size() - 1); in get_storage_file_name() 60 return result; in get_storage_file_name()
|
/trusty/user/app/secretkeeper/ |
D | tests.rs | 30 let result = Handle::connect(port.as_c_str()); in port_connect() localVariable 33 expect!(result.is_ok(), "failed to connect to secure {port_name}: {result:?}"); in port_connect() 36 result.is_err(), in port_connect()
|
D | store.rs | 34 let mut result = String::with_capacity(PREFIX_V1.len() + 2 * key.len()); in filename() localVariable 35 result += PREFIX_V1; in filename() 37 result += &format!("{:02x}", byte); in filename() 39 result in filename() 115 let result = session in delete_all() localVariable 118 if result.is_err() { in delete_all()
|
/trusty/user/base/lib/apploader_package/ |
D | package.cpp | 60 std::unique_ptr<uint8_t[]> result(new (std::nothrow) uint8_t[key_size]()); in get_key() local 61 if (!result) { in get_key() 67 result.get(), &key_size); in get_key() 73 return {std::move(result), static_cast<size_t>(key_size)}; in get_key() 95 std::unique_ptr<uint8_t[]> result(new (std::nothrow) in get_sign_key() local 97 if (!result) { in get_sign_key() 102 memcpy(result.get(), *public_key_ptr, *public_key_size_ptr); in get_sign_key() 104 return {std::move(result), static_cast<size_t>(*public_key_size_ptr)}; in get_sign_key()
|
/trusty/user/base/lib/libc-trusty/test/ |
D | libc_test.c | 198 struct tm* result = localtime(&time); in TEST_F() local 199 ASSERT_NE(NULL, result); in TEST_F() 202 EXPECT_EQ(70, result->tm_year); in TEST_F() 203 EXPECT_EQ(0, result->tm_mon); in TEST_F() 204 EXPECT_EQ(1, result->tm_mday); in TEST_F() 205 EXPECT_EQ(0, result->tm_hour); in TEST_F() 206 EXPECT_EQ(0, result->tm_min); in TEST_F() 207 EXPECT_EQ(0, result->tm_sec); in TEST_F() 210 result = localtime(&time); in TEST_F() 211 ASSERT_NE(NULL, result); in TEST_F() [all …]
|
/trusty/user/base/lib/hwaes/srv/ |
D | hwaes_server.c | 320 resp_header->result = tipc_err_to_hwaes_err(rc); in hwaes_handle_aes_cmd() 338 resp_header->result = tipc_err_to_hwaes_err(rc); in hwaes_handle_aes_cmd() 346 resp_header->result = tipc_err_to_hwaes_err(rc); in hwaes_handle_aes_cmd() 354 resp_header->result = tipc_err_to_hwaes_err(rc); in hwaes_handle_aes_cmd() 363 resp_header->result = tipc_err_to_hwaes_err(rc); in hwaes_handle_aes_cmd() 371 resp_header->result = tipc_err_to_hwaes_err(rc); in hwaes_handle_aes_cmd() 380 resp_header->result = tipc_err_to_hwaes_err(rc); in hwaes_handle_aes_cmd() 389 resp_header->result = tipc_err_to_hwaes_err(rc); in hwaes_handle_aes_cmd() 393 resp_header->result = hwaes_aes_op(&args); in hwaes_handle_aes_cmd() 394 if (resp_header->result == HWAES_NO_ERROR) { in hwaes_handle_aes_cmd() [all …]
|
/trusty/kernel/lib/memlog/ |
D | memlog.c | 166 status_t result; in memlog_add() local 182 result = map_rb(client_id, buf_id, sz, &va); in memlog_add() 183 if (result != NO_ERROR) { in memlog_add() 209 status_t result; in memlog_rm() local 217 result = vmm_free_region(vmm_get_kernel_aspace(), (vaddr_t)log->rb); in memlog_rm() 219 if (result != NO_ERROR) { in memlog_rm()
|
/trusty/user/app/keymint/secure_storage_manager/ |
D | software.rs | 416 let mut result = Vec::new(); in hex_decode() localVariable 441 result.push(pending | nibble); in hex_decode() 444 Ok(result) in hex_decode()
|