/system/keymaster/android_keymaster/ |
D | android_keymaster.cpp | 79 SupportedResponse<T>* response) { in check_supported() argument 81 response->error = KM_ERROR_UNSUPPORTED_ALGORITHM; in check_supported() 98 SupportedAlgorithmsResponse* response) { in SupportedAlgorithms() argument 99 if (response == nullptr) in SupportedAlgorithms() 102 response->error = KM_ERROR_OK; in SupportedAlgorithms() 108 response->results_length = algorithm_count; in SupportedAlgorithms() 109 response->results = dup_array(algorithms, algorithm_count); in SupportedAlgorithms() 110 if (!response->results) in SupportedAlgorithms() 111 response->error = KM_ERROR_MEMORY_ALLOCATION_FAILED; in SupportedAlgorithms() 118 SupportedResponse<T>* response) { in GetSupported() argument [all …]
|
/system/core/trusty/keymaster/ |
D | TrustyKeymaster.cpp | 65 void TrustyKeymaster::GetVersion(const GetVersionRequest& request, GetVersionResponse* response) { in GetVersion() argument 66 ForwardCommand(KM_GET_VERSION, request, response); in GetVersion() 70 SupportedAlgorithmsResponse* response) { in SupportedAlgorithms() argument 71 ForwardCommand(KM_GET_SUPPORTED_ALGORITHMS, request, response); in SupportedAlgorithms() 75 SupportedBlockModesResponse* response) { in SupportedBlockModes() argument 76 ForwardCommand(KM_GET_SUPPORTED_BLOCK_MODES, request, response); in SupportedBlockModes() 80 SupportedPaddingModesResponse* response) { in SupportedPaddingModes() argument 81 ForwardCommand(KM_GET_SUPPORTED_PADDING_MODES, request, response); in SupportedPaddingModes() 85 SupportedDigestsResponse* response) { in SupportedDigests() argument 86 ForwardCommand(KM_GET_SUPPORTED_DIGESTS, request, response); in SupportedDigests() [all …]
|
/system/bt/hci/src/ |
D | hci_packet_parser.cc | 34 static uint8_t* read_command_complete_header(BT_HDR* response, 38 static void parse_generic_command_complete(BT_HDR* response) { in parse_generic_command_complete() argument 39 read_command_complete_header(response, NO_OPCODE_CHECKING, in parse_generic_command_complete() 42 buffer_allocator->free(response); in parse_generic_command_complete() 45 static void parse_read_buffer_size_response(BT_HDR* response, in parse_read_buffer_size_response() argument 48 uint8_t* stream = read_command_complete_header(response, HCI_READ_BUFFER_SIZE, in parse_read_buffer_size_response() 55 buffer_allocator->free(response); in parse_read_buffer_size_response() 58 static void parse_read_local_version_info_response(BT_HDR* response, in parse_read_local_version_info_response() argument 61 response, HCI_READ_LOCAL_VERSION_INFO, 8 /* bytes after */); in parse_read_local_version_info_response() 69 buffer_allocator->free(response); in parse_read_local_version_info_response() [all …]
|
/system/core/trusty/keymaster/include/trusty_keymaster/ |
D | TrustyKeymaster.h | 29 void GetVersion(const GetVersionRequest& request, GetVersionResponse* response); 31 SupportedAlgorithmsResponse* response); 33 SupportedBlockModesResponse* response); 35 SupportedPaddingModesResponse* response); 37 SupportedDigestsResponse* response); 39 SupportedImportFormatsResponse* response); 41 SupportedExportFormatsResponse* response); 42 void AddRngEntropy(const AddEntropyRequest& request, AddEntropyResponse* response); 43 void Configure(const ConfigureRequest& request, ConfigureResponse* response); 44 void GenerateKey(const GenerateKeyRequest& request, GenerateKeyResponse* response); [all …]
|
/system/keymaster/include/keymaster/ |
D | android_keymaster.h | 54 void GetVersion(const GetVersionRequest& request, GetVersionResponse* response); 56 SupportedAlgorithmsResponse* response); 58 SupportedBlockModesResponse* response); 60 SupportedPaddingModesResponse* response); 62 SupportedDigestsResponse* response); 64 SupportedImportFormatsResponse* response); 66 SupportedExportFormatsResponse* response); 72 void AddRngEntropy(const AddEntropyRequest& request, AddEntropyResponse* response); 73 void Configure(const ConfigureRequest& request, ConfigureResponse* response); 74 void GenerateKey(const GenerateKeyRequest& request, GenerateKeyResponse* response); [all …]
|
/system/core/libappfuse/tests/ |
D | FuseBufferTest.cc | 116 FuseResponse response; in TEST() local 118 memset(response.read_data, 'a', 10); in TEST() 120 response.Reset(0, -1, 2); in TEST() 121 EXPECT_EQ(sizeof(fuse_out_header), response.header.len); in TEST() 122 EXPECT_EQ(-1, response.header.error); in TEST() 123 EXPECT_EQ(2u, response.header.unique); in TEST() 124 EXPECT_EQ('a', response.read_data[0]); in TEST() 125 EXPECT_EQ('a', response.read_data[9]); in TEST() 127 response.Reset(5, -4, 3); in TEST() 128 EXPECT_EQ(sizeof(fuse_out_header) + 5, response.header.len); in TEST() [all …]
|
/system/bt/hci/include/ |
D | hci_packet_parser.h | 30 void (*parse_generic_command_complete)(BT_HDR* response); 32 void (*parse_read_buffer_size_response)(BT_HDR* response, 36 void (*parse_read_local_version_info_response)(BT_HDR* response, 39 void (*parse_read_bd_addr_response)(BT_HDR* response, 43 BT_HDR* response, uint8_t* supported_commands_ptr, 47 BT_HDR* response, uint8_t* page_number_ptr, uint8_t* max_page_number_ptr, 50 void (*parse_ble_read_white_list_size_response)(BT_HDR* response, 53 void (*parse_ble_read_buffer_size_response)(BT_HDR* response, 58 BT_HDR* response, uint8_t* supported_states, 62 BT_HDR* response, bt_device_features_t* supported_features); [all …]
|
/system/keymaster/ng/ |
D | AndroidKeymaster4Device.cpp | 244 auto response = impl_->GetHmacSharingParameters(); in getHmacSharingParameters() local 247 params.seed.setToExternal(const_cast<uint8_t*>(response.params.seed.data), in getHmacSharingParameters() 248 response.params.seed.data_length); in getHmacSharingParameters() 249 static_assert(sizeof(response.params.nonce) == params.nonce.size(), "Nonce sizes don't match"); in getHmacSharingParameters() 250 memcpy(params.nonce.data(), response.params.nonce, params.nonce.size()); in getHmacSharingParameters() 251 _hidl_cb(legacy_enum_conversion(response.error), params); in getHmacSharingParameters() 270 auto response = impl_->ComputeSharedHmac(request); in computeSharedHmac() local 272 if (response.error == KM_ERROR_OK) sharing_check = kmBlob2hidlVec(response.sharing_check); in computeSharedHmac() 274 _hidl_cb(legacy_enum_conversion(response.error), sharing_check); in computeSharedHmac() 294 auto response = impl_->VerifyAuthorization(request); in verifyAuthorization() local [all …]
|
D | AndroidKeymaster3Device.cpp | 270 AddEntropyResponse response; in addRngEntropy() local 271 impl_->AddRngEntropy(request, &response); in addRngEntropy() 273 return legacy_enum_conversion(response.error); in addRngEntropy() 281 GenerateKeyResponse response; in generateKey() local 282 impl_->GenerateKey(request, &response); in generateKey() 286 if (response.error == KM_ERROR_OK) { in generateKey() 287 resultKeyBlob = kmBlob2hidlVec(response.key_blob); in generateKey() 288 resultCharacteristics.teeEnforced = kmParamSet2Hidl(response.enforced); in generateKey() 289 resultCharacteristics.softwareEnforced = kmParamSet2Hidl(response.unenforced); in generateKey() 291 _hidl_cb(legacy_enum_conversion(response.error), resultKeyBlob, resultCharacteristics); in generateKey() [all …]
|
/system/core/trusty/keymaster/3.0/ |
D | TrustyKeymaster3Device.cpp | 227 AddEntropyResponse response; in addRngEntropy() local 228 impl_->AddRngEntropy(request, &response); in addRngEntropy() 230 return legacy_enum_conversion(response.error); in addRngEntropy() 238 GenerateKeyResponse response; in generateKey() local 239 impl_->GenerateKey(request, &response); in generateKey() 243 if (response.error == KM_ERROR_OK) { in generateKey() 244 resultKeyBlob = kmBlob2hidlVec(response.key_blob); in generateKey() 245 resultCharacteristics.teeEnforced = kmParamSet2Hidl(response.enforced); in generateKey() 246 resultCharacteristics.softwareEnforced = kmParamSet2Hidl(response.unenforced); in generateKey() 248 _hidl_cb(legacy_enum_conversion(response.error), resultKeyBlob, resultCharacteristics); in generateKey() [all …]
|
/system/core/trusty/keymaster/4.0/ |
D | TrustyKeymaster4Device.cpp | 274 const GetHmacSharingParametersResponse response = impl_->GetHmacSharingParameters(); in getHmacSharingParameters() local 277 params.seed.setToExternal(const_cast<uint8_t*>(response.params.seed.data), in getHmacSharingParameters() 278 response.params.seed.data_length); in getHmacSharingParameters() 279 static_assert(sizeof(response.params.nonce) == params.nonce.size(), "Nonce sizes don't match"); in getHmacSharingParameters() 280 memcpy(params.nonce.data(), response.params.nonce, params.nonce.size()); in getHmacSharingParameters() 281 _hidl_cb(legacy_enum_conversion(response.error), params); in getHmacSharingParameters() 299 auto response = impl_->ComputeSharedHmac(request); in computeSharedHmac() local 301 if (response.error == KM_ERROR_OK) { in computeSharedHmac() 302 sharing_check = kmBlob2hidlVec(response.sharing_check); in computeSharedHmac() 305 _hidl_cb(legacy_enum_conversion(response.error), sharing_check); in computeSharedHmac() [all …]
|
/system/keymaster/contexts/ |
D | soft_keymaster_device.cpp | 424 SupportedAlgorithmsResponse response; in get_supported_algorithms() local 425 convert_device(dev)->impl_->SupportedAlgorithms(request, &response); in get_supported_algorithms() 426 if (response.error != KM_ERROR_OK) { in get_supported_algorithms() 427 LOG_E("get_supported_algorithms failed with %d", response.error); in get_supported_algorithms() 429 return response.error; in get_supported_algorithms() 432 *algorithms_length = response.results_length; in get_supported_algorithms() 437 std::copy(response.results, response.results + response.results_length, *algorithms); in get_supported_algorithms() 460 SupportedBlockModesResponse response; in get_supported_block_modes() local 461 convert_device(dev)->impl_->SupportedBlockModes(request, &response); in get_supported_block_modes() 463 if (response.error != KM_ERROR_OK) { in get_supported_block_modes() [all …]
|
/system/core/libappfuse/ |
D | FuseAppLoop.cc | 126 return buffer->response.Write(fd); in HandleMessage() 149 FuseSimpleResponse response; in ReplySimple() local 150 response.Reset(0, result, unique); in ReplySimple() 151 return response.Write(fd_); in ReplySimple() 155 FuseSimpleResponse response; in ReplyLookup() local 156 response.Reset(sizeof(fuse_entry_out), 0, unique); in ReplyLookup() 157 response.entry_out.nodeid = inode; in ReplyLookup() 158 response.entry_out.attr_valid = 10; in ReplyLookup() 159 response.entry_out.entry_valid = 10; in ReplyLookup() 160 response.entry_out.attr.ino = inode; in ReplyLookup() [all …]
|
/system/nvram/core/include/nvram/core/ |
D | nvram_manager.h | 38 void Dispatch(const Request& request, Response* response); 41 GetInfoResponse* response); 43 CreateSpaceResponse* response); 45 GetSpaceInfoResponse* response); 47 DeleteSpaceResponse* response); 49 DisableCreateResponse* response); 51 WriteSpaceResponse* response); 53 ReadSpaceResponse* response); 55 LockSpaceWriteResponse* response); 57 LockSpaceReadResponse* response); [all …]
|
/system/core/trusty/gatekeeper/ |
D | trusty_gatekeeper.cpp | 82 EnrollResponse response; in enroll() local 83 auto error = Send(request, &response); in enroll() 86 } else if (response.error == ERROR_RETRY) { in enroll() 87 _hidl_cb({GatekeeperStatusCode::ERROR_RETRY_TIMEOUT, response.retry_timeout, {}}); in enroll() 88 } else if (response.error != ERROR_NONE) { in enroll() 91 hidl_vec<uint8_t> new_handle(response.enrolled_password_handle.Data<uint8_t>(), in enroll() 92 response.enrolled_password_handle.Data<uint8_t>() + in enroll() 93 response.enrolled_password_handle.size()); in enroll() 94 _hidl_cb({GatekeeperStatusCode::STATUS_OK, response.retry_timeout, new_handle}); in enroll() 115 VerifyResponse response; in verify() local [all …]
|
/system/bt/device/src/ |
D | controller.cc | 99 BT_HDR* response; in start_up() local 102 response = AWAIT_COMMAND(packet_factory->make_reset()); in start_up() 103 packet_parser->parse_generic_command_complete(response); in start_up() 106 response = AWAIT_COMMAND(packet_factory->make_read_buffer_size()); in start_up() 108 response, &acl_data_size_classic, &acl_buffer_count_classic); in start_up() 113 response = AWAIT_COMMAND(packet_factory->make_host_buffer_size( in start_up() 116 packet_parser->parse_generic_command_complete(response); in start_up() 120 response = AWAIT_COMMAND(packet_factory->make_read_local_version_info()); in start_up() 121 packet_parser->parse_read_local_version_info_response(response, &bt_version); in start_up() 124 response = AWAIT_COMMAND(packet_factory->make_read_bd_addr()); in start_up() [all …]
|
/system/chre/platform/android/ |
D | host_link.cc | 93 fbs::HubInfoResponseT response; in handleHubInfoRequest() local 94 setVectorToString(&response.name, "CHRE on Android"); in handleHubInfoRequest() 95 setVectorToString(&response.vendor, "Google"); in handleHubInfoRequest() 96 setVectorToString(&response.toolchain, "Android NDK API 26 (clang " in handleHubInfoRequest() 100 response.platform_version = 0; in handleHubInfoRequest() 101 response.toolchain_version = ((__clang_major__ & 0xFF) << 24) | in handleHubInfoRequest() 104 response.peak_mips = 1000; in handleHubInfoRequest() 105 response.stopped_power = 1000; in handleHubInfoRequest() 106 response.sleep_power = 1000; in handleHubInfoRequest() 107 response.peak_power = 10000; in handleHubInfoRequest() [all …]
|
/system/nvram/messages/tests/ |
D | nvram_messages_test.cpp | 49 Response response; in TEST() local 50 response.result = NV_RESULT_SUCCESS; in TEST() 51 response.payload.Activate<COMMAND_GET_INFO>(); in TEST() 54 response.payload.Activate<COMMAND_GET_INFO>(); in TEST() 66 EncodeAndDecode(response, &decoded); in TEST() 68 EXPECT_EQ(NV_RESULT_SUCCESS, response.result); in TEST() 118 Response response; in TEST() local 119 response.result = NV_RESULT_SPACE_ALREADY_EXISTS; in TEST() 120 response.payload.Activate<COMMAND_CREATE_SPACE>(); in TEST() 123 EncodeAndDecode(response, &decoded); in TEST() [all …]
|
/system/core/debuggerd/tombstoned/ |
D | intercept_manager.cpp | 123 InterceptResponse response = {}; in intercept_request_cb() local 124 response.status = InterceptStatus::kFailed; in intercept_request_cb() 125 snprintf(response.error_message, sizeof(response.error_message), "invalid intercept request"); in intercept_request_cb() 126 TEMP_FAILURE_RETRY(write(sockfd, &response, sizeof(response))); in intercept_request_cb() 135 InterceptResponse response = {}; in intercept_request_cb() local 136 response.status = InterceptStatus::kFailedAlreadyRegistered; in intercept_request_cb() 137 snprintf(response.error_message, sizeof(response.error_message), in intercept_request_cb() 140 TEMP_FAILURE_RETRY(write(sockfd, &response, sizeof(response))); in intercept_request_cb() 141 LOG(WARNING) << response.error_message; in intercept_request_cb() 147 InterceptResponse response = {}; in intercept_request_cb() local [all …]
|
/system/gatekeeper/ |
D | gatekeeper.cpp | 26 void GateKeeper::Enroll(const EnrollRequest &request, EnrollResponse *response) { in Enroll() argument 27 if (response == nullptr) return; in Enroll() 30 response->error = ERROR_INVALID; in Enroll() 44 response->error = ERROR_INVALID; in Enroll() 58 response->error = ERROR_UNKNOWN; in Enroll() 62 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Enroll() 65 response->error = ERROR_UNKNOWN; in Enroll() 75 response->SetRetryTimeout(timeout); in Enroll() 77 response->error = ERROR_INVALID; in Enroll() 96 response->error = ERROR_INVALID; in Enroll() [all …]
|
/system/update_engine/ |
D | omaha_response_handler_action.cc | 54 const OmahaResponse& response = GetInputObject(); in PerformAction() local 55 if (!response.update_exists) { in PerformAction() 77 install_plan_.version = response.version; in PerformAction() 78 install_plan_.system_version = response.system_version; in PerformAction() 95 for (const auto& package : response.packages) { in PerformAction() 113 install_plan_.public_key_rsa = response.public_key_rsa; in PerformAction() 114 install_plan_.hash_checks_mandatory = AreHashChecksMandatory(response); in PerformAction() 148 if (response.is_rollback) { in PerformAction() 162 static_cast<uint32_t>(response.rollback_key_version.kernel_key) << 16 | in PerformAction() 163 static_cast<uint32_t>(response.rollback_key_version.kernel); in PerformAction() [all …]
|
D | omaha_request_action_unittest.cc | 424 OmahaResponse* response); 453 OmahaResponse response; member in chromeos_update_engine::OmahaRequestActionTest 558 response = *delegate_.omaha_response_; in TestUpdateCheck() 599 EXPECT_FALSE(response.update_exists); in TEST_F() 608 EXPECT_FALSE(response.update_exists); in TEST_F() 618 EXPECT_FALSE(response.update_exists); in TEST_F() 628 EXPECT_FALSE(response.update_exists); in TEST_F() 640 EXPECT_FALSE(response.update_exists); in TEST_F() 651 EXPECT_TRUE(response.update_exists); in TEST_F() 652 EXPECT_EQ(fake_update_response_.version, response.version); in TEST_F() [all …]
|
D | payload_state_unittest.cc | 70 OmahaResponse* response) { in SetupPayloadStateWith2Urls() argument 71 response->packages.clear(); in SetupPayloadStateWith2Urls() 72 response->packages.push_back({.payload_urls = {"http://test", "https://test"}, in SetupPayloadStateWith2Urls() 78 response->max_failure_count_per_url = 3; in SetupPayloadStateWith2Urls() 79 payload_state->SetResponse(*response); in SetupPayloadStateWith2Urls() 102 response->packages[0].is_delta, in SetupPayloadStateWith2Urls() 104 response->max_failure_count_per_url, in SetupPayloadStateWith2Urls() 105 response->disable_payload_backoff); in SetupPayloadStateWith2Urls() 112 OmahaResponse response; in TEST() local 137 payload_state.SetResponse(response); in TEST() [all …]
|
/system/core/fastboot/ |
D | fastboot_driver.cpp | 68 RetCode FastBootDriver::Boot(std::string* response, std::vector<std::string>* info) { in Boot() argument 69 return RawCommand(FB_CMD_BOOT, "Booting", response, info); in Boot() 72 RetCode FastBootDriver::Continue(std::string* response, std::vector<std::string>* info) { in Continue() argument 73 return RawCommand(FB_CMD_CONTINUE, "Resuming boot", response, info); in Continue() 85 RetCode FastBootDriver::Erase(const std::string& partition, std::string* response, in Erase() argument 87 return RawCommand(FB_CMD_ERASE ":" + partition, "Erasing '" + partition + "'", response, info); in Erase() 90 RetCode FastBootDriver::Flash(const std::string& partition, std::string* response, in Flash() argument 92 return RawCommand(FB_CMD_FLASH ":" + partition, "Writing '" + partition + "'", response, info); in Flash() 100 RetCode FastBootDriver::GetVarAll(std::vector<std::string>* response) { in GetVarAll() argument 102 return GetVar("all", &tmp, response); in GetVarAll() [all …]
|
/system/chre/host/hal_generic/ |
D | generic_context_hub.cc | 373 const fbs::HubInfoResponseT& response) { in handleHubInfoResponse() argument 380 mParent.mHubInfo.name = getStringFromByteVector(response.name); in handleHubInfoResponse() 381 mParent.mHubInfo.vendor = getStringFromByteVector(response.vendor); in handleHubInfoResponse() 382 mParent.mHubInfo.toolchain = getStringFromByteVector(response.toolchain); in handleHubInfoResponse() 383 mParent.mHubInfo.platformVersion = response.platform_version; in handleHubInfoResponse() 384 mParent.mHubInfo.toolchainVersion = response.toolchain_version; in handleHubInfoResponse() 387 mParent.mHubInfo.peakMips = response.peak_mips; in handleHubInfoResponse() 388 mParent.mHubInfo.stoppedPowerDrawMw = response.stopped_power; in handleHubInfoResponse() 389 mParent.mHubInfo.sleepPowerDrawMw = response.sleep_power; in handleHubInfoResponse() 390 mParent.mHubInfo.peakPowerDrawMw = response.peak_power; in handleHubInfoResponse() [all …]
|