IPrintManager.aidl revision 2fbd2a7f070f246ddafd9de94efa9a98861e9136
1/* 2 * Copyright (C) 2013 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package android.print; 18 19import android.print.IPrinterDiscoveryObserver; 20import android.print.IPrintDocumentAdapter; 21import android.print.IPrintClient; 22import android.print.PrintJobId; 23import android.print.PrinterId; 24import android.print.PrintJobInfo; 25import android.print.PrintAttributes; 26import android.printservice.PrintServiceInfo; 27 28/** 29 * Interface for communication with the core print manager service. 30 * 31 * @hide 32 */ 33interface IPrintManager { 34 List<PrintJobInfo> getPrintJobInfos(int appId, int userId); 35 PrintJobInfo getPrintJobInfo(in PrintJobId printJobId, int appId, int userId); 36 PrintJobInfo print(String printJobName, in IPrintClient client, 37 in IPrintDocumentAdapter printAdapter, in PrintAttributes attributes, 38 int appId, int userId); 39 void cancelPrintJob(in PrintJobId printJobId, int appId, int userId); 40 void restartPrintJob(in PrintJobId printJobId, int appId, int userId); 41 42 List<PrintServiceInfo> getEnabledPrintServices(int userId); 43 44 void createPrinterDiscoverySession(in IPrinterDiscoveryObserver observer, int userId); 45 void startPrinterDiscovery(in IPrinterDiscoveryObserver observer, 46 in List<PrinterId> priorityList, int userId); 47 void stopPrinterDiscovery(in IPrinterDiscoveryObserver observer, int userId); 48 void validatePrinters(in List<PrinterId> printerIds, int userId); 49 void startPrinterStateTracking(in PrinterId printerId, int userId); 50 void stopPrinterStateTracking(in PrinterId printerId, int userId); 51 void destroyPrinterDiscoverySession(in IPrinterDiscoveryObserver observer, 52 int userId); 53} 54