Home
last modified time | relevance | path

Searched refs:setTo (Results 1 – 25 of 41) sorted by relevance

12

/system/tools/hidl/test/utils_test/
Dmain.cpp80 ASSERT_TRUE(e.setTo(testString)) << testString; in TEST()
87 ASSERT_TRUE(e.setTo("IFoo")); in TEST()
90 ASSERT_TRUE(e.setTo("foo.IFoo")); in TEST()
92 ASSERT_TRUE(e.setTo("@1.0::IFoo")); in TEST()
99 EXPECT_FALSE(e.setTo(testString)) << testString; in TEST()
105 ASSERT_TRUE(e.setTo("android.hardware.foo@1.0::IFoo/instance")); in TEST()
121 ASSERT_TRUE(e.setTo("@1.0::IFoo/instance")); in TEST()
134 ASSERT_TRUE(e.setTo("IFoo/instance")); in TEST()
147 ASSERT_TRUE(e.setTo(testString)) << testString; in TEST()
156 EXPECT_FALSE(e.setTo(testString)) << testString; in TEST()
[all …]
Dfuzzer.cpp23 (void)fqName.setTo(std::string((const char*)data, size)); in LLVMFuzzerTestOneInput()
/system/tools/hidl/utils/
DFqInstance.cpp94 bool FqInstance::setTo(const std::string& s) { in setTo() function in android::FqInstance
96 if (!mFqName.setTo(s.substr(0, pos))) return false; in setTo()
102 bool FqInstance::setTo(const FQName& fqName, const std::string& instance) { in setTo() function in android::FqInstance
108 bool FqInstance::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() function in android::FqInstance
110 if (!mFqName.setTo(package, majorVer, minorVer, interface)) return false; in setTo()
115 bool FqInstance::setTo(size_t majorVer, size_t minorVer, const std::string& interface, in setTo() function in android::FqInstance
117 return setTo("", majorVer, minorVer, interface, instance); in setTo()
120 bool FqInstance::setTo(const std::string& interface, const std::string& instance) { in setTo() function in android::FqInstance
121 return setTo(0u, 0u, interface, instance); in setTo()
DFQName.cpp30 return into->setTo(s); in parse()
37 CHECK(setTo(package, majorVer, minorVer, name, valueName)) << string(); in FQName()
40 bool FQName::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() function in android::FQName
112 bool FQName::setTo(const std::string &s) { in setTo() function in android::FQName
/system/libvintf/
DFqInstance.cpp97 bool FqInstance::setTo(const std::string& s) { in setTo() function in android::vintf::FqInstance
99 if (!mFqName.setTo(s.substr(0, pos))) return false; in setTo()
105 bool FqInstance::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() function in android::vintf::FqInstance
107 if (!mFqName.setTo(package, majorVer, minorVer, interface)) return false; in setTo()
112 bool FqInstance::setTo(size_t majorVer, size_t minorVer, const std::string& interface, in setTo() function in android::vintf::FqInstance
114 return setTo("", majorVer, minorVer, interface, instance); in setTo()
117 bool FqInstance::setTo(const std::string& interface, const std::string& instance) { in setTo() function in android::vintf::FqInstance
118 return setTo(0u, 0u, interface, instance); in setTo()
Dutils.cpp40 if (!fqName.setTo(package)) { in convertLegacyInstanceIntoFqInstance()
49 if (!fqName.setTo(interface) || !fqName.isInterfaceName()) { in convertLegacyInstanceIntoFqInstance()
55 if (!interface.empty() && (!fqName.setTo(interface) || !fqName.isInterfaceName())) { in convertLegacyInstanceIntoFqInstance()
DManifestInstance.cpp122 success = e.setTo(interface(), instance()); in getSimpleFqInstance()
127 success = e.setTo(version().majorVer, version().minorVer, interface(), instance()); in getSimpleFqInstance()
166 CHECK(fqInstance.setTo(getFqInstance().getPackage(), v.majorVer, v.minorVer, in withVersion()
DFQName.cpp30 return into->setTo(s); in parse()
36 CHECK(setTo(package, majorVer, minorVer, name)) << string(); in FQName()
39 bool FQName::setTo(const std::string& package, size_t majorVer, size_t minorVer, in setTo() function in android::vintf::details::FQName
101 bool FQName::setTo(const std::string& s) { in setTo() function in android::vintf::details::FQName
/system/tools/hidl/utils/include/hidl-util/
DFqInstance.h73 __attribute__((warn_unused_result)) bool setTo(const std::string& s);
76 __attribute__((warn_unused_result)) bool setTo(const FQName& fqName,
83 __attribute__((warn_unused_result)) bool setTo(const std::string& package, size_t majorVer,
90 __attribute__((warn_unused_result)) bool setTo(size_t majorVer, size_t minorVer,
95 __attribute__((warn_unused_result)) bool setTo(const std::string& interface,
103 if (fqInstance.setTo(std::forward<Args>(args)...)) return fqInstance; in from()
DFQName.h37 __attribute__((warn_unused_result)) bool setTo(const std::string& s);
38 __attribute__((warn_unused_result)) bool setTo(const std::string& package, size_t majorVer,
/system/libvintf/include/vintf/
DFqInstance.h62 __attribute__((warn_unused_result)) bool setTo(const std::string& s);
66 __attribute__((warn_unused_result)) bool setTo(const std::string& package, size_t majorVer,
71 __attribute__((warn_unused_result)) bool setTo(size_t majorVer, size_t minorVer,
77 __attribute__((warn_unused_result)) bool setTo(const std::string& interface,
85 if (fqInstance.setTo(std::forward<Args>(args)...)) return fqInstance; in from()
DFQName.h32 __attribute__((warn_unused_result)) bool setTo(const std::string& s);
33 __attribute__((warn_unused_result)) bool setTo(const std::string& package, size_t majorVer,
/system/core/libutils/binder/
DString16.cpp121 setTo(o, len, begin); in String16()
161 void String16::setTo(const String16& other) in setTo() function in android::String16
168 status_t String16::setTo(const String16& other, size_t len, size_t begin) in setTo() function in android::String16
178 setTo(other); in setTo()
186 return setTo(other.c_str() + begin, len); in setTo()
189 status_t String16::setTo(const char16_t* other) in setTo() function in android::String16
191 return setTo(other, strlen16(other)); in setTo()
194 status_t String16::setTo(const char16_t* other, size_t len) in setTo() function in android::String16
219 if (myLen == 0) return setTo(chrs, otherLen); in append()
245 if (myLen == 0) return setTo(chrs, otherLen); in insert()
DString8.cpp199 void String8::setTo(const String8& other) in setTo() function in android::String8
206 status_t String8::setTo(const char* other) in setTo() function in android::String8
217 status_t String8::setTo(const char* other, size_t len) in setTo() function in android::String8
228 status_t String8::setTo(const char16_t* other, size_t len) in setTo() function in android::String8
239 status_t String8::setTo(const char32_t* other, size_t len) in setTo() function in android::String8
254 setTo(other); in append()
271 return setTo(other, otherLen); in append()
DString16_test.cpp89 TEST(String16Test, setTo) { in TEST() argument
91 tmp.setTo(u"New content"); in TEST()
152 tmp.setTo(u"New content"); in TEST()
/system/core/libutils/include/utils/
DString8.h81 void setTo(const String8& other);
82 status_t setTo(const char* other);
83 status_t setTo(const char* other, size_t numChars);
84 status_t setTo(const char16_t* other, size_t numChars);
85 status_t setTo(const char32_t* other,
244 setTo(other);
250 setTo(other);
DString16.h72 void setTo(const String16& other);
73 status_t setTo(const char16_t* other);
74 status_t setTo(const char16_t* other, size_t len);
75 status_t setTo(const String16& other,
295 setTo(other);
/system/core/libutils/binder/include/utils/
DString8.h81 void setTo(const String8& other);
82 status_t setTo(const char* other);
83 status_t setTo(const char* other, size_t numChars);
84 status_t setTo(const char16_t* other, size_t numChars);
85 status_t setTo(const char32_t* other,
244 setTo(other);
250 setTo(other);
DString16.h72 void setTo(const String16& other);
73 status_t setTo(const char16_t* other);
74 status_t setTo(const char16_t* other, size_t len);
75 status_t setTo(const String16& other,
295 setTo(other);
/system/core/init/
Dinterface_utils.cpp55 if (!fqinstance.setTo(instance)) { in CheckInterfaceInheritanceHierarchy()
104 if (!fqinstance.setTo(instance)) { in IsKnownInterface()
Dhost_init_verifier.cpp175 if (!fqname.setTo(intf)) { in ReadInterfaceInheritanceHierarchy()
181 if (!fqname.setTo(iface.name)) { in ReadInterfaceInheritanceHierarchy()
/system/core/init/fuzzer/
Dinit_parser_fuzzer.cpp93 (void)fqname.setTo(intf); in GenerateHierarchyMap()
97 (void)fqname.setTo(iface.name); in GenerateHierarchyMap()
/system/libhidl/transport/base/1.0/vts/functional/
Dvts_ibase_test.cpp175 ASSERT_TRUE(fqName.setTo(debug_info.interfaceName.c_str())) in GetPidInterfacesMap()
178 ASSERT_TRUE(fqInstance.setTo(fqName, debug_info.instanceName.c_str())); in GetPidInterfacesMap()
273 ASSERT_TRUE(fqInstance.setTo(interface)) in TEST_F()
/system/libhidl/base/
DHidlSupport.cpp100 void hidl_handle::setTo(native_handle_t* handle, bool shouldOwn) { in setTo() function in android::hardware::hidl_handle
311 hidlHandle.setTo(handle, true /* shouldOwn */); in getInstance()
/system/tools/hidl/test/lazy_test/
Dhidl_lazy_test.cpp194 ASSERT_TRUE(fqInstance.setTo(fqInstanceName)); in TEST_F()
278 if (!fqInstance.setTo(instance)) { in main()

12