Home
last modified time | relevance | path

Searched refs:context_ (Results 1 – 19 of 19) sorted by relevance

/system/tpm/tpm_manager/server/
Dtpm_connection.cc44 return context_.value(); in GetContext()
54 Tspi_Context_GetTpmObject(context_.value(), &tpm_handle))) { in GetTpm()
62 if (context_.value() != 0) { in ConnectContextIfNeeded()
66 if (TPM_ERROR(result = Tspi_Context_Create(context_.ptr()))) { in ConnectContextIfNeeded()
72 if (TPM_ERROR(result = Tspi_Context_Connect(context_, nullptr))) { in ConnectContextIfNeeded()
84 if (context_.value() == 0) { in ConnectContextIfNeeded()
95 Tspi_Context_GetTpmObject(context_.value(), &tpm_handle))) { in ConnectContextIfNeeded()
97 context_.reset(); in ConnectContextIfNeeded()
104 context_.reset(); in ConnectContextIfNeeded()
113 context_.reset(); in ConnectContextIfNeeded()
Dtpm_connection.h47 trousers::ScopedTssContext context_; variable
/system/core/libbacktrace/
DBacktraceOffline.cpp180 context_ = context; in Unwind()
229 context_ = nullptr; in Unwind()
376 *value = context_->uc_mcontext.arm_r0; in ReadReg()
379 *value = context_->uc_mcontext.arm_r1; in ReadReg()
382 *value = context_->uc_mcontext.arm_r2; in ReadReg()
385 *value = context_->uc_mcontext.arm_r3; in ReadReg()
388 *value = context_->uc_mcontext.arm_r4; in ReadReg()
391 *value = context_->uc_mcontext.arm_r5; in ReadReg()
394 *value = context_->uc_mcontext.arm_r6; in ReadReg()
397 *value = context_->uc_mcontext.arm_r7; in ReadReg()
[all …]
DUnwindCurrent.cpp37 if (unw_init_local(cursor.get(), &context_) < 0) { in GetFunctionNameRaw()
47 &value, &context_) >= 0 && buf[0] != '\0') { in GetFunctionNameRaw()
55 unw_tdep_context_t* unw_context = reinterpret_cast<unw_tdep_context_t*>(&context_); in GetUnwContextFromUcontext()
81 int ret = unw_getcontext(&context_); in UnwindFromContext()
93 int ret = unw_init_local(cursor.get(), &context_); in UnwindFromContext()
DBacktraceOffline.h51 context_(nullptr) { in BacktraceOffline()
75 ucontext_t* context_; variable
DUnwindCurrent.h46 unw_context_t context_; variable
/system/keymaster/
Dandroid_keymaster.cpp69 : context_(context), operation_table_(new OperationTable(operation_table_size)) {} in AndroidKeymaster()
112 const keymaster_algorithm_t* algorithms = context_->GetSupportedAlgorithms(&algorithm_count); in SupportedAlgorithms()
142 GetSupported(*context_, request.algorithm, request.purpose, in SupportedBlockModes()
148 GetSupported(*context_, request.algorithm, request.purpose, in SupportedPaddingModes()
154 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests, in SupportedDigests()
160 if (response == NULL || !check_supported(*context_, request.algorithm, response)) in SupportedImportFormats()
165 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count); in SupportedImportFormats()
171 if (response == NULL || !check_supported(*context_, request.algorithm, response)) in SupportedExportFormats()
176 context_->GetKeyFactory(request.algorithm)->SupportedExportFormats(&count); in SupportedExportFormats()
182 response->error = context_->AddRngEntropy(request.random_data.peek_read(), in AddRngEntropy()
[all …]
Dsymmetric_key.cpp55 error = context_->GenerateRandom(key_material.writable_data(), key_data_size); in GenerateKey()
61 return context_->CreateKeyBlob(key_description, KM_ORIGIN_GENERATED, key_material, key_blob, in GenerateKey()
99 return context_->CreateKeyBlob(authorizations, KM_ORIGIN_IMPORTED, input_key_material, in ImportKey()
Drsa_keymaster0_key.cpp66 return context_->CreateKeyBlob(key_description, KM_ORIGIN_UNKNOWN, key_material, key_blob, in GenerateKey()
97 return context_->CreateKeyBlob(authorizations, KM_ORIGIN_UNKNOWN, imported_hw_key, in ImportKey()
Dec_keymaster0_key.cpp64 return context_->CreateKeyBlob(key_description, KM_ORIGIN_UNKNOWN, key_material, key_blob, in GenerateKey()
96 return context_->CreateKeyBlob(authorizations, KM_ORIGIN_UNKNOWN, imported_hw_key, in ImportKey()
Drsa_key_factory.cpp101 return context_->CreateKeyBlob(authorizations, KM_ORIGIN_GENERATED, key_material, key_blob, in GenerateKey()
122 return context_->CreateKeyBlob(authorizations, KM_ORIGIN_IMPORTED, input_key_material, in ImportKey()
Dsoft_keymaster_device.cpp163 context_(new SoftKeymasterContext), in SoftKeymasterDevice()
164 impl_(new AndroidKeymaster(context_, kOperationTableSize)), configured_(false) { in SoftKeymasterDevice()
173 : wrapped_km0_device_(nullptr), wrapped_km1_device_(nullptr), context_(context), in SoftKeymasterDevice()
174 impl_(new AndroidKeymaster(context_, kOperationTableSize)), configured_(false) { in SoftKeymasterDevice()
186 if (!context_) in SetHardwareDevice()
190 keymaster_error_t error = context_->SetHardwareDevice(keymaster0_device); in SetHardwareDevice()
215 if (!context_) in SetHardwareDevice()
223 error = context_->SetHardwareDevice(keymaster1_device); in SetHardwareDevice()
627 convert_device(dev)->context_->SetSystemVersion(os_version, os_patchlevel); in configure()
1166 return convert_device(dev)->context_->DeleteKey(blob); in delete_key()
[all …]
Dec_key_factory.cpp123 return context_->CreateKeyBlob(authorizations, KM_ORIGIN_GENERATED, key_material, key_blob, in GenerateKey()
143 return context_->CreateKeyBlob(authorizations, KM_ORIGIN_IMPORTED, input_key_material, in ImportKey()
Dandroid_keymaster_test.cpp104 context_ = new TestKeymasterContext; in CreateDevice()
105 SoftKeymasterDevice* device = new SoftKeymasterDevice(context_); in CreateDevice()
116 KeymasterContext* keymaster_context() const override { return context_; } in keymaster_context()
120 mutable TestKeymasterContext* context_; member in keymaster::test::SoftKeymasterTestInstanceCreator
149 context_ = new TestKeymasterContext; in CreateDevice()
150 SoftKeymasterDevice* keymaster = new SoftKeymasterDevice(context_); in CreateDevice()
171 KeymasterContext* keymaster_context() const override { return context_; } in keymaster_context()
178 mutable TestKeymasterContext* context_; member in keymaster::test::Keymaster0AdapterTestInstanceCreator
196 context_ = new TestKeymasterContext; in CreateDevice()
197 SoftKeymasterDevice* device = new SoftKeymasterDevice(context_); in CreateDevice()
[all …]
/system/keymaster/include/keymaster/
Dkey_factory.h36 explicit KeyFactory(const KeymasterContext* context) : context_(context) {} in KeyFactory()
64 const KeymasterContext* context_;
Dandroid_keymaster.h90 UniquePtr<KeymasterContext> context_; variable
Dsoft_keymaster_device.h246 SoftKeymasterContext* context_; variable
/system/core/init/
Ddescriptors.cpp36 : name_(name), type_(type), uid_(uid), gid_(gid), perm_(perm), context_(context) { in DescriptorInfo()
52 const std::string& contextStr = context_.empty() ? globalContext : context_; in CreateAndPublish()
Ddescriptors.h43 const std::string& context() const { return context_; } in context()
51 std::string context_; variable