Home
last modified time | relevance | path

Searched refs:allow_new (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceTable_test.cpp227 AllowNew allow_new; in TEST() local
230 allow_new.comment = "first"; in TEST()
231 ASSERT_TRUE(table.SetAllowNew(name, allow_new, test::GetDiagnostics())); in TEST()
234 ASSERT_TRUE(result.value().entry->allow_new); in TEST()
235 ASSERT_THAT(result.value().entry->allow_new.value().comment, StrEq("first")); in TEST()
237 allow_new.comment = "second"; in TEST()
238 ASSERT_TRUE(table.SetAllowNew(name, allow_new, test::GetDiagnostics())); in TEST()
241 ASSERT_TRUE(result.value().entry->allow_new); in TEST()
242 ASSERT_THAT(result.value().entry->allow_new.value().comment, StrEq("second")); in TEST()
DResourceTable.cpp573 bool ResourceTable::SetAllowNew(const ResourceNameRef& name, const AllowNew& allow_new, in SetAllowNew() argument
575 return SetAllowNewImpl(name, allow_new, ResourceNameValidator, diag); in SetAllowNew()
578 bool ResourceTable::SetAllowNewMangled(const ResourceNameRef& name, const AllowNew& allow_new, in SetAllowNewMangled() argument
580 return SetAllowNewImpl(name, allow_new, SkipNameValidator, diag); in SetAllowNewMangled()
583 bool ResourceTable::SetAllowNewImpl(const ResourceNameRef& name, const AllowNew& allow_new, in SetAllowNewImpl() argument
587 if (!ValidateName(name_validator, name, allow_new.source, diag)) { in SetAllowNewImpl()
594 entry->allow_new = allow_new; in SetAllowNewImpl()
659 new_entry->allow_new = entry->allow_new; in Clone()
DResourceTable.h143 Maybe<AllowNew> allow_new; variable
270 bool SetAllowNew(const ResourceNameRef& name, const AllowNew& allow_new, IDiagnostics* diag);
271 bool SetAllowNewMangled(const ResourceNameRef& name, const AllowNew& allow_new,
335 bool SetAllowNewImpl(const ResourceNameRef& name, const AllowNew& allow_new,
DResourceParser.cpp101 bool allow_new = false; member
127 if (res->allow_new) { in AddResourcesToTable()
128 AllowNew allow_new; in AddResourcesToTable() local
129 allow_new.source = res->source; in AddResourcesToTable()
130 allow_new.comment = res->comment; in AddResourcesToTable()
131 if (!table->SetAllowNew(res->name, allow_new, diag)) { in AddResourcesToTable()
1193 out_resource->allow_new = true; in ParseAddResource()
DResources.proto211 AllowNew allow_new = 4; field
DResourceParser_test.cpp884 EXPECT_TRUE(entry->allow_new); in TEST_F()
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp49 bool TableMerger::MergeImpl(const Source& src, ResourceTable* table, bool overlay, bool allow_new) { in MergeImpl() argument
61 error |= !DoMerge(src, package.get(), false /*mangle*/, overlay, allow_new); in MergeImpl()
135 if (src_entry->allow_new) { in MergeEntry()
136 dst_entry->allow_new = std::move(src_entry->allow_new); in MergeEntry()
242 if (allow_new_resources || src_entry->allow_new) { in DoMerge()
DTableMerger.h86 bool MergeImpl(const Source& src, ResourceTable* src_table, bool overlay, bool allow_new);
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp471 const pb::AllowNew& pb_allow_new = pb_entry.allow_new(); in DeserializePackageFromPb()
473 AllowNew allow_new; in DeserializePackageFromPb() local
475 DeserializeSourceFromPb(pb_allow_new.source(), src_pool, &allow_new.source); in DeserializePackageFromPb()
477 allow_new.comment = pb_allow_new.comment(); in DeserializePackageFromPb()
478 entry->allow_new = std::move(allow_new); in DeserializePackageFromPb()
DProtoSerialize.cpp363 if (entry->allow_new) { in SerializeTableToPb()
365 SerializeSourceToPb(entry->allow_new.value().source, &source_pool, in SerializeTableToPb()
367 pb_allow_new->set_comment(entry->allow_new.value().comment); in SerializeTableToPb()
DProtoSerialize_test.cpp129 EXPECT_TRUE(result.value().entry->allow_new); in TEST()
/frameworks/base/tools/aapt2/test/
DBuilders.h75 Visibility::Level level, bool allow_new = false);
DBuilders.cpp129 bool allow_new) { in SetSymbolState() argument