Home
last modified time | relevance | path

Searched refs:printer (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/tools/aapt2/java/
DClassDefinition.cpp26 void ClassMember::Print(bool /*final*/, Printer* printer, bool strip_api_annotations) const { in Print() argument
27 processor_.Print(printer, strip_api_annotations); in Print()
34 void MethodDefinition::Print(bool final, Printer* printer, bool) const { in Print() argument
35 printer->Print(signature_).Println(" {"); in Print()
36 printer->Indent(); in Print()
38 printer->Println(statement); in Print()
40 printer->Undent(); in Print()
41 printer->Print("}"); in Print()
77 void ClassDefinition::Print(bool final, Printer* printer, bool strip_api_annotations) const { in Print() argument
82 ClassMember::Print(final, printer, strip_api_annotations); in Print()
[all …]
DClassDefinition.h53 virtual void Print(bool final, text::Printer* printer, bool strip_api_annotations = false) const;
73 void Print(bool final, text::Printer* printer, bool strip_api_annotations = false)
77 ClassMember::Print(final, printer, strip_api_annotations);
79 printer->Print("public static ");
81 printer->Print("final ");
83 printer->Print("int ").Print(name_).Print("=").Print(to_string(val_)).Print(";");
108 void Print(bool final, text::Printer* printer, bool strip_api_annotations = false)
110 ClassMember::Print(final, printer, strip_api_annotations);
112 printer->Print("public static ");
114 printer->Print("final ");
[all …]
DAnnotationProcessor_test.cpp42 Printer printer(&out); in TEST() local
43 processor.Print(&printer); in TEST()
55 Printer printer(&out); in TEST() local
56 processor.Print(&printer); in TEST()
70 Printer printer(&out); in TEST() local
71 processor.Print(&printer); in TEST()
85 Printer printer(&out); in TEST() local
86 processor.Print(&printer, true /* strip_api_annotations */); in TEST()
DProguardRules.cpp392 Printer printer(out); in WriteKeepSet() local
395 printer.Print("# Referenced at ").Println(location.source.to_string()); in WriteKeepSet()
397 printer.Print("-keep class ").Print(entry.first).Println(" { <init>(); }"); in WriteKeepSet()
412 printer.Print("# Referenced at ").Println(location.source.to_string()); in WriteKeepSet()
413 printer.Print("-if class **.R$layout { int ") in WriteKeepSet()
417 printer.Print("-keep class ").Print(entry.first.name).Print(" { <init>("); in WriteKeepSet()
418 printer.Print((minimal_keep) ? entry.first.signature : "..."); in WriteKeepSet()
419 printer.Println("); }"); in WriteKeepSet()
423 printer.Print("# Referenced at ").Println(location.source.to_string()); in WriteKeepSet()
426 printer.Print("-keep class ").Print(entry.first.name).Print(" { <init>("); in WriteKeepSet()
[all …]
DAnnotationProcessor.cpp113 void AnnotationProcessor::Print(Printer* printer, bool strip_api_annotations) const { in Print() argument
117 printer->Println(line); in Print()
119 printer->Println(" */"); in Print()
123 printer->Println("@Deprecated"); in Print()
131 printer->Println(rule.annotation); in Print()
/frameworks/base/tools/aapt2/cmd/
DDump.h33 explicit DumpApkCommand(const std::string&& name, text::Printer* printer, IDiagnostics* diag) in DumpApkCommand() argument
34 : Command(name), printer_(printer), diag_(diag) { in DumpApkCommand()
92 explicit DumpAPCCommand(text::Printer* printer, IDiagnostics* diag) in DumpAPCCommand() argument
93 : Command("apc"), printer_(printer), diag_(diag) { in DumpAPCCommand()
112 explicit DumpBadgerCommand(text::Printer* printer) : Command("badger"), printer_(printer) { in DumpBadgerCommand() argument
124 explicit DumpBadgingCommand(text::Printer* printer, IDiagnostics* diag) in DumpBadgingCommand() argument
125 : DumpApkCommand("badging", printer, diag) { in DumpBadgingCommand()
141 explicit DumpConfigsCommand(text::Printer* printer, IDiagnostics* diag) in DumpConfigsCommand() argument
142 : DumpApkCommand("configurations", printer, diag) { in DumpConfigsCommand()
151 explicit DumpPackageNameCommand(text::Printer* printer, IDiagnostics* diag) in DumpPackageNameCommand() argument
[all …]
DDump.cpp61 size_t len, Printer* printer) { in DumpCompiledFile() argument
62 printer->Print("Resource: "); in DumpCompiledFile()
63 printer->Println(file.name.to_string()); in DumpCompiledFile()
65 printer->Print("Config: "); in DumpCompiledFile()
66 printer->Println(file.config.to_string()); in DumpCompiledFile()
68 printer->Print("Source: "); in DumpCompiledFile()
69 printer->Println(file.source.to_string()); in DumpCompiledFile()
71 printer->Print("Type: "); in DumpCompiledFile()
72 printer->Println(ResourceFileTypeToString(file.type)); in DumpCompiledFile()
74 printer->Println(StringPrintf("Data: offset=%" PRIi64 " length=%zd", offset, len)); in DumpCompiledFile()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp129 virtual void Print(text::Printer* printer) { } in Print() argument
333 bool Dump(text::Printer* printer, IDiagnostics* diag);
451 void Print(text::Printer* printer) override { in Print() argument
452 printer->Print(StringPrintf("package: name='%s' ", package.data())); in Print()
453 printer->Print(StringPrintf("versionCode='%s' ", in Print()
455 printer->Print(StringPrintf("versionName='%s'", versionName.data())); in Print()
458 printer->Print(StringPrintf(" split='%s'", split->data())); in Print()
461 printer->Print(StringPrintf(" platformBuildVersionName='%s'", platformVersionName->data())); in Print()
464 printer->Print(StringPrintf(" platformBuildVersionCode='%s'", platformVersionCode->data())); in Print()
467 printer->Print(StringPrintf(" compileSdkVersion='%d'", *compilesdkVersion)); in Print()
[all …]
/frameworks/base/tools/aapt2/
DDebug.cpp47 explicit ValueHeadlinePrinter(const std::string& package, Printer* printer) in ValueHeadlinePrinter() argument
48 : package_(package), printer_(printer) { in ValueHeadlinePrinter()
124 explicit ValueBodyPrinter(const std::string& package, Printer* printer) in ValueBodyPrinter() argument
125 : package_(package), printer_(printer) { in ValueBodyPrinter()
254 Printer* printer) { in PrintTable() argument
256 ValueHeadlinePrinter headline_printer(package->name, printer); in PrintTable()
257 ValueBodyPrinter body_printer(package->name, printer); in PrintTable()
259 printer->Print("Package name="); in PrintTable()
260 printer->Print(package->name); in PrintTable()
262 printer->Print(StringPrintf(" id=%02x", package->id.value())); in PrintTable()
[all …]
DDominatorTree_test.cpp82 PrettyPrinter printer; in TEST() local
88 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
103 PrettyPrinter printer; in TEST() local
110 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
138 PrettyPrinter printer; in TEST() local
151 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
166 PrettyPrinter printer; in TEST() local
173 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
DResourceValues.cpp39 void Value::PrettyPrint(Printer* printer) const { in PrettyPrint()
42 printer->Print(str_stream.str()); in PrettyPrint()
170 static void PrettyPrintReferenceImpl(const Reference& ref, bool print_package, Printer* printer) { in PrettyPrintReferenceImpl() argument
173 printer->Print("@"); in PrettyPrintReferenceImpl()
177 printer->Print("?"); in PrettyPrintReferenceImpl()
182 printer->Print("null"); in PrettyPrintReferenceImpl()
187 printer->Print("*"); in PrettyPrintReferenceImpl()
193 printer->Print(name.to_string()); in PrettyPrintReferenceImpl()
195 printer->Print(to_string(name.type)); in PrettyPrintReferenceImpl()
196 printer->Print("/"); in PrettyPrintReferenceImpl()
[all …]
DMain.cpp66 explicit MainCommand(text::Printer* printer, IDiagnostics* diagnostics) in MainCommand() argument
70 AddOptionalSubcommand(util::make_unique<DumpCommand>(printer, diagnostics)); in MainCommand()
110 text::Printer printer(out_); in Action() local
135 int result = MainCommand(&printer, diagnostics_).Execute(args, &std::cerr); in Action()
169 aapt::text::Printer printer(&fout); in MainImpl() local
172 aapt::MainCommand main_command(&printer, &diagnostics); in MainImpl()
DDebug.h37 text::Printer* printer);
40 static void DumpXml(const xml::XmlResource& doc, text::Printer* printer);
41 static void DumpResStringPool(const android::ResStringPool* pool, text::Printer* printer);
/frameworks/base/tools/aapt2/text/
DPrinter_test.cpp32 Printer printer(&out); in TEST() local
34 printer.Print("Hello"); in TEST()
38 printer.Println(); in TEST()
43 printer.Indent(); in TEST()
48 printer.Print("world!"); in TEST()
52 printer.Println(" What a\nlovely day."); in TEST()
57 printer.Undent(); in TEST()
61 printer.Println("Isn't it?"); in TEST()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DSelectPrinterActivity.java163 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); in onCreate()
165 if (printer == null) { in onCreate()
168 onPrinterSelected(printer); in onCreate()
286 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); in onCreateContextMenu() local
289 if (printer == null) { in onCreateContextMenu()
293 menu.setHeaderTitle(printer.getName()); in onCreateContextMenu()
296 if (printer.getStatus() != PrinterInfo.STATUS_UNAVAILABLE) { in onCreateContextMenu()
300 intent.putExtra(EXTRA_PRINTER, printer); in onCreateContextMenu()
305 if (mPrinterRegistry.isFavoritePrinter(printer.getId())) { in onCreateContextMenu()
309 intent.putExtra(EXTRA_PRINTER_ID, printer.getId()); in onCreateContextMenu()
[all …]
DFusedPrintersProvider.java142 public void addHistoricalPrinter(PrinterInfo printer) { in addHistoricalPrinter() argument
143 mPersistenceManager.addPrinterAndWritePrinterHistory(printer); in addHistoricalPrinter()
154 private void updateAndAddPrinter(List<PrinterInfo> dest, PrinterInfo printer, in updateAndAddPrinter() argument
156 PrinterInfo updatedPrinter = updatedPrinters.remove(printer.getId()); in updateAndAddPrinter()
160 dest.add(printer); in updateAndAddPrinter()
224 PrinterInfo printer = mPrinters.get(i); in computeAndDeliverResult() local
226 printer.getId()); in computeAndDeliverResult()
355 PrinterInfo printer = printers.get(i); in updatePrinters() local
356 printersMap.put(printer.getId(), printer); in updatePrinters() local
622 PrinterInfo printer = printers.get(i); in updateHistoricalPrintersIfNeeded() local
[all …]
DPrintActivity.java803 private void startAdvancedPrintOptionsActivity(PrinterInfo printer) { in startAdvancedPrintOptionsActivity() argument
825 intent.putExtra(PrintService.EXTRA_PRINTER_INFO, printer); in startAdvancedPrintOptionsActivity()
1624 private static boolean canPrint(PrinterInfo printer) { in canPrint() argument
1625 return printer.getCapabilities() != null in canPrint()
1626 && printer.getStatus() != PrinterInfo.STATUS_UNAVAILABLE; in canPrint()
2070 public void onPrinterAvailable(PrinterInfo printer) { in onPrinterAvailable() argument
2071 if (mCurrentPrinter != null && mCurrentPrinter.equals(printer)) { in onPrinterAvailable()
2080 public void onPrinterUnavailable(PrinterInfo printer) { in onPrinterUnavailable() argument
2081 if (mCurrentPrinter == null || mCurrentPrinter.getId().equals(printer.getId())) { in onPrinterUnavailable()
2213 public void updatePrinter(PrinterInfo printer) { in updatePrinter() argument
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DAppMetadataBackupWriter.java129 StringBuilderPrinter printer = new StringBuilderPrinter(builder); in getManifestBytes() local
131 printer.println(Integer.toString(BACKUP_MANIFEST_VERSION)); in getManifestBytes()
132 printer.println(packageName); in getManifestBytes()
133 printer.println(Long.toString(packageInfo.getLongVersionCode())); in getManifestBytes()
134 printer.println(Integer.toString(Build.VERSION.SDK_INT)); in getManifestBytes()
137 printer.println((installerName != null) ? installerName : ""); in getManifestBytes()
139 printer.println(withApk ? "1" : "0"); in getManifestBytes()
144 printer.println("0"); in getManifestBytes()
149 printer.println(Integer.toString(signatures.length)); in getManifestBytes()
151 printer.println(sig.toCharsString()); in getManifestBytes()
[all …]
/frameworks/base/core/java/android/util/
DPrefixPrinter.java35 public static Printer create(Printer printer, String prefix) { in create() argument
37 return printer; in create()
39 return new PrefixPrinter(printer, prefix); in create()
42 private PrefixPrinter(Printer printer, String prefix) { in PrefixPrinter() argument
43 mPrinter = printer; in PrefixPrinter()
/frameworks/base/core/proto/android/service/
Dprint.proto29 // Each user has a separate printer state
51 // The printer discovery sessions
88 // Minimum margins of the printer
107 // The id of the printer
110 // The name of the printer
126 // The status of the printer
129 // The description of the printer, set by the user.
132 // The capabilities of the printer
142 // Is printer discovery in progress?
145 // List of printer discovery observers
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDebug.java205 public static void dump(Printer printer, String[] args) { in dump() argument
206 dump(printer, args, false); in dump()
210 public static void dump(Printer printer, String[] args, boolean isSystem) { in dump() argument
218 SQLiteDatabase.dumpAll(printer, verbose, isSystem); in dump()
DSQLiteConnectionPool.java1110 public void dump(Printer printer, boolean verbose, ArraySet<String> directories) { in dump() argument
1111 Printer indentedPrinter = PrefixPrinter.create(printer, " "); in dump()
1117 printer.println("Connection pool for " + mConfiguration.path + ":"); in dump()
1118 printer.println(" Open: " + mIsOpen); in dump()
1119 printer.println(" Max connections: " + mMaxConnectionPoolSize); in dump()
1120 printer.println(" Total execution time: " + mTotalExecutionTimeCounter); in dump()
1121 printer.println(" Configuration: openFlags=" + mConfiguration.openFlags in dump()
1127 printer.println(" Compatibility WAL enabled: wal_syncmode=" in dump()
1131 printer.println(" Lookaside config: sz=" + mConfiguration.lookasideSlotSize in dump()
1135 printer.println( in dump()
[all …]
/frameworks/base/core/java/android/print/
DPrinterDiscoverySession.java207 PrinterInfo printer = addedPrinters.get(i); in handlePrintersAdded() local
208 mPrinters.put(printer.getId(), printer); in handlePrintersAdded() local
219 PrinterInfo printer = addedPrinters.get(i); in handlePrintersAdded() local
220 addedPrintersMap.put(printer.getId(), printer); in handlePrintersAdded() local
/frameworks/base/test-runner/src/junit/textui/
DTestRunner.java54 public TestRunner(ResultPrinter printer) { in TestRunner() argument
55 fPrinter= printer; in TestRunner()
198 public void setPrinter(ResultPrinter printer) { in setPrinter() argument
199 fPrinter= printer; in setPrinter()
/frameworks/compile/mclinker/lib/Support/
DMsgHandling.cpp36 DiagnosticPrinter* printer = in InitializeDiagnosticEngine() local
38 g_pEngine->setPrinter(*printer, true); in InitializeDiagnosticEngine()

123