Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/tools/aapt2/cmd/
H A DLink.cpp224 if (context_->IsVerbose()) { in FindByName()
238 IAaptContext* context_; member in aapt::FeatureSplitSymbolTableDelegate
375 IAaptContext* context_; member in aapt::ResourceFileFlattener
456 if (context_->IsVerbose()) { in LinkAndVersionXmlFile()
760 context_(context), in Linker()
1314 if (context_->IsVerbose()) { in MergeStaticLibrary()
1396 if (context_->IsVerbose()) { in MergeCompiledFile()
1415 if (context_->IsVerbose()) { in MergeArchive()
1862 context_->SetNameManglerPolicy(NameManglerPolicy{context_->GetCompilationPackage()}); in Run()
1884 if (context_->IsVerbose()) { in Run()
[all …]
H A DOptimize.cpp128 : options_(options), context_(context) { in Optimizer()
132 if (context_->IsVerbose()) { in Run()
149 if (!deduper.Consume(context_, apk->GetResourceTable())) { in Run()
163 context_->GetDiagnostics()->Error(DiagMessage() in Run()
177 if (!splitter.VerifySplitConstraints(context_)) { in Run()
185 if (context_->IsVerbose()) { in Run()
186 context_->GetDiagnostics()->Note( in Run()
209 MultiApkGenerator generator{apk.get(), context_}; in Run()
233 if (!xml_flattener.Consume(context_, manifest)) { in WriteSplitApk()
281 if (!table_flattener.Consume(context_, table)) { in WriteSplitApk()
[all …]
H A DConvert.cpp57 IAaptContext* context_; member in aapt::IApkSerializer
75 if (!flattener.Consume(context_, xml)) { in SerializeXml()
86 if (!table_flattener.Consume(context_, table)) { in SerializeTable()
99 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
107 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
115 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
123 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
131 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
170 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
185 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
[all …]
/aosp12/frameworks/base/tools/aapt2/optimize/
H A DMultiApkGenerator.cpp57 : context_(context), min_sdk_(context_->GetMinSdkVersion()) { in ContextWrapper()
61 return context_->GetPackageType(); in GetPackageType()
72 return context_->GetDiagnostics(); in GetDiagnostics()
80 return context_->GetPackageId(); in GetPackageId()
84 return context_->GetNameMangler(); in GetNameMangler()
88 return context_->IsVerbose(); in IsVerbose()
109 IAaptContext* context_; member in aapt::ContextWrapper
126 : apk_(apk), context_(context) { in MultiApkGenerator()
145 if (context_->IsVerbose()) { in FromBaseApk()
175 if (context_->IsVerbose()) { in FromBaseApk()
[all …]
H A DResourceDeduper.cpp47 : context_(context), entry_(entry) {} in DominatedKeyValueRemover()
79 if (context_->IsVerbose()) { in VisitConfig()
80 context_->GetDiagnostics()->Note( in VisitConfig()
84 context_->GetDiagnostics()->Note( in VisitConfig()
93 IAaptContext* context_; member in aapt::__anonc555c78e0110::DominatedKeyValueRemover
/aosp12/system/bt/gd/common/
H A Dcontextual_callback.h39 : 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()
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()
95 return context_ == nullptr; in IsEmpty()
[all …]
/aosp12/system/keymaster/android_keymaster/
H A Dandroid_keymaster.cpp141 : context_(move(other.context_)), operation_table_(move(other.operation_table_)) {} in AndroidKeymaster()
170 rsp.km_version = context_->GetKmVersion(); in GetVersion2()
564 if (context_->enforcement_policy()) { in BeginOperation()
608 if (context_->enforcement_policy()) { in UpdateOperation()
652 if (context_->enforcement_policy()) { in FinishOperation()
671 context_->secure_key_storage() != nullptr) { in FinishOperation()
769 if (context_->enforcement_policy() && in ImportKey()
771 !context_->enforcement_policy()->in_early_boot()) { in ImportKey()
802 response->error = context_->DeleteAllKeys(); in DeleteAllKeys()
895 if (context_->enforcement_policy()) { in EarlyBootEnded()
[all …]
/aosp12/packages/modules/adb/pairing_auth/
H A Daes_128_gcm.cpp44 CHECK(EVP_AEAD_CTX_init(context_.get(), EVP_aead_aes_128_gcm(), key, sizeof(key), in Aes128Gcm()
50 std::vector<uint8_t> nonce(EVP_AEAD_nonce_length(EVP_AEAD_CTX_aead(context_.get())), 0); in Encrypt()
53 if (!EVP_AEAD_CTX_seal(context_.get(), out, &written_sz, out_len, nonce.data(), nonce.size(), in Encrypt()
66 std::vector<uint8_t> nonce(EVP_AEAD_nonce_length(EVP_AEAD_CTX_aead(context_.get())), 0); in Decrypt()
69 if (!EVP_AEAD_CTX_open(context_.get(), out, &written_sz, out_len, nonce.data(), nonce.size(), in Decrypt()
82 return size + EVP_AEAD_max_overhead(EVP_AEAD_CTX_aead(context_.get())); in EncryptedSize()
/aosp12/frameworks/base/tools/aapt2/link/
H A DTableMerger_test.cpp37 std::unique_ptr<IAaptContext> context_; member
40 context_ = in SetUp()
92 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
112 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
166 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
204 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
230 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
249 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
268 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
289 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
[all …]
H A DXmlReferenceLinker.cpp45 context_(context), in XmlVisitor()
58 if (el->name == "gradient" && context_->GetMinSdkVersion() <= SDK_Q) { in Visit()
80 ReferenceLinker::CompileXmlAttribute(attr_ref, callsite_, context_, symbols_, &err_str); in Visit()
87 context_->GetDiagnostics()->Error(error_msg); in Visit()
105 context_->GetDiagnostics()->Error(msg); in Visit()
123 IAaptContext* context_; member in aapt::__anon7de2839f0110::XmlVisitor
H A DTableMerger.cpp34 : context_(context), main_table_(out_table), options_(options) { in TableMerger()
36 main_package_ = main_table_->FindOrCreatePackage(context_->GetCompilationPackage()); in TableMerger()
55 if (package->name.empty() || context_->GetCompilationPackage() == package->name) { in MergeImpl()
74 context_->GetDiagnostics()->Warn(DiagMessage(src) << "ignoring package " << package->name); in MergeAndMangle()
78 bool mangle = package_name != context_->GetCompilationPackage(); in MergeAndMangle()
239 if (!MergeType(context_, src, dst_type, src_type.get())) { in DoMerge()
260 context_->GetDiagnostics()->Error(DiagMessage(src) in DoMerge()
263 context_->GetDiagnostics()->Note(DiagMessage(src) << "define an <add-resource> tag or use " in DoMerge()
269 if (!MergeEntry(context_, src, dst_entry, src_entry.get(), options_.strict_visibility)) { in DoMerge()
281 context_, res_name, overlay, options_.override_styles_instead_of_overlaying, in DoMerge()
H A DXmlNamespaceRemover_test.cpp62 context_ = test::ContextBuilder().SetCompilationPackage("com.app.test").Build(); in SetUp()
66 std::unique_ptr<IAaptContext> context_; member in aapt::XmlNamespaceRemoverTest
71 test::BuildXmlDomForPackageName(context_.get(), R"EOF(
H A DXmlCompatVersioner_test.cpp49 context_ = in SetUp()
74 std::unique_ptr<IAaptContext> context_; member in aapt::XmlCompatVersionerTest
78 auto doc = test::BuildXmlDomForPackageName(context_.get(), R"(
H A DXmlReferenceLinker_test.cpp29 context_ = test::ContextBuilder() in SetUp()
80 std::unique_ptr<test::Context> context_; member in aapt::XmlReferenceLinkerTest
84 std::unique_ptr<xml::XmlResource> doc = test::BuildXmlDomForPackageName(context_.get(), R"(
/aosp12/frameworks/base/tools/aapt2/test/
H A DContext.h110 context_->package_type_ = type; in SetPackageType()
115 context_->compilation_package_ = package.to_string(); in SetCompilationPackage()
120 context_->package_id_ = id; in SetPackageId()
125 context_->name_mangler_ = NameMangler(policy); in SetNameManglerPolicy()
130 context_->GetExternalSymbols()->AppendSource(std::move(src)); in AddSymbolSource()
135 context_->min_sdk_version_ = min_sdk; in SetMinSdkVersion()
140 context_->split_name_dependencies_ = split_name_dependencies; in SetSplitNameDependencies()
144 std::unique_ptr<Context> Build() { return std::move(context_); } in Build()
147 std::unique_ptr<Context> context_ = std::unique_ptr<Context>(new Context());
/aosp12/system/core/init/
H A Dsubcontext.cpp64 : function_map_(function_map), context_(std::move(context)), init_fd_(init_fd){}; in SubcontextProcess()
74 const std::string context_; member in android::init::__anona1e497da0110::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()
H A Dsubcontext.h40 : path_prefixes_(std::move(path_prefixes)), context_(std::move(context)), pid_(0) {
51 const std::string& context() const { return context_; } in context()
59 std::string context_; variable
/aosp12/bionic/libc/system_properties/include/system_properties/
H A Dcontext_node.h38 : context_(context), pa_(nullptr), no_access_(false), filename_(filename) { in ContextNode()
53 return context_; in context()
63 const char* context_; variable
/aosp12/system/keymaster/km_openssl/
H A Drsa_key_factory.cpp101 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()
113 context_.GenerateSelfSignedCertificate(key, key_description, fake_signature, &error); in GenerateKey()
141 if (context_.GetKmVersion() < KmVersion::KEYMINT_1) return KM_ERROR_OK; in ImportKey()
153 *cert_chain = context_.GenerateAttestation(key, key_description, move(attest_key), in ImportKey()
160 context_.GenerateSelfSignedCertificate(key, key_description, fake_signature, &error); in ImportKey()
H A Dec_key_factory.cpp131 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()
169 if (context_.GetKmVersion() < KmVersion::KEYMINT_1) return KM_ERROR_OK; in ImportKey()
181 *cert_chain = context_.GenerateAttestation(key, key_description, move(attest_key), in ImportKey()
186 *cert_chain = context_.GenerateSelfSignedCertificate( in ImportKey()
/aosp12/bionic/libc/system_properties/
H A Dcontext_node.cpp53 int len = async_safe_format_buffer(filename, sizeof(filename), "%s/%s", filename_, context_); in Open()
60 pa_ = prop_area::map_prop_area_rw(filename, context_, fsetxattr_failed); in Open()
88 int len = async_safe_format_buffer(filename, sizeof(filename), "%s/%s", filename_, context_); in CheckAccess()
/aosp12/frameworks/base/tools/aapt2/compile/
H A DInlineXmlFormatParser.cpp42 : context_(context), xml_resource_(xml_resource) {} in Visitor()
54 context_->GetDiagnostics()->Error(DiagMessage(src) << "missing 'name' attribute"); in Visit()
61 context_->GetDiagnostics()->Error(DiagMessage(src) << "invalid XML attribute '" << attr->value in Visit()
70 context_->GetDiagnostics()->Error(DiagMessage(src) in Visit()
107 IAaptContext* context_; member in aapt::__anond3ba609b0110::Visitor
/aosp12/art/runtime/
H A Dquick_exception_handler.cc50 context_(self->GetLongJumpContext()), in QuickExceptionHandler()
169 CatchBlockStackVisitor visitor(self_, context_, in FindCatch()
577 DeoptimizeStackVisitor visitor(self_, context_, this, false); in DeoptimizeStack()
585 DeoptimizeStackVisitor visitor(self_, context_, this, true); in DeoptimizeSingleFrame()
647 self_->ReleaseLongJumpContext(context_); in DoLongJump()
648 context_->SetSP(reinterpret_cast<uintptr_t>(handler_quick_frame_)); in DoLongJump()
650 context_->SetPC(handler_quick_frame_pc_); in DoLongJump()
651 context_->SetArg0(handler_quick_arg0_); in DoLongJump()
653 context_->SmashCallerSaves(); in DoLongJump()
658 context_->SetNterpDexPC(reinterpret_cast<uintptr_t>( in DoLongJump()
[all …]
H A Dstack.cc77 context_(context), in StackVisitor()
509 DCHECK(context_ != nullptr); in IsAccessibleGPR()
510 return context_->IsAccessibleGPR(reg); in IsAccessibleGPR()
515 DCHECK(context_ != nullptr); in GetGPRAddress()
516 return context_->GetGPRAddress(reg); in GetGPRAddress()
521 DCHECK(context_ != nullptr); in GetGPR()
522 return context_->GetGPR(reg); in GetGPR()
526 DCHECK(context_ != nullptr); in IsAccessibleFPR()
532 DCHECK(context_ != nullptr); in GetFPR()
533 return context_->GetFPR(reg); in GetFPR()
[all …]
/aosp12/frameworks/base/startop/view_compiler/
H A Ddex_layout_compiler.cc47 context_{Value::Parameter(0)},
72 method_->AddInstruction(Instruction::InvokeStaticObject(layout_inflater_from.id, dest, context_)); in BuildGetLayoutInflater()
79 method_->AddInstruction(Instruction::InvokeVirtualObject(get_resources.id, dest, context_)); in BuildGetResources()
131 try_create_view_.id, dest, inflater_, parent, classname, context_, attrs_)); in BuildTryCreateView()
160 context_, in StartView()

12