Lines Matching refs:manifest

266     HalManifest manifest;  in TEST_F()  local
267 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
268 EXPECT_EQ(expectedManifest, manifest); in TEST_F()
1009 HalManifest manifest; in TEST_F() local
1010 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1011 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1031 HalManifest manifest; in TEST_F() local
1032 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1033 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
1062 HalManifest manifest; in TEST_F() local
1063 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1064 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
1094 HalManifest manifest; in TEST_F() local
1095 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1096 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1133 HalManifest manifest; in TEST_F() local
1134 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1135 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
1166 HalManifest manifest; in TEST_F() local
1167 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)) in TEST_F()
1169 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1253 HalManifest manifest; in TEST_F() local
1256 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1258 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1275 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1279 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1281 EXPECT_FALSE(manifest.checkCompatibility(matrix)); in TEST_F()
1287 EXPECT_FALSE(manifest.checkCompatibility(matrix)); in TEST_F()
1289 EXPECT_FALSE(manifest.checkCompatibility(matrix)); in TEST_F()
1291 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
1378 HalManifest manifest; in TEST_F() local
1379 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1380 EXPECT_EQ(manifest.getXmlFilePath("media_profile", {1, 0}), in TEST_F()
1392 HalManifest manifest; in TEST_F() local
1393 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1394 EXPECT_EQ(manifest.getXmlFilePath("media_profile", {1, 0}), in TEST_F()
1407 HalManifest manifest; in TEST_F() local
1408 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1409 EXPECT_EQ(manifest.getXmlFilePath("media_profile", {1, 0}), "/vendor/etc/foo.xml"); in TEST_F()
1420 HalManifest manifest; in TEST_F() local
1421 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1422 EXPECT_EQ(manifest.getXmlFilePath("media_profile", {1, 0}), ""); in TEST_F()
1631 HalManifest manifest; in TEST_F() local
1641 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml)) << gHalManifestConverter.lastError(); in TEST_F()
1653 EXPECT_FALSE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
1667 EXPECT_FALSE(gHalManifestConverter(&manifest, manifestXml)); in TEST_F()
2083 HalManifest manifest; in TEST_F() local
2087 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2088 EXPECT_EQ(Level::UNSPECIFIED, manifest.level()); in TEST_F()
2091 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2092 EXPECT_EQ(Level::LEGACY, manifest.level()); in TEST_F()
2095 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2096 EXPECT_EQ(1u, manifest.level()); in TEST_F()
2557 HalManifest manifest; in TEST_F() local
2573 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2574 EXPECT_EQ(xml, gHalManifestConverter(manifest)); in TEST_F()
2575 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
2579 HalManifest manifest; in TEST_F() local
2589 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2590 EXPECT_EQ(xml, gHalManifestConverter(manifest)); in TEST_F()
2591 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
2596 HalManifest manifest; in TEST_F() local
2605 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2606 EXPECT_EQ(xml, gHalManifestConverter(manifest)); in TEST_F()
2607 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
2623 HalManifest manifest; in TEST_F() local
2625 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2627 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
2631 HalManifest manifest; in TEST_F() local
2639 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2641 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
2647 HalManifest manifest; in TEST_F() local
2658 EXPECT_FALSE(gHalManifestConverter(&manifest, xml)); in TEST_F()
2663 HalManifest manifest; in TEST_F() local
2677 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2678 const auto& foo = getHals(manifest, "android.hardware.foo"); in TEST_F()
2681 const auto& bar = getHals(manifest, "android.hardware.bar"); in TEST_F()
2688 HalManifest manifest; in TEST_F() local
2690 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2707 manifest.addAllHals(&newManifest); in TEST_F()
2708 EXPECT_EQ(xml, gHalManifestConverter(manifest, SerializeFlags::HALS_NO_FQNAME)); in TEST_F()
2712 HalManifest manifest; in TEST_F() local
2721 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2738 manifest.addAllHals(&newManifest); in TEST_F()
2739 EXPECT_EQ(xml, gHalManifestConverter(manifest, SerializeFlags::HALS_NO_FQNAME)); in TEST_F()
2744 HalManifest manifest; in TEST_F() local
2763 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2781 manifest.addAllHals(&newManifest); in TEST_F()
2809 gHalManifestConverter(manifest, SerializeFlags::HALS_NO_FQNAME)); in TEST_F()
2813 HalManifest manifest; in TEST_F() local
2827 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2845 manifest.addAllHals(&newManifest); in TEST_F()
2846 EXPECT_EQ(xml, gHalManifestConverter(manifest, SerializeFlags::HALS_NO_FQNAME)); in TEST_F()
2851 HalManifest manifest; in TEST_F() local
2880 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2892 manifest.addAllHals(&newManifest); in TEST_F()
2905 gHalManifestConverter(manifest, SerializeFlags::HALS_ONLY)); in TEST_F()
2911 HalManifest manifest; in TEST_F() local
2920 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2922 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
2942 HalManifest manifest; in TEST_F() local
2950 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2951 EXPECT_EQ(xml, gHalManifestConverter(manifest, SerializeFlags::SSDK_ONLY)); in TEST_F()
2953 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
2957 HalManifest manifest; in TEST_F() local
2966 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2967 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)); in TEST_F()
2971 HalManifest manifest; in TEST_F() local
2978 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)) << gHalManifestConverter.lastError(); in TEST_F()
2979 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
3015 HalManifest manifest; in TEST_F() local
3028 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3050 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
3077 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
3100 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
3112 HalManifest manifest; in TEST_F() local
3130 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3132 auto foo = getHals(manifest, "android.hardware.foo"); in TEST_F()
3135 auto bar = getHals(manifest, "android.hardware.bar"); in TEST_F()
3138 auto baz = getHals(manifest, "android.hardware.baz"); in TEST_F()
3170 HalManifest manifest; in TEST_F() local
3185 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3186 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
3189 manifest.getHidlTransport("android.hardware.foo", {1, 1}, "IFoo", "custom")); in TEST_F()
3193 HalManifest manifest; in TEST_F() local
3203 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3204 EXPECT_TRUE(manifest.checkCompatibility(cm, &error)) << error; in TEST_F()
3208 HalManifest manifest; in TEST_F() local
3222 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3223 EXPECT_FALSE(manifest.checkCompatibility(cm, &error)); in TEST_F()
3234 HalManifest manifest; in TEST_F() local
3244 ASSERT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3387 HalManifest manifest; in TEST_F() local
3388 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)); in TEST_F()
3389 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
3391 auto unused = checkUnusedHals(manifest, matrix); in TEST_F()
3413 HalManifest manifest; in TEST_F() local
3414 EXPECT_TRUE(gHalManifestConverter(&manifest, xml)); in TEST_F()
3415 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
3418 auto unused = checkUnusedHals(manifest, matrix); in TEST_F()
3637 HalManifest manifest; in TEST_F() local
3638 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3644 HalManifest manifest; in TEST_F() local
3645 EXPECT_FALSE(gHalManifestConverter(&manifest, xml, &error)) in TEST_F()
3652 HalManifest manifest; in TEST_F() local
3653 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3654 EXPECT_IN(kMetaVersionStr, gHalManifestConverter(manifest, SerializeFlags::NO_TAGS)); in TEST_F()
3698 HalManifest manifest; in TEST_F() local
3710 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml, &error)) << error; in TEST_F()
3711 EXPECT_EQ(manifestXml, gHalManifestConverter(manifest, SerializeFlags::HALS_NO_FQNAME)); in TEST_F()
3712 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
3713 EXPECT_TRUE(manifest.hasAidlInstance("android.system.foo", "IFoo", "default")); in TEST_F()
3714 EXPECT_TRUE(manifest.hasAidlInstance("android.system.foo", "IFoo", "test0")); in TEST_F()
3715 EXPECT_FALSE(manifest.hasAidlInstance("android.system.foo", "IFoo", "does_not_exist")); in TEST_F()
3716 EXPECT_FALSE(manifest.hasAidlInstance("android.system.foo", "IDoesNotExist", "default")); in TEST_F()
3717 EXPECT_FALSE(manifest.hasAidlInstance("android.system.does_not_exist", "IFoo", "default")); in TEST_F()
3718 EXPECT_EQ(manifest.getAidlInstances("android.system.foo", "IFoo"), in TEST_F()
3720 EXPECT_EQ(manifest.getAidlInstances("android.system.does_not_exist", "IFoo"), in TEST_F()
3725 HalManifest manifest; in TEST_F() local
3734 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml, &error)) << error; in TEST_F()
3735 EXPECT_EQ(manifestXml, gHalManifestConverter(manifest, SerializeFlags::HALS_ONLY)); in TEST_F()
3736 EXPECT_TRUE(manifest.checkCompatibility(matrix, &error)) << error; in TEST_F()
3737 EXPECT_TRUE(manifest.hasAidlInstance("android.system.foo", "IFoo", "default")); in TEST_F()
3738 EXPECT_TRUE(manifest.hasAidlInstance("android.system.foo", "IFoo", "test0")); in TEST_F()
3739 EXPECT_FALSE(manifest.hasAidlInstance("android.system.foo", "IFoo", "does_not_exist")); in TEST_F()
3740 EXPECT_FALSE(manifest.hasAidlInstance("android.system.foo", "IDoesNotExist", "default")); in TEST_F()
3741 EXPECT_FALSE(manifest.hasAidlInstance("android.system.does_not_exist", "IFoo", "default")); in TEST_F()
3742 EXPECT_EQ(manifest.getAidlInstances("android.system.foo", "IFoo"), in TEST_F()
3744 EXPECT_EQ(manifest.getAidlInstances("android.system.does_not_exist", "IFoo"), in TEST_F()
3749 HalManifest manifest; in TEST_F() local
3761 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml, &error)) << error; in TEST_F()
3762 EXPECT_EQ(manifestXml, gHalManifestConverter(manifest, SerializeFlags::HALS_NO_FQNAME)); in TEST_F()
3763 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
3772 HalManifest manifest; in TEST_F() local
3784 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml, &error)) << error; in TEST_F()
3785 EXPECT_EQ(manifestXml, gHalManifestConverter(manifest, SerializeFlags::HALS_NO_FQNAME)); in TEST_F()
3786 EXPECT_FALSE(manifest.checkCompatibility(matrix, &error)) in TEST_F()
3835 HalManifest manifest; in TEST_F() local
3836 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3837 EXPECT_EQ(xml, gHalManifestConverter(manifest, SerializeFlags::HALS_ONLY)); in TEST_F()
3872 HalManifest manifest; in TEST_F() local
3875 EXPECT_TRUE(gHalManifestConverter(&manifest, manifestXml, &error)) << error; in TEST_F()
3877 auto unused = checkUnusedHals(manifest, matrix); in TEST_F()
3891 HalManifest manifest; in TEST_F() local
3892 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3894 manifest.getHidlTransport("android.system.foo", details::kFakeAidlVersion, "IFoo", in TEST_F()
3910 HalManifest manifest; in TEST_F() local
3911 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3913 manifest.getHidlTransport("android.system.foo", details::kFakeAidlVersion, "IFoo", in TEST_F()
3918 HalManifest manifest; in TEST_F() local
3927 EXPECT_TRUE(gHalManifestConverter(&manifest, xml, &error)) << error; in TEST_F()
3928 auto names = manifest.getHalNamesAndVersions(); in TEST_F()