Home
last modified time | relevance | path

Searched refs:hidl_string (Results 1 – 25 of 37) sorted by relevance

12

/system/libhidl/base/
DHidlSupport.cpp139 hidl_string::hidl_string() : mBuffer(kEmptyString), mSize(0), mOwnsBuffer(false) { in hidl_string() function in android::hardware::hidl_string
143 hidl_string::~hidl_string() { in ~hidl_string()
147 hidl_string::hidl_string(const char *s) : hidl_string() { in hidl_string() function in android::hardware::hidl_string
155 hidl_string::hidl_string(const char *s, size_t length) : hidl_string() { in hidl_string() function in android::hardware::hidl_string
159 hidl_string::hidl_string(const hidl_string &other): hidl_string() { in hidl_string() function in android::hardware::hidl_string
163 hidl_string::hidl_string(const std::string &s) : hidl_string() { in hidl_string() function in android::hardware::hidl_string
167 hidl_string::hidl_string(hidl_string&& other) noexcept : hidl_string() { in hidl_string() function in android::hardware::hidl_string
168 moveFrom(std::forward<hidl_string>(other)); in hidl_string()
171 hidl_string& hidl_string::operator=(hidl_string&& other) noexcept { in operator =()
174 moveFrom(std::forward<hidl_string>(other)); in operator =()
[all …]
/system/hwservicemanager/
DServiceManager.h34 using ::android::hardware::hidl_string;
45 Return<sp<IBase>> get(const hidl_string& fqName,
46 const hidl_string& name) override;
47 Return<bool> add(const hidl_string& name,
50 Return<Transport> getTransport(const hidl_string& fqName,
51 const hidl_string& name);
54 Return<void> listByInterface(const hidl_string& fqInstanceName,
57 Return<bool> registerForNotifications(const hidl_string& fqName,
58 const hidl_string& name,
62 Return<void> registerPassthroughClient(const hidl_string &fqName,
[all …]
DServiceManager.cpp183 const hidl_string &fqName, in sendPackageRegistrationNotification()
184 const hidl_string &instanceName) { in sendPackageRegistrationNotification()
269 Return<sp<IBase>> ServiceManager::get(const hidl_string& hidlFqName, in get()
270 const hidl_string& hidlName) { in get()
312 Return<bool> ServiceManager::add(const hidl_string& name, const sp<IBase>& service) { in add()
340 const hidl_vec<hidl_string>& interfaceChain, in addImpl()
457 Return<ServiceManager::Transport> ServiceManager::getTransport(const hidl_string& fqName, in getTransport()
458 const hidl_string& name) { in getTransport()
482 hidl_vec<hidl_string> list; in list()
496 Return<void> ServiceManager::listByInterface(const hidl_string& fqName, in listByInterface()
[all …]
DHidlService.cpp211 hidl_string iface = mInterfaceName; in sendRegistrationNotifications()
212 hidl_string name = mInstanceName; in sendRegistrationNotifications()
/system/netd/server/
DNetdHwService.h26 using android::hardware::hidl_string;
39 uint64_t networkHandle, const hidl_string& ifname, const hidl_string& destination,
40 const hidl_string& nexthop) override;
42 uint64_t networkHandle, const hidl_string& ifname, const hidl_string& destination,
43 const hidl_string& nexthop) override;
45 const hidl_string& ifname) override;
47 const hidl_string& ifname) override;
49 Return <StatusCode> setForwardingBetweenInterfaces(const hidl_string& inputIfName,
50 const hidl_string& outputIfName,
DNetdHwService.cpp90 const char* maybeNullString(const hidl_string& nexthop) { in maybeNullString()
100 uint64_t networkHandle, const hidl_string& ifname, const hidl_string& destination, in addRouteToOemNetwork()
101 const hidl_string& nexthop) { in addRouteToOemNetwork()
111 uint64_t networkHandle, const hidl_string& ifname, const hidl_string& destination, in removeRouteFromOemNetwork()
112 const hidl_string& nexthop) { in removeRouteFromOemNetwork()
121 const hidl_string& ifname) { in addInterfaceToOemNetwork()
129 const hidl_string& ifname) { in removeInterfaceFromOemNetwork()
146 const hidl_string& inputIfName, const hidl_string& outputIfName, bool enable) { in setForwardingBetweenInterfaces()
/system/libhidl/
Dtest_main.cpp81 using android::hardware::hidl_string; in TEST_F()
82 hidl_string s; // empty constructor in TEST_F()
84 hidl_string s1 = "s1"; // copy = from cstr in TEST_F()
86 hidl_string s2("s2"); // copy constructor from cstr in TEST_F()
88 hidl_string s2a(nullptr); // copy constructor from null cstr in TEST_F()
92 hidl_string s3 = hidl_string("s3"); // move = in TEST_F()
94 hidl_string s4 = hidl_string("12345", 3); // copy constructor from cstr w/ length in TEST_F()
96 hidl_string s5(hidl_string(hidl_string("s5"))); // move constructor in TEST_F()
98 hidl_string s6(std::string("s6")); // copy constructor from std::string in TEST_F()
100 hidl_string s7 = std::string("s7"); // copy = from std::string in TEST_F()
[all …]
/system/libhidl/fuzzer/
DlibHidlBase_fuzzer_helper.h31 hidl_string createHidlString(FuzzedDataProvider& fdp) { in createHidlString()
32 auto invokeHidlString = fdp.PickValueInArray<const std::function<hidl_string()>>({ in createHidlString()
33 [&]() { return hidl_string(fdp.ConsumeRandomLengthString(kMaxBytes)); }, in createHidlString()
34 [&]() { return hidl_string((fdp.ConsumeRandomLengthString(kMaxBytes)).c_str()); }, in createHidlString()
37 return hidl_string(testString.c_str(), in createHidlString()
DlibHidlBase_parcel_fuzzer.cpp50 hidl_string hidlString = createHidlString(mFdp); in createRandomParcel()
144 hidl_string hidlString = createHidlString(mFdp); in process()
/system/libhidl/transport/
DServiceManagement.cpp199 static bool isServiceManager(const hidl_string& fqName) { in isServiceManager()
214 Return<sp<IBase>> get(const hidl_string& fqName, const hidl_string&) override { in get()
223 Return<bool> add(const hidl_string& name, const sp<IBase>& /* service */) override { in add()
228 Return<Transport> getTransport(const hidl_string& fqName, const hidl_string& name) { in getTransport()
245 Return<void> listByInterface(const hidl_string& fqName, listByInterface_cb _hidl_cb) override { in listByInterface()
270 Return<bool> registerForNotifications(const hidl_string& fqName, const hidl_string& name, in registerForNotifications()
301 Return<void> registerPassthroughClient(const hidl_string& fqName, in registerPassthroughClient()
302 const hidl_string& name) override { in registerPassthroughClient()
309 Return<bool> unregisterForNotifications(const hidl_string& fqName, const hidl_string& name, in unregisterForNotifications()
322 Return<bool> registerClientCallback(const hidl_string& fqName, const hidl_string& name, in registerClientCallback()
[all …]
DHidlBinderSupport.cpp132 const size_t hidl_string::kOffsetOfBuffer = offsetof(hidl_string, mBuffer);
133 static_assert(hidl_string::kOffsetOfBuffer == 0, "wrong offset");
135 status_t readEmbeddedFromParcel(const hidl_string &string , in readEmbeddedFromParcel()
143 parentOffset + hidl_string::kOffsetOfBuffer, in readEmbeddedFromParcel()
159 status_t writeEmbeddedToParcel(const hidl_string &string, in writeEmbeddedToParcel()
166 parentOffset + hidl_string::kOffsetOfBuffer); in writeEmbeddedToParcel()
DHidlTransportUtils.cpp39 auto chainRet = interface->interfaceChain([&](const hidl_vec<hidl_string> &types) { in canCastInterface()
64 auto ret = interface->interfaceDescriptor([&](const hidl_string &types) { in getDescriptor()
/system/hardware/interfaces/wifi/keystore/1.0/default/include/wifikeystorehal/
Dkeystore.h21 using ::android::hardware::hidl_string;
31 Return<void> getBlob(const hidl_string& key, getBlob_cb _hidl_cb) override;
33 const hidl_string& keyId, getPublicKey_cb _hidl_cb) override;
35 const hidl_string& keyId, const hidl_vec<uint8_t>& dataToSign,
/system/libhidl/base/include/hidl/
DHidlSupport.h137 struct hidl_string { struct
138 hidl_string();
139 ~hidl_string();
142 hidl_string(const hidl_string &);
144 hidl_string(const char *);
146 hidl_string(const char *, size_t length);
148 hidl_string(const std::string &);
151 hidl_string(hidl_string &&) noexcept;
158 hidl_string &operator=(const hidl_string &); argument
160 hidl_string &operator=(const char *s); argument
[all …]
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspendHidl.h30 using ::android::hardware::hidl_string;
52 Return<sp<IWakeLock>> acquireWakeLock(WakeLockType type, const hidl_string& name) override;
DSystemSuspendHidl.cpp58 const hidl_string& name) { in acquireWakeLock()
/system/security/keystore/
Dkeystore_get_wifi_hidl.cpp30 using android::hardware::hidl_string;
58 Return<void> ret = service->getBlob(hidl_string(key, keyLength), cb); in keystore_get()
/system/hardware/interfaces/wifi/keystore/1.0/default/
Dkeystore.cpp62 using android::hardware::hidl_string;
105 std::optional<std::vector<uint8_t>> keyStore2GetCert(const hidl_string& key) { in keyStore2GetCert()
162 std::optional<std::vector<uint8_t>> keyStore2GetPubKey(const hidl_string& key) { in keyStore2GetPubKey()
201 std::optional<std::vector<uint8_t>> keyStore2Sign(const hidl_string& key, in keyStore2Sign()
301 std::optional<std::vector<uint8_t>> getLegacyKeystoreBlob(const hidl_string& key) { in getLegacyKeystoreBlob()
329 Return<void> Keystore::getBlob(const hidl_string& key, getBlob_cb _hidl_cb) { in getBlob()
350 Return<void> Keystore::getPublicKey(const hidl_string& keyId, getPublicKey_cb _hidl_cb) { in getPublicKey()
360 Return<void> Keystore::sign(const hidl_string& keyId, const hidl_vec<uint8_t>& dataToSign, in sign()
/system/chre/host/hal_generic/common/
Dgeneric_context_hub_base.h47 using ::android::hardware::hidl_string;
80 inline hidl_vec<hidl_string> stringVectorToHidl( in stringVectorToHidl()
82 std::vector<hidl_string> outList; in stringVectorToHidl()
112 const hidl_vec<hidl_string> & /* options */) override { in debug() argument
288 hidl_vec<hidl_string> msgContentPerms = stringVectorToHidl( in onNanoappMessage()
/system/libhidl/transport/memory/1.0/default/
DAshmemMapper.h34 using ::android::hardware::hidl_string;
DAshmemMemory.h33 using ::android::hardware::hidl_string;
/system/libhidl/transport/allocator/1.0/default/
DAshmemAllocator.h33 using ::android::hardware::hidl_string;
/system/tools/hidl/test/lazy_test/
Dhidl_lazy_test.cpp45 using ::android::hardware::hidl_string;
82 [&](const hidl_vec<hidl_string>& instanceNames) { in isServiceRunning()
83 for (const hidl_string& name : instanceNames) { in isServiceRunning()
/system/tools/hidl/test/hidl_test/
DFooCallback.h20 using ::android::hardware::hidl_string;
Dhidl_test_client.cpp111 using ::android::hardware::hidl_string;
233 hidl_vec<hidl_string> vec; in customVecStr()
240 _cb(hidl_string()); in mystr()
290 hidl_vec<hidl_string> vec; in customVecStr()
297 _cb(hidl_string()); in mystr()
316 Return<void> onRegistration(const hidl_string &fqName, in onRegistration()
317 const hidl_string &name, in onRegistration()
493 .multidimArray = hidl_vec<hidl_string>{"hello", "great", "awesome", "nice"}.data(), in TEST_F()
494 .sArray = hidl_vec<hidl_string>{"awesome", "thanks", "you're welcome"}.data(), in TEST_F()
672 EXPECT_OK(manager->list([&activeSet](const hidl_vec<hidl_string> &registered){ in TEST_F()
[all …]

12