Home
last modified time | relevance | path

Searched refs:fqInstance (Results 1 – 18 of 18) sorted by relevance

/system/libvintf/
DManifestHal.cpp110 bool ManifestHal::verifyInstance(const FqInstance& fqInstance, std::string* error) const { in verifyInstance() argument
111 if (fqInstance.hasPackage() && fqInstance.getPackage() != this->getName()) { in verifyInstance()
113 *error = "Should not add \"" + fqInstance.string() + "\" to a HAL with name " + in verifyInstance()
118 if (!fqInstance.hasVersion()) { in verifyInstance()
119 if (error) *error = "Should specify version: \"" + fqInstance.string() + "\""; in verifyInstance()
122 if (!fqInstance.hasInterface() && format != HalFormat::NATIVE) { in verifyInstance()
123 if (error) *error = "Should specify interface: \"" + fqInstance.string() + "\""; in verifyInstance()
126 if (!fqInstance.hasInstance()) { in verifyInstance()
127 if (error) *error = "Should specify instance: \"" + fqInstance.string() + "\""; in verifyInstance()
DManifestInstance.cpp43 ManifestInstance::ManifestInstance(FqInstance&& fqInstance, TransportArch&& ta, HalFormat fmt, in ManifestInstance() argument
45 : mFqInstance(std::move(fqInstance)), in ManifestInstance()
50 ManifestInstance::ManifestInstance(const FqInstance& fqInstance, const TransportArch& ta, in ManifestInstance() argument
53 : mFqInstance(fqInstance), in ManifestInstance()
165 FqInstance fqInstance; in withVersion() local
166 CHECK(fqInstance.setTo(getFqInstance().getPackage(), v.majorVer, v.minorVer, in withVersion()
168 return ManifestInstance(std::move(fqInstance), mTransportArch, format(), mUpdatableViaApex); in withVersion()
DMatrixInstance.cpp37 MatrixInstance::MatrixInstance(HalFormat format, FqInstance&& fqInstance, VersionRange&& range, in MatrixInstance() argument
40 mFqInstance(std::move(fqInstance)), in MatrixInstance()
45 MatrixInstance::MatrixInstance(HalFormat format, const FqInstance fqInstance, in MatrixInstance() argument
48 mFqInstance(fqInstance), in MatrixInstance()
DVintfObject.cpp801 for (const auto& fqInstance : *inheritance) { in IsInstanceDeprecated()
803 fqInstance, listInstances); in IsInstanceDeprecated()
826 const FqInstance& fqInstance) { in IsInstanceListed() argument
828 listInstances(fqInstance.getPackage(), fqInstance.getVersion(), fqInstance.getInterface(), in IsInstanceListed()
829 {fqInstance.getInstance()} /* instanceHint*/); in IsInstanceListed()
831 [&](const auto& pair) { return pair.first == fqInstance.getInstance(); }); in IsInstanceListed()
841 FqInstance fqInstance; in GetListedInstanceInheritance() local
842 if (!fqInstance.setTo(package, version.majorVer, version.minorVer, interface, instance)) { in GetListedInstanceInheritance()
847 if (!IsInstanceListed(listInstances, fqInstance)) { in GetListedInstanceInheritance()
851 const auto& fqName = fqInstance.getFqNameString(); in GetListedInstanceInheritance()
[all …]
DMatrixHal.cpp90 FqInstance fqInstance; in forEachInstance() local
91 if (fqInstance.setTo(getName(), vr.majorVer, vr.minMinor, interface, instance)) { in forEachInstance()
92 if (!func(MatrixInstance(format, std::move(fqInstance), VersionRange(vr), in forEachInstance()
Dparse_string.cpp475 std::ostream& operator<<(std::ostream& os, const FqInstance& fqInstance) { in operator <<() argument
476 return os << fqInstance.string(); in operator <<()
479 bool parse(const std::string& s, FqInstance* fqInstance) { in parse() argument
480 return fqInstance->setTo(s); in parse()
DHalManifest.cpp732 bool HalManifest::insertInstance(const FqInstance& fqInstance, Transport transport, Arch arch, in insertInstance() argument
735 if (hal.name == fqInstance.getPackage() && hal.format == format && in insertInstance()
737 return hal.insertInstance(fqInstance, error); in insertInstance()
742 hal.name = fqInstance.getPackage(); in insertInstance()
745 if (!hal.insertInstance(fqInstance, error)) return false; in insertInstance()
Dparse_xml.cpp955 auto fqInstance = details::convertLegacyInstanceIntoFqInstance( in buildObject() local
958 if (!fqInstance.has_value()) { in buildObject()
967 auto&& [it, inserted] = fqInstances.emplace(std::move(fqInstance.value())); in buildObject()
/system/tools/hidl/test/lazy_test/
Dhidl_lazy_test.cpp179 FqInstance fqInstance; in TEST_F() local
180 ASSERT_TRUE(fqInstance.setTo(fqInstanceName)); in TEST_F()
186 ASSERT_FALSE(isServiceRunning(fqInstance)) << "Lazy service already running."; in TEST_F()
188 sp<IBase> hal = getHal(fqInstance); in TEST_F()
243 ASSERT_FALSE(isServiceRunning(fqInstance)) << "Service failed to shut down."; in TEST_F()
263 FqInstance fqInstance; in main() local
264 if (!fqInstance.setTo(instance)) { in main()
268 gInstances.push_back(fqInstance); in main()
/system/tools/hidl/utils/include/hidl-util/
DFqInstance.h102 FqInstance fqInstance; in from() local
103 if (fqInstance.setTo(std::forward<Args>(args)...)) return fqInstance; in from()
/system/libvintf/include/vintf/
DFqInstance.h84 FqInstance fqInstance; in from() local
85 if (fqInstance.setTo(std::forward<Args>(args)...)) return fqInstance; in from()
DMatrixInstance.h39 MatrixInstance(HalFormat format, FqInstance&& fqInstance, VersionRange&& range, bool optional,
41 MatrixInstance(HalFormat format, const FqInstance fqInstance, const VersionRange& range,
DManifestInstance.h40 ManifestInstance(FqInstance&& fqInstance, TransportArch&& ta, HalFormat fmt,
42 ManifestInstance(const FqInstance& fqInstance, const TransportArch& ta, HalFormat fmt,
DManifestHal.h93 bool insertInstance(const FqInstance& fqInstance, bool allowDupMajorVersion,
99 bool verifyInstance(const FqInstance& fqInstance, std::string* error = nullptr) const;
Dparse_string.h53 std::ostream& operator<<(std::ostream& os, const FqInstance& fqInstance);
81 bool parse(const std::string& s, FqInstance* fqInstance);
DVintfObject.h393 static bool IsInstanceListed(const ListInstances& listInstances, const FqInstance& fqInstance);
395 const CompatibilityMatrix& targetMatrix, HalFormat format, const FqInstance& fqInstance,
DHalManifest.h149 bool insertInstance(const FqInstance& fqInstance, Transport transport, Arch arch, HalFormat fmt,
/system/libhidl/transport/base/1.0/vts/functional/
Dvts_ibase_test.cpp175 FqInstance fqInstance; in GetPidInterfacesMap() local
176 ASSERT_TRUE(fqInstance.setTo(fqName, debug_info.instanceName.c_str())); in GetPidInterfacesMap()
177 if (fqInstance.getFqName().string() != IBase::descriptor) { in GetPidInterfacesMap()
178 result[debug_info.pid].insert(fqInstance); in GetPidInterfacesMap()
270 FqInstance fqInstance; in TEST_F() local
271 ASSERT_TRUE(fqInstance.setTo(interface)) in TEST_F()
274 std::thread(GetHal, service_manager, service, fqInstance).detach(); in TEST_F()
275 hidl_interfaces_map[service].insert(fqInstance); in TEST_F()