Print API tweaks.

Change-Id: I4fcf93f17495740e8b8d0dc4e425a89862716b42
This commit is contained in:
Svetoslav
2013-06-22 00:26:49 -07:00
parent 1cda4dc1d7
commit 53f57d162b
3 changed files with 7 additions and 18 deletions

View File

@@ -18551,7 +18551,7 @@ package android.print {
method public android.print.PrintAttributes getAttributes();
method public int getId();
method public java.lang.CharSequence getLabel();
method public android.print.PageRange[] getPageRanges();
method public android.print.PageRange[] getPages();
method public android.print.PrinterId getPrinterId();
method public int getState();
method public java.lang.String getTag();
@@ -18572,10 +18572,6 @@ package android.print {
method public android.print.PrintJob print(java.lang.String, android.print.PrintAdapter, android.print.PrintAttributes);
}
public static abstract interface PrintManager.PrintJobStateListener {
method public abstract void onStateChanged(int);
}
public final class PrinterId implements android.os.Parcelable {
method public int describeContents();
method public java.lang.String getLocalId();

View File

@@ -261,22 +261,22 @@ public final class PrintJobInfo implements Parcelable {
}
/**
* Gets the included page ranges.
* Gets the included pages.
*
* @return The included page ranges or <code>null</code> if not set.
* @return The included pages or <code>null</code> if not set.
*/
public PageRange[] getPageRanges() {
public PageRange[] getPages() {
return mPageRanges;
}
/**
* Sets the included page ranges.
* Sets the included pages.
*
* @return The included page ranges.
* @return The included pages.
*
* @hide
*/
public void setPageRanges(PageRange[] pageRanges) {
public void setPages(PageRange[] pageRanges) {
mPageRanges = pageRanges;
}

View File

@@ -69,13 +69,6 @@ public final class PrintManager {
private final Handler mHandler;
/**
* Listener for the state of a print job.
*/
public static interface PrintJobStateListener {
public void onStateChanged(int state);
}
/**
* Creates a new instance.
*