Home
last modified time | relevance | path

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

123456

/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 …]
Dwifi_scan_request_test.cc25 WifiScanRequest request; in TEST() local
26 EXPECT_EQ(request.getScanType(), WifiScanType::Invalid); in TEST()
27 EXPECT_EQ(request.getFrequencies().size(), 0); in TEST()
28 EXPECT_EQ(request.getSsids().size(), 0); in TEST()
/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.cpp245 ComputeSharedHmacRequest request; in computeSharedHmac() local
246 request.params_array.params_array = new keymaster::HmacSharingParameters[params.size()]; in computeSharedHmac()
247 request.params_array.num_params = params.size(); in computeSharedHmac()
249 request.params_array.params_array[i].seed = {params[i].seed.data(), params[i].seed.size()}; in computeSharedHmac()
250 static_assert(sizeof(request.params_array.params_array[i].nonce) == in computeSharedHmac()
253 memcpy(request.params_array.params_array[i].nonce, params[i].nonce.data(), in computeSharedHmac()
257 auto response = impl_->ComputeSharedHmac(request); in computeSharedHmac()
270 VerifyAuthorizationRequest request; in verifyAuthorization() local
271 request.challenge = challenge; in verifyAuthorization()
272 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/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/core/trusty/keymaster/legacy/
Dtrusty_keymaster_device.cpp123 RequestType* request) { in AddClientAndAppData() argument
124 request->additional_params.Clear(); in AddClientAndAppData()
126 request->additional_params.push_back(TAG_APPLICATION_ID, *client_id); in AddClientAndAppData()
129 request->additional_params.push_back(TAG_APPLICATION_DATA, *app_data); in AddClientAndAppData()
146 ConfigureRequest request(message_version_); in configure() local
147 if (!params_copy.GetTagValue(TAG_OS_VERSION, &request.os_version) || in configure()
148 !params_copy.GetTagValue(TAG_OS_PATCHLEVEL, &request.os_patchlevel)) { in configure()
154 keymaster_error_t err = trusty_keymaster_send(KM_CONFIGURE, request, &response); in configure()
169 AddEntropyRequest request(message_version_); in add_rng_entropy() local
170 request.random_data.Reinitialize(data, data_length); in add_rng_entropy()
[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/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/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/keymaster/contexts/
Dsoft_keymaster_device.cpp360 RequestType* request) { in AddClientAndAppData() argument
361 request->additional_params.Clear(); in AddClientAndAppData()
363 request->additional_params.push_back(TAG_APPLICATION_ID, *client_id); in AddClientAndAppData()
365 request->additional_params.push_back(TAG_APPLICATION_DATA, *app_data); in AddClientAndAppData()
423 SupportedAlgorithmsRequest request; in get_supported_algorithms() local
425 convert_device(dev)->impl_->SupportedAlgorithms(request, &response); in get_supported_algorithms()
457 SupportedBlockModesRequest request; in get_supported_block_modes() local
458 request.algorithm = algorithm; in get_supported_block_modes()
459 request.purpose = purpose; in get_supported_block_modes()
461 convert_device(dev)->impl_->SupportedBlockModes(request, &response); in get_supported_block_modes()
[all …]
/system/nvram/core/
Dnvram_manager.cpp110 void NvramManager::Dispatch(const nvram::Request& request, in Dispatch() argument
113 const nvram::RequestUnion& input = request.payload; in Dispatch()
192 nvram_result_t NvramManager::CreateSpace(const CreateSpaceRequest& request, in CreateSpace() argument
194 const uint32_t index = request.index; in CreateSpace()
215 if (request.size > kMaxSpaceSize) { in CreateSpace()
220 if (request.authorization_value.size() > kMaxAuthSize) { in CreateSpace()
226 for (uint32_t control : request.controls) { in CreateSpace()
239 request.size != crypto::kSHA256DigestSize) { in CreateSpace()
259 if (!space.authorization_value.Assign(request.authorization_value.data(), in CreateSpace()
260 request.authorization_value.size())) { in CreateSpace()
[all …]
/system/nvram/messages/tests/
Dnvram_messages_test.cpp38 Request request; in TEST() local
39 request.payload.Activate<COMMAND_GET_INFO>(); in TEST()
42 EncodeAndDecode(request, &decoded); in TEST()
87 Request request; in TEST() local
89 request.payload.Activate<COMMAND_CREATE_SPACE>(); in TEST()
99 EncodeAndDecode(request, &decoded); in TEST()
131 Request request; in TEST() local
133 request.payload.Activate<COMMAND_GET_SPACE_INFO>(); in TEST()
137 EncodeAndDecode(request, &decoded); in TEST()
178 Request request; in TEST() local
[all …]
/system/media/audio_utils/include/audio_utils/
Dclock_nanosleep.h32 int audio_utils_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, in audio_utils_clock_nanosleep() argument
35 return syscall(SYS_clock_nanosleep, clock_id, flags, request, remain); in audio_utils_clock_nanosleep()
48 int audio_utils_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, in audio_utils_clock_nanosleep() argument
53 (void) request; in audio_utils_clock_nanosleep()
/system/gatekeeper/
Dgatekeeper.cpp25 void GateKeeper::Enroll(const EnrollRequest &request, EnrollResponse *response) { in Enroll() argument
28 if (!request.provided_password.buffer.get()) { in Enroll()
34 uint32_t uid = request.user_id; in Enroll()
36 if (request.password_handle.buffer.get() == NULL) { in Enroll()
40 if (request.password_handle.length < sizeof(password_handle_t)) { in Enroll()
45 reinterpret_cast<password_handle_t *>(request.password_handle.buffer.get()); in Enroll()
76 if (!DoVerify(pw_handle, request.enrolled_password)) { in Enroll()
99 salt, user_id, flags, HANDLE_VERSION, request.provided_password.buffer.get(), in Enroll()
100 request.provided_password.length)) { in Enroll()
108 void GateKeeper::Verify(const VerifyRequest &request, VerifyResponse *response) { in Verify() argument
[all …]

123456