Lines Matching refs:descriptor
107 static void tryShortenProcessName(const std::string& descriptor) { in tryShortenProcessName() argument
114 if (!base::StartsWith(packageWithoutVersion(processName), packageWithoutVersion(descriptor))) { in tryShortenProcessName()
119 size_t lastDot = descriptor.rfind('.'); in tryShortenProcessName()
121 size_t secondDot = descriptor.rfind('.', lastDot - 1); in tryShortenProcessName()
145 if (base::StartsWith(descriptor, oldComm)) { in tryShortenProcessName()
179 static void onRegistrationImpl(const std::string& descriptor, const std::string& instanceName) { in onRegistrationImpl() argument
186 LOG(INFO) << "Registered " << descriptor << "/" << instanceName << " (start delay of " in onRegistrationImpl()
190 tryShortenProcessName(descriptor); in onRegistrationImpl()
564 void preloadPassthroughService(const std::string &descriptor) { in preloadPassthroughService() argument
565 PassthroughServiceManager::openLibs(descriptor, in preloadPassthroughService()
699 bool handleCastError(const Return<bool>& castReturn, const std::string& descriptor, in handleCastError() argument
707 "%s/%s.", descriptor.c_str(), instance.c_str()); in handleCastError()
711 ALOGW("getService: found dead hwbinder service for %s/%s.", descriptor.c_str(), in handleCastError()
722 descriptor.c_str(), instance.c_str()); in handleCastError()
726 sp<::android::hidl::base::V1_0::IBase> getRawServiceInternal(const std::string& descriptor, in getRawServiceInternal() argument
744 Return<Transport> transportRet = sm->getTransport(descriptor, instance); in getRawServiceInternal()
776 waiter = new Waiter(descriptor, instance, sm); in getRawServiceInternal()
781 Return<sp<IBase>> ret = sm->get(descriptor, instance); in getRawServiceInternal()
784 ret.description().c_str(), descriptor.c_str(), instance.c_str()); in getRawServiceInternal()
790 details::canCastInterface(base.get(), descriptor.c_str(), true /* emitError */); in getRawServiceInternal()
799 if (!handleCastError(canCastRet, descriptor, instance)) break; in getRawServiceInternal()
806 ALOGI("getService: Trying again for %s/%s...", descriptor.c_str(), instance.c_str()); in getRawServiceInternal()
818 sp<IBase> base = pm->get(descriptor, instance).withDefault(nullptr); in getRawServiceInternal()