| /system/memory/libmeminfo/tools/alloctop/tests/ |
| D | tests.rs | 34 let result = run( in test_missing_file_handling() localVariable 63 let result = parse_allocinfo(temp_file.path().to_str().unwrap()).unwrap(); in test_parse_allocinfo_empty_file() localVariable 87 let result = parse_allocinfo(temp_file.path().to_str().unwrap()).unwrap(); in test_parse_allocinfo_valid_file() localVariable 119 let result = parse_allocinfo(temp_file.path().to_str().unwrap()).unwrap(); in test_parse_allocinfo_invalid_lines() localVariable 138 let result = parse_allocinfo("nonexistent_file.txt"); in test_parse_allocinfo_missing_file() localVariable 160 let result = parse_allocinfo(temp_file.path().to_str().unwrap()).unwrap(); in test_parse_allocinfo_comments() localVariable 244 let result = aggregate_tree(&data); in test_aggregate_tree() localVariable 266 let result = aggregate_global(&data); in test_aggregate_global() localVariable
|
| /system/libbase/ |
| D | result_test.cpp | 42 TEST(result, result_accessors) { in TEST() argument 43 Result<std::string> result = "success"; in TEST() local 53 TEST(result, result_accessors_rvalue) { in TEST() argument 63 TEST(result, result_void) { in TEST() argument 88 TEST(result, result_error) { in TEST() argument 89 Result<void> result = Error() << "failure" << 1; in TEST() local 97 TEST(result, result_error_empty) { in TEST() argument 98 Result<void> result = Error(); in TEST() local 106 TEST(result, result_error_rvalue) { in TEST() argument 121 TEST(result, result_errno_error) { in TEST() argument [all …]
|
| /system/security/keystore2/tests/ |
| D | keystore2_client_rsa_key_tests.rs | 152 let result = key_generations::map_ks_error(create_rsa_key_and_operation( in perform_rsa_sign_key_op_failure() localVariable 189 let result = create_rsa_key_and_operation( in create_rsa_encrypt_decrypt_key_op_success() localVariable 1535 let result = key_generations::map_ks_error(create_rsa_key_and_operation( in keystore2_rsa_generate_signing_key_padding_pss_fail() localVariable 1566 let result = key_generations::map_ks_error(create_rsa_key_and_operation( in keystore2_rsa_generate_key_with_oaep_padding_fail() localVariable 1596 let result = key_generations::map_ks_error(create_rsa_key_and_operation( in keystore2_rsa_generate_keys() localVariable 1624 let result = key_generations::map_ks_error(create_rsa_key_and_operation( in keystore2_rsa_encrypt_key_op_invalid_purpose() localVariable 1652 let result = key_generations::map_ks_error(create_rsa_key_and_operation( in keystore2_rsa_sign_key_op_invalid_purpose() localVariable 1680 let result = key_generations::map_ks_error(create_rsa_key_and_operation( in keystore2_rsa_key_unsupported_purpose() localVariable 1711 let result = key_generations::map_ks_error(create_rsa_key_and_operation( in keystore2_rsa_encrypt_key_unsupported_padding() localVariable 1743 let result = key_generations::map_ks_error(create_rsa_key_and_operation( in keystore2_rsa_signing_key_unsupported_padding() localVariable [all …]
|
| D | user_auth.rs | 133 let result = gk.enroll(user_id, &[], &[], GK_PASSWORD); in new_user() localVariable 152 let result = gk.verify(self.id, challenge, &self.gk_handle, GK_PASSWORD); in gk_verify() localVariable 235 let result = sec_level.createOperation(&key, ¶ms, UNFORCED); in test_auth_bound_timeout_with_gk() localVariable 244 let result = sec_level.createOperation(&key, ¶ms, UNFORCED); in test_auth_bound_timeout_with_gk() localVariable 247 let result = op.finish(Some(b"data"), None); in test_auth_bound_timeout_with_gk() localVariable 257 let result = sec_level.createOperation(&key, ¶ms, UNFORCED); in test_auth_bound_timeout_with_gk() localVariable 362 let result = sec_level.createOperation(&key, ¶ms, UNFORCED); in test_auth_bound_timeout_failure() localVariable 371 let result = sec_level.createOperation(&key, ¶ms, UNFORCED); in test_auth_bound_timeout_failure() localVariable 386 let result = sec_level.createOperation(&key, ¶ms, UNFORCED); in test_auth_bound_timeout_failure() localVariable 493 let result = sec_level in test_auth_bound_per_op_with_gk() localVariable [all …]
|
| D | keystore2_client_aes_key_tests.rs | 120 let result = key_generations::map_ks_error(create_aes_key_and_operation( in keystore2_aes_ctr_gcm_generate_key_success() localVariable 149 let result = key_generations::map_ks_error(create_aes_key_and_operation( in keystore2_aes_ctr_gcm_generate_key_fails_incompatible() localVariable 172 let result = key_generations::map_ks_error(key_generations::generate_sym_key( in keystore2_aes_key_fails_unsupported_key_size() localVariable 192 let result = key_generations::map_ks_error(key_generations::generate_sym_key( in keystore2_aes_gcm_key_fails_missing_min_mac_len() localVariable 244 let result = key_generations::map_ks_error(sl.binder.createOperation( in keystore2_aes_key_op_fails_multi_block_modes() localVariable 297 let result = key_generations::map_ks_error(sl.binder.createOperation( in keystore2_aes_key_op_fails_multi_padding_modes() localVariable 330 let result = key_generations::map_ks_error(perform_sample_sym_key_encrypt_op( in keystore2_aes_key_op_fails_incompatible_padding() localVariable 361 let result = key_generations::map_ks_error(perform_sample_sym_key_encrypt_op( in keystore2_aes_key_op_fails_incompatible_blockmode() localVariable 382 let result = key_generations::map_ks_error(create_aes_key_and_operation( in keystore2_aes_gcm_op_fails_missing_mac_len() localVariable 409 let result = key_generations::map_ks_error(create_aes_key_and_operation( in keystore2_aes_gcm_op_fails_invalid_mac_len() localVariable [all …]
|
| D | keystore2_client_delete_key_tests.rs | 43 let result = key_generations::map_ks_error(sl.keystore2.getKeyEntry(&key_metadata.key)); in keystore2_delete_key_success() localVariable 55 let result = key_generations::map_ks_error(keystore2.deleteKey(&KeyDescriptor { in keystore2_delete_key_fail() localVariable 82 let result = key_generations::map_ks_error(sl.keystore2.deleteKey(&key_metadata.key)); in keystore2_delete_key_with_blob_domain_fail() localVariable 103 let result = sl.delete_key(&key_metadata.key); in keystore2_delete_key_blob_success() localVariable 113 let result = key_generations::map_ks_error(sl.delete_key(&KeyDescriptor { in keystore2_delete_key_fails_with_missing_key_blob() localVariable 135 let result = key_generations::map_ks_error(sl.delete_key(&key_metadata.key)); in keystore2_delete_key_blob_fail() localVariable
|
| D | keystore2_client_authorizations_tests.rs | 127 let result = get_value_from_attest_record( in generate_key_and_perform_op_with_max_usage_limit() localVariable 146 let result = key_generations::map_ks_error(sl.binder.createOperation( in generate_key_and_perform_op_with_max_usage_limit() localVariable 174 let result = key_generations::create_key_and_operation( in keystore2_gen_key_auth_active_datetime_test_success() localVariable 204 let result = key_generations::map_ks_error(key_generations::create_key_and_operation( in keystore2_gen_key_auth_future_active_datetime_test_op_fail() localVariable 234 let result = key_generations::create_key_and_operation( in keystore2_gen_key_auth_future_origination_expire_datetime_test_success() localVariable 264 let result = key_generations::map_ks_error(key_generations::create_key_and_operation( in keystore2_gen_key_auth_origination_expire_datetime_test_op_fail() localVariable 328 let result = key_generations::map_ks_error( in keystore2_gen_key_auth_usage_expire_datetime_hmac_verify_op_fail() localVariable 428 let result = key_generations::map_ks_error(perform_sample_sym_key_decrypt_op( in keystore2_gen_key_auth_usage_expire_datetime_decrypt_op_fail() localVariable 460 let result = key_generations::map_ks_error(key_generations::create_key_and_operation( in keystore2_gen_key_auth_early_boot_only_op_fail() localVariable 506 let result = key_generations::map_ks_error(sl.binder.createOperation( in keystore2_gen_key_auth_max_uses_per_boot() localVariable [all …]
|
| /system/security/keystore2/src/km_compat/ |
| D | lib.rs | 70 let result = legacy.addRngEntropy(&[42; 16]); in test_add_rng_entropy() localVariable 178 let result = legacy.importWrappedKey(&[], &[], &[], &[], 0, 0); in test_import_wrapped_key() localVariable 187 let result = legacy.upgradeKey(&blob, &[]); in test_upgrade_key() localVariable 196 let result = legacy.deleteKey(&blob); in test_delete_key() localVariable 203 let result = legacy.deleteAllKeys(); in test_delete_all_keys() localVariable 210 let result = legacy.destroyAttestationIds(); in test_destroy_attestation_ids() localVariable 264 let result = legacy.begin(purpose, blob, &kps, None); in begin() localVariable 275 let result = operation.abort(); in test_begin_abort() localVariable 277 let result = operation.abort(); in test_begin_abort() localVariable 297 let result = operation.finish( in test_begin_update_finish() localVariable [all …]
|
| D | certificate_test.cpp | 74 static void ensureCertChainSize(const std::variant<std::vector<Certificate>, ScopedAStatus>& result, in ensureCertChainSize() 109 auto result = getCertificate(std::get<std::shared_ptr<IKeyMintDevice>>(device), keyParams); in TEST() local 124 auto result = getCertificate(std::get<std::shared_ptr<IKeyMintDevice>>(device), keyParams); in TEST() local 137 auto result = getCertificate(std::get<std::shared_ptr<IKeyMintDevice>>(device), keyParams); in TEST() local 152 auto result = getCertificate(std::get<std::shared_ptr<IKeyMintDevice>>(device), keyParams); in TEST() local 166 auto result = getCertificate(std::get<std::shared_ptr<IKeyMintDevice>>(device), keyParams); in TEST() local
|
| /system/apex/apexd/ |
| D | apex_classpath_test.cpp | 42 auto result = ClassPath::ParseFromFile(output.path); in TEST() local 55 auto result = ClassPath::ParseFromFile(output.path); in TEST() local 68 auto result = ClassPath::ParseFromFile(output.path); in TEST() local 79 auto result = ClassPath::ParseFromFile("/file/does/not/exist"); in TEST() local 91 auto result = ClassPath::ParseFromFile(output.path); in TEST() local 96 auto result = ClassPath::DeriveClassPath({}); in TEST() local 105 auto result = ClassPath::DeriveClassPath({"/apex/temp@123"}, "different"); in TEST() local
|
| /system/keymint/common/src/keyblob/legacy/ |
| D | tests.rs | 26 let result = consume_u8(&mut data); in test_consume_u8() localVariable 40 let result = consume_u32(&mut data); in test_consume_u32() localVariable 54 let result = consume_u64(&mut data); in test_consume_u64() localVariable 70 let result = consume_vec(&mut data); in test_consume_vec() localVariable 77 let result = consume_vec(&mut data); in test_consume_vec() localVariable 245 let result = EncryptedKeyBlob::deserialize(&data); in test_deserialize_encrypted_keyblob_fail() localVariable
|
| /system/tools/aidl/tests/rust/ |
| D | test_client.rs | 145 let result = get_test_service().TestOneway(); in test_oneway() localVariable 154 let result = get_test_service().$func(value); localVariable 219 let result = service.RepeatString(input); in test_repeat_string() localVariable 307 let result = get_test_service().$func(&array, &mut repeated); localVariable 501 let result = service in test_parcel_file_descriptor_array() localVariable 522 let result = service.ThrowServiceException(i); in test_service_specific_exception() localVariable 537 let result = service.$func(value.as_deref()); localVariable 540 let result = service.$func(None); localVariable 582 let result = service.RepeatNullableParcelable(value.as_ref()); in test_nullable_parcelable() localVariable 585 let result = service.RepeatNullableParcelable(None); in test_nullable_parcelable() localVariable [all …]
|
| /system/core/fs_mgr/tests/src/com/android/tests/vendoroverlay/ |
| D | VendorOverlayHostTest.java | 60 CommandResult result = getDevice().executeShellV2Command("df"); in setup() local 67 private boolean cmdSucceeded(CommandResult result) { in cmdSucceeded() 72 CommandResult result = getDevice().executeShellV2Command("mkdir -p " + dir); in assumeMkdirSuccess() local 82 CommandResult result = getDevice().executeShellV2Command( in testVendorOverlay() local 119 CommandResult result = getDevice().executeShellV2Command("awk '{ print $3 }' /proc/version"); in testConditionsMet() local
|
| /system/keymaster/android_keymaster/ |
| D | logger.cpp | 35 int result = Log(level, fmt, args); in Log() local 45 int result = Log(DEBUG_LVL, fmt, args); in Debug() local 55 int result = Log(INFO_LVL, fmt, args); in Info() local 65 int result = Log(WARNING_LVL, fmt, args); in Warning() local 75 int result = Log(ERROR_LVL, fmt, args); in Error() local 85 int result = Log(SEVERE_LVL, fmt, args); in Severe() local
|
| /system/core/init/test_upgrade_mte/src/com/android/tests/init/ |
| D | MteUpgradeTest.java | 42 CommandResult result = in setUp() local 73 CommandResult result = getDevice().executeShellV2Command("start mte_upgrade_test_helper"); in testCrash() local 105 CommandResult result = in testCrashOverridden() local 134 CommandResult result = in testDowngrade() local 144 CommandResult result = in testAppProcess() local
|
| /system/unwinding/libunwindstack/tests/ |
| D | RegsIterateTest.cpp | 59 std::vector<Register> result; in ExpectedRegisters() local 81 std::vector<Register> result; in ExpectedRegisters() local 121 std::vector<Register> result; in ExpectedRegisters() local 136 std::vector<Register> result; in ExpectedRegisters() local 159 std::vector<Register> result; in ExpectedRegisters() local
|
| /system/libfmq/tests/aidl/default/ |
| D | TestAidlMsgQ.cpp | 78 bool result = mFmqSynchronized->readBlocking( in requestBlockingRead() local 90 bool result = mFmqSynchronized->readBlocking(&data[0], count); in requestBlockingReadDefaultEventFlagBits() local 102 bool result = mFmqSynchronized->readBlocking( in requestBlockingReadRepeat() local 117 bool result = mFmqSynchronized->read(&data[0], count) && verifyData(&data[0], count); in requestReadFmqSync() local 124 bool result = mFmqUnsynchronized->read(&data[0], count) && verifyData(&data[0], count); in requestReadFmqUnsync() local 134 bool result = mFmqSynchronized->write(&data[0], count); in requestWriteFmqSync() local 149 bool result = mFmqUnsynchronized->write(&data[0], count); in requestWriteFmqUnsync() local
|
| /system/secretkeeper/comm/tests/ |
| D | wire.rs | 65 let result = PerformOpReq::from_slice(&bogus_data); in wire_req_deserialize_fail() localVariable 72 let result = PerformOpReq::from_slice(&bogus_data); in wire_rsp_deserialize_fail() localVariable 79 let result = OpCode::from_cbor_value(bignum); in wire_opcode_out_of_range() localVariable 91 let result = PerformOpResponse::from_slice(&bogus_data).unwrap(); in wire_rsp_errcode_out_of_range() localVariable
|
| /system/core/init/ |
| D | parser.cpp | 66 if (auto result = section_parser->EndSection(); !result.ok()) { in ParseData() local 97 if (auto result = line_callback->second(std::move(args)); !result.ok()) { in ParseData() local 105 if (auto result = in ParseData() local 114 if (auto result = section_parser->ParseLineSection(std::move(args), state.line); in ParseData() local 179 if (auto result = ParseConfigFile(file); !result.ok()) { in ParseConfigDir() local 190 auto result = ParseConfigFile(path); in ParseConfig() local
|
| D | service.cpp | 239 if (auto result = SetProcessAttributes(proc_attr_, std::move(setsid_finished)); !result.ok()) { in SetProcessAttributesAndCaps() local 442 if (auto result = Start(); !result.ok()) { in ExecStart() local 532 if (auto result = EnterNamespaces(namespaces_, name_, mount_namespace_); !result.ok()) { in RunService() local 547 if (auto result = WritePidToFiles(&writepid_files_); !result.ok()) { in RunService() local 631 if (Result<void> result = CheckConsole(); !result.ok()) { in Start() local 645 auto result = ComputeContextFromExecutable(args_[0]); in Start() local 661 if (auto result = socket.Create(scon); result.ok()) { in Start() local 669 if (auto result = file.Create(); result.ok()) { in Start() local 677 if (auto result = CreateSharedKallsymsFd(); result.ok()) { in Start() local 728 Result<void> result = cgroups_activated.Write(kActivatingCgroupsFailed); in Start() local [all …]
|
| /system/core/libutils/ |
| D | Looper_test.cpp | 140 int result = mLooper->pollOnce(100); in TEST_F() local 153 int result = mLooper->pollOnce(1000); in TEST_F() local 167 int result = mLooper->pollOnce(1000); in TEST_F() local 178 int result = mLooper->pollOnce(0); in TEST_F() local 194 int result = mLooper->pollOnce(0); in TEST_F() local 213 int result = mLooper->pollOnce(0); in TEST_F() local 235 int result = mLooper->pollOnce(100); in TEST_F() local 254 int result = mLooper->pollOnce(100); in TEST_F() local 280 int result = mLooper->pollOnce(1000); in TEST_F() local 306 int result = mLooper->pollOnce(100); in TEST_F() local [all …]
|
| /system/media/audio_utils/tests/ |
| D | intrinsic_tests.cpp | 126 const TypeParam result = veval([](auto v) { return std::abs(v); }, value); in TYPED_TEST() local 133 const TypeParam result = veval([](auto v) { return std::abs(v); }, value); in TYPED_TEST() local 140 const TypeParam result = veval( in TYPED_TEST() local 149 const TypeParam result = veval( in TYPED_TEST() local 158 element_t result{}; in TYPED_TEST() local 179 const TypeParam result = veval( in TYPED_TEST() local 188 const TypeParam result = veval( in TYPED_TEST() local 197 element_t result = android::audio_utils::intrinsics::first_element_of(a); in TYPED_TEST() local 209 const TypeParam result = veval( in TYPED_TEST() local 219 const TypeParam result = veval( in TYPED_TEST() local [all …]
|
| /system/nvram/core/ |
| D | nvram_manager.cpp | 77 volatile uint8_t result = 0; in ConstantTimeEquals() local 112 nvram_result_t result = NV_RESULT_INVALID_PARAMETER; in Dispatch() local 281 nvram_result_t result; in CreateSpace() local 298 nvram_result_t result; in GetSpaceInfo() local 333 nvram_result_t result; in DeleteSpace() local 386 nvram_result_t result = WriteHeader(Optional<uint32_t>()); in DisableCreate() local 402 nvram_result_t result; in WriteSpace() local 448 nvram_result_t result; in ReadSpace() local 477 nvram_result_t result; in LockSpaceWrite() local 509 nvram_result_t result; in LockSpaceRead() local [all …]
|
| /system/security/keystore2/src/sw_keyblob/ |
| D | tests.rs | 47 let result = consume_u8(&mut data); in test_consume_u8() localVariable 62 let result = consume_u32(&mut data); in test_consume_u32() localVariable 77 let result = consume_i64(&mut data); in test_consume_i64() localVariable 93 let result = consume_vec(&mut data); in test_consume_vec() localVariable 100 let result = consume_vec(&mut data); in test_consume_vec() localVariable
|
| /system/chre/core/ |
| D | wwan_request_manager.cc | 55 struct chreWwanCellInfoResult *result) { in handleCellInfoResult() 68 chreWwanCellInfoResult *result) { in handleCellInfoResultSync() 101 chreWwanCellInfoResult *result) { in handleFreeCellInfoResult() 125 auto *result = static_cast<chreWwanCellInfoResult *>(eventData); in freeCellInfoResultCallback() local
|