/frameworks/base/core/java/android/print/ |
PrinterInfo.aidl | 19 parcelable PrinterInfo;
|
IPrinterDiscoveryObserver.aidl | 20 import android.print.PrinterInfo;
|
PrinterDiscoverySession.java | 46 private final LinkedHashMap<PrinterId, PrinterInfo> mPrinters = 47 new LinkedHashMap<PrinterId, PrinterInfo>(); 150 public final List<PrinterInfo> getPrinters() { 155 return new ArrayList<PrinterInfo>(mPrinters.values()); 198 private void handlePrintersAdded(List<PrinterInfo> addedPrinters) { 207 PrinterInfo printer = addedPrinters.get(i); 215 ArrayMap<PrinterId, PrinterInfo> addedPrintersMap = 216 new ArrayMap<PrinterId, PrinterInfo>(); 219 PrinterInfo printer = addedPrinters.get(i); 225 PrinterInfo updatedPrinter = addedPrintersMap.remove(oldPrinterId) [all...] |
PrinterInfo.java | 49 * Once {@link PrinterInfo.Builder#build() built} the objects are immutable. 52 public final class PrinterInfo implements Parcelable { 92 private PrinterInfo(@NonNull PrinterId printerId, @NonNull String name, @Status int status, 255 private PrinterInfo(Parcel parcel) { 304 * Compare two {@link PrinterInfo printerInfos} in all aspects beside being null and the 307 * @param other the other {@link PrinterInfo} 311 public boolean equalsIgnoringStatus(PrinterInfo other) { 358 PrinterInfo other = (PrinterInfo) obj; 371 builder.append("PrinterInfo{"); [all...] |
IPrintSpooler.aidl | 25 import android.print.PrinterInfo; 79 * @see android.print.PrinterInfo.Builder#setHasCustomPrinterIcon() 91 * @see android.print.PrinterInfo.Builder#setHasCustomPrinterIcon()
|
/frameworks/base/core/java/android/printservice/ |
PrinterDiscoverySession.java | 25 import android.print.PrinterInfo; 90 private final ArrayMap<PrinterId, PrinterInfo> mPrinters = 91 new ArrayMap<PrinterId, PrinterInfo>(); 96 private ArrayMap<PrinterId, PrinterInfo> mLastSentPrinters; 117 mObserver.onPrintersAdded(new ParceledListSlice<PrinterInfo>(getPrinters())); 143 public final @NonNull List<PrinterInfo> getPrinters() { 148 return new ArrayList<PrinterInfo>(mPrinters.values()); 166 public final void addPrinters(@NonNull List<PrinterInfo> printers) { 177 List<PrinterInfo> addedPrinters = null; 180 PrinterInfo addedPrinter = printers.get(i) [all...] |
IPrintServiceClient.aidl | 23 import android.print.PrinterInfo; 72 * @see android.print.PrinterInfo.Builder#setHasCustomPrinterIcon()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
PrinterRegistry.java | 28 import android.print.PrinterInfo; 40 private final List<PrinterInfo> mPrinters = new ArrayList<>(); 51 public void onPrintersChanged(List<PrinterInfo> printers); 72 public List<PrinterInfo> getPrinters() { 76 public void addHistoricalPrinter(PrinterInfo printer) { 118 private final LoaderCallbacks<List<PrinterInfo>> mLoaderCallbacks = 119 new LoaderCallbacks<List<PrinterInfo>>() { 121 public void onLoaderReset(Loader<List<PrinterInfo>> loader) { 132 public void onLoadFinished(Loader<List<PrinterInfo>> loader, List<PrinterInfo> printers) [all...] |
FusedPrintersProvider.java | 42 import android.print.PrinterInfo; 79 public final class FusedPrintersProvider extends Loader<List<PrinterInfo>> 102 private final List<PrinterInfo> mPrinters = 105 private final List<Pair<PrinterInfo, Location>> mFavoritePrinters = 142 public void addHistoricalPrinter(PrinterInfo printer) { 154 private void updateAndAddPrinter(List<PrinterInfo> dest, PrinterInfo printer, 155 Map<PrinterId, PrinterInfo> updatedPrinters) { 156 PrinterInfo updatedPrinter = updatedPrinters.remove(printer.getId()); 173 private void computeAndDeliverResult(Map<PrinterId, PrinterInfo> discoveredPrinters [all...] |
SelectPrinterActivity.java | 32 import android.print.PrinterInfo; 135 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); 241 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); 246 if (printer.getStatus() != PrinterInfo.STATUS_UNAVAILABLE) { 269 PrinterInfo printer = item.getIntent().getParcelableExtra(EXTRA_PRINTER); 308 private void onPrinterSelected(PrinterInfo printer) { 377 private final List<PrinterInfo> mPrinters = new ArrayList<>(); 379 private final List<PrinterInfo> mFilteredPrinters = new ArrayList<>() [all...] |
PrintActivity.java | 59 import android.print.PrinterInfo; 219 private PrinterInfo mCurrentPrinter; 729 PrinterInfo printerInfo = data.getParcelableExtra( 731 if (printerInfo != null) { 732 mCurrentPrinter = printerInfo; 733 mPrintJob.setPrinterId(printerInfo.getId()); 734 mPrintJob.setPrinterName(printerInfo.getName()); 736 mDestinationSpinnerAdapter.ensurePrinterInVisibleAdapterPosition(printerInfo); 746 private void startAdvancedPrintOptionsActivity(PrinterInfo printer) [all...] |
/cts/tests/tests/print/src/android/print/cts/services/ |
CustomPrintOptionsActivity.java | 23 import android.print.PrinterInfo; 52 PrinterInfo printer); 65 PrinterInfo printerInfo = getIntent().getParcelableExtra( 69 sCallback.executeCustomPrintOptionsActivity(printJobInfo, printerInfo));
|
/packages/experimental/PrintService/src/foo/bar/printservice/ |
CustomPrintOptionsActivity.java | 12 import android.print.PrinterInfo; 28 PrinterInfo printerInfo = (PrinterInfo) getIntent().getParcelableExtra( 31 PrinterCapabilitiesInfo capabilities = printerInfo.getCapabilities();
|
MyPrintService.java | 39 import android.print.PrinterInfo; 386 private final List<PrinterInfo> mFakePrinters = new ArrayList<PrinterInfo>(); 392 PrinterInfo.Builder builder = new PrinterInfo.Builder(generatePrinterId(name), name, 393 (i == 1 || i == 2) ? PrinterInfo.STATUS_UNAVAILABLE 394 : PrinterInfo.STATUS_IDLE); 455 PrinterInfo printer = mFakePrinters.remove(i); 480 printer = new PrinterInfo.Builder(printer) 519 List<PrinterInfo> printers = mFakePrinters.subList(0, mFakePrinters.size()) [all...] |
/cts/tests/tests/print/src/android/print/cts/ |
PrinterInfoTest.java | 35 import android.print.PrinterInfo; 53 * Tests all allowed types of printerInfo 121 return status == PrinterInfo.STATUS_IDLE 122 || status == PrinterInfo.STATUS_BUSY 123 || status == PrinterInfo.STATUS_UNAVAILABLE; 143 final PrinterInfo.Builder badPrinter = new PrinterInfo.Builder( 145 "badPrinter", PrinterInfo.STATUS_UNAVAILABLE); 155 PrinterInfo.STATUS_IDLE, PrinterInfo.STATUS_BUSY [all...] |
PrinterDiscoverySessionLifecycleTest.java | 33 import android.print.PrinterInfo; 376 final List<PrinterInfo> reportedPrinters = new ArrayList<PrinterInfo>(); 388 PrinterInfo reportedPrinter = reportedPrinters.get(i); 411 List<PrinterInfo> printers = new ArrayList<PrinterInfo>(); 416 PrinterInfo firstPrinter = new PrinterInfo.Builder(firstPrinterId, 417 FIRST_PRINTER_NAME, PrinterInfo.STATUS_IDLE) 424 PrinterInfo secondPrinter = new PrinterInfo.Builder(secondPrinterId [all...] |
PrintServicesTest.java | 46 import android.print.PrinterInfo; 82 private static PrinterInfo mPrinter; 162 List<PrinterInfo> printers = new ArrayList<PrinterInfo>(); 182 mPrinter = new PrinterInfo.Builder(printerId, PRINTER_NAME, 183 PrinterInfo.STATUS_IDLE) 461 private void updatePrinter(final PrinterInfo printer) 470 ArrayList<PrinterInfo> printers = new ArrayList<>(1); 563 updatePrinter((new PrinterInfo.Builder(mPrinter)).setIconResourceId(R.drawable.red_printer) 573 updatePrinter((new PrinterInfo.Builder(mPrinter)).setHasCustomPrinterIcon(true).build()) [all...] |
PrinterCapabilitiesTest.java | 31 import android.print.PrinterInfo; 72 private List<PrinterInfo> generatePrinters(PrinterId printerId, MediaSize mediaSize, 74 List<PrinterInfo> printers = new ArrayList<>(1); 93 printers.add(new PrinterInfo.Builder(printerId, PRINTER_NAME, status).setCapabilities(cap) 140 PrinterInfo.STATUS_IDLE : 141 PrinterInfo.STATUS_UNAVAILABLE)); 287 PrinterInfo.STATUS_IDLE)); 513 ArrayList<PrinterInfo> printers = new ArrayList<>(); 551 printers.add((new PrinterInfo.Builder(printerId, 553 PrinterInfo.STATUS_IDLE)).setCapabilities(b.build() [all...] |
PrintAttributesTest.java | 31 import android.print.PrinterInfo; 150 List<PrinterInfo> printers = new ArrayList<PrinterInfo>(); 190 PrinterInfo printer = new PrinterInfo.Builder(printerId, PRINTER_NAME, 191 PrinterInfo.STATUS_IDLE).setCapabilities(builder.build()).build();
|
PrintJobTest.java | 32 import android.print.PrinterInfo; 138 PrinterInfo.Builder printer = new PrinterInfo.Builder( 140 PRINTER_NAME, PrinterInfo.STATUS_IDLE); 149 ArrayList<PrinterInfo> printers = new ArrayList<>(1); 572 PrintJobInfo printJob, PrinterInfo printer) {
|
CustomPrintOptionsTest.java | 32 import android.print.PrinterInfo; 143 List<PrinterInfo> printers = new ArrayList<>(1); 157 printers.add(new PrinterInfo.Builder(printerId, PRINTER_NAME, 158 PrinterInfo.STATUS_IDLE).setCapabilities(builder.build()).build());
|
PageRangeAdjustmentTest.java | 36 import android.print.PrinterInfo; 663 List<PrinterInfo> printers = new ArrayList<>(); 676 PrinterInfo firstPrinter = new PrinterInfo.Builder(firstPrinterId, 677 FIRST_PRINTER, PrinterInfo.STATUS_IDLE)
|
/packages/experimental/PrintService2/src/foo/bar/printservice2/ |
MyPrintService.java | 15 import android.print.PrinterInfo; 138 PrinterInfo printer = new PrinterInfo.Builder(printerId, "Printer 1") 139 .setStatus(PrinterInfo.STATUS_READY) 167 List<PrinterInfo> printers = new ArrayList<PrinterInfo>(); 174 PrinterInfo printer = new PrinterInfo.Builder(printerId, "Printer 2") 175 .setStatus(PrinterInfo.STATUS_READY) 205 List<PrinterInfo> printers = new ArrayList<PrinterInfo>() [all...] |
/packages/apps/Settings/src/com/android/settings/print/ |
PrintServiceSettingsFragment.java | 37 import android.print.PrinterInfo; 278 PrinterInfo printer = (PrinterInfo) mPrintersAdapter.getItem(position); 449 implements LoaderManager.LoaderCallbacks<List<PrinterInfo>>, Filterable { 452 private final List<PrinterInfo> mPrinters = new ArrayList<PrinterInfo>(); 454 private final List<PrinterInfo> mFilteredPrinters = new ArrayList<PrinterInfo>(); 481 List<PrinterInfo> filteredPrinters = new ArrayList<PrinterInfo>(); [all...] |
/frameworks/base/services/print/java/com/android/server/print/ |
UserState.java | 57 import android.print.PrinterInfo; 316 * @see android.print.PrinterInfo.Builder#setHasCustomPrinterIcon() 701 public void onPrintersAdded(List<PrinterInfo> printers) { [all...] |