Home
last modified time | relevance | path

Searched refs:TryParseInt (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceValues_test.cpp109 .AddItem("android:attr/foo", ResourceUtils::TryParseInt("1")) in TEST()
110 .AddItem("android:attr/bar", ResourceUtils::TryParseInt("2")) in TEST()
115 .AddItem("android:attr/foo", ResourceUtils::TryParseInt("1")) in TEST()
116 .AddItem("android:attr/bar", ResourceUtils::TryParseInt("3")) in TEST()
121 .AddItem("android:attr/foo", ResourceUtils::TryParseInt("1")) in TEST()
122 .AddItem("android:attr/bar", ResourceUtils::TryParseInt("2")) in TEST()
126 .AddItem("android:attr/foo", ResourceUtils::TryParseInt("1")) in TEST()
127 .AddItem("android:attr/bar", ResourceUtils::TryParseInt("2")) in TEST()
132 .AddItem("android:attr/foo", ResourceUtils::TryParseInt("1")) in TEST()
133 .AddItem("android:attr/bat", ResourceUtils::TryParseInt("2")) in TEST()
[all …]
DResourceUtils.h174 std::unique_ptr<BinaryPrimitive> TryParseInt(const android::StringPiece& str);
DResourceUtils.cpp566 std::unique_ptr<BinaryPrimitive> TryParseInt(const StringPiece& str) { in TryParseInt() function
666 auto integer = TryParseInt(value); in TryParseItemForAttribute()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp322 .AddValue("android:integer/integer_444", ResourceUtils::TryParseInt("444")) in TEST()
323 .AddValue("android:integer/integer_neg_333", ResourceUtils::TryParseInt("-333")) in TEST()
324 .AddValue("android:integer/hex_int_abcd", ResourceUtils::TryParseInt("0xABCD")) in TEST()
384 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseInt("444")->value.data)); in TEST()
390 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseInt("-333")->value.data)); in TEST()
396 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseInt("0xABCD")->value.data)); in TEST()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp425 version_code->compiled_value = ResourceUtils::TryParseInt(version_code->value); in SetLongVersionCode()
432 version_major->compiled_value = ResourceUtils::TryParseInt(version_major->value); in SetLongVersionCode()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp446 ResourceUtils::TryParseInt("2")) in TEST_F()
448 ResourceUtils::TryParseInt("1")) in TEST_F()
450 ResourceUtils::TryParseInt("4")) in TEST_F()
452 ResourceUtils::TryParseInt("3")) in TEST_F()
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp324 min_sdk_attr->compiled_value = ResourceUtils::TryParseInt(min_sdk_str); in UpdateManifest()