Home
last modified time | relevance | path

Searched refs:HalFormat (Results 1 – 24 of 24) sorted by relevance

/system/libvintf/
DManifestInstance.cpp43 ManifestInstance::ManifestInstance(FqInstance&& fqInstance, TransportArch&& ta, HalFormat fmt, in ManifestInstance()
51 HalFormat fmt, in ManifestInstance()
82 HalFormat ManifestInstance::format() const { in format()
112 case HalFormat::AIDL: { in getSimpleFqInstance()
116 case HalFormat::HIDL: in getSimpleFqInstance()
118 case HalFormat::NATIVE: { in getSimpleFqInstance()
130 case HalFormat::AIDL: { in description()
134 case HalFormat::HIDL: in description()
136 case HalFormat::NATIVE: { in description()
144 case HalFormat::AIDL: { in descriptionWithoutPackage()
[all …]
DMatrixInstance.cpp37 MatrixInstance::MatrixInstance(HalFormat format, FqInstance&& fqInstance, VersionRange&& range, in MatrixInstance()
45 MatrixInstance::MatrixInstance(HalFormat format, const FqInstance fqInstance, in MatrixInstance()
65 HalFormat MatrixInstance::format() const { in format()
106 case HalFormat::HIDL: in interfaceDescription()
108 case HalFormat::NATIVE: { in interfaceDescription()
111 case HalFormat::AIDL: { in interfaceDescription()
121 case HalFormat::HIDL: in description()
123 case HalFormat::NATIVE: { in description()
126 case HalFormat::AIDL: { in description()
Dutils.cpp26 HalFormat format, std::string* appendedError) { in canConvertToFqInstance()
38 if (format == HalFormat::AIDL) { in canConvertToFqInstance()
DHalManifest.cpp62 if (hal.format == HalFormat::AIDL) { in addingConflictingMajorVersion()
181 case HalFormat::HIDL: in getHalNamesAndVersions()
183 case HalFormat::NATIVE: in getHalNamesAndVersions()
186 case HalFormat::AIDL: in getHalNamesAndVersions()
199 forEachInstanceOfInterface(HalFormat::HIDL, package, v, interfaceName, [&](const auto& e) { in getHidlTransport()
213 HalFormat format, const std::string& package, const Version& expectVersion, in forEachInstanceOfVersion()
302 if (manifestInstance.format() == HalFormat::HIDL) { in checkUnusedHals()
454 std::set<std::tuple<HalFormat, std::string, Version, std::string, std::string>> instances; in generateCompatibleMatrix()
550 std::set<std::string> HalManifest::getInstances(HalFormat format, const std::string& package, in getInstances()
563 bool HalManifest::hasInstance(HalFormat format, const std::string& package, const Version& version, in hasInstance()
[all …]
Dparse_string.cpp97 DEFINE_PARSE_STREAMIN_FOR_ENUM(HalFormat)
395 case HalFormat::AIDL: { in expandInstances()
399 case HalFormat::HIDL: in expandInstances()
401 case HalFormat::NATIVE: { in expandInstances()
Dutils.h114 HalFormat format, std::string* appendedError);
Dparse_xml.cpp552 if (hal.format == HalFormat::AIDL) { in mutateNode()
567 if (!parseOptionalAttr(root, "format", HalFormat::HIDL, &object->format, error) || in buildObject()
574 if (object->format == HalFormat::AIDL) { in buildObject()
711 if (hal.format == HalFormat::AIDL) { in mutateNode()
742 if (!parseOptionalAttr(root, "format", HalFormat::HIDL, &object->format, error) || in buildObject()
754 case HalFormat::HIDL: { in buildObject()
762 case HalFormat::NATIVE: { in buildObject()
771 case HalFormat::AIDL: { in buildObject()
787 << static_cast<typename std::underlying_type<HalFormat>::type>( in buildObject()
820 if (object->format == HalFormat::AIDL) { in buildObject()
DVintfObject.cpp799 const CompatibilityMatrix& targetMatrix, HalFormat format, const FqInstance& fqInstance, in IsFqInstanceDeprecated()
916 HalFormat::HIDL, package, version, interface, in checkDeprecation()
1121 case HalFormat::AIDL: { in checkMissingHalsInMatrices()
1125 case HalFormat::HIDL: { in checkMissingHalsInMatrices()
1184 case HalFormat::AIDL: { in checkMatrixHalsHasDefinition()
1196 case HalFormat::HIDL: { in checkMatrixHalsHasDefinition()
DManifestHal.cpp113 if (format == HalFormat::AIDL) { in forEachInstance()
DCompatibilityMatrix.cpp436 HalFormat format, const std::string& package, const Version& expectVersion, in forEachInstanceOfVersion()
451 bool CompatibilityMatrix::matchInstance(HalFormat format, const std::string& halName, in matchInstance()
/system/libvintf/include/vintf/
DMatrixInstance.h40 MatrixInstance(HalFormat format, FqInstance&& fqInstance, VersionRange&& range, bool optional,
42 MatrixInstance(HalFormat format, const FqInstance fqInstance, const VersionRange& range,
48 HalFormat format() const;
78 HalFormat mFormat = HalFormat::HIDL;
DManifestInstance.h41 ManifestInstance(FqInstance&& fqInstance, TransportArch&& ta, HalFormat fmt,
43 ManifestInstance(const FqInstance& fqInstance, const TransportArch& ta, HalFormat fmt,
51 HalFormat format() const;
81 HalFormat mHalFormat;
DHalGroup.h77 return forEachInstance(HalFormat::HIDL, func); in forEachHidlInstance()
81 bool forEachInstance(HalFormat format, in forEachInstance()
91 bool forEachInstanceOfPackage(HalFormat format, const std::string& package, in forEachInstanceOfPackage()
105 return forEachInstanceOfPackage(HalFormat::HIDL, package, func); in forEachHidlInstanceOfPackage()
114 HalFormat format, const std::string& package, const Version& expectVersion,
121 bool forEachInstanceOfInterface(HalFormat format, const std::string& package, in forEachInstanceOfInterface()
140 return forEachInstanceOfVersion(HalFormat::HIDL, package, expectVersion, func); in forEachHidlInstanceOfVersion()
149 return forEachInstanceOfInterface(HalFormat::HIDL, package, expectVersion, interface, func); in forEachHidlInstanceOfInterface()
DManifestHal.h46 ManifestHal(HalFormat fmt, std::string&& n, std::vector<Version>&& vs, TransportArch ta, in ManifestHal()
56 HalFormat format = HalFormat::HIDL;
DHalManifest.h151 bool insertInstance(const FqInstance& fqInstance, Transport transport, Arch arch, HalFormat fmt,
164 HalFormat format, const std::string& package, const Version& expectVersion,
205 std::set<std::string> getInstances(HalFormat format, const std::string& package,
210 bool hasInstance(HalFormat format, const std::string& package, const Version& version,
DMatrixHal.h41 HalFormat format = HalFormat::HIDL;
DHalFormat.h28 enum class HalFormat : size_t { enum
DCompatibilityMatrix.h79 HalFormat format, const std::string& package, const Version& expectVersion,
145 bool matchInstance(HalFormat format, const std::string& halName, const Version& version,
Dparse_string.h31 std::ostream &operator<<(std::ostream &os, HalFormat hf);
61 bool parse(const std::string &s, HalFormat *hf);
DVintfObject.h354 const CompatibilityMatrix& targetMatrix, HalFormat format, const FqInstance& fqInstance,
/system/libvintf/test/
DVintfFmTest.cpp233 std::string createMatrixHal(HalFormat format, const std::string& package) { in createMatrixHal()
235 if (format != HalFormat::AIDL) { in createMatrixHal()
238 auto interface = format == HalFormat::AIDL ? "IAidl" : "IHidl"; in createMatrixHal()
286 auto xml3 = createMatrixHal(HalFormat::HIDL, "android.frameworks.no_level") + in SetUpFiles()
287 createMatrixHal(HalFormat::AIDL, "android.frameworks.no_level"); in SetUpFiles()
288 auto xml2 = xml3 + createMatrixHal(HalFormat::HIDL, "android.frameworks.level2") + in SetUpFiles()
289 createMatrixHal(HalFormat::AIDL, "android.frameworks.level2"); in SetUpFiles()
290 auto xml1 = xml2 + createMatrixHal(HalFormat::HIDL, "android.frameworks.level1") + in SetUpFiles()
291 createMatrixHal(HalFormat::AIDL, "android.frameworks.level1"); in SetUpFiles()
DLibVintfTest.cpp150 vm.add(ManifestHal{HalFormat::HIDL, in testDeviceManifest()
156 vm.add(ManifestHal{HalFormat::HIDL, in testDeviceManifest()
175 vm.add(ManifestHal{HalFormat::HIDL, in testFrameworkManfiest()
236 EXPECT_EQ(to_string(HalFormat::HIDL), "hidl"); in TEST_F()
237 EXPECT_EQ(to_string(HalFormat::NATIVE), "native"); in TEST_F()
254 expectedManifest.add(ManifestHal{HalFormat::HIDL, in TEST_F()
489 MatrixHal mh{HalFormat::NATIVE, "android.hardware.camera", in TEST_F()
601 EXPECT_TRUE(add(cm, MatrixHal{HalFormat::NATIVE, "android.hardware.camera", in TEST_F()
604 EXPECT_TRUE(add(cm, MatrixHal{HalFormat::NATIVE, "android.hardware.nfc", in TEST_F()
670 EXPECT_TRUE(add(cm, MatrixHal{HalFormat::NATIVE, "android.hidl.manager", in TEST_F()
[all …]
Dvintf_object_tests.cpp1679 auto systemManifest = head + getFragment(HalFormat::HIDL, 13, "@3.0::ISystemEtc") + in SetUp()
1680 getFragment(HalFormat::AIDL, 14, "ISystemEtc4") + tail; in SetUp()
1684 head + getFragment(HalFormat::HIDL, 14, "@4.0::ISystemEtcFragment") + tail; in SetUp()
1687 auto aidlFragment = head + getFragment(HalFormat::AIDL, 13, "ISystemEtcFragment3") + tail; in SetUp()
1726 std::string getFragment(HalFormat halFormat, size_t maxLevel, const char* versionedInterface) { in getFragment()
1734 if (halFormat == HalFormat::HIDL) { in getFragment()
/system/libvintf/analyze_matrix/
Dhals_for_release.py179 class HalFormat(enum.Enum): class
197 return HalFormat.HIDL if "::" in instance else HalFormat.AIDL
215 if format == HalFormat.HIDL:
219 elif format == HalFormat.AIDL: