Home
last modified time | relevance | path

Searched refs:ParseOsVersion (Results 1 – 3 of 3) sorted by relevance

/system/core/fastboot/
Dfastboot_test.cpp36 TEST(FastBoot, ParseOsVersion) { in TEST() argument
41 fb.ParseOsVersion(&hdr, "1.2.3"); in TEST()
46 fb.ParseOsVersion(&hdr, "1.2"); in TEST()
51 fb.ParseOsVersion(&hdr, "1"); in TEST()
56 EXPECT_DEATH(fb.ParseOsVersion(&hdr, ""), "bad OS version"); in TEST()
57 EXPECT_DEATH(fb.ParseOsVersion(&hdr, "1.2.3.4"), "bad OS version"); in TEST()
58 EXPECT_DEATH(fb.ParseOsVersion(&hdr, "128.2.3"), "bad OS version"); in TEST()
59 EXPECT_DEATH(fb.ParseOsVersion(&hdr, "1.128.3"), "bad OS version"); in TEST()
60 EXPECT_DEATH(fb.ParseOsVersion(&hdr, "1.2.128"), "bad OS version"); in TEST()
Dfastboot.h36 void ParseOsVersion(boot_img_hdr_v1*, const char*);
Dfastboot.cpp1663 ParseOsVersion(&g_boot_img_hdr, optarg); in Main()
2021 void FastBootTool::ParseOsVersion(boot_img_hdr_v1* hdr, const char* arg) { in ParseOsVersion() function in FastBootTool