Home
last modified time | relevance | path

Searched refs:maybe_result (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tools/aapt2/compile/
DIdAssigner_test.cpp60 std::optional<ResourceTable::SearchResult> maybe_result; in TEST_F() local
64 maybe_result = table->FindResource(test::ParseNameOrDie("android:dimen/two")); in TEST_F()
65 ASSERT_TRUE(maybe_result); in TEST_F()
66 EXPECT_EQ(0x01020000, maybe_result.value().entry->id); in TEST_F()
68 maybe_result = in TEST_F()
70 ASSERT_TRUE(maybe_result); in TEST_F()
71 EXPECT_EQ(0x01030000, maybe_result.value().entry->id); in TEST_F()
76 maybe_result = in TEST_F()
78 ASSERT_TRUE(maybe_result); in TEST_F()
79 EXPECT_EQ(0x01050000, maybe_result.value().entry->id); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/
DResourceUtils.cpp546 if (std::optional<bool> maybe_result = ParseBool(str)) { in TryParseBool() local
547 const uint32_t data = maybe_result.value() ? 0xffffffffu : 0u; in TryParseBool()