/frameworks/base/core/java/android/printservice/ |
D | 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())); in setObserver() 143 public final @NonNull List<PrinterInfo> getPrinters() { in getPrinters() 148 return new ArrayList<PrinterInfo>(mPrinters.values()); in getPrinters() 166 public final void addPrinters(@NonNull List<PrinterInfo> printers) { in addPrinters() 177 List<PrinterInfo> addedPrinters = null; in addPrinters() 180 PrinterInfo addedPrinter = printers.get(i); in addPrinters() [all …]
|
D | IPrintServiceClient.aidl | 23 import android.print.PrinterInfo;
|
D | PrintService.java | 34 import android.print.PrinterInfo;
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrinterRegistry.java | 28 import android.print.PrinterInfo; 40 private final List<PrinterInfo> mPrinters = new ArrayList<>(); 51 public void onPrintersChanged(List<PrinterInfo> printers); in onPrintersChanged() 72 public List<PrinterInfo> getPrinters() { in getPrinters() 76 public void addHistoricalPrinter(PrinterInfo printer) { in addHistoricalPrinter() 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) { 151 public Loader<List<PrinterInfo>> onCreateLoader(int id, Bundle args) { [all …]
|
D | 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) { in addHistoricalPrinter() 154 private void updateAndAddPrinter(List<PrinterInfo> dest, PrinterInfo printer, in updateAndAddPrinter() 155 Map<PrinterId, PrinterInfo> updatedPrinters) { in updateAndAddPrinter() 156 PrinterInfo updatedPrinter = updatedPrinters.remove(printer.getId()); in updateAndAddPrinter() 173 private void computeAndDeliverResult(Map<PrinterId, PrinterInfo> discoveredPrinters, in computeAndDeliverResult() 174 List<Pair<PrinterInfo, Location>> favoritePrinters) { in computeAndDeliverResult() argument [all …]
|
D | SelectPrinterActivity.java | 37 import android.print.PrinterInfo; 115 private @Nullable PrinterInfo mPrinterForInfoIntent; 163 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); in onCreate() 286 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); in onCreateContextMenu() 296 if (printer.getStatus() != PrinterInfo.STATUS_UNAVAILABLE) { in onCreateContextMenu() 319 PrinterInfo printer = item.getIntent().getParcelableExtra(EXTRA_PRINTER); in onContextItemSelected() 362 List<PrinterInfo> printers = adapter.getPrinters(); in onDestroy() 371 PrinterInfo printer = printers.get(i); in onDestroy() 397 mPrinterForInfoIntent.getStatus() != PrinterInfo.STATUS_UNAVAILABLE) { in onActivityResult() 407 private void onPrinterSelected(PrinterInfo printer) { in onPrinterSelected() [all …]
|
D | PrintActivity.java | 61 import android.print.PrinterInfo; 245 private PrinterInfo mCurrentPrinter; 776 PrinterInfo printerInfo = data.getParcelableExtra( in onSelectPrinterActivityResult() 803 private void startAdvancedPrintOptionsActivity(PrinterInfo printer) { in startAdvancedPrintOptionsActivity() 1624 private static boolean canPrint(PrinterInfo printer) { in canPrint() 1626 && printer.getStatus() != PrinterInfo.STATUS_UNAVAILABLE; in canPrint() 2070 public void onPrinterAvailable(PrinterInfo printer) { in onPrinterAvailable() 2080 public void onPrinterUnavailable(PrinterInfo printer) { in onPrinterUnavailable() 2122 if (mCurrentPrinter.getStatus() == PrinterInfo.STATUS_UNAVAILABLE) { in canUpdateDocument() 2211 private PrinterInfo mPrinter; [all …]
|
/frameworks/base/core/java/android/print/ |
D | PrinterDiscoverySession.java | 46 private final LinkedHashMap<PrinterId, PrinterInfo> mPrinters = 47 new LinkedHashMap<PrinterId, PrinterInfo>(); 150 public final List<PrinterInfo> getPrinters() { in getPrinters() 155 return new ArrayList<PrinterInfo>(mPrinters.values()); in getPrinters() 198 private void handlePrintersAdded(List<PrinterInfo> addedPrinters) { in handlePrintersAdded() 207 PrinterInfo printer = addedPrinters.get(i); in handlePrintersAdded() 215 ArrayMap<PrinterId, PrinterInfo> addedPrintersMap = in handlePrintersAdded() 216 new ArrayMap<PrinterId, PrinterInfo>(); in handlePrintersAdded() 219 PrinterInfo printer = addedPrinters.get(i); in handlePrintersAdded() 225 PrinterInfo updatedPrinter = addedPrintersMap.remove(oldPrinterId); in handlePrintersAdded() [all …]
|
D | PrinterInfo.java | 53 public final class PrinterInfo implements Parcelable { class 96 private PrinterInfo(@NonNull PrinterId printerId, @NonNull String name, @Status int status, in PrinterInfo() method in PrinterInfo 270 private PrinterInfo(Parcel parcel) { in PrinterInfo() method in PrinterInfo 326 public boolean equalsIgnoringStatus(PrinterInfo other) { in equalsIgnoringStatus() 373 PrinterInfo other = (PrinterInfo) obj; in equals() 434 public Builder(@NonNull PrinterInfo other) { in Builder() 546 public @NonNull PrinterInfo build() { in build() 547 return new PrinterInfo(mPrinterId, mName, mStatus, mIconResourceId, in build() 566 public static final @android.annotation.NonNull Parcelable.Creator<PrinterInfo> CREATOR = 567 new Parcelable.Creator<PrinterInfo>() { [all …]
|
D | PrinterInfo.aidl | 19 parcelable PrinterInfo;
|
D | IPrinterDiscoveryObserver.aidl | 20 import android.print.PrinterInfo;
|
D | IPrintSpooler.aidl | 25 import android.print.PrinterInfo;
|
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/ |
D | WorkflowTest.java | 31 import android.print.PrinterInfo; 104 List<PrinterInfo> printers = new ArrayList<>(1); in addPrinter() 109 PrinterInfo printerInfo; in addPrinter() 118 printerInfo = new PrinterInfo.Builder(printerId, name, in addPrinter() 119 PrinterInfo.STATUS_IDLE).setCapabilities(builder.build()).build(); in addPrinter() 121 printerInfo = (new PrinterInfo.Builder(printerId, name, in addPrinter() 122 PrinterInfo.STATUS_IDLE)).build(); in addPrinter()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | UserState.java | 61 import android.print.PrinterInfo; 719 public void onPrintersAdded(List<PrinterInfo> printers) { in onPrintersAdded() 1257 private final ArrayMap<PrinterId, PrinterInfo> mPrinters = 1258 new ArrayMap<PrinterId, PrinterInfo>(); 1464 public void onPrintersAddedLocked(List<PrinterInfo> printers) { in onPrintersAddedLocked() 1472 List<PrinterInfo> addedPrinters = null; in onPrintersAddedLocked() 1475 PrinterInfo printer = printers.get(i); in onPrintersAddedLocked() 1476 PrinterInfo oldPrinter = mPrinters.put(printer.getId(), printer); in onPrintersAddedLocked() 1479 addedPrinters = new ArrayList<PrinterInfo>(); in onPrintersAddedLocked() 1546 PrinterInfo printer = mPrinters.get(printerId); in onCustomPrinterIconLoadedLocked() [all …]
|
D | RemotePrintService.java | 44 import android.print.PrinterInfo; 106 public void onPrintersAdded(List<PrinterInfo> printers); in onPrintersAdded() 802 List<PrinterInfo> addedPrinters = (List<PrinterInfo>) printers.getList(); in onPrintersAdded() 830 List<PrinterInfo> printerInfos) { in throwIfPrinterIdsForPrinterInfoTampered()
|
/frameworks/base/core/tests/coretests/src/android/print/ |
D | IPrintManagerParametersTest.java | 127 List<PrinterInfo> printers = new ArrayList<>(); 146 PrinterInfo printer = new PrinterInfo.Builder( 149 PrinterInfo.STATUS_IDLE)
|
/frameworks/base/core/java/com/android/internal/print/ |
D | DumpUtils.java | 30 import android.print.PrinterInfo; 128 @NonNull PrinterInfo info) { in writePrinterInfo()
|
/frameworks/base/api/ |
D | test-current.txt | 2500 public final class PrinterInfo implements android.os.Parcelable {
|
D | current.txt | 36806 public final class PrinterInfo implements android.os.Parcelable { 36814 …field @NonNull public static final android.os.Parcelable.Creator<android.print.PrinterInfo> CREATO… 36820 public static final class PrinterInfo.Builder { 36821 ctor public PrinterInfo.Builder(@NonNull android.print.PrinterId, @NonNull String, int); 36822 ctor public PrinterInfo.Builder(@NonNull android.print.PrinterInfo); 36823 method @NonNull public android.print.PrinterInfo build(); 36824 …method @NonNull public android.print.PrinterInfo.Builder setCapabilities(@NonNull android.print.Pr… 36825 method @NonNull public android.print.PrinterInfo.Builder setDescription(@NonNull String); 36826 method @NonNull public android.print.PrinterInfo.Builder setHasCustomPrinterIcon(boolean); 36827 method @NonNull public android.print.PrinterInfo.Builder setIconResourceId(@DrawableRes int); [all …]
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 23111 public final class PrinterInfo implements android.os.Parcelable { 23119 field public static final android.os.Parcelable.Creator<android.print.PrinterInfo> CREATOR; 23125 public static final class PrinterInfo.Builder { 23126 ctor public PrinterInfo.Builder(android.print.PrinterId, java.lang.String, int); 23127 ctor public PrinterInfo.Builder(android.print.PrinterInfo); 23128 method public android.print.PrinterInfo build(); 23129 …method public android.print.PrinterInfo.Builder setCapabilities(android.print.PrinterCapabilitiesI… 23130 method public android.print.PrinterInfo.Builder setDescription(java.lang.String); 23131 method public android.print.PrinterInfo.Builder setName(java.lang.String); 23132 method public android.print.PrinterInfo.Builder setStatus(int); [all …]
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 54965 Landroid/print/PrinterInfo$Builder;->incCustomPrinterIconGen()Landroid/print/PrinterInfo$Builder; 54966 Landroid/print/PrinterInfo$Builder;->mCapabilities:Landroid/print/PrinterCapabilitiesInfo; 54967 Landroid/print/PrinterInfo$Builder;->mCustomPrinterIconGen:I 54968 Landroid/print/PrinterInfo$Builder;->mDescription:Ljava/lang/String; 54969 Landroid/print/PrinterInfo$Builder;->mHasCustomPrinterIcon:Z 54970 Landroid/print/PrinterInfo$Builder;->mIconResourceId:I 54971 Landroid/print/PrinterInfo$Builder;->mInfoIntent:Landroid/app/PendingIntent; 54972 Landroid/print/PrinterInfo$Builder;->mName:Ljava/lang/String; 54973 Landroid/print/PrinterInfo$Builder;->mPrinterId:Landroid/print/PrinterId; 54974 Landroid/print/PrinterInfo$Builder;->mStatus:I [all …]
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 36662 public final class PrinterInfo implements android.os.Parcelable { 36670 …field @NonNull public static final android.os.Parcelable.Creator<android.print.PrinterInfo> CREATO… 36676 public static final class PrinterInfo.Builder { 36677 ctor public PrinterInfo.Builder(@NonNull android.print.PrinterId, @NonNull String, int); 36678 ctor public PrinterInfo.Builder(@NonNull android.print.PrinterInfo); 36679 method @NonNull public android.print.PrinterInfo build(); 36680 …method @NonNull public android.print.PrinterInfo.Builder setCapabilities(@NonNull android.print.Pr… 36681 method @NonNull public android.print.PrinterInfo.Builder setDescription(@NonNull String); 36682 method @NonNull public android.print.PrinterInfo.Builder setHasCustomPrinterIcon(boolean); 36683 method @NonNull public android.print.PrinterInfo.Builder setIconResourceId(@DrawableRes int); [all …]
|