Home
last modified time | relevance | path

Searched refs:IBase (Results 1 – 25 of 44) sorted by relevance

12

/system/libhidl/adapter/include/hidladapter/
DHidlBinderAdapter.h27 using IBase = ::android::hidl::base::V1_0::IBase; variable
30 using AdapterFactory = std::function<sp<IBase>(sp<IBase>)>;
36 sp<IBase> adaptWithDefault(const sp<IBase>& something,
37 const std::function<sp<IBase>()>& makeDefault);
45 {{Adapters::Pure::descriptor, [](sp<::android::hidl::base::V1_0::IBase> base) { in adapterMain()
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
DHidlTestJava.java20 import android.hardware.tests.baz.V1_0.IBase;
121 private void ExpectEqual(android.hidl.base.V1_0.IBase l, android.hidl.base.V1_0.IBase r) { in ExpectEqual()
127 private void ExpectNotEqual(android.hidl.base.V1_0.IBase l, android.hidl.base.V1_0.IBase r) { in ExpectNotEqual()
264 IBase proxy = IBase.getService("this-doesn't-exist"); in client()
274 IBase baseProxy = IBase.getService("baz"); in client()
288 IBase baseProxyA = IBaz.getService("baz", true /* retry */); in client()
290 IBase baseProxyB = IBaz.getService("baz", false /* retry */); in client()
305 IBase.Foo foo = new IBase.Foo(); in client()
309 IBase.Foo.Bar bar = new IBase.Foo.Bar(); in client()
318 IBase.Foo result = proxy.someOtherBaseMethod(foo); in client()
[all …]
/system/libhidl/transport/
DHidlPassthroughSupport.cpp22 using ::android::hidl::base::V1_0::IBase;
28 static sp<IBase> tryWrap(const std::string& descriptor, sp<IBase> iface) { in tryWrap()
39 sp<IBase> wrapPassthroughInternal(sp<IBase> iface) { in wrapPassthroughInternal()
54 sp<IBase> base; in wrapPassthroughInternal()
DHidlTransportUtils.cpp25 using ::android::hidl::base::V1_0::IBase;
27 Return<bool> canCastInterface(IBase* interface, const char* castTo, bool emitError) { in canCastInterface()
34 if (std::string(IBase::descriptor) == castTo) { in canCastInterface()
58 std::string getDescriptor(IBase* interface) { in getDescriptor()
DHidlTransportSupport.cpp43 static void pruneMapLocked(ConcurrentMap<wp<::android::hidl::base::V1_0::IBase>, V>& map) { in pruneMapLocked() argument
44 using ::android::hidl::base::V1_0::IBase; in pruneMapLocked()
46 std::vector<wp<IBase>> toDelete; in pruneMapLocked()
57 bool setMinSchedulerPolicy(const sp<::android::hidl::base::V1_0::IBase>& service, in setMinSchedulerPolicy()
82 bool setRequestingSid(const sp<::android::hidl::base::V1_0::IBase>& service, bool requesting) { in setRequestingSid()
DStatic.cpp35 ConcurrentMap<const ::android::hidl::base::V1_0::IBase*, wp<::android::hardware::BHwBinder>>
39 ConcurrentMap<wp<::android::hidl::base::V1_0::IBase>, SchedPrio> gServicePrioMap{};
40 ConcurrentMap<wp<::android::hidl::base::V1_0::IBase>, bool> gServiceSidMap{};
DServiceManagement.cpp364 Return<sp<IBase>> get(const hidl_string& fqName, in get()
366 sp<IBase> ret = nullptr; in get()
369 IBase* (*generator)(const char* name); in get()
400 const sp<IBase>& /* service */) override { in add()
664 sp<::android::hidl::base::V1_0::IBase> getRawServiceInternal(const std::string& descriptor, in getRawServiceInternal()
668 using ::android::hidl::base::V1_0::IBase; in getRawServiceInternal()
713 Return<sp<IBase>> ret = sm->get(descriptor, instance); in getRawServiceInternal()
719 sp<IBase> base = ret; in getRawServiceInternal()
750 sp<IBase> base = pm->get(descriptor, instance).withDefault(nullptr); in getRawServiceInternal()
/system/hwservicemanager/
DServiceManager.h22 using ::android::hidl::base::V1_0::IBase;
30 Return<sp<IBase>> get(const hidl_string& fqName,
33 const sp<IBase>& service) override;
55 virtual void serviceDied(uint64_t cookie, const wp<IBase>& who);
59 bool removeService(const wp<IBase>& who, const std::string* restrictToInstanceName);
60 bool removePackageListener(const wp<IBase>& who);
61 bool removeServiceListener(const wp<IBase>& who);
89 bool removePackageListener(const wp<IBase>& who);
90 bool removeServiceListener(const wp<IBase>& who);
DHidlService.h19 using ::android::hidl::base::V1_0::IBase;
27 const sp<IBase> &service,
42 sp<IBase> getService() const;
43 void setService(sp<IBase> service, pid_t pid);
49 bool removeListener(const wp<IBase> &listener);
60 sp<IBase> mService;
DTokenManager.h17 using ::android::hidl::base::V1_0::IBase;
30 Return<void> createToken(const sp<IBase>& store, createToken_cb hidl_cb) override;
32 Return<sp<IBase>> get(const hidl_vec<uint8_t> &token) override;
48 sp<IBase> interface;
52 TokenInterface generateToken(const sp<IBase> &interface);
DHidlService.cpp16 const sp<IBase> &service, in HidlService()
24 sp<IBase> HidlService::getService() const { in getService()
27 void HidlService::setService(sp<IBase> service, pid_t pid) { in setService()
58 bool HidlService::removeListener(const wp<IBase>& listener) { in removeListener()
DServiceManager.cpp70 void ServiceManager::serviceDied(uint64_t cookie, const wp<IBase>& who) { in serviceDied()
153 bool ServiceManager::PackageInterfaceMap::removePackageListener(const wp<IBase>& who) { in removePackageListener()
170 bool ServiceManager::PackageInterfaceMap::removeServiceListener(const wp<IBase>& who) { in removeServiceListener()
196 Return<sp<IBase>> ServiceManager::get(const hidl_string& hidlFqName, in get()
219 sp<IBase> service = hidlService->getService(); in get()
228 Return<bool> ServiceManager::add(const hidl_string& name, const sp<IBase>& service) { in add()
262 const sp<IBase> remove = hidlService->getService(); in add()
519 bool ServiceManager::removeService(const wp<IBase>& who, const std::string* restrictToInstanceName)… in removeService()
548 bool ServiceManager::removePackageListener(const wp<IBase>& who) { in removePackageListener()
558 bool ServiceManager::removeServiceListener(const wp<IBase>& who) { in removeServiceListener()
DTokenManager.cpp40 Return<void> TokenManager::createToken(const sp<IBase>& store, createToken_cb hidl_cb) { in createToken()
96 Return<sp<IBase>> TokenManager::get(const hidl_vec<uint8_t> &token) { in get()
107 TokenManager::TokenInterface TokenManager::generateToken(const sp<IBase> &interface) { in generateToken()
/system/libhidl/adapter/
DHidlBinderAdapter.cpp80 using android::hidl::base::V1_0::IBase; in adapterMain()
121 sp<IBase> implementation = manager->get(interfaceName, instanceName).withDefault(nullptr); in adapterMain()
127 sp<IBase> adapter = it->second(implementation); in adapterMain()
166 sp<IBase> adaptWithDefault(const sp<IBase>& something, in adaptWithDefault()
167 const std::function<sp<IBase>()>& makeDefault) { in adaptWithDefault()
168 static std::map<sp<IBase>, sp<IBase>> sAdapterMap; in adaptWithDefault()
/system/libhidl/transport/include/hidl/
DStatic.h37 extern ConcurrentMap<wp<::android::hidl::base::V1_0::IBase>, SchedPrio> gServicePrioMap;
38 extern ConcurrentMap<wp<::android::hidl::base::V1_0::IBase>, bool> gServiceSidMap;
41 extern ConcurrentMap<const ::android::hidl::base::V1_0::IBase*, wp<::android::hardware::BHwBinder>>
53 std::function<sp<::android::hidl::base::V1_0::IBase>(void*)>>;
DHidlTransportSupport.h84 bool setMinSchedulerPolicy(const sp<::android::hidl::base::V1_0::IBase>& service,
109 bool setRequestingSid(const sp<::android::hidl::base::V1_0::IBase>& service, bool requesting);
154 using ::android::hidl::base::V1_0::IBase; in getServiceInternal()
156 sp<IBase> base = getRawServiceInternal(IType::descriptor, instance, retry, getStub); in getServiceInternal()
164 return sp<IType>(new BpType(toBinder<IBase>(base))); in getServiceInternal()
DHidlTransportUtils.h31 Return<bool> canCastInterface(::android::hidl::base::V1_0::IBase* interface,
34 std::string getDescriptor(::android::hidl::base::V1_0::IBase* interface);
DHidlPassthroughSupport.h35 sp<::android::hidl::base::V1_0::IBase> wrapPassthroughInternal(
36 sp<::android::hidl::base::V1_0::IBase> iface);
DHidlBinderSupport.h43 uint64_t cookie, const sp<::android::hidl::base::V1_0::IBase> &base);
49 wp<::android::hidl::base::V1_0::IBase> mBase;
354 using ::android::hidl::base::V1_0::IBase; in fromBinder()
363 sp<IBase> base = static_cast<BnHwBase*>(binderIface.get())->getImpl(); in fromBinder()
DServiceManagement.h57 sp<::android::hidl::base::V1_0::IBase> getRawServiceInternal(const std::string& descriptor,
/system/libhidl/transport/base/1.0/vts/functional/
Dvts_ibase_test.cpp34 using android::hidl::base::V1_0::IBase;
48 sp<IBase> service;
71 sp<IBase> service = default_manager_->get(fqName, instance); in SetUp()
133 EXPECT_NE(IBase::descriptor, descriptor) << base.name; in TEST_F()
140 virtual void serviceDied(uint64_t /* cookie */, const wp<IBase>& /* who */){}; in TEST_F()
/system/tools/hidl/test/java_test/
Dhidl_test_java_native.cpp31 using ::android::hardware::tests::baz::V1_0::IBase;
109 IBase::Foo foo; in TEST_F()
133 hidl_array<IBase::Foo, 2> foo; in TEST_F()
168 hidl_vec<IBase::Foo> foo; in TEST_F()
205 IBase::VectorOfArray in, expectedOut; in TEST_F()
296 IBase::StringMatrix5x3 in; in TEST_F()
297 IBase::StringMatrix3x5 expectedOut; in TEST_F()
497 IBase::LotsOfPrimitiveArrays in; in TEST_F()
533 hidl_vec<IBase::ByteOneDim> in; in TEST_F()
548 hidl_vec<IBase::BooleanOneDim> in; in TEST_F()
[all …]
/system/libhidl/transport/base/1.0/
DAndroid.bp12 "IBase.hal",
DIBase.hal24 * from IBase. (This is like java.lang.Object in Java.)
30 interface IBase {
47 * "android.hidl.base@1.0::IBase"]
130 * (hash of IBase.hal)].
/system/hardware/interfaces/wifi/keystore/1.0/default/include/wifikeystorehal/
Dkeystore.h19 using ::android::hidl::base::V1_0::IBase;

12