Home
last modified time | relevance | path

Searched refs:request (Results 1 – 25 of 193) sorted by relevance

12345678

/system/core/trusty/keymaster/
DTrustyKeymaster.cpp65 void TrustyKeymaster::GetVersion(const GetVersionRequest& request, GetVersionResponse* response) { in GetVersion() argument
66 ForwardCommand(KM_GET_VERSION, request, response); in GetVersion()
69 void TrustyKeymaster::SupportedAlgorithms(const SupportedAlgorithmsRequest& request, in SupportedAlgorithms() argument
71 ForwardCommand(KM_GET_SUPPORTED_ALGORITHMS, request, response); in SupportedAlgorithms()
74 void TrustyKeymaster::SupportedBlockModes(const SupportedBlockModesRequest& request, in SupportedBlockModes() argument
76 ForwardCommand(KM_GET_SUPPORTED_BLOCK_MODES, request, response); in SupportedBlockModes()
79 void TrustyKeymaster::SupportedPaddingModes(const SupportedPaddingModesRequest& request, in SupportedPaddingModes() argument
81 ForwardCommand(KM_GET_SUPPORTED_PADDING_MODES, request, response); in SupportedPaddingModes()
84 void TrustyKeymaster::SupportedDigests(const SupportedDigestsRequest& request, in SupportedDigests() argument
86 ForwardCommand(KM_GET_SUPPORTED_DIGESTS, request, response); in SupportedDigests()
[all …]
/system/core/trusty/keymaster/include/trusty_keymaster/
DTrustyKeymaster.h29 void GetVersion(const GetVersionRequest& request, GetVersionResponse* response);
30 void SupportedAlgorithms(const SupportedAlgorithmsRequest& request,
32 void SupportedBlockModes(const SupportedBlockModesRequest& request,
34 void SupportedPaddingModes(const SupportedPaddingModesRequest& request,
36 void SupportedDigests(const SupportedDigestsRequest& request,
38 void SupportedImportFormats(const SupportedImportFormatsRequest& request,
40 void SupportedExportFormats(const SupportedExportFormatsRequest& request,
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/
Dandroid_keymaster.h54 void GetVersion(const GetVersionRequest& request, GetVersionResponse* response);
55 void SupportedAlgorithms(const SupportedAlgorithmsRequest& request,
57 void SupportedBlockModes(const SupportedBlockModesRequest& request,
59 void SupportedPaddingModes(const SupportedPaddingModesRequest& request,
61 void SupportedDigests(const SupportedDigestsRequest& request,
63 void SupportedImportFormats(const SupportedImportFormatsRequest& request,
65 void SupportedExportFormats(const SupportedExportFormatsRequest& request,
69 ComputeSharedHmacResponse ComputeSharedHmac(const ComputeSharedHmacRequest& request);
70 VerifyAuthorizationResponse VerifyAuthorization(const VerifyAuthorizationRequest& request);
72 void AddRngEntropy(const AddEntropyRequest& request, AddEntropyResponse* response);
[all …]
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp133 void AndroidKeymaster::SupportedBlockModes(const SupportedBlockModesRequest& request, in SupportedBlockModes() argument
135 GetSupported(*context_, request.algorithm, request.purpose, in SupportedBlockModes()
139 void AndroidKeymaster::SupportedPaddingModes(const SupportedPaddingModesRequest& request, in SupportedPaddingModes() argument
141 GetSupported(*context_, request.algorithm, request.purpose, in SupportedPaddingModes()
145 void AndroidKeymaster::SupportedDigests(const SupportedDigestsRequest& request, in SupportedDigests() argument
147 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests, in SupportedDigests()
151 void AndroidKeymaster::SupportedImportFormats(const SupportedImportFormatsRequest& request, in SupportedImportFormats() argument
153 if (response == nullptr || !check_supported(*context_, request.algorithm, response)) in SupportedImportFormats()
158 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count); in SupportedImportFormats()
162 void AndroidKeymaster::SupportedExportFormats(const SupportedExportFormatsRequest& request, in SupportedExportFormats() argument
[all …]
/system/chre/core/tests/
Drequest_multiplexer_test.cc31 bool isEquivalentTo(const DummyRequest& request) const { in isEquivalentTo()
32 return (mPriority == request.mPriority); in isEquivalentTo()
35 bool mergeWith(const DummyRequest& request) { in mergeWith() argument
37 if (request.mPriority > mPriority) { in mergeWith()
38 mPriority = request.mPriority; in mergeWith()
55 DummyRequest request; in TEST() local
58 ASSERT_TRUE(multiplexer.addRequest(request, &index, &maximalRequestChanged)); in TEST()
65 DummyRequest request(10); in TEST() local
68 ASSERT_TRUE(multiplexer.addRequest(request, &index, &maximalRequestChanged)); in TEST()
78 DummyRequest request(10); in TEST() local
[all …]
/system/update_engine/payload_consumer/
Dxz_extent_writer.cc79 xz_buf request; in Write() local
80 request.in = input; in Write()
81 request.in_pos = 0; in Write()
82 request.in_size = count; in Write()
85 request.out = output_buffer.data(); in Write()
86 request.out_size = output_buffer.size(); in Write()
88 request.out_pos = 0; in Write()
90 xz_ret ret = xz_dec_run(stream_, &request); in Write()
96 if (request.out_pos == 0) in Write()
100 underlying_writer_->Write(output_buffer.data(), request.out_pos)); in Write()
[all …]
/system/chre/core/
Dsensor_request.cc26 Nanoseconds getBatchInterval(const SensorRequest& request) { in getBatchInterval() argument
30 if (request.getInterval() == Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT) in getBatchInterval()
31 || request.getLatency() == Nanoseconds(CHRE_SENSOR_LATENCY_DEFAULT)) { in getBatchInterval()
34 return request.getInterval() + request.getLatency(); in getBatchInterval()
63 bool SensorRequest::isEquivalentTo(const SensorRequest& request) const { in isEquivalentTo()
64 return (mMode == request.mMode in isEquivalentTo()
65 && mInterval == request.mInterval in isEquivalentTo()
66 && mLatency == request.mLatency); in isEquivalentTo()
69 bool SensorRequest::mergeWith(const SensorRequest& request) { in mergeWith() argument
71 if (request.mMode != SensorMode::Off) { in mergeWith()
[all …]
Dsensor.cc21 bool Sensor::setRequest(const SensorRequest& request) { in setRequest() argument
24 if (request.isEquivalentTo(mSensorRequest)) { in setRequest()
26 } else if (applyRequest(request)) { in setRequest()
28 mSensorRequest = request; in setRequest()
/system/core/libappfuse/
DFuseAppLoop.cc35 if (buffer->request.header.nodeid != FUSE_ROOT_ID) { in HandleLookUp()
37 return loop->ReplySimple(buffer->request.header.unique, -ENOENT); in HandleLookUp()
41 const size_t filename_length = buffer->request.header.len - sizeof(fuse_in_header); in HandleLookUp()
42 if (buffer->request.lookup_name[filename_length - 1] != 0) { in HandleLookUp()
44 return loop->ReplySimple(buffer->request.header.unique, -ENOENT); in HandleLookUp()
47 const uint64_t inode = static_cast<uint64_t>(atol(buffer->request.lookup_name)); in HandleLookUp()
50 return loop->ReplySimple(buffer->request.header.unique, -ENOENT); in HandleLookUp()
53 callback->OnLookup(buffer->request.header.unique, inode); in HandleLookUp()
58 if (buffer->request.header.nodeid == FUSE_ROOT_ID) { in HandleGetAttr()
59 return loop->ReplyGetAttr(buffer->request.header.unique, buffer->request.header.nodeid, 0, in HandleGetAttr()
[all …]
/system/keymaster/ng/
DAndroidKeymaster4Device.cpp258 ComputeSharedHmacRequest request; in computeSharedHmac() local
259 request.params_array.params_array = new keymaster::HmacSharingParameters[params.size()]; in computeSharedHmac()
260 request.params_array.num_params = params.size(); in computeSharedHmac()
262 request.params_array.params_array[i].seed = {params[i].seed.data(), params[i].seed.size()}; in computeSharedHmac()
263 static_assert(sizeof(request.params_array.params_array[i].nonce) == in computeSharedHmac()
266 memcpy(request.params_array.params_array[i].nonce, params[i].nonce.data(), in computeSharedHmac()
270 auto response = impl_->ComputeSharedHmac(request); in computeSharedHmac()
283 VerifyAuthorizationRequest request; in verifyAuthorization() local
284 request.challenge = challenge; in verifyAuthorization()
285 request.parameters_to_verify.Reinitialize(KmParamSet(parametersToVerify)); in verifyAuthorization()
[all …]
DAndroidKeymaster3Device.cpp267 AddEntropyRequest request; in addRngEntropy() local
268 request.random_data.Reinitialize(data.data(), data.size()); in addRngEntropy()
271 impl_->AddRngEntropy(request, &response); in addRngEntropy()
278 GenerateKeyRequest request; in generateKey() local
279 request.key_description.Reinitialize(KmParamSet(keyParams)); in generateKey()
282 impl_->GenerateKey(request, &response); in generateKey()
299 GetKeyCharacteristicsRequest request; in getKeyCharacteristics() local
300 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in getKeyCharacteristics()
301 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
304 impl_->GetKeyCharacteristics(request, &response); in getKeyCharacteristics()
[all …]
/system/core/libappfuse/tests/
DFuseBufferTest.cc69 FuseRequest request; in TEST() local
70 request.header.len = sizeof(FuseRequest); in TEST()
71 request.header.opcode = 1; in TEST()
72 request.header.unique = 2; in TEST()
73 request.header.nodeid = 3; in TEST()
74 request.header.uid = 4; in TEST()
75 request.header.gid = 5; in TEST()
76 request.header.pid = 6; in TEST()
77 strcpy(request.lookup_name, "test"); in TEST()
79 ASSERT_TRUE(request.Write(fd)); in TEST()
[all …]
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp287 ComputeSharedHmacRequest request; in computeSharedHmac() local
288 request.params_array.params_array = new keymaster::HmacSharingParameters[params.size()]; in computeSharedHmac()
289 request.params_array.num_params = params.size(); in computeSharedHmac()
291 request.params_array.params_array[i].seed = {params[i].seed.data(), params[i].seed.size()}; in computeSharedHmac()
292 static_assert(sizeof(request.params_array.params_array[i].nonce) == in computeSharedHmac()
295 memcpy(request.params_array.params_array[i].nonce, params[i].nonce.data(), in computeSharedHmac()
299 auto response = impl_->ComputeSharedHmac(request); in computeSharedHmac()
312 VerifyAuthorizationRequest request; in verifyAuthorization() local
313 request.challenge = challenge; in verifyAuthorization()
314 request.parameters_to_verify.Reinitialize(KmParamSet(parametersToVerify)); in verifyAuthorization()
[all …]
/system/nvram/core/include/nvram/core/
Dnvram_manager.h38 void Dispatch(const Request& request, Response* response);
40 nvram_result_t GetInfo(const GetInfoRequest& request,
42 nvram_result_t CreateSpace(const CreateSpaceRequest& request,
44 nvram_result_t GetSpaceInfo(const GetSpaceInfoRequest& request,
46 nvram_result_t DeleteSpace(const DeleteSpaceRequest& request,
48 nvram_result_t DisableCreate(const DisableCreateRequest& request,
50 nvram_result_t WriteSpace(const WriteSpaceRequest& request,
52 nvram_result_t ReadSpace(const ReadSpaceRequest& request,
54 nvram_result_t LockSpaceWrite(const LockSpaceWriteRequest& request,
56 nvram_result_t LockSpaceRead(const LockSpaceReadRequest& request,
[all …]
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp224 AddEntropyRequest request; in addRngEntropy() local
225 request.random_data.Reinitialize(data.data(), data.size()); in addRngEntropy()
228 impl_->AddRngEntropy(request, &response); in addRngEntropy()
235 GenerateKeyRequest request; in generateKey() local
236 request.key_description.Reinitialize(KmParamSet(keyParams)); in generateKey()
239 impl_->GenerateKey(request, &response); in generateKey()
256 GetKeyCharacteristicsRequest request; in getKeyCharacteristics() local
257 request.SetKeyMaterial(keyBlob.data(), keyBlob.size()); in getKeyCharacteristics()
258 addClientAndAppData(clientId, appData, &request.additional_params); in getKeyCharacteristics()
261 impl_->GetKeyCharacteristics(request, &response); in getKeyCharacteristics()
[all …]
/system/chre/host/common/
Dhost_protocol_host.cc96 auto request = fbs::CreateHubInfoRequest(builder); in encodeHubInfoRequest() local
97 finalize(builder, fbs::ChreMessage::HubInfoRequest, request.Union()); in encodeHubInfoRequest()
102 const FragmentedLoadRequest& request) { in encodeFragmentedLoadNanoappRequest() argument
104 builder, request.transactionId, request.appId, request.appVersion, in encodeFragmentedLoadNanoappRequest()
105 request.targetApiVersion, request.binary, request.fragmentId, in encodeFragmentedLoadNanoappRequest()
106 request.appTotalSizeBytes); in encodeFragmentedLoadNanoappRequest()
110 auto request = fbs::CreateNanoappListRequest(builder); in encodeNanoappListRequest() local
111 finalize(builder, fbs::ChreMessage::NanoappListRequest, request.Union()); in encodeNanoappListRequest()
117 auto request = fbs::CreateUnloadNanoappRequest( in encodeUnloadNanoappRequest() local
119 finalize(builder, fbs::ChreMessage::UnloadNanoappRequest, request.Union()); in encodeUnloadNanoappRequest()
[all …]
/system/bt/gd/security/
Dfacade.cc49 …:Status CreateBond(::grpc::ServerContext* context, const facade::BluetoothAddressWithType* request, in CreateBond() argument
52 ASSERT(hci::Address::FromString(request->address().address(), peer)); in CreateBond()
58 …tatus CreateBondLe(::grpc::ServerContext* context, const facade::BluetoothAddressWithType* request, in CreateBondLe() argument
61 ASSERT(hci::Address::FromString(request->address().address(), peer)); in CreateBondLe()
62 hci::AddressType peer_type = static_cast<hci::AddressType>(request->type()); in CreateBondLe()
67 …:Status CancelBond(::grpc::ServerContext* context, const facade::BluetoothAddressWithType* request, in CancelBond() argument
70 ASSERT(hci::Address::FromString(request->address().address(), peer)); in CancelBond()
76 …:Status RemoveBond(::grpc::ServerContext* context, const facade::BluetoothAddressWithType* request, in RemoveBond() argument
79 ASSERT(hci::Address::FromString(request->address().address(), peer)); in RemoveBond()
85 …rpc::Status FetchUiEvents(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, in FetchUiEvents() argument
[all …]
/system/bt/gd/neighbor/facade/
Dfacade.cc53 const ::bluetooth::neighbor::EnableMsg* request, in SetConnectability()
55 if (request->enabled()) { in SetConnectability()
65 const ::bluetooth::neighbor::DiscoverabilitiyMsg* request, in SetDiscoverability()
67 switch (request->mode()) { in SetDiscoverability()
78 LOG_ALWAYS_FATAL("Unknown discoverability mode %d", static_cast<int>(request->mode())); in SetDiscoverability()
85 const ::bluetooth::neighbor::InquiryMsg* request, in SetInquiryMode()
88 switch (request->result_mode()) { in SetInquiryMode()
99 LOG_ALWAYS_FATAL("Unknown result mode %d", static_cast<int>(request->result_mode())); in SetInquiryMode()
101 switch (request->inquiry_mode()) { in SetInquiryMode()
106 inquiry_module_->StartLimitedInquiry(request->length_1_28s(), request->max_results()); in SetInquiryMode()
[all …]
/system/chre/platform/slpi/see/
Dsns_qmi_client.c99 sns_request *request; in create_request() local
101 request = sns_malloc(sizeof(*request)); in create_request()
102 SNS_ASSERT(NULL != request); in create_request()
104 request->resp_cb = resp_cb; in create_request()
105 request->resp_cb_data = resp_cb_data; in create_request()
106 request->client = client; in create_request()
108 return request; in create_request()
121 sns_request *request = resp_cb_data; in client_resp_cb() local
132 if (NULL != request->resp_cb) in client_resp_cb()
133 request->resp_cb(request->client, err, request->resp_cb_data); in client_resp_cb()
[all …]
/system/chre/platform/shared/
Dhost_protocol_chre.cc77 const auto *request = static_cast<const fbs::LoadNanoappRequest *>( in decodeMessageFromHost() local
79 const flatbuffers::Vector<uint8_t> *appBinary = request->app_binary(); in decodeMessageFromHost()
81 request->app_binary_file_name()); in decodeMessageFromHost()
83 hostClientId, request->transaction_id(), request->app_id(), in decodeMessageFromHost()
84 request->app_version(), request->target_api_version(), in decodeMessageFromHost()
86 request->fragment_id(), request->total_app_size()); in decodeMessageFromHost()
91 const auto *request = static_cast<const fbs::UnloadNanoappRequest *>( in decodeMessageFromHost() local
94 hostClientId, request->transaction_id(), request->app_id(), in decodeMessageFromHost()
95 request->allow_system_nanoapp_unload()); in decodeMessageFromHost()
100 const auto *request = static_cast<const fbs::TimeSyncMessage *>( in decodeMessageFromHost() local
[all …]
/system/bt/gd/cert/
Dlogging_client_interceptor.py23 def pretty_print(request): argument
24 …return '{} {}'.format(type(request).__name__, text_format.MessageToString(request, as_one_line=Tru…
63 def intercept_unary_unary(self, continuation, client_call_details, request): argument
67 print("%s%s %s" % (self.inLogTag, client_call_details.method, pretty_print(request)))
68 return continuation(client_call_details, request)
70 def intercept_unary_stream(self, continuation, client_call_details, request): argument
74 print("%s%s %s" % (self.inLogTag, client_call_details.method, pretty_print(request)))
75 server_stream_call = continuation(client_call_details, request)
/system/update_engine/
Dtest_http_server.cc81 bool ParseRequest(int fd, HttpRequest* request) { in ParseRequest() argument
95 request->raw_headers = headers; in ParseRequest()
111 request->url = terms[1]; in ParseRequest()
112 LOG(INFO) << "URL: " << request->url; in ParseRequest()
128 request->start_offset = atoll(range.c_str() + strlen("bytes=")); in ParseRequest()
131 request->end_offset = atoll(range.c_str() + range.find('-') + 1) + 1; in ParseRequest()
132 request->return_code = kHttpResponsePartialContent; in ParseRequest()
136 (intmax_t)request->start_offset); in ParseRequest()
137 if (request->end_offset > 0) in ParseRequest()
139 &tmp_str, "%jd (non-inclusive)", (intmax_t)request->end_offset); in ParseRequest()
[all …]
/system/bt/gd/hci/facade/
Dle_initiator_address_facade.cc51 …::grpc::ServerContext* context, const PrivacyPolicy* request, ::google::protobuf::Empty* writer) o… in SetPrivacyPolicyForInitiatorAddress() argument
54 static_cast<LeAddressManager::AddressPolicy>(request->address_policy()); in SetPrivacyPolicyForInitiatorAddress()
56 ASSERT(Address::FromString(request->address_with_type().address().address(), address)); in SetPrivacyPolicyForInitiatorAddress()
58 …AddressWithType address_with_type(address, static_cast<AddressType>(request->address_with_type().t… in SetPrivacyPolicyForInitiatorAddress()
60 auto request_irk_length = request->rotation_irk().end() - request->rotation_irk().begin(); in SetPrivacyPolicyForInitiatorAddress()
62 std::vector<uint8_t> irk_data(request->rotation_irk().begin(), request->rotation_irk().end()); in SetPrivacyPolicyForInitiatorAddress()
67 auto minimum_rotation_time = std::chrono::milliseconds(request->minimum_rotation_time()); in SetPrivacyPolicyForInitiatorAddress()
68 auto maximum_rotation_time = std::chrono::milliseconds(request->maximum_rotation_time()); in SetPrivacyPolicyForInitiatorAddress()
76 const ::google::protobuf::Empty* request, in GetCurrentInitiatorAddress()
88 const ::google::protobuf::Empty* request, in GetAnotherAddress()
/system/chre/apps/chqts/src/general_test/
Dtest.cc56 const chreAsyncRequest& request) { in validateChreAsyncResult() argument
70 if (result->cookie != request.cookie) { in validateChreAsyncResult()
72 request.cookie, result->cookie); in validateChreAsyncResult()
75 if (result->requestType != request.requestType) { in validateChreAsyncResult()
77 request.requestType, result->requestType); in validateChreAsyncResult()
80 if (chreGetTime() - request.requestTimeNs > request.timeoutNs) { in validateChreAsyncResult()
83 request.timeoutNs / nanoapp_testing::kOneSecondInNanoseconds); in validateChreAsyncResult()
/system/bt/gd/l2cap/le/cert/
Dcert_le_l2cap.py131 request = L2capCaptures.CreditBasedConnectionRequest(psm)
132 assertThat(self.control_channel).emits(request)
133 (scid, dcid) = self._respond_connection_request_default(request.get(), result, our_scid)
136 request.get().GetInitialCredits())
141 request = L2capCaptures.CreditBasedConnectionRequest(psm)
142 assertThat(self.control_channel).emits(request)
143 sid = request.get().GetIdentifier()
151 request,
154 sid = request.GetIdentifier()
155 their_scid = request.GetSourceCid()
[all …]

12345678