From 0fb6959ad364ee84e83c435d671228fb365f2084 Mon Sep 17 00:00:00 2001 From: Svetoslav Date: Thu, 7 Mar 2013 18:19:37 -0800 Subject: Print - print services Change-Id: Iaf7cd0b49797721420a28fbecfd3f6557c35e64d --- PrintApp/.classpath | 8 + PrintApp/.project | 33 +++ PrintApp/Android.mk | 13 ++ PrintApp/AndroidManifest.xml | 24 +++ PrintApp/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 3014 bytes PrintApp/res/drawable-ldpi/ic_launcher.png | Bin 0 -> 1504 bytes PrintApp/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 1969 bytes PrintApp/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 4006 bytes PrintApp/res/layout/activity_main.xml | 124 +++++++++++ PrintApp/res/menu/activity_main.xml | 10 + PrintApp/res/values/strings.xml | 11 + PrintApp/src/foo/bar/print/PrintActivity.java | 166 +++++++++++++++ PrintApp/src/foo/bar/print/PrintedPdfDocument.java | 160 ++++++++++++++ PrintService/.classpath | 8 + PrintService/.project | 33 +++ PrintService/Android.mk | 13 ++ PrintService/AndroidManifest.xml | 37 ++++ PrintService/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 3014 bytes PrintService/res/drawable-ldpi/ic_launcher.png | Bin 0 -> 1504 bytes PrintService/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 1969 bytes PrintService/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 4006 bytes PrintService/res/layout/activity_main.xml | 13 ++ PrintService/res/values/strings.xml | 18 ++ PrintService/res/xml/printservice.xml | 3 + .../foo/bar/printservice/AddPrintersActivity.java | 13 ++ .../src/foo/bar/printservice/MyPrintService.java | 231 +++++++++++++++++++++ .../src/foo/bar/printservice/SettingsActivity.java | 13 ++ PrintService2/.classpath | 8 + PrintService2/.project | 33 +++ PrintService2/Android.mk | 13 ++ PrintService2/AndroidManifest.xml | 35 ++++ PrintService2/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 3014 bytes PrintService2/res/drawable-ldpi/ic_launcher.png | Bin 0 -> 1504 bytes PrintService2/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 1969 bytes PrintService2/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 4006 bytes PrintService2/res/layout/activity_main.xml | 13 ++ PrintService2/res/values/strings.xml | 16 ++ PrintService2/res/xml/printservice.xml | 3 + .../src/foo/bar/printservice2/MyPrintService.java | 231 +++++++++++++++++++++ .../foo/bar/printservice2/SettingsActivity.java | 15 ++ TestBack/.classpath | 8 + TestBack/.project | 33 +++ TestBack/Android.mk | 13 ++ TestBack/AndroidManifest.xml | 38 ++++ TestBack/res/drawable-hdpi/ic_action_search.png | Bin 0 -> 3120 bytes TestBack/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 3014 bytes TestBack/res/drawable-ldpi/ic_launcher.png | Bin 0 -> 1504 bytes TestBack/res/drawable-mdpi/ic_action_search.png | Bin 0 -> 3030 bytes TestBack/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 1969 bytes TestBack/res/drawable-xhdpi/ic_action_search.png | Bin 0 -> 3199 bytes TestBack/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 4006 bytes TestBack/res/menu/activity_main.xml | 6 + TestBack/res/values-v11/styles.xml | 5 + TestBack/res/values-v14/styles.xml | 5 + TestBack/res/values/strings.xml | 8 + TestBack/res/values/styles.xml | 5 + TestBack/res/xml/accessibilityservice.xml | 5 + TestBack/src/foo/bar/testback/Foo.java | 45 ++++ .../foo/bar/testback/IdleMaintenanceReceiver.java | 18 ++ TestBack/src/foo/bar/testback/TestBackService.java | 145 +++++++++++++ 60 files changed, 1632 insertions(+) create mode 100644 PrintApp/.classpath create mode 100644 PrintApp/.project create mode 100644 PrintApp/Android.mk create mode 100644 PrintApp/AndroidManifest.xml create mode 100644 PrintApp/res/drawable-hdpi/ic_launcher.png create mode 100644 PrintApp/res/drawable-ldpi/ic_launcher.png create mode 100644 PrintApp/res/drawable-mdpi/ic_launcher.png create mode 100644 PrintApp/res/drawable-xhdpi/ic_launcher.png create mode 100644 PrintApp/res/layout/activity_main.xml create mode 100644 PrintApp/res/menu/activity_main.xml create mode 100644 PrintApp/res/values/strings.xml create mode 100644 PrintApp/src/foo/bar/print/PrintActivity.java create mode 100644 PrintApp/src/foo/bar/print/PrintedPdfDocument.java create mode 100644 PrintService/.classpath create mode 100644 PrintService/.project create mode 100644 PrintService/Android.mk create mode 100644 PrintService/AndroidManifest.xml create mode 100644 PrintService/res/drawable-hdpi/ic_launcher.png create mode 100644 PrintService/res/drawable-ldpi/ic_launcher.png create mode 100644 PrintService/res/drawable-mdpi/ic_launcher.png create mode 100644 PrintService/res/drawable-xhdpi/ic_launcher.png create mode 100644 PrintService/res/layout/activity_main.xml create mode 100644 PrintService/res/values/strings.xml create mode 100644 PrintService/res/xml/printservice.xml create mode 100644 PrintService/src/foo/bar/printservice/AddPrintersActivity.java create mode 100644 PrintService/src/foo/bar/printservice/MyPrintService.java create mode 100644 PrintService/src/foo/bar/printservice/SettingsActivity.java create mode 100644 PrintService2/.classpath create mode 100644 PrintService2/.project create mode 100644 PrintService2/Android.mk create mode 100644 PrintService2/AndroidManifest.xml create mode 100644 PrintService2/res/drawable-hdpi/ic_launcher.png create mode 100644 PrintService2/res/drawable-ldpi/ic_launcher.png create mode 100644 PrintService2/res/drawable-mdpi/ic_launcher.png create mode 100644 PrintService2/res/drawable-xhdpi/ic_launcher.png create mode 100644 PrintService2/res/layout/activity_main.xml create mode 100644 PrintService2/res/values/strings.xml create mode 100644 PrintService2/res/xml/printservice.xml create mode 100644 PrintService2/src/foo/bar/printservice2/MyPrintService.java create mode 100644 PrintService2/src/foo/bar/printservice2/SettingsActivity.java create mode 100644 TestBack/.classpath create mode 100644 TestBack/.project create mode 100644 TestBack/Android.mk create mode 100644 TestBack/AndroidManifest.xml create mode 100644 TestBack/res/drawable-hdpi/ic_action_search.png create mode 100644 TestBack/res/drawable-hdpi/ic_launcher.png create mode 100644 TestBack/res/drawable-ldpi/ic_launcher.png create mode 100644 TestBack/res/drawable-mdpi/ic_action_search.png create mode 100644 TestBack/res/drawable-mdpi/ic_launcher.png create mode 100644 TestBack/res/drawable-xhdpi/ic_action_search.png create mode 100644 TestBack/res/drawable-xhdpi/ic_launcher.png create mode 100644 TestBack/res/menu/activity_main.xml create mode 100644 TestBack/res/values-v11/styles.xml create mode 100644 TestBack/res/values-v14/styles.xml create mode 100644 TestBack/res/values/strings.xml create mode 100644 TestBack/res/values/styles.xml create mode 100644 TestBack/res/xml/accessibilityservice.xml create mode 100644 TestBack/src/foo/bar/testback/Foo.java create mode 100644 TestBack/src/foo/bar/testback/IdleMaintenanceReceiver.java create mode 100644 TestBack/src/foo/bar/testback/TestBackService.java diff --git a/PrintApp/.classpath b/PrintApp/.classpath new file mode 100644 index 0000000..a4763d1 --- /dev/null +++ b/PrintApp/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/PrintApp/.project b/PrintApp/.project new file mode 100644 index 0000000..507c2e2 --- /dev/null +++ b/PrintApp/.project @@ -0,0 +1,33 @@ + + + TestBack + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/PrintApp/Android.mk b/PrintApp/Android.mk new file mode 100644 index 0000000..7cea0ab --- /dev/null +++ b/PrintApp/Android.mk @@ -0,0 +1,13 @@ +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE_TAGS := optional + +LOCAL_SRC_FILES := $(call all-java-files-under, src) + +LOCAL_PACKAGE_NAME := Print + +LOCAL_CERTIFICATE := platform + +include $(BUILD_PACKAGE) diff --git a/PrintApp/AndroidManifest.xml b/PrintApp/AndroidManifest.xml new file mode 100644 index 0000000..7528f28 --- /dev/null +++ b/PrintApp/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + diff --git a/PrintApp/res/drawable-hdpi/ic_launcher.png b/PrintApp/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..a301d57 Binary files /dev/null and b/PrintApp/res/drawable-hdpi/ic_launcher.png differ diff --git a/PrintApp/res/drawable-ldpi/ic_launcher.png b/PrintApp/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..2c2a58b Binary files /dev/null and b/PrintApp/res/drawable-ldpi/ic_launcher.png differ diff --git a/PrintApp/res/drawable-mdpi/ic_launcher.png b/PrintApp/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..f91f736 Binary files /dev/null and b/PrintApp/res/drawable-mdpi/ic_launcher.png differ diff --git a/PrintApp/res/drawable-xhdpi/ic_launcher.png b/PrintApp/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..96095ec Binary files /dev/null and b/PrintApp/res/drawable-xhdpi/ic_launcher.png differ diff --git a/PrintApp/res/layout/activity_main.xml b/PrintApp/res/layout/activity_main.xml new file mode 100644 index 0000000..8a3c72a --- /dev/null +++ b/PrintApp/res/layout/activity_main.xml @@ -0,0 +1,124 @@ + + + + + + + + + + +