Home
last modified time | relevance | path

Searched refs:hasInstance (Results 1 – 10 of 10) sorted by relevance

/system/libvintf/
DManifestHal.cpp83 bool hasInstance = false; in isDisabledHal() local
84 forEachInstance([&hasInstance](const auto&) { in isDisabledHal()
85 hasInstance = true; in isDisabledHal()
88 return !hasInstance; in isDisabledHal()
115 if (!fqInstance.hasInstance()) { in verifyInstance()
DHalManifest.cpp445 bool HalManifest::hasInstance(const std::string& halName, const Version& version, in hasInstance() function in android::vintf::HalManifest
/system/tools/hidl/test/utils_test/
Dmain.cpp41 ASSERT_TRUE(e.hasInstance()); in TEST_F()
54 ASSERT_TRUE(e.hasInstance()); in TEST_F()
66 ASSERT_TRUE(e.hasInstance()); in TEST_F()
78 ASSERT_FALSE(e.hasInstance()); in TEST_F()
86 ASSERT_FALSE(e.hasInstance()); in TEST_F()
/system/tools/hidl/utils/
DFqInstance.cpp61 bool FqInstance::hasInstance() const { in hasInstance() function in android::FqInstance
69 bool hasInst = hasInstance(); in isValid()
116 if (hasInstance()) ret += INSTANCE_SEP + mInstance; in string()
/system/core/libutils/
DSingleton_test2.cpp35 return SingletonTestData::hasInstance(); in singletonHasInstance()
DSingleton_test1.cpp36 return SingletonTestData::hasInstance(); in singletonHasInstance()
/system/core/libutils/include/utils/
DSingleton.h61 static bool hasInstance() { in hasInstance() function
/system/tools/hidl/utils/include/hidl-util/
DFqInstance.h49 bool hasInstance() const;
/system/libvintf/include/vintf/
DHalManifest.h122 bool hasInstance(const std::string& halName, const Version& version,
/system/libvintf/test/
DLibVintfTest.cpp451 EXPECT_TRUE(vm.hasInstance("android.hardware.camera", {2, 0}, "ICamera", "default")); in TEST_F()
452 EXPECT_TRUE(vm.hasInstance("android.hardware.camera", {2, 0}, "ICamera", "legacy/0")); in TEST_F()
453 EXPECT_TRUE(vm.hasInstance("android.hardware.camera", {2, 0}, "IBetterCamera", "camera")); in TEST_F()
454 EXPECT_TRUE(vm.hasInstance("android.hardware.nfc", {1, 0}, "INfc", "default")); in TEST_F()
456 EXPECT_FALSE(vm.hasInstance("android.hardware.camera", {2, 0}, "INotExist", "default")); in TEST_F()
457 EXPECT_FALSE(vm.hasInstance("android.hardware.camera", {2, 0}, "ICamera", "notexist")); in TEST_F()
458 EXPECT_FALSE(vm.hasInstance("android.hardware.camera", {2, 0}, "IBetterCamera", "default")); in TEST_F()
459 EXPECT_FALSE(vm.hasInstance("android.hardware.camera", {2, 0}, "INotExist", "notexist")); in TEST_F()
460 EXPECT_FALSE(vm.hasInstance("android.hardware.nfc", {1, 0}, "INfc", "notexist")); in TEST_F()