Lines Matching refs:descriptor
109 __attribute__((noinline)) static void tryShortenProcessName(const std::string& descriptor) { in tryShortenProcessName() argument
116 if (!base::StartsWith(packageWithoutVersion(processName), packageWithoutVersion(descriptor))) { in tryShortenProcessName()
121 size_t lastDot = descriptor.rfind('.'); in tryShortenProcessName()
123 size_t secondDot = descriptor.rfind('.', lastDot - 1); in tryShortenProcessName()
147 if (base::StartsWith(descriptor, oldComm)) { in tryShortenProcessName()
211 static void onRegistrationImpl(const std::string& descriptor, const std::string& instanceName) { in onRegistrationImpl() argument
218 LOG(INFO) << "Registered " << descriptor << "/" << instanceName << " (start delay of " in onRegistrationImpl()
222 tryShortenProcessName(descriptor); in onRegistrationImpl()
591 std::vector<std::string> getAllHalInstanceNames(const std::string& descriptor) { in getAllHalInstanceNames() argument
594 sm->listManifestByInterface(descriptor, [&](const auto& instances) { in getAllHalInstanceNames()
605 void preloadPassthroughService(const std::string &descriptor) { in preloadPassthroughService() argument
606 PassthroughServiceManager::openLibs(descriptor, in preloadPassthroughService()
740 bool handleCastError(const Return<bool>& castReturn, const std::string& descriptor, in handleCastError() argument
748 "%s/%s.", descriptor.c_str(), instance.c_str()); in handleCastError()
752 ALOGW("getService: found dead hwbinder service for %s/%s.", descriptor.c_str(), in handleCastError()
763 descriptor.c_str(), instance.c_str()); in handleCastError()
767 sp<::android::hidl::base::V1_0::IBase> getRawServiceInternal(const std::string& descriptor, in getRawServiceInternal() argument
784 Return<Transport> transportRet = sm->getTransport(descriptor, instance); in getRawServiceInternal()
812 waiter = new Waiter(descriptor, instance, sm); in getRawServiceInternal()
817 Return<sp<IBase>> ret = sm->get(descriptor, instance); in getRawServiceInternal()
820 ret.description().c_str(), descriptor.c_str(), instance.c_str()); in getRawServiceInternal()
826 details::canCastInterface(base.get(), descriptor.c_str(), true /* emitError */); in getRawServiceInternal()
835 if (!handleCastError(canCastRet, descriptor, instance)) break; in getRawServiceInternal()
842 ALOGI("getService: Trying again for %s/%s...", descriptor.c_str(), instance.c_str()); in getRawServiceInternal()
854 sp<IBase> base = pm->get(descriptor, instance).withDefault(nullptr); in getRawServiceInternal()
875 const std::string descriptor = getDescriptor(service.get()); in registerAsServiceInternal() local
879 Transport transport = sm->getTransport(descriptor, name); in registerAsServiceInternal()
882 LOG(ERROR) << "Service " << descriptor << "/" << name in registerAsServiceInternal()
898 onRegistrationImpl(descriptor, name); in registerAsServiceInternal()