Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
DResourceTable_test.cpp229 AllowNew allow_new; in TEST() local
232 allow_new.comment = "first"; in TEST()
233 ASSERT_TRUE(table.SetAllowNew(name, allow_new, test::GetDiagnostics())); in TEST()
236 ASSERT_TRUE(result.value().entry->allow_new); in TEST()
237 ASSERT_THAT(result.value().entry->allow_new.value().comment, StrEq("first")); in TEST()
239 allow_new.comment = "second"; in TEST()
240 ASSERT_TRUE(table.SetAllowNew(name, allow_new, test::GetDiagnostics())); in TEST()
243 ASSERT_TRUE(result.value().entry->allow_new); in TEST()
244 ASSERT_THAT(result.value().entry->allow_new.value().comment, StrEq("second")); in TEST()
DResourceTable.cpp571 bool ResourceTable::SetAllowNew(const ResourceNameRef& name, const AllowNew& allow_new, in SetAllowNew() argument
573 return SetAllowNewImpl(name, allow_new, ResourceNameValidator, diag); in SetAllowNew()
576 bool ResourceTable::SetAllowNewMangled(const ResourceNameRef& name, const AllowNew& allow_new, in SetAllowNewMangled() argument
578 return SetAllowNewImpl(name, allow_new, SkipNameValidator, diag); in SetAllowNewMangled()
581 bool ResourceTable::SetAllowNewImpl(const ResourceNameRef& name, const AllowNew& allow_new, in SetAllowNewImpl() argument
585 if (!ValidateName(name_validator, name, allow_new.source, diag)) { in SetAllowNewImpl()
592 entry->allow_new = allow_new; in SetAllowNewImpl()
657 new_entry->allow_new = entry->allow_new; in Clone()
DResourceTable.h117 Maybe<AllowNew> allow_new; variable
244 bool SetAllowNew(const ResourceNameRef& name, const AllowNew& allow_new, IDiagnostics* diag);
245 bool SetAllowNewMangled(const ResourceNameRef& name, const AllowNew& allow_new,
309 bool SetAllowNewImpl(const ResourceNameRef& name, const AllowNew& allow_new,
DResourceParser.cpp105 bool allow_new = false; member
131 if (res->allow_new) { in AddResourcesToTable()
132 AllowNew allow_new; in AddResourcesToTable() local
133 allow_new.source = res->source; in AddResourcesToTable()
134 allow_new.comment = res->comment; in AddResourcesToTable()
135 if (!table->SetAllowNew(res->name, allow_new, diag)) { in AddResourcesToTable()
1186 out_resource->allow_new = true; in ParseAddResource()
DResources.proto211 AllowNew allow_new = 4; field
DResourceParser_test.cpp889 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()
251 if (allow_new_resources || src_entry->allow_new) { in DoMerge()
DTableMerger.h88 bool MergeImpl(const Source& src, ResourceTable* src_table, bool overlay, bool allow_new);
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp476 const pb::AllowNew& pb_allow_new = pb_entry.allow_new(); in DeserializePackageFromPb()
478 AllowNew allow_new; in DeserializePackageFromPb() local
480 DeserializeSourceFromPb(pb_allow_new.source(), src_pool, &allow_new.source); in DeserializePackageFromPb()
482 allow_new.comment = pb_allow_new.comment(); in DeserializePackageFromPb()
483 entry->allow_new = std::move(allow_new); in DeserializePackageFromPb()
DProtoSerialize.cpp375 if (entry->allow_new) { in SerializeTableToPb()
378 SerializeSourceToPb(entry->allow_new.value().source, source_pool.get(), in SerializeTableToPb()
381 pb_allow_new->set_comment(entry->allow_new.value().comment); in SerializeTableToPb()
DProtoSerialize_test.cpp131 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