summaryrefslogtreecommitdiffstats
path: root/core/java/android/printservice/PrintService.java
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-07-17 18:37:36 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2013-07-19 16:23:12 -0700
commit597945fd3a6b52ac70bb9afc5ec8c59039fffd77 (patch)
tree1e44c6e0c34deba26033b46878bbbfd010a3f8d9 /core/java/android/printservice/PrintService.java
parent7a5480d6d74eb64a360ed20062c66926c9eef9bc (diff)
downloadframeworks_base-597945fd3a6b52ac70bb9afc5ec8c59039fffd77.zip
frameworks_base-597945fd3a6b52ac70bb9afc5ec8c59039fffd77.tar.gz
frameworks_base-597945fd3a6b52ac70bb9afc5ec8c59039fffd77.tar.bz2
First pass of the print dialog UX
Change-Id: I315a16d7f68c73ca180c76e722847b4b1bdea55b
Diffstat (limited to 'core/java/android/printservice/PrintService.java')
-rw-r--r--core/java/android/printservice/PrintService.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/core/java/android/printservice/PrintService.java b/core/java/android/printservice/PrintService.java
index 820c2d8..dde31d2 100644
--- a/core/java/android/printservice/PrintService.java
+++ b/core/java/android/printservice/PrintService.java
@@ -245,13 +245,10 @@ public abstract class PrintService extends Service {
* @see #removeDiscoveredPrinters(List)
* @see #onStartPrinterDiscovery()
* @see #onStopPrinterDiscovery()
- *
- * @throws IllegalStateException If this service is not connected.
*/
public final void addDiscoveredPrinters(List<PrinterInfo> printers) {
final IPrinterDiscoveryObserver observer;
synchronized (mLock) {
- throwIfNotConnectedLocked();
observer = mDiscoveryObserver;
}
if (observer != null) {
@@ -284,13 +281,10 @@ public abstract class PrintService extends Service {
* @see #addDiscoveredPrinters(List)
* @see #onStartPrinterDiscovery()
* @see #onStopPrinterDiscovery()
- *
- * @throws IllegalStateException If this service is not connected.
*/
public final void removeDiscoveredPrinters(List<PrinterId> printerIds) {
final IPrinterDiscoveryObserver observer;
synchronized (mLock) {
- throwIfNotConnectedLocked();
observer = mDiscoveryObserver;
}
if (observer != null) {
@@ -334,13 +328,10 @@ public abstract class PrintService extends Service {
* Gets the print jobs for the printers managed by this service.
*
* @return The print jobs.
- *
- * @throws IllegalStateException If this service is not connected.
*/
public final List<PrintJob> getPrintJobs() {
final IPrintServiceClient client;
synchronized (mLock) {
- throwIfNotConnectedLocked();
client = mClient;
}
if (client == null) {
@@ -410,12 +401,6 @@ public abstract class PrintService extends Service {
};
}
- private void throwIfNotConnectedLocked() {
- if (mClient == null) {
- throw new IllegalStateException("Print serivice not connected");
- }
- }
-
private final class MyHandler extends Handler {
public static final int MESSAGE_START_PRINTER_DISCOVERY = 1;
public static final int MESSAGE_STOP_PRINTER_DISCOVERY = 2;