Lines Matching refs:GetName

180                        << GetName() << ".";  in CheckValid()
187 stream << "for annotation " << GetName() << ". "; in CheckValid()
200 << GetName() << "."; in CheckValid()
216 stream << "for annotation " << GetName() << ". "; in AnnotationParams()
228 << GetName() << "."; in AnnotationParams()
239 return "@" + GetName(); in ToString()
245 return "@" + GetName() + "(" + Join(param_strings, ", ") + ")"; in ToString()
338 AIDL_ERROR(this) << "'" << annotation.GetName() in CheckValid()
384 string ret = GetName(); in ToString()
430 const string& type_name = GetName(); in CheckValid()
436 return AidlTypenames::IsPrimitiveTypename(type_ptr->GetName()); in CheckValid()
461 const string& key_type = GetTypeParameters()[0]->GetName(); in CheckValid()
481 const bool is_generic_string_list = GetName() == "List" && IsGeneric() && in CheckValid()
483 GetTypeParameters()[0]->GetName() == "String"; in CheckValid()
484 if (IsUtf8InCpp() && (GetName() != "String" && !is_generic_string_list)) { in CheckValid()
489 if (GetName() == "void") { in CheckValid()
497 const auto defined_type = typenames.TryGetDefinedType(GetName()); in CheckValid()
505 if (AidlTypenames::IsPrimitiveTypename(GetName()) && !IsArray()) { in CheckValid()
509 const auto defined_type = typenames.TryGetDefinedType(GetName()); in CheckValid()
542 if (type_->GetName() == "void") { in CheckValid()
694 return GetName() + "(" + Join(arg_signatures, ", ") + ")"; in Signature()
702 string ret = (IsOneway() ? "oneway " : "") + GetType().Signature() + " " + GetName() + "(" + in ToString()
733 return GetName(); in GetCanonicalName()
735 return GetPackage() + "." + GetName(); in GetCanonicalName()
801 writer->Write("parcelable %s ;\n", GetName().c_str()); in Dump()
812 writer->Write("parcelable %s {\n", GetName().c_str()); in Dump()
852 if (lang == Options::Language::NDK && IsArray() && GetName() == "IBinder") { in LanguageSpecificCheckValid()
857 if (GetName() == "ParcelFileDescriptor") { in LanguageSpecificCheckValid()
862 const auto defined_type = typenames.TryGetDefinedType(GetName()); in LanguageSpecificCheckValid()
869 if (this->GetName() == "List" && !this->IsGeneric()) { in LanguageSpecificCheckValid()
874 if (this->GetName() == "FileDescriptor" && lang == Options::Language::NDK) { in LanguageSpecificCheckValid()
879 if (this->GetName() == "List") { in LanguageSpecificCheckValid()
885 const string& contained_type = this->GetTypeParameters()[0]->GetName(); in LanguageSpecificCheckValid()
892 const string& contained_type = this->GetTypeParameters()[0]->GetName(); in LanguageSpecificCheckValid()
905 if (this->GetName() == "Map" || this->GetName() == "CharSequence") { in LanguageSpecificCheckValid()
907 AIDL_ERROR(this) << "Currently, only Java backend supports " << this->GetName() << "."; in LanguageSpecificCheckValid()
912 const string name = this->GetName(); in LanguageSpecificCheckValid()
1032 writer->Write("enum %s {\n", GetName().c_str()); in Dump()
1035 writer->Write("%s = %s,\n", enumerator->GetName().c_str(), in Dump()
1085 writer->Write("interface %s {\n", GetName().c_str()); in Dump()
1120 if (m->GetType().GetName() == "ParcelableHolder") { in CheckValid()
1124 if (m->IsOneway() && m->GetType().GetName() != "void") { in CheckValid()
1125 AIDL_ERROR(m) << "oneway method '" << m->GetName() << "' cannot return a value"; in CheckValid()
1131 auto it = argument_names.find(arg->GetName()); in CheckValid()
1133 AIDL_ERROR(m) << "method '" << m->GetName() << "' has duplicate argument name '" in CheckValid()
1134 << arg->GetName() << "'"; in CheckValid()
1137 argument_names.insert(arg->GetName()); in CheckValid()
1144 if (arg->GetType().GetName() == "ParcelableHolder") { in CheckValid()
1149 AIDL_ERROR(m) << "oneway method '" << m->GetName() << "' cannot have out parameters"; in CheckValid()
1165 if (IsJavaKeyword(arg->GetName().c_str())) { in CheckValid()
1171 if (android::base::StartsWith(arg->GetName(), "_aidl")) { in CheckValid()
1177 auto it = method_names.find(m->GetName()); in CheckValid()
1180 method_names[m->GetName()] = m.get(); in CheckValid()
1182 AIDL_ERROR(m) << "attempt to redefine method " << m->GetName() << ":"; in CheckValid()
1199 if (constant_names.count(constant->GetName()) > 0) { in CheckValid()
1200 AIDL_ERROR(constant) << "Found duplicate constant name '" << constant->GetName() << "'"; in CheckValid()
1203 constant_names.insert(constant->GetName()); in CheckValid()