Loading Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,7 @@ LOCAL_SRC_FILES += \ core/java/android/print/IPrinterDiscoveryObserver.aidl \ core/java/android/print/IPrintDocumentAdapter.aidl \ core/java/android/print/IPrintClient.aidl \ core/java/android/print/IPrintJobStateChangeListener.aidl \ core/java/android/print/IPrintManager.aidl \ core/java/android/print/IPrintSpooler.aidl \ core/java/android/print/IPrintSpoolerCallbacks.aidl \ Loading api/current.txt +8 −0 Original line number Diff line number Diff line Loading @@ -19372,6 +19372,13 @@ package android.print { method public void cancel(); method public android.print.PrintJobId getId(); method public android.print.PrintJobInfo getInfo(); method public boolean isBlocked(); method public boolean isCancelled(); method public boolean isCompleted(); method public boolean isFailed(); method public boolean isQueued(); method public boolean isStarted(); method public void restart(); } public final class PrintJobId implements android.os.Parcelable { Loading @@ -19384,6 +19391,7 @@ package android.print { method public int describeContents(); method public android.print.PrintAttributes getAttributes(); method public int getCopies(); method public long getCreationTime(); method public android.print.PrintJobId getId(); method public java.lang.String getLabel(); method public android.print.PageRange[] getPages(); core/java/android/print/IPrintJobStateChangeListener.aidl 0 → 100644 +28 −0 Original line number Diff line number Diff line /* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.print; import android.print.PrintJobId; /** * Interface for observing print job state changes. * * @hide */ oneway interface IPrintJobStateChangeListener { void onPrintJobStateChanged(in PrintJobId printJobId); } core/java/android/print/IPrintManager.aidl +6 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.print.IPrinterDiscoveryObserver; import android.print.IPrintDocumentAdapter; import android.print.IPrintClient; import android.print.PrintJobId; import android.print.IPrintJobStateChangeListener; import android.print.PrinterId; import android.print.PrintJobInfo; import android.print.PrintAttributes; Loading @@ -39,6 +40,11 @@ interface IPrintManager { void cancelPrintJob(in PrintJobId printJobId, int appId, int userId); void restartPrintJob(in PrintJobId printJobId, int appId, int userId); void addPrintJobStateChangeListener(in IPrintJobStateChangeListener listener, int appId, int userId); void removePrintJobStateChangeListener(in IPrintJobStateChangeListener listener, int userId); List<PrintServiceInfo> getEnabledPrintServices(int userId); void createPrinterDiscoverySession(in IPrinterDiscoveryObserver observer, int userId); Loading core/java/android/print/IPrintSpoolerClient.aidl +2 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ package android.print; import android.content.ComponentName; import android.print.PrintJobInfo; import android.print.PrintJobId; /** * Interface for receiving interesting state updates from the print spooler. Loading @@ -29,4 +29,5 @@ oneway interface IPrintSpoolerClient { void onPrintJobQueued(in PrintJobInfo printJob); void onAllPrintJobsForServiceHandled(in ComponentName printService); void onAllPrintJobsHandled(); void onPrintJobStateChanged(in PrintJobId printJobId, int appId); } Loading
Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,7 @@ LOCAL_SRC_FILES += \ core/java/android/print/IPrinterDiscoveryObserver.aidl \ core/java/android/print/IPrintDocumentAdapter.aidl \ core/java/android/print/IPrintClient.aidl \ core/java/android/print/IPrintJobStateChangeListener.aidl \ core/java/android/print/IPrintManager.aidl \ core/java/android/print/IPrintSpooler.aidl \ core/java/android/print/IPrintSpoolerCallbacks.aidl \ Loading
api/current.txt +8 −0 Original line number Diff line number Diff line Loading @@ -19372,6 +19372,13 @@ package android.print { method public void cancel(); method public android.print.PrintJobId getId(); method public android.print.PrintJobInfo getInfo(); method public boolean isBlocked(); method public boolean isCancelled(); method public boolean isCompleted(); method public boolean isFailed(); method public boolean isQueued(); method public boolean isStarted(); method public void restart(); } public final class PrintJobId implements android.os.Parcelable { Loading @@ -19384,6 +19391,7 @@ package android.print { method public int describeContents(); method public android.print.PrintAttributes getAttributes(); method public int getCopies(); method public long getCreationTime(); method public android.print.PrintJobId getId(); method public java.lang.String getLabel(); method public android.print.PageRange[] getPages();
core/java/android/print/IPrintJobStateChangeListener.aidl 0 → 100644 +28 −0 Original line number Diff line number Diff line /* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.print; import android.print.PrintJobId; /** * Interface for observing print job state changes. * * @hide */ oneway interface IPrintJobStateChangeListener { void onPrintJobStateChanged(in PrintJobId printJobId); }
core/java/android/print/IPrintManager.aidl +6 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.print.IPrinterDiscoveryObserver; import android.print.IPrintDocumentAdapter; import android.print.IPrintClient; import android.print.PrintJobId; import android.print.IPrintJobStateChangeListener; import android.print.PrinterId; import android.print.PrintJobInfo; import android.print.PrintAttributes; Loading @@ -39,6 +40,11 @@ interface IPrintManager { void cancelPrintJob(in PrintJobId printJobId, int appId, int userId); void restartPrintJob(in PrintJobId printJobId, int appId, int userId); void addPrintJobStateChangeListener(in IPrintJobStateChangeListener listener, int appId, int userId); void removePrintJobStateChangeListener(in IPrintJobStateChangeListener listener, int userId); List<PrintServiceInfo> getEnabledPrintServices(int userId); void createPrinterDiscoverySession(in IPrinterDiscoveryObserver observer, int userId); Loading
core/java/android/print/IPrintSpoolerClient.aidl +2 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ package android.print; import android.content.ComponentName; import android.print.PrintJobInfo; import android.print.PrintJobId; /** * Interface for receiving interesting state updates from the print spooler. Loading @@ -29,4 +29,5 @@ oneway interface IPrintSpoolerClient { void onPrintJobQueued(in PrintJobInfo printJob); void onAllPrintJobsForServiceHandled(in ComponentName printService); void onAllPrintJobsHandled(); void onPrintJobStateChanged(in PrintJobId printJobId, int appId); }