Home
last modified time | relevance | path

Searched refs:TryParseInt (Results 1 – 6 of 6) 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.cpp318 .AddValue("android:integer/integer_444", ResourceUtils::TryParseInt("444")) in TEST()
319 .AddValue("android:integer/integer_neg_333", ResourceUtils::TryParseInt("-333")) in TEST()
320 .AddValue("android:integer/hex_int_abcd", ResourceUtils::TryParseInt("0xABCD")) in TEST()
380 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseInt("444")->value.data)); in TEST()
386 EXPECT_THAT(bp->value.data, Eq(ResourceUtils::TryParseInt("-333")->value.data)); in TEST()
392 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/optimize/
DMultiApkGenerator.cpp320 min_sdk_attr->compiled_value = ResourceUtils::TryParseInt(min_sdk_str); in UpdateManifest()