Home
last modified time | relevance | path

Searched refs:panic (Results 1 – 25 of 41) sorted by relevance

12

/system/security/keystore2/src/
Dkeystore2_main.rs28 use std::{os::raw::c_int, panic, path::Path, sync::mpsc::channel};
56 panic::set_hook(Box::new(|panic_info| { in main()
89 panic!("Must specify a database directory."); in main()
103 panic!("Failed to create service {} because of {:?}.", KS2_SERVICE_NAME, e); in main()
106 panic!("Failed to register service {} because of {:?}.", KS2_SERVICE_NAME, e); in main()
111 panic!("Failed to create service {} because of {:?}.", APC_SERVICE_NAME, e); in main()
114 panic!("Failed to register service {} because of {:?}.", APC_SERVICE_NAME, e); in main()
118 panic!("Failed to create service {} because of {:?}.", AUTHORIZATION_SERVICE_NAME, e); in main()
122 panic!("Failed to register service {} because of {:?}.", AUTHORIZATION_SERVICE_NAME, e); in main()
130 panic!("Failed to create service {} because of {:?}.", USER_MANAGER_SERVICE_NAME, e); in main()
[all …]
Dasync_task.rs380 panic!("Panic from queued job"); in test_async_task_panic()
520 panic!("Panic from idle callback"); in test_async_task_idle_panic()
Dlegacy_importer.rs198 (s, _) => panic!("Unknown legacy importer state. {} ", s), in check_state()
239 Ok(s) => panic!("Unknown legacy importer state. {} ", s), in do_serialized()
Derror.rs401 result.err().unwrap_or_else(|| panic!("Expected the error: {}", expected_error_string)) in check_result_contains_error_string()
/system/security/keystore2/test_utils/
Drun_as.rs91 panic!( in send()
104 panic!( in send()
125 panic!("In ChannelReader::recv: Failed to read size. Insufficient data: {}", r); in recv()
137 panic!( in recv()
199 panic!("Child did not exit as expected: {:?}", WaitStatus::Exited(pid, c)); in get_result()
202 panic!("Child did not exit at all: {:?}", status); in get_result()
211 panic!("Child result not checked.") in drop()
281 panic!("Failed to fork: {:?}", errno); in run_as_child()
323 panic!("Child did not exit as expected {:?}", status); in run_as()
340 panic!("Failed to fork: {:?}", errno); in run_as()
[all …]
/system/extras/libatrace_rust/src/
Dlib.rs365 panic!("Unexpected call"); in atrace_set_tracing_enabled()
368 panic!("Unexpected call"); in atrace_init()
371 panic!("Unexpected call"); in atrace_get_enabled_tags()
374 panic!("Unexpected call"); in atrace_is_tag_enabled_wrap()
377 panic!("Unexpected call"); in atrace_begin_wrap()
380 panic!("Unexpected call"); in atrace_end_wrap()
383 panic!("Unexpected call"); in atrace_async_begin_wrap()
386 panic!("Unexpected call"); in atrace_async_end_wrap()
395 panic!("Unexpected call"); in atrace_async_for_track_begin_wrap()
403 panic!("Unexpected call"); in atrace_async_for_track_end_wrap()
[all …]
Dtracing_subscriber.rs250 panic!("Unexpected call"); in atrace_is_tag_enabled()
254 panic!("Unexpected call"); in atrace_begin()
258 panic!("Unexpected call"); in atrace_end()
262 panic!("Unexpected call"); in atrace_instant()
/system/core/trusty/secretkeeper/src/
Dhal_main.rs27 panic,
95 panic!("HAL service failed: {:?}", e); in main()
108 panic::set_hook(Box::new(|panic_info| { in inner_main()
/system/security/keystore2/tests/legacy_blobs/
Dkeystore2_legacy_blob_tests.rs239 panic!("Unlock should have succeeded: {:?}", e); in keystore2_encrypted_characteristics()
316 panic!("Expecting file characteristics"); in keystore2_encrypted_characteristics()
345 panic!("getKeyEntry should have succeeded. {:?}", s); in keystore2_encrypted_characteristics()
354 panic!("Keystore service should have deleted this dir {:?}", path_buf); in keystore2_encrypted_characteristics()
493 panic!("Unlock should have succeeded: {:?}", e); in keystore2_encrypted_certificates()
563 panic!("Expecting file characteristics"); in keystore2_encrypted_certificates()
568 panic!("getKeyEntry should have succeeded. {:?}", s); in keystore2_encrypted_certificates()
577 panic!("Keystore service should have deleted this dir {:?}", path_buf); in keystore2_encrypted_certificates()
/system/core/trusty/keymint/src/
Dkeymint_hal_main.rs24 panic,
86 panic!("HAL service failed: {:?}", e); in main()
99 panic::set_hook(Box::new(|panic_info| { in inner_main()
/system/security/keystore2/src/fuzzers/aidl-fuzzers/
Dauthorization_service_fuzzer.rs26 panic!("Failed to create android.security.authorization service because of {:?}", e);
/system/extras/libatrace_rust/benchmark/src/
Datrace_benchmark_common.rs49 panic!("The criterion folder should be possible to create at {}: {}", path, e) in new_criterion()
/system/authgraph/wire/src/
Dfragmentation.rs96 _ => panic!("data fragment with incorrect prefix"), in split_msg()
244 panic!("no response received"); in test_ta_fragmentation_wrapper()
/system/nfc/src/rust/nci/
Dnci.rs342 … Some(PendingCommand{cmd, ..}) => panic!("Waiting for {:?}, got {:?}", cmd.get_op(), this_opcode), in dispatch()
343 None => panic!("Unexpected status event with opcode {:?}", this_opcode), in dispatch()
362 None => panic!("Unhandled notification {:?}", code), in dispatch()
/system/core/libstats/pull_rust/
Dstats_pull.rs40 panic!("Cannot obtain pull atom metadata."); in new()
/system/security/keystore2/tests/
Dkeystore2_client_operation_tests.rs350 _ => panic!("Operation should have created successfully."), in keystore2_ops_prune_test()
375 _ => panic!("Operation should have created successfully."), in keystore2_ops_prune_test()
Dkeystore2_client_keystore_engine_tests.rs133 _ => panic!("Unsupported algorithms"), in generate_key_and_grant_to_user()
Dkeystore2_client_test_utils.rs336 Err(e) => panic!("Error in performing op: {:#?}", e), in execute_op_run_as_child()
537 _ => panic!("Could not determine VSR API level"), in get_vsr_api_level()
Dkeystore2_client_device_unique_attestation_tests.rs103 panic!("Unknown attestation id"); in add_attest_id_auth()
/system/libfmq/
Dlibfmq.rs83 panic!( in ptr()
342 panic!( in ptr()
/system/authgraph/tests/src/
Dlib.rs741 Ok(_) => panic!("protocol downgrade prevention is broken"), in test_ke_for_version_downgrade()
744 _ => panic!("wrong error on protocol downgrade"), in test_ke_for_version_downgrade()
814 Ok(_) => panic!("replay prevention is broken in finish"), in test_ke_for_replay()
816 Err(e) => panic!("got error {e:?}, wanted ErrorCode::InvalidKeKey"), in test_ke_for_replay()
821 Ok(_) => panic!("replay prevention is broken in authentication_complete"), in test_ke_for_replay()
823 Err(e) => panic!("got error {e:?}, wanted ErrorCode::InvalidSharedKeyArcs"), in test_ke_for_replay()
/system/authgraph/boringssl/src/
Dec.rs407 panic!("Unexpected pub key variant from generate_key()"); in test_p256_keygen()
420 panic!("Unexpected pub key variant from generate_key()"); in test_p384_keygen()
433 panic!("Unexpected pub key variant from generate_key()"); in test_ed25519_keygen()
/system/secretkeeper/core/src/ta/
Dbootloader.rs206 .unwrap_or_else(|e| panic!("failed to deserialize rsp from {got}: {e:?}")); in test_serialize_rsp()
/system/core/bootstat/
Dbootstat.cpp857 std::string panic("Kernel panic - not syncing: "); in addKernelPanicSubReason() local
858 auto pos = console.rfind(panic); in addKernelPanicSubReason()
887 if (console.find(panic + s.first, pos) != std::string::npos) { in addKernelPanicSubReason()
892 auto reason = getSubreason(console, pos + panic.length(), /* newline */ false); in addKernelPanicSubReason()
/system/extras/libatrace_rust/
DREADME.md67 // Initialize the subscriber, panic if it fails.

12