Lines Matching refs:interface
128 fprintf(stderr, "%s:%d interface %s should be declared in a file"
140 const AidlInterface* interface = doc->GetInterface();
142 if (interface) {
143 return check_filename(filename, interface->GetPackage(),
144 interface->GetName(), interface->GetLine());
162 const AidlInterface* interface = doc->GetInterface();
164 if (interface)
165 return types->AddBinderType(*interface, filename);
181 << "Interface cannot be marked as both @utf8 and @utf8InCpp";
295 const AidlInterface& interface,
325 ClassNames::INTERFACE}) {
327 HeaderFile(interface, c, false /* use_os_sep */));
341 const AidlInterface& interface) {
342 const string& name = interface.GetName();
343 string package = interface.GetPackage();
347 // interface package name
423 bool validate_constants(const AidlInterface& interface) {
427 interface.GetIntConstants()) {
438 interface.GetStringConstants()) {
530 } else if (decl == "interface") {
578 unique_ptr<AidlInterface> interface(parsed_doc->ReleaseInterface());
580 if (!interface) {
586 if (!check_filename(input_file_name.c_str(), interface->GetPackage(),
587 interface->GetName(), interface->GetLine()) ||
588 !types->IsValidPackage(interface->GetPackage())) {
589 LOG(ERROR) << "Invalid package declaration '" << interface->GetPackage()
631 if (!types->AddBinderType(*interface.get(), input_file_name)) {
635 interface->SetLanguageType(types->GetInterfaceType(*interface));
637 interface->SetGenerateTraces(generate_traces);
653 if (check_types(input_file_name, interface.get(), types) != 0) {
663 interface->GetMethods()) != 0) {
666 if (!validate_constants(*interface)) {
671 *returned_interface = std::move(interface);
683 unique_ptr<AidlInterface> interface;
694 &interface,
700 if (!write_cpp_dep_file(options, *interface, imports, io_delegate)) {
704 return (cpp::GenerateCpp(options, *types, *interface, io_delegate)) ? 0 : 1;
709 unique_ptr<AidlInterface> interface;
720 &interface,
737 output_file_name = generate_outputFileName(options, *interface);
750 interface.get(), types.get(), io_delegate, options);
765 const AidlInterface* interface = doc->GetInterface();
767 if (interface != nullptr &&
768 !writer->Write("interface %s;\n",
769 interface->GetCanonicalName().c_str())) {