summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-10-04 16:51:58 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-04 16:51:58 -0700
commit133c1faf8c4450c5ad45dea13323d45dfb60817b (patch)
treef40b4c9d4d21d75716ba0a8cdb0d31ebf168babf /core
parentbb93ee731c7056769b10371caf0be7a12c6db78c (diff)
parent67d7af514c2a393cbe886ebf5527a0dc45817cfb (diff)
downloadframeworks_base-133c1faf8c4450c5ad45dea13323d45dfb60817b.zip
frameworks_base-133c1faf8c4450c5ad45dea13323d45dfb60817b.tar.gz
frameworks_base-133c1faf8c4450c5ad45dea13323d45dfb60817b.tar.bz2
am 67d7af51: am 19565ad1: Merge "Small print API tweaks" into klp-dev
* commit '67d7af514c2a393cbe886ebf5527a0dc45817cfb': Small print API tweaks
Diffstat (limited to 'core')
-rw-r--r--core/java/android/print/PrintFileDocumentAdapter.java2
-rw-r--r--core/java/android/print/PrintJobInfo.java5
-rw-r--r--core/java/android/printservice/PrintJob.java12
3 files changed, 16 insertions, 3 deletions
diff --git a/core/java/android/print/PrintFileDocumentAdapter.java b/core/java/android/print/PrintFileDocumentAdapter.java
index c3a23a5..5d655bf 100644
--- a/core/java/android/print/PrintFileDocumentAdapter.java
+++ b/core/java/android/print/PrintFileDocumentAdapter.java
@@ -41,6 +41,8 @@ import java.io.OutputStream;
* spooling the data, so you can delete the file if it is a
* temporary one. To achieve this one must override {@link #onFinish()}
* and delete the file yourself.
+ *
+ * @hide
*/
public class PrintFileDocumentAdapter extends PrintDocumentAdapter {
diff --git a/core/java/android/print/PrintJobInfo.java b/core/java/android/print/PrintJobInfo.java
index e5d06a2..ccb4f44 100644
--- a/core/java/android/print/PrintJobInfo.java
+++ b/core/java/android/print/PrintJobInfo.java
@@ -26,9 +26,6 @@ import java.util.Arrays;
*/
public final class PrintJobInfo implements Parcelable {
- /** Undefined print job id. */
- public static final int PRINT_JOB_ID_UNDEFINED = -1;
-
/**
* Constant for matching any print job state.
*
@@ -356,6 +353,8 @@ public final class PrintJobInfo implements Parcelable {
* Gets the optional tag assigned by a print service.
*
* @return The tag.
+ *
+ * @hide
*/
public String getTag() {
return mTag;
diff --git a/core/java/android/printservice/PrintJob.java b/core/java/android/printservice/PrintJob.java
index 721e31e..d1dbedf 100644
--- a/core/java/android/printservice/PrintJob.java
+++ b/core/java/android/printservice/PrintJob.java
@@ -301,6 +301,18 @@ public final class PrintJob {
return false;
}
+ /**
+ * Gets the print job tag.
+ *
+ * @return tag The tag or null.
+ *
+ * @see #setTag(String)
+ */
+ public String getTag() {
+ PrintService.throwIfNotCalledOnMainThread();
+ return getInfo().getTag();
+ }
+
@Override
public boolean equals(Object obj) {
if (this == obj) {