/system/bt/gd/common/ |
D | contextual_callback.h | 39 : callback_(std::move(callback)), context_(context) {} in ContextualOnceCallback() 49 context_->Post(common::BindOnce(std::move(callback_), std::forward<Args>(args)...)); in Invoke() 53 if (context_ != nullptr) { in InvokeIfNotEmpty() 54 context_->Post(common::BindOnce(std::move(callback_), std::forward<Args>(args)...)); in InvokeIfNotEmpty() 59 return context_ == nullptr; in IsEmpty() 64 IPostableContext* context_; variable 75 : callback_(std::move(callback)), context_(context) {} in ContextualCallback() 85 context_->Post(common::BindOnce(callback_, std::forward<Args>(args)...)); in Invoke() 89 if (context_ != nullptr) { in InvokeIfNotEmpty() 90 context_->Post(common::BindOnce(callback_, std::forward<Args>(args)...)); in InvokeIfNotEmpty() [all …]
|
/system/keymaster/android_keymaster/ |
D | android_keymaster.cpp | 135 : context_(context), operation_table_(new (std::nothrow) OperationTable(operation_table_size)), in AndroidKeymaster() 141 : context_(move(other.context_)), operation_table_(move(other.operation_table_)) {} in AndroidKeymaster() 170 rsp.km_version = context_->GetKmVersion(); in GetVersion2() 190 const keymaster_algorithm_t* algorithms = context_->GetSupportedAlgorithms(&algorithm_count); in SupportedAlgorithms() 217 GetSupported(*context_, request.algorithm, request.purpose, in SupportedBlockModes() 223 GetSupported(*context_, request.algorithm, request.purpose, in SupportedPaddingModes() 229 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests, in SupportedDigests() 235 if (response == nullptr || !check_supported(*context_, request.algorithm, response)) return; in SupportedImportFormats() 239 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count); in SupportedImportFormats() 245 if (response == nullptr || !check_supported(*context_, request.algorithm, response)) return; in SupportedExportFormats() [all …]
|
/system/core/init/ |
D | subcontext.h | 40 : path_prefixes_(std::move(path_prefixes)), context_(std::move(context)), pid_(0) { in path_prefixes_() 51 const std::string& context() const { return context_; } in context() 59 std::string context_; variable
|
D | subcontext.cpp | 64 : function_map_(function_map), context_(std::move(context)), init_fd_(init_fd){}; in SubcontextProcess() 74 const std::string context_; member in android::init::__anon1dfcd36e0111::SubcontextProcess 91 result = RunBuiltinFunction(map_result->function, args, context_); in RunCommand() 216 if (context_ != kTestContext) { in Fork() 217 if (setexeccon(context_.c_str()) < 0) { in Fork() 218 PLOG(FATAL) << "Could not set execcon for '" << context_ << "'"; in Fork() 230 const char* args[] = {init_path.c_str(), "subcontext", context_.c_str(), in Fork() 238 LOG(INFO) << "Forked subcontext for '" << context_ << "' with pid " << pid_; in Fork() 243 LOG(ERROR) << "Restarting subcontext '" << context_ << "'"; in Restart()
|
/system/keymaster/include/keymaster/ |
D | asymmetric_key_factory.h | 31 explicit AsymmetricKeyFactory(const KeymasterContext& context) : context_(context) {} in AsymmetricKeyFactory() 51 const KeymasterContext& context_;
|
D | android_keymaster.h | 115 UniquePtr<KeymasterContext> context_; variable
|
D | soft_keymaster_device.h | 236 SoftKeymasterContext* context_; variable
|
/system/keymaster/km_openssl/ |
D | rsa_key_factory.cpp | 101 if (context_.GetKmVersion() < KmVersion::KEYMINT_1) return KM_ERROR_OK; in GenerateKey() 106 *cert_chain = context_.GenerateAttestation(key, key_description, move(attest_key), in GenerateKey() 114 context_.GenerateSelfSignedCertificate(key, key_description, fake_signature, &error); in GenerateKey() 142 if (context_.GetKmVersion() < KmVersion::KEYMINT_1) return KM_ERROR_OK; in ImportKey() 154 *cert_chain = context_.GenerateAttestation(key, key_description, move(attest_key), in ImportKey() 162 context_.GenerateSelfSignedCertificate(key, key_description, fake_signature, &error); in ImportKey()
|
D | ec_key_factory.cpp | 131 if (context_.GetKmVersion() < KmVersion::KEYMINT_1) return KM_ERROR_OK; in GenerateKey() 136 *cert_chain = context_.GenerateAttestation(key, key_description, move(attest_key), in GenerateKey() 141 *cert_chain = context_.GenerateSelfSignedCertificate( in GenerateKey() 170 if (context_.GetKmVersion() < KmVersion::KEYMINT_1) return KM_ERROR_OK; in ImportKey() 182 *cert_chain = context_.GenerateAttestation(key, key_description, move(attest_key), in ImportKey() 187 *cert_chain = context_.GenerateSelfSignedCertificate( in ImportKey()
|
/system/keymaster/contexts/ |
D | soft_keymaster_device.cpp | 161 : wrapped_km1_device_(nullptr), context_(new SoftKeymasterContext(version)), in SoftKeymasterDevice() 162 impl_(new AndroidKeymaster(context_, kOperationTableSize)), configured_(false) { in SoftKeymasterDevice() 171 : wrapped_km1_device_(nullptr), context_(context), in SoftKeymasterDevice() 172 impl_(new AndroidKeymaster(context_, kOperationTableSize)), configured_(false) { in SoftKeymasterDevice() 184 if (!context_) return KM_ERROR_UNEXPECTED_NULL_POINTER; in SetHardwareDevice() 190 error = context_->SetHardwareDevice(keymaster1_device); in SetHardwareDevice() 1072 return convert_device(dev)->context_->DeleteKey(blob); in delete_key() 1083 return convert_device(dev)->context_->DeleteKey(blob); in delete_key() 1090 return convert_device(dev)->context_->DeleteAllKeys(); in delete_all_keys() 1099 return convert_device(dev)->context_->DeleteAllKeys(); in delete_all_keys() [all …]
|