Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/print/
DPrintRepository.kt21 import android.print.PrintManager in <lambda>()
35 private val printManager = context.getSystemService(PrintManager::class.java)!! in <lambda>()
64 .map { printManager.getPrintServices(PrintManager.ALL_SERVICES) } in <lambda>()
69 fun PrintManager.printServicesChangeFlow(): Flow<Unit> = callbackFlow { in <lambda>() method
70 val listener = PrintManager.PrintServicesChangeListener { trySend(Unit) } in <lambda>()
DPrintSettingPreferenceController.java25 import android.print.PrintManager;
45 LifecycleObserver, OnStart, OnStop, PrintManager.PrintJobStateChangeListener {
50 private final PrintManager mPrintManager;
57 mPrintManager = ((PrintManager) context.getSystemService(Context.PRINT_SERVICE)) in PrintSettingPreferenceController()
118 mPrintManager.getPrintServices(PrintManager.ENABLED_SERVICES); in getSummary()
DPrintJobPreferenceControllerBase.java20 import android.print.PrintManager;
32 LifecycleObserver, OnStart, OnStop, PrintManager.PrintJobStateChangeListener {
37 private final PrintManager mPrintManager;
44 mPrintManager = ((PrintManager) mContext.getSystemService( in PrintJobPreferenceControllerBase()
DPrintSettingsFragment.java35 import android.print.PrintManager;
36 import android.print.PrintManager.PrintJobStateChangeListener;
220 PrintManager printManager = in onCreateLoader()
221 (PrintManager) getContext().getSystemService(Context.PRINT_SERVICE); in onCreateLoader()
224 PrintManager.ALL_SERVICES); in onCreateLoader()
459 private final PrintManager mPrintManager;
465 mPrintManager = ((PrintManager) context.getSystemService( in PrintJobsLoader()
DSettingsPrintServicesLoader.java20 import android.print.PrintManager;
38 public SettingsPrintServicesLoader(@NonNull PrintManager printManager, @NonNull Context context, in SettingsPrintServicesLoader()
DPrintServiceSettingsFragment.java29 import android.print.PrintManager;
169 ((PrintManager) getContext().getSystemService(Context.PRINT_SERVICE)) in onPreferenceToggled()
278 (PrintManager) getContext().getSystemService(Context.PRINT_SERVICE), getContext(), in onCreateLoader()
279 PrintManager.ALL_SERVICES); in onCreateLoader()
729 PrintManager printManager = (PrintManager) getContext()
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalDiscoverySession.java20 import android.print.PrintManager;
43 PrintManager.PrintServiceRecommendationsChangeListener,
44 PrintManager.PrintServicesChangeListener {
56 private PrintManager mPrintManager;
73 mPrintManager = mPrintService.getSystemService(PrintManager.class); in LocalDiscoverySession()
101 PrintManager printManager = mPrintService.getSystemService(PrintManager.class); in onStopPrinterDiscovery()
343 PrintManager.ENABLED_SERVICES); in onPrintServicesChanged()
DPdfPrintActivity.java31 import android.print.PrintManager;
67 PrintManager printManager = (PrintManager) getSystemService(Context.PRINT_SERVICE); in onCreate()
DImagePrintActivity.java40 import android.print.PrintManager;
147 PrintManager printManager = (PrintManager) getSystemService(Context.PRINT_SERVICE); in onProgressUpdate()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/print/
DPrintRepositoryTest.kt23 import android.print.PrintManager
48 private val mockPrintManager = mock<PrintManager> { in <lambda>()
49 on { getPrintServices(PrintManager.ALL_SERVICES) } doReturn listOf(printServiceInfo) in <lambda>()
53 on { getSystemService(PrintManager::class.java) } doReturn mockPrintManager in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/print/
DPrintSettingsPreferenceControllerTest.java38 import android.print.PrintManager;
65 private PrintManager mPrintManager;
133 when(mPrintManager.getPrintServices(PrintManager.ENABLED_SERVICES)) in updateState_shouldSetSummaryToNumberOfPrintServices()
143 when(mPrintManager.getPrintServices(PrintManager.ENABLED_SERVICES)).thenReturn(null); in updateState_shouldSetSummaryToNumberOfPrintServices()
DPrintJobMessagePreferenceControllerTest.java33 import android.print.PrintManager;
54 private PrintManager mPrintManager;
DPrintJobPreferenceControllerTest.java33 import android.print.PrintManager;
55 private PrintManager mPrintManager;
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DMoreOptionsFragment.java27 import android.print.PrintManager;
45 PrintManager.PrintServiceRecommendationsChangeListener {
54 private PrintManager mPrintManager;
92 mPrintManager = getContext().getSystemService(PrintManager.class); in onStart()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/print/
DPrintJobSettingsActivityTest.java34 import android.print.PrintManager;
120 PrintManager pm = mActivityRule.getActivity().getSystemService(PrintManager.class); in viewPrintJobSettings()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DLibUtils.java39 import android.print.PrintManager;
236 || pkg.packageName.equals(PrintManager.PRINT_SPOOLER_PACKAGE_NAME) in isSystemPackage()
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewBrowserActivity.java26 import android.print.PrintManager;
555 PrintManager printManager = (PrintManager) getSystemService(Context.PRINT_SERVICE); in onMenuItemClick()