Searched refs:allow_new (Results 1 – 13 of 13) sorted by relevance
/aosp12/frameworks/base/tools/aapt2/ |
H A D | ResourceTable_test.cpp | 244 AllowNew allow_new; in TEST() local 247 allow_new.comment = "first"; in TEST() 248 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetAllowNew(allow_new).Build(), in TEST() 252 ASSERT_TRUE(result.value().entry->allow_new); in TEST() 253 ASSERT_THAT(result.value().entry->allow_new.value().comment, StrEq("first")); in TEST() 255 allow_new.comment = "second"; in TEST() 256 ASSERT_TRUE(table.AddResource(NewResourceBuilder(name).SetAllowNew(allow_new).Build(), in TEST() 260 ASSERT_TRUE(result.value().entry->allow_new); in TEST() 261 ASSERT_THAT(result.value().entry->allow_new.value().comment, StrEq("second")); in TEST()
|
H A D | ResourceTable.cpp | 345 const Maybe<AllowNew>& allow_new, in InsertEntryIntoTableView() argument 368 .allow_new = allow_new, in InsertEntryIntoTableView() 398 entry->visibility, entry->allow_new, entry->overlayable_item, in GetPartitionedView() 404 entry->visibility, entry->allow_new, entry->overlayable_item, {}, in GetPartitionedView() 543 if (res.allow_new.has_value()) { in AddResource() 544 entry->allow_new = res.allow_new.value(); in AddResource() 663 new_entry->allow_new = entry->allow_new; in Clone() 710 NewResourceBuilder& NewResourceBuilder::SetAllowNew(AllowNew allow_new) { in SetAllowNew() argument 711 res_.allow_new = std::move(allow_new); in SetAllowNew()
|
H A D | ResourceTable.h | 128 Maybe<AllowNew> allow_new; variable 210 Maybe<AllowNew> allow_new; member 265 std::optional<AllowNew> allow_new; member 278 NewResourceBuilder& SetAllowNew(AllowNew allow_new);
|
H A D | ResourceParser.cpp | 111 bool allow_new = false; member 142 if (res->allow_new) { in AddResourcesToTable() 143 AllowNew allow_new; in AddResourcesToTable() local 144 allow_new.source = res->source; in AddResourcesToTable() 145 allow_new.comment = res->comment; in AddResourcesToTable() 146 res_builder.SetAllowNew(allow_new); in AddResourcesToTable() 1280 out_resource->allow_new = true; in ParseAddResource()
|
H A D | Resources.proto | 223 AllowNew allow_new = 4;
|
H A D | ResourceParser_test.cpp | 986 EXPECT_TRUE(entry->allow_new); in TEST_F()
|
/aosp12/frameworks/base/tools/aapt2/link/ |
H A D | TableMerger.cpp | 48 bool TableMerger::MergeImpl(const Source& src, ResourceTable* table, bool overlay, bool allow_new) { in MergeImpl() argument 60 error |= !DoMerge(src, package.get(), false /*mangle*/, overlay, allow_new); in MergeImpl() 123 if (src_entry->allow_new) { in MergeEntry() 124 dst_entry->allow_new = std::move(src_entry->allow_new); in MergeEntry() 251 if (allow_new_resources || src_entry->allow_new) { in DoMerge()
|
H A D | TableMerger.h | 88 bool MergeImpl(const Source& src, ResourceTable* src_table, bool overlay, bool allow_new);
|
/aosp12/frameworks/base/tools/aapt2/format/proto/ |
H A D | ProtoDeserialize.cpp | 475 const pb::AllowNew& pb_allow_new = pb_entry.allow_new(); in DeserializePackageFromPb() 477 AllowNew allow_new; in DeserializePackageFromPb() local 479 DeserializeSourceFromPb(pb_allow_new.source(), src_pool, &allow_new.source); in DeserializePackageFromPb() 481 allow_new.comment = pb_allow_new.comment(); in DeserializePackageFromPb() 482 entry->allow_new = std::move(allow_new); in DeserializePackageFromPb()
|
H A D | ProtoSerialize.cpp | 389 if (entry.allow_new) { in SerializeTableToPb() 392 SerializeSourceToPb(entry.allow_new.value().source, source_pool.get(), in SerializeTableToPb() 395 pb_allow_new->set_comment(entry.allow_new.value().comment); in SerializeTableToPb()
|
H A D | ProtoSerialize_test.cpp | 202 EXPECT_TRUE(result.value().entry->allow_new); in TEST()
|
/aosp12/frameworks/base/tools/aapt2/test/ |
H A D | Builders.h | 74 Visibility::Level level, bool allow_new = false);
|
H A D | Builders.cpp | 127 bool allow_new) { in SetSymbolState() argument
|