Home
last modified time | relevance | path

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

123456

/system/tpm/tpm_manager/server/
Dbinder_service_test.cc81 GetTpmStatusRequest request; in TEST_F() local
83 ownership_proxy_->GetTpmStatus(request, in TEST_F()
88 GetTpmStatusRequest request; in TEST_F() local
91 [](const GetTpmStatusRequest& request, in TEST_F()
104 ownership_proxy_->GetTpmStatus(request, in TEST_F()
118 [](const TakeOwnershipRequest& request, in TEST_F()
124 TakeOwnershipRequest request; in TEST_F() local
126 ownership_proxy_->TakeOwnership(request, in TEST_F()
133 RemoveOwnerDependencyRequest request; in TEST_F() local
134 request.set_owner_dependency(owner_dependency); in TEST_F()
[all …]
Ddbus_service_test.cc62 const RequestProtobufType& request, in ExecuteMethod() argument
68 writer.AppendProtoAsArrayOfBytes(request); in ExecuteMethod()
101 GetTpmStatusRequest request; in TEST_F() local
103 ExecuteMethod(kGetTpmStatus, request, &reply, kTpmOwnershipInterface); in TEST_F()
107 GetTpmStatusRequest request; in TEST_F() local
110 [](const GetTpmStatusRequest& request, in TEST_F()
123 ExecuteMethod(kGetTpmStatus, request, &reply, kTpmOwnershipInterface); in TEST_F()
136 [](const TakeOwnershipRequest& request, in TEST_F()
142 TakeOwnershipRequest request; in TEST_F() local
144 ExecuteMethod(kTakeOwnership, request, &reply, kTpmOwnershipInterface); in TEST_F()
[all …]
Dtpm_manager_service.cc64 void TpmManagerService::GetTpmStatus(const GetTpmStatusRequest& request, in GetTpmStatus() argument
67 request, callback, &TpmManagerService::GetTpmStatusTask); in GetTpmStatus()
71 const GetTpmStatusRequest& request, in GetTpmStatusTask() argument
95 void TpmManagerService::TakeOwnership(const TakeOwnershipRequest& request, in TakeOwnership() argument
98 request, callback, &TpmManagerService::TakeOwnershipTask); in TakeOwnership()
102 const TakeOwnershipRequest& request, in TakeOwnershipTask() argument
117 const RemoveOwnerDependencyRequest& request, in RemoveOwnerDependency() argument
120 request, callback, &TpmManagerService::RemoveOwnerDependencyTask); in RemoveOwnerDependency()
124 const RemoveOwnerDependencyRequest& request, in RemoveOwnerDependencyTask() argument
132 RemoveOwnerDependency(request.owner_dependency(), &local_data); in RemoveOwnerDependencyTask()
[all …]
Dtpm_manager_service.h74 void GetTpmStatus(const GetTpmStatusRequest& request,
76 void TakeOwnership(const TakeOwnershipRequest& request,
79 const RemoveOwnerDependencyRequest& request,
83 void DefineSpace(const DefineSpaceRequest& request,
85 void DestroySpace(const DestroySpaceRequest& request,
87 void WriteSpace(const WriteSpaceRequest& request,
89 void ReadSpace(const ReadSpaceRequest& request,
91 void LockSpace(const LockSpaceRequest& request,
93 void ListSpaces(const ListSpacesRequest& request,
95 void GetSpaceInfo(const GetSpaceInfoRequest& request,
[all …]
/system/tpm/attestation/server/
Ddbus_service_test.cc76 CreateGoogleAttestedKeyRequest request; in TEST_F() local
77 request.set_key_label("label"); in TEST_F()
78 request.set_key_type(KEY_TYPE_ECC); in TEST_F()
79 request.set_key_usage(KEY_USAGE_SIGN); in TEST_F()
80 request.set_certificate_profile(ENTERPRISE_MACHINE_CERTIFICATE); in TEST_F()
81 request.set_username("username"); in TEST_F()
82 request.set_origin("origin"); in TEST_F()
85 Invoke([](const CreateGoogleAttestedKeyRequest& request, in TEST_F()
88 EXPECT_EQ("label", request.key_label()); in TEST_F()
89 EXPECT_EQ(KEY_TYPE_ECC, request.key_type()); in TEST_F()
[all …]
Dattestation_service_test.cc108 CreateGoogleAttestedKeyRequest request; in GetCreateRequest() local
109 request.set_key_label("label"); in GetCreateRequest()
110 request.set_key_type(KEY_TYPE_ECC); in GetCreateRequest()
111 request.set_key_usage(KEY_USAGE_SIGN); in GetCreateRequest()
112 request.set_certificate_profile(ENTERPRISE_MACHINE_CERTIFICATE); in GetCreateRequest()
113 request.set_username("user"); in GetCreateRequest()
114 request.set_origin("origin"); in GetCreateRequest()
115 return request; in GetCreateRequest()
133 const ServerRequest& request, in FakeCAEnroll() argument
136 EXPECT_TRUE(request_pb.ParseFromString(request.GetDataAsString())); in FakeCAEnroll()
[all …]
Dattestation_service.h72 const CreateGoogleAttestedKeyRequest& request,
74 void GetKeyInfo(const GetKeyInfoRequest& request,
76 void GetEndorsementInfo(const GetEndorsementInfoRequest& request,
79 const GetAttestationKeyInfoRequest& request,
82 const ActivateAttestationKeyRequest& request,
85 const CreateCertifiableKeyRequest& request,
87 void Decrypt(const DecryptRequest& request,
89 void Sign(const SignRequest& request, const SignCallback& callback) override;
91 const RegisterKeyWithChapsTokenRequest& request,
131 const CreateGoogleAttestedKeyRequest& request,
[all …]
/system/keymaster/include/keymaster/
Dandroid_keymaster.h53 void GetVersion(const GetVersionRequest& request, GetVersionResponse* response);
54 void SupportedAlgorithms(const SupportedAlgorithmsRequest& request,
56 void SupportedBlockModes(const SupportedBlockModesRequest& request,
58 void SupportedPaddingModes(const SupportedPaddingModesRequest& request,
60 void SupportedDigests(const SupportedDigestsRequest& request,
62 void SupportedImportFormats(const SupportedImportFormatsRequest& request,
64 void SupportedExportFormats(const SupportedExportFormatsRequest& request,
67 void AddRngEntropy(const AddEntropyRequest& request, AddEntropyResponse* response);
68 void Configure(const ConfigureRequest& request, ConfigureResponse* response);
69 void GenerateKey(const GenerateKeyRequest& request, GenerateKeyResponse* response);
[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/keymaster/
Dandroid_keymaster.cpp140 void AndroidKeymaster::SupportedBlockModes(const SupportedBlockModesRequest& request, in SupportedBlockModes() argument
142 GetSupported(*context_, request.algorithm, request.purpose, in SupportedBlockModes()
146 void AndroidKeymaster::SupportedPaddingModes(const SupportedPaddingModesRequest& request, in SupportedPaddingModes() argument
148 GetSupported(*context_, request.algorithm, request.purpose, in SupportedPaddingModes()
152 void AndroidKeymaster::SupportedDigests(const SupportedDigestsRequest& request, in SupportedDigests() argument
154 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests, in SupportedDigests()
158 void AndroidKeymaster::SupportedImportFormats(const SupportedImportFormatsRequest& request, in SupportedImportFormats() argument
160 if (response == NULL || !check_supported(*context_, request.algorithm, response)) in SupportedImportFormats()
165 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count); in SupportedImportFormats()
169 void AndroidKeymaster::SupportedExportFormats(const SupportedExportFormatsRequest& request, in SupportedExportFormats() argument
[all …]
/system/tpm/tpm_manager/client/
Dtpm_nvram_dbus_proxy_test.cc55 DefineSpaceRequest request; in TEST_F() local
56 EXPECT_TRUE(reader.PopArrayOfBytesAsProto(&request)); in TEST_F()
57 EXPECT_TRUE(request.has_index()); in TEST_F()
58 EXPECT_EQ(nvram_index, request.index()); in TEST_F()
59 EXPECT_TRUE(request.has_size()); in TEST_F()
60 EXPECT_EQ(nvram_size, request.size()); in TEST_F()
77 DefineSpaceRequest request; in TEST_F() local
78 request.set_index(nvram_index); in TEST_F()
79 request.set_size(nvram_size); in TEST_F()
80 proxy_.DefineSpace(request, base::Bind(callback)); in TEST_F()
[all …]
Dtpm_nvram_dbus_proxy.cc50 void TpmNvramDBusProxy::DefineSpace(const DefineSpaceRequest& request, in DefineSpace() argument
52 CallMethod<DefineSpaceReply>(tpm_manager::kDefineSpace, request, callback); in DefineSpace()
55 void TpmNvramDBusProxy::DestroySpace(const DestroySpaceRequest& request, in DestroySpace() argument
57 CallMethod<DestroySpaceReply>(tpm_manager::kDestroySpace, request, callback); in DestroySpace()
60 void TpmNvramDBusProxy::WriteSpace(const WriteSpaceRequest& request, in WriteSpace() argument
62 CallMethod<WriteSpaceReply>(tpm_manager::kWriteSpace, request, callback); in WriteSpace()
65 void TpmNvramDBusProxy::ReadSpace(const ReadSpaceRequest& request, in ReadSpace() argument
67 CallMethod<ReadSpaceReply>(tpm_manager::kReadSpace, request, callback); in ReadSpace()
70 void TpmNvramDBusProxy::LockSpace(const LockSpaceRequest& request, in LockSpace() argument
72 CallMethod<LockSpaceReply>(tpm_manager::kLockSpace, request, callback); in LockSpace()
[all …]
Dmain.cc308 GetTpmStatusRequest request; in HandleGetTpmStatus() local
310 request, base::Bind(&ClientLoop::PrintReplyAndQuit<GetTpmStatusReply>, in HandleGetTpmStatus()
315 TakeOwnershipRequest request; in HandleTakeOwnership() local
317 request, base::Bind(&ClientLoop::PrintReplyAndQuit<TakeOwnershipReply>, in HandleTakeOwnership()
322 RemoveOwnerDependencyRequest request; in HandleRemoveOwnerDependency() local
323 request.set_owner_dependency(owner_dependency); in HandleRemoveOwnerDependency()
325 request, in HandleRemoveOwnerDependency()
381 DefineSpaceRequest request; in HandleDefineSpace() local
382 request.set_index(index); in HandleDefineSpace()
383 request.set_size(size); in HandleDefineSpace()
[all …]
Dtpm_nvram_binder_proxy.cc62 void TpmNvramBinderProxy::DefineSpace(const DefineSpaceRequest& request, in DefineSpace() argument
68 helper.SendRequest(request); in DefineSpace()
71 void TpmNvramBinderProxy::DestroySpace(const DestroySpaceRequest& request, in DestroySpace() argument
77 helper.SendRequest(request); in DestroySpace()
80 void TpmNvramBinderProxy::WriteSpace(const WriteSpaceRequest& request, in WriteSpace() argument
86 helper.SendRequest(request); in WriteSpace()
89 void TpmNvramBinderProxy::ReadSpace(const ReadSpaceRequest& request, in ReadSpace() argument
95 helper.SendRequest(request); in ReadSpace()
98 void TpmNvramBinderProxy::LockSpace(const LockSpaceRequest& request, in LockSpace() argument
104 helper.SendRequest(request); in LockSpace()
[all …]
/system/update_engine/payload_consumer/
Dxz_extent_writer.cc76 xz_buf request; in Write() local
77 request.in = input; in Write()
78 request.in_pos = 0; in Write()
79 request.in_size = count; in Write()
82 request.out = output_buffer.data(); in Write()
83 request.out_size = output_buffer.size(); in Write()
85 request.out_pos = 0; in Write()
87 xz_ret ret = xz_dec_run(stream_, &request); in Write()
93 if (request.out_pos == 0) in Write()
97 underlying_writer_->Write(output_buffer.data(), request.out_pos)); in Write()
[all …]
/system/tpm/attestation/client/
Dmain.cc276 CreateGoogleAttestedKeyRequest request; in CallCreateGoogleAttestedKey() local
277 request.set_key_label(label); in CallCreateGoogleAttestedKey()
278 request.set_key_type(KEY_TYPE_RSA); in CallCreateGoogleAttestedKey()
279 request.set_key_usage(KEY_USAGE_SIGN); in CallCreateGoogleAttestedKey()
280 request.set_certificate_profile(ENTERPRISE_MACHINE_CERTIFICATE); in CallCreateGoogleAttestedKey()
281 request.set_username(username); in CallCreateGoogleAttestedKey()
283 request, in CallCreateGoogleAttestedKey()
289 GetKeyInfoRequest request; in CallGetKeyInfo() local
290 request.set_key_label(label); in CallGetKeyInfo()
291 request.set_username(username); in CallGetKeyInfo()
[all …]
Ddbus_proxy.h43 const CreateGoogleAttestedKeyRequest& request,
45 void GetKeyInfo(const GetKeyInfoRequest& request,
47 void GetEndorsementInfo(const GetEndorsementInfoRequest& request,
50 const GetAttestationKeyInfoRequest& request,
53 const ActivateAttestationKeyRequest& request,
56 const CreateCertifiableKeyRequest& request,
58 void Decrypt(const DecryptRequest& request,
60 void Sign(const SignRequest& request, const SignCallback& callback) override;
62 const RegisterKeyWithChapsTokenRequest& request,
Ddbus_proxy_test.cc83 CreateGoogleAttestedKeyRequest request; in TEST_F() local
84 request.set_key_label("label"); in TEST_F()
85 request.set_key_type(KEY_TYPE_ECC); in TEST_F()
86 request.set_key_usage(KEY_USAGE_SIGN); in TEST_F()
87 request.set_certificate_profile(ENTERPRISE_MACHINE_CERTIFICATE); in TEST_F()
88 request.set_username("user"); in TEST_F()
89 request.set_origin("origin"); in TEST_F()
90 proxy_.CreateGoogleAttestedKey(request, base::Bind(callback)); in TEST_F()
133 GetKeyInfoRequest request; in TEST_F() local
134 request.set_key_label("label"); in TEST_F()
[all …]
Ddbus_proxy.cc52 const CreateGoogleAttestedKeyRequest& request, in CreateGoogleAttestedKey() argument
62 request); in CreateGoogleAttestedKey()
65 void DBusProxy::GetKeyInfo(const GetKeyInfoRequest& request, in GetKeyInfo() argument
74 attestation::kGetKeyInfo, callback, base::Bind(on_error), request); in GetKeyInfo()
77 void DBusProxy::GetEndorsementInfo(const GetEndorsementInfoRequest& request, in GetEndorsementInfo() argument
87 request); in GetEndorsementInfo()
91 const GetAttestationKeyInfoRequest& request, in GetAttestationKeyInfo() argument
101 request); in GetAttestationKeyInfo()
105 const ActivateAttestationKeyRequest& request, in ActivateAttestationKey() argument
115 request); in ActivateAttestationKey()
[all …]
/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/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/
Dtrusty_keymaster_device.cpp156 RequestType* request) { in AddClientAndAppData() argument
157 request->additional_params.Clear(); in AddClientAndAppData()
159 request->additional_params.push_back(TAG_APPLICATION_ID, *client_id); in AddClientAndAppData()
162 request->additional_params.push_back(TAG_APPLICATION_DATA, *app_data); in AddClientAndAppData()
179 ConfigureRequest request; in configure() local
180 if (!params_copy.GetTagValue(TAG_OS_VERSION, &request.os_version) || in configure()
181 !params_copy.GetTagValue(TAG_OS_PATCHLEVEL, &request.os_patchlevel)) { in configure()
187 keymaster_error_t err = Send(KM_CONFIGURE, request, &response); in configure()
202 AddEntropyRequest request; in add_rng_entropy() local
203 request.random_data.Reinitialize(data, data_length); in add_rng_entropy()
[all …]
/system/tpm/attestation/common/
Dattestation_interface.h45 const CreateGoogleAttestedKeyRequest& request,
50 virtual void GetKeyInfo(const GetKeyInfoRequest& request,
58 const GetEndorsementInfoRequest& request,
66 const GetAttestationKeyInfoRequest& request,
74 const ActivateAttestationKeyRequest& request,
82 const CreateCertifiableKeyRequest& request,
87 virtual void Decrypt(const DecryptRequest& request,
92 virtual void Sign(const SignRequest& request,
100 const RegisterKeyWithChapsTokenRequest& request,
/system/tpm/tpm_manager/common/
Dmock_tpm_nvram_interface.h32 void(const DefineSpaceRequest& request,
35 void(const DestroySpaceRequest& request,
38 void(const WriteSpaceRequest& request,
41 void(const ReadSpaceRequest& request,
44 void(const LockSpaceRequest& request,
47 void(const ListSpacesRequest& request,
50 void(const GetSpaceInfoRequest& request,

123456