/system/tools/hidl/build/ |
D | fqName.go | 24 type fqName struct { struct 36 func parseFqName(f string) (*fqName, error) { 43 ret := fqName{ 52 func (f *fqName) inPackage(pkg string) bool { argument 68 func (f *fqName) pkg() string { argument 71 func (f *fqName) version() string { argument 74 func (f *fqName) sanitizedVersion() string { argument 77 func (f *fqName) string() string { argument 80 func (f *fqName) sanitizedString() string { argument 84 func (f *fqName) dir() string { argument [all …]
|
/system/hwservicemanager/ |
D | Vintf.cpp | 30 const FQName &fqName, const std::string &instanceName, in getTransportFromManifest() argument 35 return vm->getTransport(fqName.package(), fqName.getVersion(), fqName.name(), instanceName); in getTransportFromManifest() 39 FQName fqName; in getTransport() local 41 if (!FQName::parse(interfaceName, &fqName)) { in getTransport() 46 if (!fqName.hasVersion()) { in getTransport() 47 LOG(ERROR) << __FUNCTION__ << ": " << fqName.string() in getTransport() 51 if (fqName.name().empty()) { in getTransport() 52 LOG(ERROR) << __FUNCTION__ << ": " << fqName.string() in getTransport() 57 vintf::Transport tr = getTransportFromManifest(fqName, instanceName, in getTransport() 62 tr = getTransportFromManifest(fqName, instanceName, in getTransport() [all …]
|
D | ServiceManager.cpp | 112 HidlService* ServiceManager::lookup(const std::string& fqName, const std::string& name) { in lookup() argument 113 auto ifaceIt = mServiceMap.find(fqName); in lookup() 183 const hidl_string &fqName, in sendPackageRegistrationNotification() argument 187 auto ret = (*it)->onRegistration(fqName, instanceName, false /* preexisting */); in sendPackageRegistrationNotification() 191 LOG(ERROR) << "Dropping registration callback for " << fqName << "/" << instanceName in sendPackageRegistrationNotification() 246 static void tryStartService(const std::string& fqName, const std::string& name) { in tryStartService() argument 250 bool success = SetProperty("ctl.interface_start", fqName + "/" + name); in tryStartService() 253 LOG(ERROR) << "Failed to set property for starting " << fqName << "/" << name; in tryStartService() 261 const std::string fqName = hidlFqName; in get() local 264 if (!mAcl.canGet(fqName, getBinderCallingContext())) { in get() [all …]
|
D | ServiceManager.h | 46 Return<sp<IBase>> get(const hidl_string& fqName, 51 Return<Transport> getTransport(const hidl_string& fqName, 58 Return<bool> registerForNotifications(const hidl_string& fqName, 63 Return<void> registerPassthroughClient(const hidl_string &fqName, 67 Return<bool> unregisterForNotifications(const hidl_string& fqName, 72 Return<bool> registerClientCallback(const hidl_string& fqName, 83 Return<bool> tryUnregister(const hidl_string& fqName, 109 HidlService* lookup(const std::string& fqName, const std::string& name); 138 const hidl_string &fqName,
|
D | AccessControl.cpp | 56 bool AccessControl::canAdd(const std::string& fqName, const CallingContext& callingContext) { in canAdd() argument 59 if (!FQName::parse(fqName, &fqIface)) { in canAdd() 67 bool AccessControl::canGet(const std::string& fqName, const CallingContext& callingContext) { in canGet() argument 70 if (!FQName::parse(fqName, &fqIface)) { in canGet()
|
D | AccessControl.h | 35 bool canAdd(const std::string& fqName, const CallingContext& callingContext); 36 bool canGet(const std::string& fqName, const CallingContext& callingContext);
|
/system/tools/hidl/ |
D | main.cpp | 52 using ShouldGenerateFunction = std::function<bool(const FQName& fqName)>; 53 using FileNameForFQName = std::function<std::string(const FQName& fqName)>; 54 using GenerationFunction = std::function<status_t(Formatter& out, const FQName& fqName, 61 std::string getFileName(const FQName& fqName) const { in getFileName() 62 return mFileNameForFqName ? mFileNameForFqName(fqName) : ""; in getFileName() 65 status_t getOutputFile(const FQName& fqName, const Coordinator* coordinator, in getOutputFile() 67 if (!mShouldGenerateForFqName(fqName)) { in getOutputFile() 71 return coordinator->getFilepath(fqName, location, getFileName(fqName), file); in getOutputFile() 74 status_t appendOutputFiles(const FQName& fqName, const Coordinator* coordinator, in appendOutputFiles() 81 if (mShouldGenerateForFqName(fqName)) { in appendOutputFiles() [all …]
|
D | Coordinator.cpp | 102 Formatter Coordinator::getFormatter(const FQName& fqName, Location location, in getFormatter() argument 109 status_t err = getFilepath(fqName, location, fileName, &filepath); in getFormatter() 131 status_t Coordinator::getFilepath(const FQName& fqName, Location location, in getFilepath() argument 142 err = getPackagePath(fqName, false /* relative */, false /* sanitized */, &packagePath); in getFilepath() 148 err = convertPackageRootToPath(fqName, &packageRootPath); in getFilepath() 150 err = getPackagePath(fqName, true /* relative */, false /* sanitized */, &packagePath); in getFilepath() 156 err = convertPackageRootToPath(fqName, &packageRootPath); in getFilepath() 158 err = getPackagePath(fqName, true /* relative */, true /* sanitized */, &packagePath); in getFilepath() 209 AST* Coordinator::parse(const FQName& fqName, std::set<AST*>* parsedASTs, in parse() argument 212 status_t err = parseOptional(fqName, &ret, parsedASTs, enforcement); in parse() [all …]
|
D | AST.cpp | 224 static_cast<const NamedType *>(targetType)->fqName()); in gatherReferencedTypes() 365 FQName fqName; in addImport() local 366 if (!FQName::parse(import, &fqName)) { in addImport() 371 fqName.applyDefaults(mPackage.package(), mPackage.version()); in addImport() 373 if (fqName.name().empty()) { in addImport() 379 mCoordinator->appendPackageInterfacesToVector(fqName, in addImport() 401 addToImportedNamesGranular(fqName); in addImport() 407 const FQName interfaceName = fqName.getTopLevelType(); in addImport() 418 if (fqName == interfaceName) { in addImport() 430 Type *match = importAST->findDefinedType(fqName, &matchingName); in addImport() [all …]
|
D | Coordinator.h | 63 status_t getFilepath(const FQName& fqName, Location location, const std::string& fileName, 66 Formatter getFormatter(const FQName& fqName, Location location, 86 AST* parse(const FQName& fqName, std::set<AST*>* parsedASTs = nullptr, 95 status_t parseOptional(const FQName& fqName, AST** ast, std::set<AST*>* parsedASTs = nullptr, 104 status_t getPackagePath(const FQName& fqName, bool relative, bool sanitized, 111 status_t getPackageRoot(const FQName& fqName, std::string* root) const; 132 status_t enforceRestrictionsOnPackage(const FQName& fqName, 144 HashStatus checkHash(const FQName& fqName) const; 145 status_t getUnfrozenDependencies(const FQName& fqName, std::set<FQName>* result) const; 154 const PackageRoot* findPackageRoot(const FQName& fqName) const; [all …]
|
D | generateCppAdapter.cpp | 50 const std::string mockName = getInterface()->fqName().cppName(); in generateCppAdapterHeader() 104 const std::string mockName = getInterface()->fqName().cppName(); in generateCppAdapterSource() 132 out << "static_cast<::android::sp<" << interface->fqName().cppName() << ">>(" in generateAdapterMethod() 133 << interface->fqName().cppName() << "::castFrom(" in generateAdapterMethod() 135 << "static_cast<::android::sp<" << interface->fqName().cppName() << ">>(" << var in generateAdapterMethod() 136 << "), [&] { return new " << interface->fqName().getInterfaceAdapterFqName().cppName() in generateAdapterMethod()
|
D | AST.h | 71 EnumValue* lookupEnumValue(const FQName& fqName, std::string* errorMsg, Scope* scope); 76 Type* lookupType(const FQName& fqName, Scope* scope); 201 void addToImportedNamesGranular(const FQName &fqName); 241 Type* lookupTypeLocally(const FQName& fqName, Scope* scope); 242 status_t lookupAutofilledType(const FQName &fqName, Type **returnedType); 243 Type *lookupTypeFromImports(const FQName &fqName); 248 Type *findDefinedType(const FQName &fqName, FQName *matchingName) const; 284 void generateProxySource(Formatter& out, const FQName& fqName) const; 290 void generateStaticStubMethodSource(Formatter& out, const FQName& fqName,
|
D | generateCpp.cpp | 168 const FQName &fqName, in implementGetService() argument 171 const std::string interfaceName = fqName.getInterfaceName(); in implementGetService() 178 << fqName.getInterfaceProxyName() in implementGetService() 186 const FQName &fqName, const std::string &package) { in implementServiceManagerInteractions() argument 188 const std::string interfaceName = fqName.getInterfaceName(); in implementServiceManagerInteractions() 190 implementGetService(out, fqName, true /* isTry */); in implementServiceManagerInteractions() 191 implementGetService(out, fqName, false /* isTry */); in implementServiceManagerInteractions() 284 DocComment("Fully qualified interface name: \"" + iface->fqName().string() + "\"") in generateInterfaceHeader() 735 << iface->fqName().cppName() in generateStubHeader() 862 superType->fqName(), in generateCppSource() [all …]
|
D | Scope.cpp | 53 NamedType *Scope::lookupType(const FQName &fqName) const { in lookupType() 54 CHECK(fqName.package().empty() && fqName.version().empty()); in lookupType() 55 if (!fqName.valueName().empty()) { in lookupType() 56 std::cerr << "ERROR: " << fqName.string() << " does not refer to a type." << std::endl; in lookupType() 59 std::vector<std::string> names = fqName.names(); in lookupType()
|
D | NamedType.cpp | 29 const FQName &NamedType::fqName() const { in fqName() function in android::NamedType 53 emitDumpWithMethod(out, streamName, fqName().cppNamespace() + "::toString", name); in emitDump()
|
D | Interface.cpp | 705 return fqName().getInterfaceBaseName(); in getBaseName() 709 return fqName().getInterfaceAdapterName(); in getAdapterName() 713 return fqName().getInterfaceProxyName(); in getProxyName() 717 return fqName().getInterfaceStubName(); in getStubName() 721 return fqName().getInterfaceHwName(); in getHwName() 725 return fqName().getInterfacePassthroughName(); in getPassthroughName() 729 return fqName().getInterfaceProxyFqName(); in getProxyFqName() 733 return fqName().getInterfaceStubFqName(); in getStubFqName() 737 return fqName().getInterfacePassthroughFqName(); in getPassthroughFqName() 799 << fqName().cppName() in emitReaderWriter()
|
D | Reference.h | 37 Reference(const FQName& fqName, const Location& location) in Reference() 38 : mResolved(nullptr), mFqName(fqName), mLocation(location) {} in Reference()
|
D | generateDependencies.cpp | 35 out << static_cast<const NamedType*>(type)->fqName().string() << "\n"; in generateDependencies()
|
/system/tools/hidl/scripts/ |
D | gen-docs.sh | 14 local fqName="$1" 31 while read -r fqName; do 32 echo "Generating output for $fqName." 33 hidl-gen -Lc++-headers -o "$out/cpp" "$fqName" || exit 1 34 hidl-gen -Ljava -o "$out/java" "$fqName" 2>/dev/null
|
/system/tools/hidl/hashing/ |
D | Hash.cpp | 109 std::vector<std::string> lookup(const std::string& fqName) const { in lookup() 110 auto it = hashes.find(fqName); in lookup() 143 std::string fqName = match.str(2); in readHashFile() local 145 if (hash.size() == 0 && fqName.size() == 0) { in readHashFile() 149 if (hash.size() == 0 || fqName.size() == 0) { in readHashFile() 155 file->hashes[fqName].push_back(hash); in readHashFile()
|
/system/libhidl/transport/manager/1.0/ |
D | IServiceManager.hal | 46 * @param fqName Fully-qualified interface name. 52 get(string fqName, string name) generates (interface service); 85 * @param fqName Fully-qualified interface name. 90 getTransport(string fqName, string name) generates (Transport transport); 102 * @param fqName Fully-qualified interface name. 106 listByInterface(string fqName) generates (vec<string> instanceNames); 113 * version provided in the fqName. For instance, if a client registers for 119 * @param fqName Fully-qualified interface name. 126 registerForNotifications(string fqName, 163 registerPassthroughClient(string fqName, string name);
|
D | IServiceNotification.hal | 24 * @param fqName Fully-qualified instance name (see IServiceManager) 31 oneway onRegistration(string fqName, string name, bool preexisting);
|
/system/libhidl/transport/manager/1.2/ |
D | IServiceManager.hal | 30 * @param fqName Fully-qualified interface name (used to register) 40 registerClientCallback(string fqName, 77 * @param fqName Fully-qualified interface name. 81 listManifestByInterface(string fqName) generates (vec<string> instanceNames); 98 * @param fqName Fully-qualified interface name. 104 tryUnregister(string fqName, string name, interface service) generates (bool success);
|
/system/libhidl/transport/base/1.0/vts/functional/ |
D | vts_ibase_test.cpp | 68 const std::string fqName = strName.substr(0, loc); in SetUp() local 71 sp<IBase> service = default_manager_->get(fqName, instance); in SetUp() 73 ADD_FAILURE() << "Null service for " << name << " " << fqName << " " in SetUp()
|
/system/libhidl/transport/manager/1.1/ |
D | IServiceManager.hal | 27 * @param fqName Fully-qualified interface name. If empty, unregister for 35 unregisterForNotifications(string fqName,
|