Home
last modified time | relevance | path

Searched refs:mPrintManager (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/print/
DPrintJobMessagePreferenceControllerTest.java54 private PrintManager mPrintManager; field in PrintJobMessagePreferenceControllerTest
73 when(mContext.getSystemService(Context.PRINT_SERVICE)).thenReturn(mPrintManager); in setUp()
74 when(mPrintManager.getGlobalPrintManagerForUser(anyInt())).thenReturn(mPrintManager); in setUp()
75 when(mPrintManager.getPrintJob(anyObject())).thenReturn(mPrintJob); in setUp()
90 verify(mPrintManager).addPrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener()
91 verify(mPrintManager).removePrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener()
DPrintSettingsPreferenceControllerTest.java59 private PrintManager mPrintManager; field in PrintSettingsPreferenceControllerTest
79 ReflectionHelpers.setField(mController, "mPrintManager", mPrintManager); in setUp()
88 verify(mPrintManager).addPrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener()
89 verify(mPrintManager).removePrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener()
98 when(mPrintManager.getPrintJobs()).thenReturn(printJobs); in updateState_hasActiveJob_shouldSetSummaryToNumberOfJobs()
113 when(mPrintManager.getPrintServices(PrintManager.ENABLED_SERVICES)) in updateState_shouldSetSummaryToNumberOfPrintServices()
123 when(mPrintManager.getPrintServices(PrintManager.ENABLED_SERVICES)).thenReturn(null); in updateState_shouldSetSummaryToNumberOfPrintServices()
DPrintJobPreferenceControllerTest.java55 private PrintManager mPrintManager; field in PrintJobPreferenceControllerTest
76 when(mContext.getSystemService(Context.PRINT_SERVICE)).thenReturn(mPrintManager); in setUp()
77 when(mPrintManager.getGlobalPrintManagerForUser(anyInt())).thenReturn(mPrintManager); in setUp()
78 when(mPrintManager.getPrintJob(anyObject())).thenReturn(mPrintJob); in setUp()
94 verify(mPrintManager).addPrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener()
95 verify(mPrintManager).removePrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener()
/packages/apps/Settings/src/com/android/settings/print/
DPrintSettingPreferenceController.java49 private final PrintManager mPrintManager; field in PrintSettingPreferenceController
56 mPrintManager = ((PrintManager) context.getSystemService(Context.PRINT_SERVICE)) in PrintSettingPreferenceController()
74 mPrintManager.addPrintJobStateChangeListener(this); in onStart()
79 mPrintManager.removePrintJobStateChangeListener(this); in onStop()
96 final List<PrintJob> printJobs = mPrintManager.getPrintJobs(); in getSummary()
112 mPrintManager.getPrintServices(PrintManager.ENABLED_SERVICES); in getSummary()
DPrintJobPreferenceControllerBase.java37 private final PrintManager mPrintManager; field in PrintJobPreferenceControllerBase
44 mPrintManager = ((PrintManager) mContext.getSystemService( in PrintJobPreferenceControllerBase()
50 mPrintManager.addPrintJobStateChangeListener(this); in onStart()
56 mPrintManager.removePrintJobStateChangeListener(this); in onStop()
81 return mPrintManager.getPrintJob(mPrintJobId); in getPrintJob()
DPrintSettingsFragment.java406 private final PrintManager mPrintManager; field in PrintSettingsFragment.PrintJobsLoader
412 mPrintManager = ((PrintManager) context.getSystemService( in PrintJobsLoader()
441 mPrintManager.addPrintJobStateChangeListener( in onStartLoading()
470 mPrintManager.removePrintJobStateChangeListener( in onReset()
479 List<PrintJob> printJobs = mPrintManager.getPrintJobs(); in loadInBackground()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/print/
DPrintSettingPreferenceController.java49 private final PrintManager mPrintManager; field in PrintSettingPreferenceController
56 mPrintManager = ((PrintManager) context.getSystemService(Context.PRINT_SERVICE)) in PrintSettingPreferenceController()
74 mPrintManager.addPrintJobStateChangeListener(this); in onStart()
79 mPrintManager.removePrintJobStateChangeListener(this); in onStop()
96 final List<PrintJob> printJobs = mPrintManager.getPrintJobs(); in getSummary()
112 mPrintManager.getPrintServices(PrintManager.ENABLED_SERVICES); in getSummary()
DPrintJobPreferenceControllerBase.java37 private final PrintManager mPrintManager; field in PrintJobPreferenceControllerBase
44 mPrintManager = ((PrintManager) mContext.getSystemService( in PrintJobPreferenceControllerBase()
50 mPrintManager.addPrintJobStateChangeListener(this); in onStart()
56 mPrintManager.removePrintJobStateChangeListener(this); in onStop()
81 return mPrintManager.getPrintJob(mPrintJobId); in getPrintJob()
DPrintSettingsFragment.java406 private final PrintManager mPrintManager; field in PrintSettingsFragment.PrintJobsLoader
412 mPrintManager = ((PrintManager) context.getSystemService( in PrintJobsLoader()
441 mPrintManager.addPrintJobStateChangeListener( in onStartLoading()
470 mPrintManager.removePrintJobStateChangeListener( in onReset()
479 List<PrintJob> printJobs = mPrintManager.getPrintJobs(); in loadInBackground()
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalDiscoverySession.java56 private PrintManager mPrintManager; field in LocalDiscoverySession
73 mPrintManager = mPrintService.getSystemService(PrintManager.class); in LocalDiscoverySession()
89 mPrintManager.addPrintServicesChangeListener(this, null); in onStartPrinterDiscovery()
92 mPrintManager.addPrintServiceRecommendationsChangeListener(this, null); in onStartPrinterDiscovery()
314 List<RecommendationInfo> infos = mPrintManager.getPrintServiceRecommendations(); in onPrintServiceRecommendationsChanged()
342 List<PrintServiceInfo> infos = mPrintManager.getPrintServices( in onPrintServicesChanged()
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DMoreOptionsFragment.java54 private PrintManager mPrintManager; field in MoreOptionsFragment
92 mPrintManager = getContext().getSystemService(PrintManager.class); in onStart()
95 mPrintManager.addPrintServiceRecommendationsChangeListener(this, null); in onStart()
102 mPrintManager.removePrintServiceRecommendationsChangeListener(this); in onStop()
107 List<RecommendationInfo> infos = mPrintManager.getPrintServiceRecommendations(); in onPrintServiceRecommendationsChanged()