Searched refs:printer (Results 1 - 23 of 23) sorted by relevance

/frameworks/base/core/java/android/util/
H A DPrefixPrinter.java32 * <p>If prefix is null or empty, the provided printer is returned, rather
33 * than making a prefixing printer.
35 public static Printer create(Printer printer, String prefix) { argument
37 return printer;
39 return new PrefixPrinter(printer, prefix);
42 private PrefixPrinter(Printer printer, String prefix) { argument
43 mPrinter = printer;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DFusedPrintersProvider.java91 public void addHistoricalPrinter(PrinterInfo printer) { argument
92 mPersistenceManager.addPrinterAndWritePrinterHistory(printer);
115 PrinterInfo printer = mPrinters.get(i);
117 printer.getId());
214 // Some of the found printers may have be a printer that is in the
216 // printer to use its current name instead of the historical one.
222 PrinterInfo printer = printers.get(i);
223 printersMap.put(printer.getId(), printer);
307 // Remove the printer fro
394 renamePrinterIfNeeded(PrinterInfo printer) argument
408 addPrinterAndWritePrinterHistory(PrinterInfo printer) argument
477 public final PrinterInfo printer; field in class:FusedPrintersProvider.PersistenceManager.PrinterRecord
480 PrinterRecord(PrinterInfo printer) argument
[all...]
H A DSelectPrinterActivity.java71 * This is an activity for selecting a printer.
132 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position);
133 onPrinterSelected(printer.getId());
189 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position);
191 menu.setHeaderTitle(printer.getName());
194 if (printer.getStatus() != PrinterInfo.STATUS_UNAVAILABLE) {
198 intent.putExtra(EXTRA_PRINTER_ID, printer.getId());
203 if (mPrinterRegistry.isFavoritePrinter(printer.getId())) {
207 intent.putExtra(EXTRA_PRINTER_ID, printer.getId());
391 Log.w(LOG_TAG, "Couldn't start add printer activit
[all...]
H A DPrintActivity.java253 // create the printer registry and wait for it to get
268 // and the printer registry loaded the historical printers
658 private void startAdvancedPrintOptionsActivity(PrinterInfo printer) { argument
659 ComponentName serviceName = printer.getId().getServiceName();
678 intent.putExtra(PrintService.EXTRA_PRINTER_INFO, printer);
712 // Take the media size only if the current printer supports is.
738 // Take the resolution only if the current printer supports is.
756 // Take the color mode only if the current printer supports it.
1167 private static boolean canPrint(PrinterInfo printer) { argument
1168 return printer
1557 onPrinterAvailable(PrinterInfo printer) argument
1568 onPrinterUnavailable(PrinterInfo printer) argument
1676 updatePrinter(PrinterInfo printer) argument
1740 PrinterInfo printer; field in class:PrintActivity.PrinterHolder
1743 PrinterHolder(PrinterInfo printer) argument
[all...]
H A DPrinterRegistry.java70 public void addHistoricalPrinter(PrinterInfo printer) { argument
73 getPrinterProvider().addHistoricalPrinter(printer);
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDebug.java159 * @param printer The printer for dumping database state.
162 public static void dump(Printer printer, String[] args) { argument
170 SQLiteDatabase.dumpAll(printer, verbose);
H A DSQLiteConnection.java1051 * @param printer The printer to receive the dump, not null.
1054 public void dump(Printer printer, boolean verbose) { argument
1055 dumpUnsafe(printer, verbose);
1069 * @param printer The printer to receive the dump, not null.
1072 void dumpUnsafe(Printer printer, boolean verbose) { argument
1073 printer.println("Connection #" + mConnectionId + ":");
1075 printer.println(" connectionPtr: 0x" + Long.toHexString(mConnectionPtr));
1077 printer
1264 dump(Printer printer) argument
1409 dump(Printer printer, boolean verbose) argument
[all...]
H A DSQLiteConnectionPool.java998 * @param printer The printer to receive the dump, not null.
1001 public void dump(Printer printer, boolean verbose) { argument
1002 Printer indentedPrinter = PrefixPrinter.create(printer, " ");
1004 printer.println("Connection pool for " + mConfiguration.path + ":");
1005 printer.println(" Open: " + mIsOpen);
1006 printer.println(" Max connections: " + mMaxConnectionPoolSize);
1008 printer.println(" Available primary connection:");
1015 printer.println(" Available non-primary connections:");
1025 printer
[all...]
H A DSQLiteDatabase.java2042 static void dumpAll(Printer printer, boolean verbose) { argument
2044 db.dump(printer, verbose);
2048 private void dump(Printer printer, boolean verbose) { argument
2051 printer.println("");
2052 mConnectionPoolLocked.dump(printer, verbose);
/frameworks/compile/mclinker/lib/Support/
H A DMsgHandling.cpp38 DiagnosticPrinter* printer = new TextDiagnosticPrinter(mcld::errs(), pConfig); local
39 g_pEngine->setPrinter(*printer, true);
/frameworks/base/core/java/android/print/
H A DPrinterDiscoverySession.java71 Log.e(LOG_TAG, "Error creating printer discovery session", re);
85 Log.e(LOG_TAG, "Error starting printer discovery", re);
100 Log.e(LOG_TAG, "Error stopping printer discovery", re);
107 Log.w(LOG_TAG, "Ignoring start printer state tracking - session destroyed");
113 Log.e(LOG_TAG, "Error starting printer state tracking", re);
119 Log.w(LOG_TAG, "Ignoring stop printer state tracking - session destroyed");
125 Log.e(LOG_TAG, "Error stopping printer state tracking", re);
174 Log.e(LOG_TAG, "Destroying leaked printer discovery session");
189 Log.e(LOG_TAG, "Error destroying printer discovery session", re);
205 PrinterInfo printer
[all...]
/frameworks/base/core/java/android/os/
H A DLooper.java166 * enabled, a log message will be written to <var>printer</var>
170 * @param printer A Printer object that will receive log messages, or
173 public void setMessageLogging(Printer printer) { argument
174 mLogging = printer;
H A DBatteryStats.java1823 * Checkin version of wakelock printer. Prints simple comma-separated list.
2353 private void printmAh(PrintWriter printer, double power) { argument
2354 printer.print(BatteryStatsHelper.makemAh(power));
/frameworks/base/core/java/android/printservice/
H A DPrinterDiscoverySession.java33 * system during printer discovery. During printer discovery you are responsible
38 * performing printer discovery multiple times. You will receive a call to {@link
39 * PrinterDiscoverySession#onStartPrinterDiscovery(List)} to start printer
41 * to stop printer discovery. When the system is no longer interested in printers
58 * need to update some printers. It is possible that you add a printer without
60 * printers for their capabilities, rather querying the capabilities of a printer
61 * only if necessary. For example, the system will request that you update a printer
67 * printer you will receive a call to {@link #onStartPrinterStateTracking(PrinterId)}
69 * changes in the printer stat
[all...]
/frameworks/base/core/tests/overlaytests/
H A Dtestrunner.py462 def _handle_instrumentation_task_output(stdout, printer):
478 printer.begin(TASK_INSTRUMENTATION_TEST, current_test)
480 printer.end_pass(TASK_INSTRUMENTATION_TEST, current_test)
485 printer.end_fail(TASK_INSTRUMENTATION_TEST, current_test, msg.rstrip() + '\n')
566 printer = QuietPrinter() variable
568 printer = VerbosePrinter(opts.use_color) variable
656 printer.begin(TASK_INSTRUMENTATION, name)
657 printer.end_fail(TASK_INSTRUMENTATION, name, stderr)
659 retcode = _handle_instrumentation_task_output(stdout, printer)
666 printer
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DBroadcastRecord.java163 PrintWriterPrinter printer = new PrintWriterPrinter(pw);
171 ((ResolveInfo)o).dump(printer, p2);
/frameworks/base/services/print/java/com/android/server/print/
H A DUserState.java429 // Request start tracking the printer.
445 // Request stop tracking the printer.
1019 // If printer discovery is ongoing and the start request has a list
1020 // of printer to be checked, then we just request validating them.
1099 Log.w(LOG_TAG, "Not starting printer state tracking - session destroyed");
1102 // If printer discovery is not started - nothing to do.
1109 // If we were tracking this printer - nothing to do.
1129 Log.w(LOG_TAG, "Not stopping printer state tracking - session destroyed");
1132 // If printer discovery is not started - nothing to do.
1136 // If we did not track this printer
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DIntentResolver.java222 Printer printer = null;
270 if (printer == null) {
271 printer = new PrintWriterPrinter(out);
273 filter.dump(printer, fprefix + " ");
/frameworks/base/core/java/android/text/
H A DTextUtils.java820 public static void dumpSpans(CharSequence cs, Printer printer, String prefix) { argument
827 printer.println(prefix + cs.subSequence(sp.getSpanStart(o),
835 printer.println(prefix + cs + ": (no spans)");
/frameworks/base/services/backup/java/com/android/server/backup/
H A DBackupManagerService.java3295 StringBuilderPrinter printer = new StringBuilderPrinter(builder);
3297 printer.println(Integer.toString(BACKUP_MANIFEST_VERSION));
3298 printer.println(pkg.packageName);
3299 printer.println(Integer.toString(pkg.versionCode));
3300 printer.println(Integer.toString(Build.VERSION.SDK_INT));
3303 printer.println((installerName != null) ? installerName : "");
3305 printer.println(withApk ? "1" : "0");
3307 printer.println("0");
3309 printer.println(Integer.toString(pkg.signatures.length));
3311 printer
[all...]
/frameworks/base/core/java/android/widget/
H A DGridLayout.java583 * Return the printer that will log diagnostics from this layout.
587 * @return the printer associated with this view
596 * Set the printer that will log diagnostics from this layout.
599 * @param printer the printer associated with this layout
605 public void setPrinter(Printer printer) { argument
606 this.mPrinter = (printer == null) ? NO_PRINTER : printer;
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java571 * Return the printer that will log diagnostics from this layout.
575 * @return the printer associated with this view
582 * Set the printer that will log diagnostics from this layout.
585 * @param printer the printer associated with this layout
589 public void setPrinter(Printer printer) { argument
590 this.mPrinter = (printer == null) ? NO_PRINTER : printer;
/frameworks/base/core/java/android/app/
H A DActivityThread.java1092 PrintWriterPrinter printer = new PrintWriterPrinter(pw);
1093 SQLiteDebug.dump(printer, args);

Completed in 738 milliseconds