/frameworks/base/tools/aapt2/ |
D | ResourceTable_test.cpp | 227 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()
|
D | ResourceTable.cpp | 573 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()
|
D | ResourceTable.h | 143 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,
|
D | ResourceParser.cpp | 101 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()
|
D | Resources.proto | 211 AllowNew allow_new = 4; field
|
D | ResourceParser_test.cpp | 884 EXPECT_TRUE(entry->allow_new); in TEST_F()
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger.cpp | 49 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()
|
D | TableMerger.h | 86 bool MergeImpl(const Source& src, ResourceTable* src_table, bool overlay, bool allow_new);
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoDeserialize.cpp | 471 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()
|
D | ProtoSerialize.cpp | 363 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()
|
D | ProtoSerialize_test.cpp | 129 EXPECT_TRUE(result.value().entry->allow_new); in TEST()
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.h | 75 Visibility::Level level, bool allow_new = false);
|
D | Builders.cpp | 129 bool allow_new) { in SetSymbolState() argument
|