/packages/apps/Settings/src/com/android/settings/print/ |
D | PrintSettingPreferenceController.java | 50 private final PrintManager mPrintManager; field in PrintSettingPreferenceController 57 mPrintManager = ((PrintManager) context.getSystemService(Context.PRINT_SERVICE)) in PrintSettingPreferenceController() 64 && mPrintManager != null in getAvailabilityStatus() 76 if (mPrintManager != null) { in onStart() 77 mPrintManager.addPrintJobStateChangeListener(this); in onStart() 83 if (mPrintManager != null) { in onStop() 84 mPrintManager.removePrintJobStateChangeListener(this); in onStop() 102 final List<PrintJob> printJobs = mPrintManager.getPrintJobs(); in getSummary() 118 mPrintManager.getPrintServices(PrintManager.ENABLED_SERVICES); in getSummary()
|
D | PrintJobPreferenceControllerBase.java | 37 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()
|
D | PrintSettingsFragment.java | 459 private final PrintManager mPrintManager; field in PrintSettingsFragment.PrintJobsLoader 465 mPrintManager = ((PrintManager) context.getSystemService( in PrintJobsLoader() 494 mPrintManager.addPrintJobStateChangeListener( in onStartLoading() 523 mPrintManager.removePrintJobStateChangeListener( in onReset() 532 List<PrintJob> printJobs = mPrintManager.getPrintJobs(); in loadInBackground()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/print/ |
D | PrintJobMessagePreferenceControllerTest.java | 54 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(any())).thenReturn(mPrintJob); in setUp() 90 verify(mPrintManager).addPrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener() 91 verify(mPrintManager).removePrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener()
|
D | PrintSettingsPreferenceControllerTest.java | 65 private PrintManager mPrintManager; field in PrintSettingsPreferenceControllerTest 87 ReflectionHelpers.setField(mController, "mPrintManager", mPrintManager); in setUp() 97 verify(mPrintManager).addPrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener() 98 verify(mPrintManager).removePrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener() 108 verify(mPrintManager, never()).addPrintJobStateChangeListener(mController); in onStartStop_printManagerIsNull_doNothing() 109 verify(mPrintManager, never()).removePrintJobStateChangeListener(mController); in onStartStop_printManagerIsNull_doNothing() 118 when(mPrintManager.getPrintJobs()).thenReturn(printJobs); in updateState_hasActiveJob_shouldSetSummaryToNumberOfJobs() 133 when(mPrintManager.getPrintServices(PrintManager.ENABLED_SERVICES)) in updateState_shouldSetSummaryToNumberOfPrintServices() 143 when(mPrintManager.getPrintServices(PrintManager.ENABLED_SERVICES)).thenReturn(null); in updateState_shouldSetSummaryToNumberOfPrintServices()
|
D | PrintJobPreferenceControllerTest.java | 55 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(any())).thenReturn(mPrintJob); in setUp() 94 verify(mPrintManager).addPrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener() 95 verify(mPrintManager).removePrintJobStateChangeListener(mController); in onStartStop_shouldRegisterPrintStateListener()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ui/ |
D | MoreOptionsFragment.java | 54 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()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | LocalDiscoverySession.java | 56 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()
|