Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/print/
DPrintServicesLoader.java40 private final @NonNull PrintManager mPrintManager;
46 private PrintManager.PrintServicesChangeListener mListener;
55 public PrintServicesLoader(@NonNull PrintManager printManager, @NonNull Context context, in PrintServicesLoader()
61 PrintManager.ALL_SERVICES); in PrintServicesLoader()
80 mListener = new PrintManager.PrintServicesChangeListener() { in onStartLoading()
DPrintServiceRecommendationsLoader.java37 private final @NonNull PrintManager mPrintManager;
43 private PrintManager.PrintServiceRecommendationsChangeListener mListener;
51 public PrintServiceRecommendationsLoader(@NonNull PrintManager printManager, in PrintServiceRecommendationsLoader()
74 mListener = new PrintManager.PrintServiceRecommendationsChangeListener() { in onStartLoading()
DPrintJob.java35 private final @NonNull PrintManager mPrintManager;
39 PrintJob(@NonNull PrintJobInfo info, @NonNull PrintManager printManager) { in PrintJob()
DPrinterInfo.java136 PrintManager printManager = (PrintManager) context in loadIcon()
DPrintManager.java111 public final class PrintManager { class
260 public PrintManager(Context context, IPrintManager service, int userId, int appId) { in PrintManager() method in PrintManager
293 public PrintManager getGlobalPrintManagerForUser(int userId) { in getGlobalPrintManagerForUser()
298 return new PrintManager(mContext, mService, userId, APP_ID_ANY); in getGlobalPrintManagerForUser()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DAddPrinterActivity.java34 import android.print.PrintManager;
171 (PrintManager) getSystemService(Context.PRINT_SERVICE), in onCreateLoader()
172 AddPrinterActivity.this, PrintManager.ENABLED_SERVICES); in onCreateLoader()
175 (PrintManager) getSystemService(Context.PRINT_SERVICE), in onCreateLoader()
176 AddPrinterActivity.this, PrintManager.DISABLED_SERVICES); in onCreateLoader()
179 (PrintManager) getSystemService(Context.PRINT_SERVICE), in onCreateLoader()
180 AddPrinterActivity.this, PrintManager.ALL_SERVICES); in onCreateLoader()
242 (PrintManager) getSystemService(Context.PRINT_SERVICE), in onCreateLoader()
578 ((PrintManager) getSystemService(Context.PRINT_SERVICE)).setPrintServiceEnabled( in performAction()
DSelectPrinterActivity.java34 import android.print.PrintManager;
189 ((PrintManager) getSystemService(Context.PRINT_SERVICE)) in onCreate()
190 .getPrintServices(PrintManager.ALL_SERVICES); in onCreate()
444 return new PrintServicesLoader((PrintManager) getSystemService(Context.PRINT_SERVICE), this, in onCreateLoader()
445 PrintManager.ENABLED_SERVICES); in onCreateLoader()
DPrintActivity.java57 import android.print.PrintManager;
285 mPrintJob = extras.getParcelable(PrintManager.EXTRA_PRINT_JOB); in onCreate()
287 throw new IllegalArgumentException(PrintManager.EXTRA_PRINT_JOB in onCreate()
294 final IBinder adapter = extras.getBinder(PrintManager.EXTRA_PRINT_DOCUMENT_ADAPTER); in onCreate()
296 throw new IllegalArgumentException(PrintManager.EXTRA_PRINT_DOCUMENT_ADAPTER in onCreate()
1437 return new PrintServicesLoader((PrintManager) getSystemService(Context.PRINT_SERVICE), this, in onCreateLoader()
1438 PrintManager.ENABLED_SERVICES); in onCreateLoader()
/frameworks/base/core/tests/coretests/src/android/print/
DIPrintManagerParametersTest.java169 return new PrintManager.PrintJobStateChangeListenerWrapper(null,
180 return new PrintManager.PrintServicesChangeListenerWrapper(null,
192 return new PrintManager.PrintServiceRecommendationsChangeListenerWrapper(null,
295 final IPrintDocumentAdapter adapter = new PrintManager
454 assertException(() -> mIPrintManager.getPrintServices(PrintManager.ALL_SERVICES, mUserId),
460 assertException(() -> mIPrintManager.getPrintServices(~PrintManager.ALL_SERVICES, mUserId),
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java40 import android.print.PrintManager;
385 printManager.cancelPrintJob(printJobId, PrintManager.APP_ID_ANY, in handleCancelPrintJob()
422 printManager.restartPrintJob(printJobId, PrintManager.APP_ID_ANY, in handleRestartPrintJob()
DPrintSpoolerService.java53 import android.print.PrintManager;
320 final boolean sameAppId = appId == PrintManager.APP_ID_ANY in getPrintJobInfos()
353 && (appId == PrintManager.APP_ID_ANY in getPrintJobInfo()
448 printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in writePrintJobData()
552 PrintJobInfo printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in setPrintJobState()
622 getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY).setProgress(progress); in setProgress()
636 PrintJobInfo printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in setStatus()
655 PrintJobInfo printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in setStatus()
712 PrintJobInfo printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in setPrintJobTag()
734 PrintJobInfo printJob = getPrintJobInfo(printJobId, PrintManager.APP_ID_ANY); in setPrintJobCancelling()
/frameworks/base/services/print/java/com/android/server/print/
DUserState.java59 import android.print.PrintManager;
242 Intent intent = new Intent(PrintManager.ACTION_PRINT_DIALOG); in print()
244 intent.putExtra(PrintManager.EXTRA_PRINT_DOCUMENT_ADAPTER, adapter.asBinder()); in print()
245 intent.putExtra(PrintManager.EXTRA_PRINT_JOB, printJob); in print()
254 result.putParcelable(PrintManager.EXTRA_PRINT_JOB, printJob); in print()
255 result.putParcelable(PrintManager.EXTRA_PRINT_DIALOG_INTENT, intentSender); in print()
392 if ((selectionFlags & PrintManager.ENABLED_SERVICES) == 0) { in getPrintServices()
396 if ((selectionFlags & PrintManager.DISABLED_SERVICES) == 0) { in getPrintServices()
1103 PrintJobInfo.STATE_ANY_SCHEDULED, PrintManager.APP_ID_ANY); in failScheduledPrintJobsForServiceInternal()
1139 if (record.appId == PrintManager.APP_ID_ANY in handleDispatchPrintJobStateChanged()
[all …]
DPrintManagerService.java55 import android.print.PrintManager;
315 PrintManager.DISABLED_SERVICES | PrintManager.ENABLED_SERVICES); in getPrintServices()
344 PrintManager.PRINT_SPOOLER_PACKAGE_NAME, resolvedUserId))) { in setPrintServiceEnabled()
846 .getPrintServices(PrintManager.ALL_SERVICES); in registerBroadcastReceivers()
915 .getPrintServices(PrintManager.ENABLED_SERVICES); in registerBroadcastReceivers()
DRemotePrintService.java42 import android.print.PrintManager;
692 PrintJobInfo.STATE_ANY_SCHEDULED, PrintManager.APP_ID_ANY); in getPrintJobInfos()
707 PrintManager.APP_ID_ANY); in getPrintJobInfo()
DRemotePrintSpooler.java40 import android.print.PrintManager;
134 mIntent.setComponent(new ComponentName(PrintManager.PRINT_SPOOLER_PACKAGE_NAME, in RemotePrintSpooler()
135 PrintManager.PRINT_SPOOLER_PACKAGE_NAME + ".model.PrintSpoolerService")); in RemotePrintSpooler()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java26 import android.print.PrintManager;
296 || pkg.packageName.equals(PrintManager.PRINT_SPOOLER_PACKAGE_NAME) in isSystemPackage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt27 import android.print.PrintManager.PRINT_SPOOLER_PACKAGE_NAME
DNotificationInfoTest.java24 import static android.print.PrintManager.PRINT_SPOOLER_PACKAGE_NAME;
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java163 import android.print.PrintManager;
837 registerService(Context.PRINT_SERVICE, PrintManager.class, in registerService()
838 new CachedServiceFetcher<PrintManager>() { in registerService()
840 public PrintManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
849 return new PrintManager(ctx.getOuterContext(), service, userId, appId); in registerService()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DDefaultPermissionGrantPolicy.java52 import android.print.PrintManager;
684 grantSystemFixedPermissionsToSystemPackage(PrintManager.PRINT_SPOOLER_PACKAGE_NAME, userId, in grantDefaultSystemHandlerPermissions()
/frameworks/base/api/
Dsystem-current.txt5724 public final class PrintManager {
5725 …d addPrintServiceRecommendationsChangeListener(@NonNull android.print.PrintManager.PrintServiceRec…
5726 …ES) public void addPrintServicesChangeListener(@NonNull android.print.PrintManager.PrintServicesCh…
5729 …emovePrintServiceRecommendationsChangeListener(@NonNull android.print.PrintManager.PrintServiceRec…
5730 … public void removePrintServicesChangeListener(@NonNull android.print.PrintManager.PrintServicesCh…
5734 public static interface PrintManager.PrintServiceRecommendationsChangeListener {
5738 public static interface PrintManager.PrintServicesChangeListener {
/frameworks/base/config/
Dpreloaded-classes2972 android.print.PrintManager
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...