Home
last modified time | relevance | path

Searched refs:PrintManager (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/java/android/print/
DPrintServicesLoader.java39 private final @NonNull PrintManager mPrintManager;
45 private PrintManager.PrintServicesChangeListener mListener;
54 public PrintServicesLoader(@NonNull PrintManager printManager, @NonNull Context context, in PrintServicesLoader()
59 PrintManager.ALL_SERVICES); in PrintServicesLoader()
79 mListener = new PrintManager.PrintServicesChangeListener() { in onStartLoading()
DPrintServiceRecommendationsLoader.java36 private final @NonNull PrintManager mPrintManager;
42 private PrintManager.PrintServiceRecommendationsChangeListener mListener;
50 public PrintServiceRecommendationsLoader(@NonNull PrintManager printManager, in PrintServiceRecommendationsLoader()
73 mListener = new PrintManager.PrintServiceRecommendationsChangeListener() { in onStartLoading()
DPrintJob.java35 private final @NonNull PrintManager mPrintManager;
39 PrintJob(@NonNull PrintJobInfo info, @NonNull PrintManager printManager) { in PrintJob()
DPrinterInfo.java132 PrintManager printManager = (PrintManager) context in loadIcon()
DPrintManager.java111 public final class PrintManager { class
251 public PrintManager(Context context, IPrintManager service, int userId, int appId) { in PrintManager() method in PrintManager
300 public PrintManager getGlobalPrintManagerForUser(int userId) { in getGlobalPrintManagerForUser()
305 return new PrintManager(mContext, mService, userId, APP_ID_ANY); in getGlobalPrintManagerForUser()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DAddPrinterActivity.java33 import android.print.PrintManager;
137 (PrintManager) getSystemService(Context.PRINT_SERVICE), in onCreateLoader()
138 AddPrinterActivity.this, PrintManager.ENABLED_SERVICES); in onCreateLoader()
141 (PrintManager) getSystemService(Context.PRINT_SERVICE), in onCreateLoader()
142 AddPrinterActivity.this, PrintManager.DISABLED_SERVICES); in onCreateLoader()
145 (PrintManager) getSystemService(Context.PRINT_SERVICE), in onCreateLoader()
146 AddPrinterActivity.this, PrintManager.ALL_SERVICES); in onCreateLoader()
200 (PrintManager) getSystemService(Context.PRINT_SERVICE), in onCreateLoader()
536 ((PrintManager) getSystemService(Context.PRINT_SERVICE)).setPrintServiceEnabled( in performAction()
DSelectPrinterActivity.java29 import android.print.PrintManager;
161 ((PrintManager) getSystemService(Context.PRINT_SERVICE)) in onCreate()
162 .getPrintServices(PrintManager.ALL_SERVICES); in onCreate()
345 return new PrintServicesLoader((PrintManager) getSystemService(Context.PRINT_SERVICE), this, in onCreateLoader()
346 PrintManager.ENABLED_SERVICES); in onCreateLoader()
DFusedPrintersProvider.java37 import android.print.PrintManager;
301 PrintManager printManager = (PrintManager) getContext() in loadInternal()
554 mEnabledServices = ((PrintManager) activity in PersistenceManager()
556 .getPrintServices(PrintManager.ENABLED_SERVICES); in PersistenceManager()
574 (PrintManager) getContext().getSystemService(Context.PRINT_SERVICE), in onCreateLoader()
575 getContext(), PrintManager.ENABLED_SERVICES); in onCreateLoader()
DPrintActivity.java55 import android.print.PrintManager;
249 mPrintJob = extras.getParcelable(PrintManager.EXTRA_PRINT_JOB); in onCreate()
251 throw new IllegalArgumentException(PrintManager.EXTRA_PRINT_JOB in onCreate()
258 final IBinder adapter = extras.getBinder(PrintManager.EXTRA_PRINT_DOCUMENT_ADAPTER); in onCreate()
260 throw new IllegalArgumentException(PrintManager.EXTRA_PRINT_DOCUMENT_ADAPTER in onCreate()
1344 return new PrintServicesLoader((PrintManager) getSystemService(Context.PRINT_SERVICE), this, in onCreateLoader()
1345 PrintManager.ENABLED_SERVICES); in onCreateLoader()
/frameworks/base/core/tests/coretests/src/android/print/
DIPrintManagerParametersTest.java170 return new PrintManager.PrintJobStateChangeListenerWrapper(null,
181 return new PrintManager.PrintServicesChangeListenerWrapper(null,
193 return new PrintManager.PrintServiceRecommendationsChangeListenerWrapper(null,
324 final IPrintDocumentAdapter adapter = new PrintManager
517 PrintManager.ALL_SERVICES, mUserId);
526 mIPrintManager.getPrintServices(~PrintManager.ALL_SERVICES, mUserId);
539 PrintManager.ALL_SERVICES, mUserId).get(0).getComponentName();
DBasePrintTest.java37 import android.print.PrintManager;
192 PrintManager printManager = (PrintManager) getActivity() in print()
253 PrintManager.PRINT_SPOOLER_PACKAGE_NAME)) in clearPrintSpoolerData()
/frameworks/support/v4/kitkat/android/support/v4/print/
DPrintHelperKitkat.java39 import android.print.PrintManager;
232 PrintManager printManager = (PrintManager) mContext.getSystemService(Context.PRINT_SERVICE); in printBitmap()
556 PrintManager printManager = (PrintManager) mContext.getSystemService(Context.PRINT_SERVICE); in printBitmap()
/frameworks/base/docs/html/training/printing/
Dhtml-docs.jd80 // to the PrintManager
147 the {@link android.print.PrintManager}, creating a print adapter, and finally, creating a print
153 // Get a PrintManager instance
154 PrintManager printManager = (PrintManager) getActivity()
Dcustom-docs.jd48 of the {@link android.print.PrintManager} class. This class allows you to initialize a print job
54 // Get a PrintManager instance
55 PrintManager printManager = (PrintManager) getActivity()
73 <strong>Note:</strong> The last parameter in the {@link android.print.PrintManager#print print()}
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java50 import android.print.PrintManager;
265 PrintManager.DISABLED_SERVICES | PrintManager.ENABLED_SERVICES); in getPrintServices()
292 PrintManager.PRINT_SPOOLER_PACKAGE_NAME, resolvedUserId))) { in setPrintServiceEnabled()
711 .getPrintServices(PrintManager.ALL_SERVICES); in registerBroadcastReceivers()
770 .getPrintServices(PrintManager.ENABLED_SERVICES); in registerBroadcastReceivers()
DUserState.java54 import android.print.PrintManager;
234 Intent intent = new Intent(PrintManager.ACTION_PRINT_DIALOG); in print()
236 intent.putExtra(PrintManager.EXTRA_PRINT_DOCUMENT_ADAPTER, adapter.asBinder()); in print()
237 intent.putExtra(PrintManager.EXTRA_PRINT_JOB, printJob); in print()
246 result.putParcelable(PrintManager.EXTRA_PRINT_JOB, printJob); in print()
247 result.putParcelable(PrintManager.EXTRA_PRINT_DIALOG_INTENT, intentSender); in print()
384 if ((selectionFlags & PrintManager.ENABLED_SERVICES) == 0) { in getPrintServices()
388 if ((selectionFlags & PrintManager.DISABLED_SERVICES) == 0) { in getPrintServices()
1105 PrintJobInfo.STATE_ANY_SCHEDULED, PrintManager.APP_ID_ANY); in failScheduledPrintJobsForServiceInternal()
1140 if (record.appId == PrintManager.APP_ID_ANY in handleDispatchPrintJobStateChanged()
[all …]
DRemotePrintService.java40 import android.print.PrintManager;
725 PrintJobInfo.STATE_ANY_SCHEDULED, PrintManager.APP_ID_ANY); in getPrintJobInfos()
740 PrintManager.APP_ID_ANY); in getPrintJobInfo()
DRemotePrintSpooler.java40 import android.print.PrintManager;
123 mIntent.setComponent(new ComponentName(PrintManager.PRINT_SPOOLER_PACKAGE_NAME, in RemotePrintSpooler()
124 PrintManager.PRINT_SPOOLER_PACKAGE_NAME + ".model.PrintSpoolerService")); in RemotePrintSpooler()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java45 import android.print.PrintManager;
292 final boolean sameAppId = appId == PrintManager.APP_ID_ANY in getPrintJobInfos()
325 && (appId == PrintManager.APP_ID_ANY in getPrintJobInfo()
421 printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in writePrintJobData()
518 PrintJobInfo printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in setPrintJobState()
582 getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY).setProgress(progress); in setProgress()
596 PrintJobInfo printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in setStatus()
615 PrintJobInfo printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in setStatus()
672 PrintJobInfo printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in setPrintJobTag()
694 PrintJobInfo printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in setPrintJobCancelling()
DNotificationController.java41 import android.print.PrintManager;
405 printManager.cancelPrintJob(printJobId, PrintManager.APP_ID_ANY, in handleCancelPrintJob()
442 printManager.restartPrintJob(printJobId, PrintManager.APP_ID_ANY, in handleRestartPrintJob()
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java111 import android.print.PrintManager;
606 registerService(Context.PRINT_SERVICE, PrintManager.class, in registerService()
607 new CachedServiceFetcher<PrintManager>() { in registerService()
609 public PrintManager createService(ContextImpl ctx) { in registerService()
612 return new PrintManager(ctx.getOuterContext(), service, UserHandle.myUserId(), in registerService()
/frameworks/base/services/core/java/com/android/server/pm/
DDefaultPermissionGrantPolicy.java34 import android.print.PrintManager;
582 PrintManager.PRINT_SPOOLER_PACKAGE_NAME); in grantDefaultSystemHandlerPermissions()
/frameworks/base/docs/html/about/versions/
Dandroid-4.4.jd203 …he user's request using the {@link android.print.PrintManager} method, {@link android.print.PrintM…
/frameworks/base/
Dcompiled-classes-phone3327 android.print.PrintManager
3328 android.print.PrintManager$1
3329 android.print.PrintManager$PrintJobStateChangeListener
3330 android.print.PrintManager$PrintJobStateChangeListenerWrapper
3331 android.print.PrintManager$PrintServicesChangeListener
3332 android.print.PrintManager$PrintServicesChangeListenerWrapper
Dpreloaded-classes1742 android.print.PrintManager

12