/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/ |
ClassOrInterfaceDeclarationTransformationsTest.java | 22 package com.github.javaparser.printer.lexicalpreservation.transformations.ast.body; 31 import com.github.javaparser.printer.lexicalpreservation.AbstractLexicalPreservingTest;
|
/external/tcpdump/ |
print-pktap.c | 22 /* \summary: Apple's DLT_PKTAP printer */ 93 * This is the top level routine of the printer. 'p' points 105 if_printer printer; local 147 if ((printer = lookup_printer(dlt)) != NULL) { 151 hdrlen += printer(ndo, &nhdr, p);
|
/frameworks/base/core/java/android/printservice/recommendation/ |
RecommendationInfo.java | 49 /** If the service detects printer from multiple vendors. */ 59 * @param recommendsMultiVendorService If the service detects printer from multiple vendor 77 * @param recommendsMultiVendorService If the service detects printer from multiple vendor 147 * @return The number of printer the print service would detect. 173 for (InetAddress printer : mDiscoveredPrinters) { 174 dest.writeBlob(printer.getAddress());
|
/frameworks/base/core/java/com/android/internal/print/ |
DumpUtils.java | 54 * @param printerId The printer id to write 124 * @param info The printer info to write 301 PrinterId printer = printJobInfo.getPrinterId(); local 302 if (printer != null) { 303 writePrinterId(proto, "printer", PrintJobInfoProto.PRINTER, printer);
|
/packages/services/BuiltInPrintService/src/com/android/bips/ui/ |
FindP2pPrintersFragment.java | 137 DiscoveredPrinter printer = P2pDiscovery.toPrinter(peer); local 141 if (prior.path.equals(printer.path)) { 146 // Install a preference so the user can add this printer 147 PrinterPreference pref = getPrinterPreference(printer.getUri()); 149 pref.updatePrinter(printer); 151 pref = new PrinterPreference(getContext(), mPrintService, printer, true); 169 DiscoveredPrinter printer = P2pDiscovery.toPrinter(peer); local 171 // Remove this preference because the printer is no longer available 172 PrinterPreference pref = getPrinterPreference(printer.path);
|
/prebuilts/go/darwin-x86/src/go/printer/ |
printer_test.go | 5 package printer package 55 // determine printer configuration 249 // Verify that the printer can be invoked during initialization. 263 // Verify that the printer doesn't crash if the AST contains BadXXX nodes. 299 // Verify that the printer produces a correct program 372 import ( "go/printer"; "math" ) 541 const filename = "printer.go" 625 // Test whether the printer stops writing after the first error 628 const filename = "printer.go"
|
/prebuilts/go/linux-x86/src/go/printer/ |
printer_test.go | 5 package printer package 55 // determine printer configuration 249 // Verify that the printer can be invoked during initialization. 263 // Verify that the printer doesn't crash if the AST contains BadXXX nodes. 299 // Verify that the printer produces a correct program 372 import ( "go/printer"; "math" ) 541 const filename = "printer.go" 625 // Test whether the printer stops writing after the first error 628 const filename = "printer.go"
|
/cts/tests/tests/print/src/android/print/cts/ |
PrinterDiscoverySessionLifecycleTest.java | 76 * Add a printer to {@#sSession}. 78 * @param localId The id of the printer to add 79 * @param hasCapabilities If the printer has capabilities 82 // Add the first printer. 86 PrinterInfo.Builder printer = new PrinterInfo.Builder(firstPrinterId, local 90 printer.setCapabilities(new PrinterCapabilitiesInfo.Builder(firstPrinterId) 99 sSession.addPrinters(Collections.singletonList(printer.build())); 103 * Make {@code localPrinterId} the default printer. This requires a full print workflow. 107 * @param localPrinterId The printer to make default 127 * Select a printer in the all printers activit [all...] |
PrintAttributesTest.java | 58 private final String PRINTER_NAME = "Test printer"; 129 * Create {@link PrinterDiscoverySessionCallbacks} with a single printer that has the given 132 * @param minMargins The minMargins of the printer 133 * @param mediaSizes The {@link MediaSize media sizes} supported by the printer 135 * @param colorModes The color modes supported by the printer 137 * @param duplexModes The duplex modes supported by the printer 139 * @param resolutions The {@link Resolution resolutions} supported by the printer 142 * @return New {@link PrinterDiscoverySessionCallbacks} with a single printer that has the 195 PrinterInfo printer = new PrinterInfo.Builder(printerId, PRINTER_NAME, local 197 printers.add(printer); [all...] |
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
JsonFormatTest.java | 131 JsonFormat.Printer printer = JsonFormat.printer().usingTypeRegistry(registry); local 134 parser.merge(printer.print(message), builder); 140 return JsonFormat.printer().print(message); 818 JsonFormat.Printer printer = JsonFormat.printer().usingTypeRegistry(registry); local [all...] |
/frameworks/base/core/java/android/print/ |
PrinterDiscoverySession.java | 73 Log.e(LOG_TAG, "Error creating printer discovery session", re); 87 Log.e(LOG_TAG, "Error starting printer discovery", re); 102 Log.e(LOG_TAG, "Error stopping printer discovery", re); 109 Log.w(LOG_TAG, "Ignoring start printer state tracking - session destroyed"); 115 Log.e(LOG_TAG, "Error starting printer state tracking", re); 121 Log.w(LOG_TAG, "Ignoring stop printer state tracking - session destroyed"); 127 Log.e(LOG_TAG, "Error stopping printer state tracking", re); 176 Log.e(LOG_TAG, "Destroying leaked printer discovery session"); 191 Log.e(LOG_TAG, "Error destroying printer discovery session", re); 207 PrinterInfo printer = addedPrinters.get(i) local 208 mPrinters.put(printer.getId(), printer); local 219 PrinterInfo printer = addedPrinters.get(i); local 220 addedPrintersMap.put(printer.getId(), printer); local [all...] |
/packages/services/BuiltInPrintService/src/com/android/bips/ |
LocalDiscoverySession.java | 66 * <p>This print service only shows a printer if another print service does not show it. 82 for (LocalPrinter printer : mPrinters.values()) { 83 printer.notFound(); 122 // We cannot track the printer yet; wait until it is discovered 146 * A printer was found during discovery 167 * A printer was lost during discovery 213 /** A complete printer record is available */ 247 * Return true if the {@link PrinterId} corresponds to a high-priority printer 254 * Return true if the {@link PrinterId} corresponds to a known printer 261 * Is this printer handled by another print service and should be suppressed [all...] |
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
HtmlTree.java | 886 private final PlainTextPrinter printer = new PlainTextPrinter(); 899 printer.appendPreText(str); 904 printer.appendNormalText(str); 914 printer.setSeparator(PlainTextPrinter.Separator.BlankLine); 918 printer.appendForcedLineBreak(); 922 printer.setSeparator(PlainTextPrinter.Separator.LineBreak); 925 printer.appendNormalText("________________________________"); 926 printer.setSeparator(PlainTextPrinter.Separator.LineBreak); 931 printer.incQuoteDepth(); 946 printer.setSeparator(PlainTextPrinter.Separator.BlankLine) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
AbstractGalleryActivity.java | 361 PrintHelper printer = new PrintHelper(this); local 363 printer.printBitmap(path, uri);
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
EditorInfoTest.java | 33 import android.util.Printer; 91 Printer printer = mock(Printer.class); local 93 info.dump(printer, prefix); 94 verify(printer, atLeastOnce()).println(anyString());
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
PackageItemInfoTest.java | 30 import android.util.Printer; 62 MockPrinter printer = new MockPrinter(); local 64 pkgItemInfo.dumpBack(printer, ""); 68 pkgItemInfo.dumpFront(printer, prefix); 115 public void dumpFront(Printer pw, String prefix) { 119 public void dumpBack(Printer pw, String prefix) { 124 private class MockPrinter implements Printer {
|
/cts/tests/tests/os/src/android/os/cts/ |
LooperTest.java | 25 import android.util.Printer; 41 StringBuilderPrinter printer = new StringBuilderPrinter(new StringBuilder()); local 43 Looper.getMainLooper().dump(printer, prefix); 223 class MockPrinter implements Printer {
|
/external/dng_sdk/source/ |
dng_camera_profile.cpp | 347 static void FingerprintMatrix (dng_md5_printer_stream &printer, 355 tag.Put (printer); 361 static void FingerprintHueSatMap (dng_md5_printer_stream &printer, 374 printer.Put_uint32 (hues); 375 printer.Put_uint32 (sats); 376 printer.Put_uint32 (vals); 387 printer.Put_real32 (modify.fHueShift); 388 printer.Put_real32 (modify.fSatScale); 389 printer.Put_real32 (modify.fValScale); 402 dng_md5_printer_stream printer; local [all...] |
dng_negative.cpp | 489 dng_md5_printer printer; local 515 printer.Process (data, count); 517 return printer.Result (); 628 dng_md5_printer printer; local 630 printer.Process (buffer, count); 632 fEmbeddedXMPDigest = printer.Result (); 1481 dng_md5_printer printer; 1564 printer.Process (buffer.fData, 1569 return printer.Result (); 1751 dng_md5_printer printer; local 1762 dng_md5_printer printer; local [all...] |
dng_shared.cpp | 1388 dng_md5_printer printer; local 1390 printer.Process (data, count); 1394 DumpFingerprint (printer.Result ()); 1415 dng_md5_printer printer; local 1417 printer.Process (data, count); 1421 DumpFingerprint (printer.Result ()); [all...] |
/external/flatbuffers/grpc/src/compiler/ |
cpp_generator.cc | 83 void PrintIncludes(grpc_generator::Printer *printer, 101 printer->Print(vars, "#include $l$$h$$r$\n"); 110 auto printer = file->CreatePrinter(&output); local 118 printer->Print(vars, "// Generated by the gRPC C++ plugin.\n"); 119 printer->Print(vars, 121 printer->Print(vars, "// source: $filename$\n"); 124 printer->Print(vars, "// Original file comments:\n"); 125 printer->Print(leading_comments.c_str()); 127 printer->Print(vars, "#ifndef GRPC_$filename_identifier$__INCLUDED\n") 142 auto printer = file->CreatePrinter(&output); local 978 auto printer = file->CreatePrinter(&output); local 1009 auto printer = file->CreatePrinter(&output); local 1038 auto printer = file->CreatePrinter(&output); local 1063 auto printer = file->CreatePrinter(&output); local 1375 auto printer = file->CreatePrinter(&output); local 1423 auto printer = file->CreatePrinter(&output); local 1450 auto printer = file->CreatePrinter(&output); local 1549 auto printer = file->CreatePrinter(&output); local [all...] |
/external/harfbuzz_ng/test/shaping/ |
hb_test_tools.py | 387 def printer (f): function in function:FilterHelpers.filter_printer_function 390 return printer 394 def printer (f): function in function:FilterHelpers.filter_printer_function_no_newline 397 return printer
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/ |
SourceRoot.java | 8 import com.github.javaparser.printer.PrettyPrinter; 62 private Function<CompilationUnit, String> printer = new PrettyPrinter()::print; field in class:SourceRoot 421 cu.getStorage().get().save(printer); 509 public SourceRoot setPrinter(Function<CompilationUnit, String> printer) { 510 assertNotNull(printer); 511 this.printer = printer; 519 return printer;
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/ |
DifferenceTest.java | 1 package com.github.javaparser.printer.lexicalpreservation; 15 import com.github.javaparser.printer.ConcreteSyntaxModel; 16 import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; 17 import com.github.javaparser.printer.concretesyntaxmodel.CsmIndent; 18 import com.github.javaparser.printer.concretesyntaxmodel.CsmToken; 19 import com.github.javaparser.printer.concretesyntaxmodel.CsmUnindent; 20 import com.github.javaparser.printer.lexicalpreservation.LexicalDifferenceCalculator.CsmChild; 30 import static com.github.javaparser.printer.lexicalpreservation.Difference.DifferenceElement.*; [all...] |
LexicalDifferenceCalculatorTest.java | 1 package com.github.javaparser.printer.lexicalpreservation; 17 import com.github.javaparser.printer.ConcreteSyntaxModel; 18 import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; 19 import com.github.javaparser.printer.concretesyntaxmodel.CsmToken;
|