Home
last modified time | relevance | path

Searched refs:factory (Results 1 – 25 of 53) sorted by relevance

123

/system/tpm/trunks/
Dtrunks_client.cc58 int Startup(TrunksFactory* factory) { in Startup() argument
59 factory->GetTpmUtility()->Shutdown(); in Startup()
60 return factory->GetTpmUtility()->Startup(); in Startup()
63 int Clear(TrunksFactory* factory) { in Clear() argument
64 return factory->GetTpmUtility()->Clear(); in Clear()
67 int InitializeTpm(TrunksFactory* factory) { in InitializeTpm() argument
68 return factory->GetTpmUtility()->InitializeTpm(); in InitializeTpm()
71 int AllocatePCR(TrunksFactory* factory) { in AllocatePCR() argument
73 result = factory->GetTpmUtility()->AllocatePCR(""); in AllocatePCR()
78 factory->GetTpmUtility()->Shutdown(); in AllocatePCR()
[all …]
Dscoped_key_handle.cc31 ScopedKeyHandle::ScopedKeyHandle(const TrunksFactory& factory) in ScopedKeyHandle() argument
32 : factory_(factory), in ScopedKeyHandle()
35 ScopedKeyHandle::ScopedKeyHandle(const TrunksFactory& factory, in ScopedKeyHandle() argument
37 : factory_(factory), in ScopedKeyHandle()
Dscoped_key_handle.h33 explicit ScopedKeyHandle(const TrunksFactory& factory);
34 ScopedKeyHandle(const TrunksFactory& factory, TPM_HANDLE handle);
Dhmac_session_impl.cc28 HmacSessionImpl::HmacSessionImpl(const TrunksFactory& factory) in HmacSessionImpl() argument
29 : factory_(factory) { in HmacSessionImpl()
Dpolicy_session_impl.cc33 PolicySessionImpl::PolicySessionImpl(const TrunksFactory& factory) in PolicySessionImpl() argument
34 : factory_(factory), in PolicySessionImpl()
39 PolicySessionImpl::PolicySessionImpl(const TrunksFactory& factory, in PolicySessionImpl() argument
41 : factory_(factory), in PolicySessionImpl()
Dpolicy_session_impl.h45 explicit PolicySessionImpl(const TrunksFactory& factory);
49 PolicySessionImpl(const TrunksFactory& factory, TPM_SE session_type);
Dtrunksd.cc113 trunks::TrunksFactoryImpl factory(low_level_transceiver); in main() local
114 trunks::ResourceManager resource_manager(factory, low_level_transceiver); in main()
Dsession_manager_impl.h37 explicit SessionManagerImpl(const TrunksFactory& factory);
Dhmac_session_impl.h52 explicit HmacSessionImpl(const TrunksFactory& factory);
/system/connectivity/shill/net/
Dio_handler_factory_container.cc37 void IOHandlerFactoryContainer::SetIOHandlerFactory(IOHandlerFactory* factory) { in SetIOHandlerFactory() argument
38 CHECK(factory); in SetIOHandlerFactory()
39 factory_.reset(factory); in SetIOHandlerFactory()
Dnetlink_message.cc270 FactoryMethod factory) { in AddFactoryMethod() argument
279 factories_[message_type] = factory; in AddFactoryMethod()
297 map<uint16_t, FactoryMethod>::const_iterator factory; in CreateMessage() local
298 factory = factories_.find(message_type); in CreateMessage()
299 message.reset(factory->second.Run(*packet)); in CreateMessage()
Dattribute_list.cc41 int id, AttributeList::NewFromIdMethod factory) { in CreateAttribute() argument
46 attributes_[id] = AttributePointer(factory.Run(id)); in CreateAttribute()
62 const AttributeList::NewFromIdMethod& factory, in CreateAndInitAttribute() argument
64 if (!CreateAttribute(id, factory)) { in CreateAndInitAttribute()
119 const AttributeList::NewFromIdMethod& factory) { in Decode() argument
122 base::Unretained(this), factory)); in Decode()
Dattribute_list.h52 bool CreateAttribute(int id, NewFromIdMethod factory);
62 bool CreateAndInitAttribute(const NewFromIdMethod& factory,
83 size_t offset, const NewFromIdMethod& factory);
Dnetlink_packet.cc73 const AttributeList::NewFromIdMethod& factory, in ConsumeAttributes() argument
75 bool result = attributes->Decode(GetPayload(), consumed_bytes_, factory); in ConsumeAttributes()
Dio_handler_factory_container.h40 void SetIOHandlerFactory(IOHandlerFactory* factory);
/system/keymaster/
Dandroid_keymaster.cpp129 const OperationFactory* factory = context.GetOperationFactory(algorithm, purpose); in GetSupported() local
130 if (!factory) { in GetSupported()
136 const T* supported = (factory->*get_supported_method)(&count); in GetSupported()
192 KeyFactory* factory = 0; in GenerateKey() local
195 !(factory = context_->GetKeyFactory(algorithm))) in GenerateKey()
201 response->error = factory->GenerateKey(request.key_description, &key_blob, in GenerateKey()
231 KeyFactory* factory = context.GetKeyFactory(*algorithm); in GetKeyFactory() local
232 if (factory) in GetKeyFactory()
234 return factory; in GetKeyFactory()
258 OperationFactory* factory = key_factory->GetOperationFactory(request.purpose); in BeginOperation() local
[all …]
/system/extras/verity/
DUtils.java194 KeyFactory factory = KeyFactory.getInstance("RSA"); in loadDERPublicKey() local
195 return factory.generatePublic(publicKeySpec); in loadDERPublicKey()
201 KeyFactory factory = KeyFactory.getInstance("RSA"); in loadPEMPublicKey() local
202 return factory.generatePublic(publicKeySpec); in loadPEMPublicKey()
223 KeyFactory factory = KeyFactory.getInstance("EC"); in getSignatureAlgorithm() local
226 ECPublicKeySpec spec = factory.getKeySpec(key, ECPublicKeySpec.class); in getSignatureAlgorithm()
229 ECPrivateKeySpec spec = factory.getKeySpec(key, ECPrivateKeySpec.class); in getSignatureAlgorithm()
/system/tpm/tpm_manager/server/
Dtpm2_status_impl.cc34 Tpm2StatusImpl::Tpm2StatusImpl(trunks::TrunksFactory* factory) in Tpm2StatusImpl() argument
35 : trunks_factory_(factory), in Tpm2StatusImpl()
Dtpm2_initializer_test.cc46 trunks::TrunksFactoryForTest* factory = new trunks::TrunksFactoryForTest(); in SetUp() local
47 factory->set_tpm_utility(&mock_tpm_utility_); in SetUp()
48 tpm_initializer_.reset(new Tpm2InitializerImpl(factory, in SetUp()
Dtpm2_initializer_impl.cc42 Tpm2InitializerImpl::Tpm2InitializerImpl(trunks::TrunksFactory* factory, in Tpm2InitializerImpl() argument
46 : trunks_factory_(factory), in Tpm2InitializerImpl()
Dtpm2_nvram_test.cc49 trunks::TrunksFactoryForTest* factory = new trunks::TrunksFactoryForTest(); in SetUp() local
50 factory->set_hmac_session(&mock_hmac_session_); in SetUp()
51 factory->set_tpm_utility(&mock_tpm_utility_); in SetUp()
53 std::unique_ptr<trunks::TrunksFactory>(factory), in SetUp()
Dtpm2_status_impl.h34 explicit Tpm2StatusImpl(trunks::TrunksFactory* factory);
Dtpm2_initializer_impl.h50 Tpm2InitializerImpl(trunks::TrunksFactory* factory,
/system/bt/service/ipc/binder/
Dinterface_with_instances_base.cpp26 bluetooth::BluetoothInstanceFactory* factory) { in RegisterInstanceBase() argument
28 CHECK(factory); in RegisterInstanceBase()
66 if (factory->RegisterInstance(app_uuid, cb)) in RegisterInstanceBase()
/system/connectivity/shill/pppoe/
Dpppoe_service_unittest.cc141 MockPPPDeviceFactory* factory = MockPPPDeviceFactory::GetInstance(); in TEST_F() local
142 service_->ppp_device_factory_ = factory; in TEST_F()
150 EXPECT_CALL(*factory, CreatePPPDevice(_, _, _, _, _, _)) in TEST_F()

123