Home
last modified time | relevance | path

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

12

/frameworks/base/services/backup/java/com/android/server/backup/utils/
DFullBackupUtils.java96 StringBuilderPrinter printer = new StringBuilderPrinter(builder); in writeAppManifest() local
98 printer.println(Integer.toString(BACKUP_MANIFEST_VERSION)); in writeAppManifest()
99 printer.println(pkg.packageName); in writeAppManifest()
100 printer.println(Integer.toString(pkg.versionCode)); in writeAppManifest()
101 printer.println(Integer.toString(Build.VERSION.SDK_INT)); in writeAppManifest()
104 printer.println((installerName != null) ? installerName : ""); in writeAppManifest()
106 printer.println(withApk ? "1" : "0"); in writeAppManifest()
108 printer.println("0"); in writeAppManifest()
110 printer.println(Integer.toString(pkg.signatures.length)); in writeAppManifest()
112 printer.println(sig.toCharsString()); in writeAppManifest()
/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
288 menu.setHeaderTitle(printer.getName()); in onCreateContextMenu()
291 if (printer.getStatus() != PrinterInfo.STATUS_UNAVAILABLE) { in onCreateContextMenu()
295 intent.putExtra(EXTRA_PRINTER, printer); in onCreateContextMenu()
300 if (mPrinterRegistry.isFavoritePrinter(printer.getId())) { in onCreateContextMenu()
304 intent.putExtra(EXTRA_PRINTER_ID, printer.getId()); in onCreateContextMenu()
314 PrinterInfo printer = item.getIntent().getParcelableExtra(EXTRA_PRINTER); in onContextItemSelected() local
[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.java776 private void startAdvancedPrintOptionsActivity(PrinterInfo printer) { in startAdvancedPrintOptionsActivity() argument
796 intent.putExtra(PrintService.EXTRA_PRINTER_INFO, printer); in startAdvancedPrintOptionsActivity()
1587 private static boolean canPrint(PrinterInfo printer) { in canPrint() argument
1588 return printer.getCapabilities() != null in canPrint()
1589 && printer.getStatus() != PrinterInfo.STATUS_UNAVAILABLE; in canPrint()
2032 public void onPrinterAvailable(PrinterInfo printer) { in onPrinterAvailable() argument
2033 if (mCurrentPrinter != null && mCurrentPrinter.equals(printer)) { in onPrinterAvailable()
2042 public void onPrinterUnavailable(PrinterInfo printer) { in onPrinterUnavailable() argument
2043 if (mCurrentPrinter == null || mCurrentPrinter.getId().equals(printer.getId())) { in onPrinterUnavailable()
2175 public void updatePrinter(PrinterInfo printer) { in updatePrinter() argument
[all …]
DPrinterRegistry.java76 public void addHistoricalPrinter(PrinterInfo printer) { in addHistoricalPrinter() argument
79 getPrinterProvider().addHistoricalPrinter(printer); in addHistoricalPrinter()
/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/tools/aapt2/
DDominatorTree_test.cpp80 PrettyPrinter printer; in TEST() local
86 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
101 PrettyPrinter printer; in TEST() local
108 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
136 PrettyPrinter printer; in TEST() local
149 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
164 PrettyPrinter printer; in TEST() local
171 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
DDebug.cpp313 XmlPrinter printer; in DumpXml() local
314 doc->root->Accept(&printer); in DumpXml()
/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()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnection.java1055 public void dump(Printer printer, boolean verbose) { in dump() argument
1056 dumpUnsafe(printer, verbose); in dump()
1073 void dumpUnsafe(Printer printer, boolean verbose) { in dumpUnsafe() argument
1074 printer.println("Connection #" + mConnectionId + ":"); in dumpUnsafe()
1076 printer.println(" connectionPtr: 0x" + Long.toHexString(mConnectionPtr)); in dumpUnsafe()
1078 printer.println(" isPrimaryConnection: " + mIsPrimaryConnection); in dumpUnsafe()
1079 printer.println(" onlyAllowReadOnlyOperations: " + mOnlyAllowReadOnlyOperations); in dumpUnsafe()
1081 mRecentOperations.dump(printer, verbose); in dumpUnsafe()
1084 mPreparedStatementCache.dump(printer); in dumpUnsafe()
1269 public void dump(Printer printer) { in dump() argument
[all …]
DSQLiteConnectionPool.java1073 public void dump(Printer printer, boolean verbose) { in dump() argument
1074 Printer indentedPrinter = PrefixPrinter.create(printer, " "); in dump()
1076 printer.println("Connection pool for " + mConfiguration.path + ":"); in dump()
1077 printer.println(" Open: " + mIsOpen); in dump()
1078 printer.println(" Max connections: " + mMaxConnectionPoolSize); in dump()
1080 printer.println(" Lookaside config: sz=" + mConfiguration.lookasideSlotSize in dump()
1084 printer.println( in dump()
1087 printer.println(" Available primary connection:"); in dump()
1094 printer.println(" Available non-primary connections:"); in dump()
1104 printer.println(" Acquired connections:"); in dump()
[all …]
DSQLiteDebug.java166 public static void dump(Printer printer, String[] args) { in dump() argument
174 SQLiteDatabase.dumpAll(printer, verbose); in dump()
/frameworks/base/core/tests/overlaytests/
Dtestrunner.py498 def _handle_instrumentation_task_output(stdout, printer): argument
514 printer.begin(TASK_INSTRUMENTATION_TEST, current_test)
516 printer.end_pass(TASK_INSTRUMENTATION_TEST, current_test)
521 printer.end_fail(TASK_INSTRUMENTATION_TEST, current_test, msg.rstrip() + '\n')
607 printer = QuietPrinter() variable
609 printer = VerbosePrinter(opts.use_color) variable
709 printer.begin(TASK_INSTRUMENTATION, name)
710 printer.end_fail(TASK_INSTRUMENTATION, name, stderr)
712 retcode = _handle_instrumentation_task_output(stdout, printer)
719 printer.begin(type, name)
[all …]
/frameworks/base/core/java/android/printservice/
DPrinterDiscoverySession.java283 for (PrinterInfo printer : mPrinters.values()) { in sendOutOfDiscoveryPeriodPrinterChanges()
284 PrinterInfo sentPrinter = mLastSentPrinters.get(printer.getId()); in sendOutOfDiscoveryPeriodPrinterChanges()
285 if (sentPrinter == null || !sentPrinter.equals(printer)) { in sendOutOfDiscoveryPeriodPrinterChanges()
289 addedPrinters.add(printer); in sendOutOfDiscoveryPeriodPrinterChanges()
/frameworks/base/core/java/android/printservice/recommendation/
DRecommendationInfo.java173 for (InetAddress printer : mDiscoveredPrinters) { in writeToParcel()
174 dest.writeBlob(printer.getAddress()); in writeToParcel()
/frameworks/av/media/libeffects/config/src/
DEffectsConfig.cpp52 const char* dump(const XMLElement& element, XMLPrinter&& printer = {}) { in dump() argument
53 element.Accept(&printer);
54 return printer.CStr();
/frameworks/base/tools/incident_report/
DAndroid.mk31 printer.cpp
/frameworks/base/core/java/android/os/
DLooper.java237 public void setMessageLogging(@Nullable Printer printer) { in setMessageLogging() argument
238 mLogging = printer; in setMessageLogging()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
DServiceResolver.java199 for (NsdServiceInfo printer : mPrinterHashMap.values()) { in getPrinters()
200 printerAddresses.add(printer.getHost()); in getPrinters()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
DServiceListener.java186 for (NsdServiceInfo printer : oneVendorPrinters.values()) { in getPrinters()
187 printerAddressess.add(printer.getHost()); in getPrinters()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DFullBackupEngine.java337 StringBuilderPrinter printer = new StringBuilderPrinter(b); in writeMetadata() local
338 printer.println(Integer.toString(BACKUP_METADATA_VERSION)); in writeMetadata()
339 printer.println(pkg.packageName); in writeMetadata()
/frameworks/base/services/print/java/com/android/server/print/
DUserState.java1498 PrinterInfo printer = printers.get(i); in onPrintersAddedLocked() local
1499 PrinterInfo oldPrinter = mPrinters.put(printer.getId(), printer); in onPrintersAddedLocked()
1500 if (oldPrinter == null || !oldPrinter.equals(printer)) { in onPrintersAddedLocked()
1504 addedPrinters.add(printer); in onPrintersAddedLocked()
1567 PrinterInfo printer = mPrinters.get(printerId); in onCustomPrinterIconLoadedLocked() local
1568 if (printer != null) { in onCustomPrinterIconLoadedLocked()
1569 PrinterInfo newPrinter = (new PrinterInfo.Builder(printer)) in onCustomPrinterIconLoadedLocked()
1642 PrinterId printer = mStateTrackedPrinters.get(i); in dump() local
1643 pw.append(prefix).append(tab).append(tab).append(printer.toString()).println(); in dump()
1649 PrinterInfo printer = mPrinters.valueAt(i); in dump() local
[all …]
/frameworks/rs/rsov/compiler/spirit/
Dgenerate.py23 def generate_header_file(filename, with_guard, printer): argument
34 printer()

12