Home
last modified time | relevance | path

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

123

/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/hwservicemanager/
DServiceManager.h37 using ::android::hidl::base::V1_0::IBase;
45 Return<sp<IBase>> get(const hidl_string& fqName,
48 const sp<IBase>& service) override;
73 const sp<IBase>& server,
75 Return<bool> unregisterClientCallback(const sp<IBase>& server,
78 const sp<IBase>& service,
84 const sp<IBase>& service) override;
88 virtual void serviceDied(uint64_t cookie, const wp<IBase>& who);
91 const sp<IBase>& service,
97 bool removeService(const wp<IBase>& who, const std::string* restrictToInstanceName);
[all …]
DHidlService.h34 using ::android::hidl::base::V1_0::IBase;
43 const sp<IBase> &service,
59 sp<IBase> getService() const;
60 void setService(sp<IBase> service, pid_t pid);
66 bool removeListener(const wp<IBase> &listener);
109 sp<IBase> mService;
DTokenManager.h32 using ::android::hidl::base::V1_0::IBase;
45 Return<void> createToken(const sp<IBase>& store, createToken_cb hidl_cb) override;
47 Return<sp<IBase>> get(const hidl_vec<uint8_t> &token) override;
62 sp<IBase> interface;
67 TokenInterface generateToken(const sp<IBase> &interface);
DServiceManager.cpp125 void ServiceManager::serviceDied(uint64_t cookie, const wp<IBase>& who) { in serviceDied()
138 sp<IBase> base = who.promote(); in serviceDied()
220 bool ServiceManager::PackageInterfaceMap::removePackageListener(const wp<IBase>& who) { in removePackageListener()
235 bool ServiceManager::PackageInterfaceMap::removeServiceListener(const wp<IBase>& who) { in removeServiceListener()
268 Return<sp<IBase>> ServiceManager::get(const hidl_string& hidlFqName, in get()
283 sp<IBase> service = hidlService->getService(); in get()
311 Return<bool> ServiceManager::add(const hidl_string& name, const sp<IBase>& service) { in add()
320 if (!mAcl.canAdd(IBase::descriptor, pidcon)) { in add()
338 const sp<IBase>& service, in addImpl()
386 const sp<IBase> remove = hidlService->getService(); in addImpl()
[all …]
DHidlService.cpp37 const sp<IBase> &service, in HidlService()
45 sp<IBase> HidlService::getService() const { in getService()
48 void HidlService::setService(sp<IBase> service, pid_t pid) { in setService()
84 bool HidlService::removeListener(const wp<IBase>& listener) { in removeListener()
/system/libhidl/transport/
DHidlPassthroughSupport.cpp24 using ::android::hidl::base::V1_0::IBase;
30 static sp<IBase> tryWrap(const std::string& descriptor, sp<IBase> iface) { in tryWrap()
42 sp<IBase> wrapPassthroughInternal(sp<IBase> iface) { in wrapPassthroughInternal()
57 sp<IBase> base; in wrapPassthroughInternal()
DHidlTransportSupport.cpp29 using ::android::hidl::base::V1_0::IBase;
50 static void pruneMapLocked(ConcurrentMap<wp<IBase>, V>& map) { in pruneMapLocked() argument
51 std::vector<wp<IBase>> toDelete; in pruneMapLocked()
62 bool setMinSchedulerPolicy(const sp<IBase>& service, int policy, int priority) { in setMinSchedulerPolicy()
98 SchedPrio getMinSchedulerPolicy(const sp<IBase>& service) { in getMinSchedulerPolicy()
102 bool setRequestingSid(const sp<IBase>& service, bool requesting) { in setRequestingSid()
118 bool getRequestingSid(const sp<IBase>& service) { in getRequestingSid()
122 bool interfacesEqual(const sp<IBase>& left, const sp<IBase>& right) { in interfacesEqual()
DHidlLazyUtils.cpp31 using ::android::hidl::base::V1_0::IBase;
37 bool addRegisteredService(const sp<IBase>& service, const std::string& name);
46 Return<void> onClients(const sp<IBase>& service, bool clients) override;
50 sp<IBase> service;
61 Service& assertRegisteredServiceLocked(const sp<IBase>& service);
66 bool registerServiceLocked(const sp<IBase>& service, const std::string& name);
99 status_t registerService(const sp<::android::hidl::base::V1_0::IBase>& service,
109 bool ClientCounterCallback::addRegisteredService(const sp<IBase>& service, in addRegisteredService()
122 const sp<IBase>& service) { in assertRegisteredServiceLocked()
132 bool ClientCounterCallback::registerServiceLocked(const sp<IBase>& service, in registerServiceLocked()
[all …]
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()
DStatic.cpp33 DoNotDestruct<ConcurrentMap<const ::android::hidl::base::V1_0::IBase*,
38 DoNotDestruct<ConcurrentMap<wp<::android::hidl::base::V1_0::IBase>, SchedPrio>> gServicePrioMap{};
39 DoNotDestruct<ConcurrentMap<wp<::android::hidl::base::V1_0::IBase>, bool>> gServiceSidMap{};
DInternalStatic.h38 extern DoNotDestruct<ConcurrentMap<wp<::android::hidl::base::V1_0::IBase>, SchedPrio>>
41 extern DoNotDestruct<ConcurrentMap<wp<::android::hidl::base::V1_0::IBase>, bool>> gServiceSidMap;
DLegacySupport.cpp25 using android::hidl::base::V1_0::IBase;
34 sp<IBase> service = in registerPassthroughServiceImplementation()
79 [](const sp<IBase>& service, const std::string& name) { in registerPassthroughServiceImplementation()
/system/libhidl/transport/include/hidl/
DHidlTransportSupport.h84 bool setMinSchedulerPolicy(const sp<::android::hidl::base::V1_0::IBase>& service,
92 SchedPrio getMinSchedulerPolicy(const sp<::android::hidl::base::V1_0::IBase>& service);
104 bool setRequestingSid(const sp<::android::hidl::base::V1_0::IBase>& service, bool requesting);
110 bool getRequestingSid(const sp<::android::hidl::base::V1_0::IBase>& service);
117 bool interfacesEqual(const sp<::android::hidl::base::V1_0::IBase>& left,
118 const sp<::android::hidl::base::V1_0::IBase>& right);
163 using ::android::hidl::base::V1_0::IBase; in getServiceInternal()
165 sp<IBase> base = getRawServiceInternal(IType::descriptor, instance, retry, getStub); 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);
DStatic.h37 extern DoNotDestruct<ConcurrentMap<const ::android::hidl::base::V1_0::IBase*,
48 std::function<sp<::android::hidl::base::V1_0::IBase>(void*)>>;
DHidlBinderSupport.h42 uint64_t cookie, const sp<::android::hidl::base::V1_0::IBase> &base);
48 wp<::android::hidl::base::V1_0::IBase> mBase;
185 sp<IBinder> getOrCreateCachedBinder(::android::hidl::base::V1_0::IBase* ifacePtr);
201 using ::android::hidl::base::V1_0::IBase; in fromBinder()
213 if (!binderIface->checkSubclass(IBase::descriptor)) { in fromBinder()
216 sp<IBase> base = static_cast<BnHwBase*>(binderIface.get())->getImpl(); in fromBinder()
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
DHidlTestJava.java23 import android.hardware.tests.baz.V1_0.IBase;
151 private void ExpectEqual(android.hidl.base.V1_0.IBase l, android.hidl.base.V1_0.IBase r) { in ExpectEqual()
157 private void ExpectNotEqual(android.hidl.base.V1_0.IBase l, android.hidl.base.V1_0.IBase r) { in ExpectNotEqual()
593 IBase proxy = IBase.getService("this-doesn't-exist"); in client()
605 IBase proxy = IBase.getService("this-doesn't-exist", true /*retry*/); in client()
615 IBase baseProxy = IBase.getService(); in client()
629 IBase baseProxyA = IBaz.getService(true /* retry */); in client()
631 IBase baseProxyB = IBaz.getService(false /* retry */); in client()
691 IBase.Foo foo = new IBase.Foo(); in client()
695 IBase.Foo.Bar bar = new IBase.Foo.Bar(); in client()
[all …]
/system/libhidl/adapter/
DHidlBinderAdapter.cpp130 using android::hidl::base::V1_0::IBase; in adapterMain()
159 sp<IBase> implementation = manager->get(interfaceName, args.instanceName).withDefault(nullptr); in adapterMain()
165 sp<IBase> adapter = it->second(implementation); in adapterMain()
219 sp<IBase> adaptWithDefault(const sp<IBase>& something, in adaptWithDefault()
220 const std::function<sp<IBase>()>& makeDefault) { in adaptWithDefault()
221 static std::map<sp<IBase>, sp<IBase>> sAdapterMap; in adaptWithDefault()
/system/libhidl/transport/base/1.0/vts/functional/
Dvts_ibase_test.cpp49 using android::hidl::base::V1_0::IBase;
63 sp<IBase> service;
85 if (instance.getFqName().string() == IBase::descriptor) { in GetHal()
89 sp<IBase> hal = android::hardware::details::getRawServiceInternal( in GetHal()
118 sp<IBase> service = default_manager_->get(fqName, instance); in SetUp()
160 if (fqInstance.getFqName().string() != IBase::descriptor) { in GetPidInterfacesMap()
199 EXPECT_NE(IBase::descriptor, descriptor) << base.name; in TEST_F()
206 virtual void serviceDied(uint64_t /* cookie */, const wp<IBase>& /* who */){}; in TEST_F()
/system/tools/hidl/test/lazy_test/
Dhidl_lazy_test.cpp41 using ::android::hidl::base::V1_0::IBase;
46 sp<IBase> getHal(const FqInstance& instance) { in getHal()
102 sp<IBase> hal = getHal(instance); in TEST_F()
127 sp<IBase> hal = getHal(instance); in testWithTimes()
158 sp<IBase> hal = getHal(instance); in TEST_F()
/system/tools/hidl/lint/test/interfaces/method_versions/1.0/
DIChangeBase.hal19 import IBase;
21 interface IChangeBase extends IBase {
DIChild.hal19 import IBase;
21 interface IChild extends IBase {
/system/tools/hidl/lint/test/interfaces/method_versions/1.1/
DIMethodDNE.hal19 import @1.0::IBase;
21 interface IMethodDNE extends @1.0::IBase {

123