Permalink
Browse files

Initial code drop

  • Loading branch information...
1 parent d0827a4 commit cde37f353e52d51ce68885cc857938b0dbdf8214 @romannurik committed Feb 7, 2014
Showing with 22,342 additions and 0 deletions.
  1. +34 −0 .gitignore
  2. +122 −0 api/build.gradle
  3. +1 −0 api/javadoc-scripts/.gitignore
  4. +34 −0 api/javadoc-scripts/generate_javadoc.sh
  5. +28 −0 api/javadoc-scripts/index.html
  6. +95 −0 api/javadoc-scripts/javadoc_stylesheet.css
  7. +1 −0 api/javadoc-scripts/prettify.css
  8. +28 −0 api/javadoc-scripts/prettify.js
  9. +74 −0 api/javadoc-scripts/tweak_javadoc_html.py
  10. +281 −0 api/src/main/java/com/google/android/apps/muzei/api/Artwork.java
  11. +750 −0 api/src/main/java/com/google/android/apps/muzei/api/MuzeiArtSource.java
  12. +152 −0 api/src/main/java/com/google/android/apps/muzei/api/RemoteMuzeiArtSource.java
  13. +105 −0 api/src/main/java/com/google/android/apps/muzei/api/UserCommand.java
  14. +40 −0 api/src/main/java/com/google/android/apps/muzei/api/internal/ProtocolConstants.java
  15. +168 −0 api/src/main/java/com/google/android/apps/muzei/api/internal/SourceState.java
  16. +1,476 −0 art/ab_icons.ai
  17. +1,468 −0 art/ab_icons_src.ai
  18. BIN art/add-xxhdpi.psd
  19. BIN art/btn_check-xxhdpi.psd
  20. BIN art/buttons-xxhdpi.psd
  21. BIN art/customize_actionbar_icons-xxhdpi.psd
  22. BIN art/gallery_settings_chosen_photo_selected_overlay.9-xxhdpi.psd
  23. BIN art/grumpy_mcpuzzles-xxhdpi.psd
  24. BIN art/ic_launcher-xxxhdpi.psd
  25. BIN art/ic_launcher_trans-xxxhdpi.psd
  26. BIN art/ic_stat_muzei-xxhdpi.psd
  27. BIN art/popup_bg.9-xxhdpi.psd
  28. BIN art/source_icons.psd
  29. BIN art/thumb.psd
  30. BIN art/tutorial_icon-xxhdpi.psd
  31. +1 −0 build.gradle
  32. +45 −0 example-source-500px/build.gradle
  33. +41 −0 example-source-500px/src/main/AndroidManifest.xml
  34. +21 −0 example-source-500px/src/main/java/com/example/muzei/examplesource500px/Config.java
  35. +115 −0 ...ource-500px/src/main/java/com/example/muzei/examplesource500px/FiveHundredPxExampleArtSource.java
  36. +41 −0 example-source-500px/src/main/java/com/example/muzei/examplesource500px/FiveHundredPxService.java
  37. BIN example-source-500px/src/main/res/drawable-nodpi/ic_source.png
  38. +21 −0 example-source-500px/src/main/res/values/strings.xml
  39. BIN gradle/wrapper/gradle-wrapper.jar
  40. +6 −0 gradle/wrapper/gradle-wrapper.properties
  41. +164 −0 gradlew
  42. +90 −0 gradlew.bat
  43. +5 −0 keystore.properties.example
  44. +3 −0 local.properties.example
  45. +1 −0 main/.gitignore
  46. +95 −0 main/build.gradle
  47. +28 −0 main/proguard-project.txt
  48. +138 −0 main/src/main/AndroidManifest.xml
  49. BIN main/src/main/assets/Alegreya-BlackItalic.ttf
  50. BIN main/src/main/assets/Alegreya-Italic.ttf
  51. BIN main/src/main/assets/starrynight.jpg
  52. +78 −0 main/src/main/java/com/google/android/apps/muzei/ArtDetailViewport.java
  53. +223 −0 main/src/main/java/com/google/android/apps/muzei/ArtworkCache.java
  54. +865 −0 main/src/main/java/com/google/android/apps/muzei/MuzeiActivity.java
  55. +42 −0 main/src/main/java/com/google/android/apps/muzei/MuzeiApplication.java
  56. +223 −0 main/src/main/java/com/google/android/apps/muzei/MuzeiWallpaperService.java
  57. +52 −0 main/src/main/java/com/google/android/apps/muzei/NetworkChangeReceiver.java
  58. +142 −0 main/src/main/java/com/google/android/apps/muzei/NewWallpaperNotificationReceiver.java
  59. +59 −0 main/src/main/java/com/google/android/apps/muzei/PhotoSetAsTargetActivity.java
  60. +234 −0 main/src/main/java/com/google/android/apps/muzei/SourceManager.java
  61. +63 −0 main/src/main/java/com/google/android/apps/muzei/SourcePackageChangeReceiver.java
  62. +59 −0 main/src/main/java/com/google/android/apps/muzei/SourceSubscriberService.java
  63. +60 −0 main/src/main/java/com/google/android/apps/muzei/TaskQueueService.java
  64. +29 −0 main/src/main/java/com/google/android/apps/muzei/event/ArtDetailOpenedClosedEvent.java
  65. +34 −0 main/src/main/java/com/google/android/apps/muzei/event/ArtworkLoadingStateChangedEvent.java
  66. +35 −0 main/src/main/java/com/google/android/apps/muzei/event/ArtworkSizeChangedEvent.java
  67. +19 −0 main/src/main/java/com/google/android/apps/muzei/event/BlurAmountChangedEvent.java
  68. +19 −0 main/src/main/java/com/google/android/apps/muzei/event/CurrentArtworkDownloadedEvent.java
  69. +19 −0 main/src/main/java/com/google/android/apps/muzei/event/DimAmountChangedEvent.java
  70. +19 −0 main/src/main/java/com/google/android/apps/muzei/event/GainedNetworkConnectivityEvent.java
  71. +19 −0 main/src/main/java/com/google/android/apps/muzei/event/GalleryChosenUrisChangedEvent.java
  72. +19 −0 main/src/main/java/com/google/android/apps/muzei/event/SelectedSourceChangedEvent.java
  73. +19 −0 main/src/main/java/com/google/android/apps/muzei/event/SelectedSourceStateChangedEvent.java
  74. +35 −0 main/src/main/java/com/google/android/apps/muzei/event/SwitchingPhotosStateChangedEvent.java
  75. +29 −0 main/src/main/java/com/google/android/apps/muzei/event/WallpaperActiveStateChangedEvent.java
  76. +35 −0 main/src/main/java/com/google/android/apps/muzei/event/WallpaperSizeChangedEvent.java
  77. +249 −0 main/src/main/java/com/google/android/apps/muzei/featuredart/FeaturedArtSource.java
  78. +435 −0 main/src/main/java/com/google/android/apps/muzei/gallery/GalleryArtSource.java
  79. +74 −0 main/src/main/java/com/google/android/apps/muzei/gallery/GalleryDatabase.java
  80. +181 −0 main/src/main/java/com/google/android/apps/muzei/gallery/GalleryEmptyStateGraphicView.java
  81. +383 −0 main/src/main/java/com/google/android/apps/muzei/gallery/GallerySettingsActivity.java
  82. +138 −0 main/src/main/java/com/google/android/apps/muzei/gallery/GalleryStore.java
  83. +163 −0 main/src/main/java/com/google/android/apps/muzei/render/BitmapRegionLoader.java
  84. +103 −0 main/src/main/java/com/google/android/apps/muzei/render/DemoRenderController.java
  85. +115 −0 main/src/main/java/com/google/android/apps/muzei/render/GLColorOverlay.java
  86. +272 −0 main/src/main/java/com/google/android/apps/muzei/render/GLPicture.java
  87. +1,716 −0 main/src/main/java/com/google/android/apps/muzei/render/GLTextureView.java
  88. +128 −0 main/src/main/java/com/google/android/apps/muzei/render/GLUtil.java
  89. +72 −0 main/src/main/java/com/google/android/apps/muzei/render/ImageBlurrer.java
  90. +58 −0 main/src/main/java/com/google/android/apps/muzei/render/ImageUtil.java
  91. +522 −0 main/src/main/java/com/google/android/apps/muzei/render/MuzeiBlurRenderer.java
  92. +241 −0 main/src/main/java/com/google/android/apps/muzei/render/MuzeiRendererFragment.java
  93. +111 −0 main/src/main/java/com/google/android/apps/muzei/render/RealRenderController.java
  94. +108 −0 main/src/main/java/com/google/android/apps/muzei/render/RenderController.java
  95. +94 −0 main/src/main/java/com/google/android/apps/muzei/settings/AboutActivity.java
  96. +289 −0 main/src/main/java/com/google/android/apps/muzei/settings/SettingsActivity.java
  97. +146 −0 main/src/main/java/com/google/android/apps/muzei/settings/SettingsAdvancedFragment.java
  98. +531 −0 main/src/main/java/com/google/android/apps/muzei/settings/SettingsChooseSourceFragment.java
  99. +182 −0 main/src/main/java/com/google/android/apps/muzei/util/AnimatedMuzeiLoadingSpinnerView.java
  100. +96 −0 main/src/main/java/com/google/android/apps/muzei/util/AnimatedMuzeiLogoFragment.java
  101. +238 −0 main/src/main/java/com/google/android/apps/muzei/util/AnimatedMuzeiLogoView.java
  102. +146 −0 main/src/main/java/com/google/android/apps/muzei/util/CheatSheet.java
  103. +107 −0 main/src/main/java/com/google/android/apps/muzei/util/CheckableImageView.java
  104. +173 −0 main/src/main/java/com/google/android/apps/muzei/util/DrawInsetsFrameLayout.java
  105. +288 −0 main/src/main/java/com/google/android/apps/muzei/util/IOUtil.java
  106. +110 −0 main/src/main/java/com/google/android/apps/muzei/util/LogUtil.java
  107. +92 −0 main/src/main/java/com/google/android/apps/muzei/util/LogoPaths.java
  108. +55 −0 main/src/main/java/com/google/android/apps/muzei/util/MathUtil.java
  109. +231 −0 main/src/main/java/com/google/android/apps/muzei/util/MultiSelectionUtil.java
  110. +72 −0 main/src/main/java/com/google/android/apps/muzei/util/ObservableHorizontalScrollView.java
  111. +598 −0 main/src/main/java/com/google/android/apps/muzei/util/PanScaleProxyView.java
  112. +177 −0 main/src/main/java/com/google/android/apps/muzei/util/Scrollbar.java
  113. +178 −0 main/src/main/java/com/google/android/apps/muzei/util/SelectionBuilder.java
  114. +54 −0 main/src/main/java/com/google/android/apps/muzei/util/ShadowDipsTextView.java
  115. +237 −0 main/src/main/java/com/google/android/apps/muzei/util/SvgPathParser.java
  116. +118 −0 main/src/main/java/com/google/android/apps/muzei/util/TickingFloatAnimator.java
  117. +39 −0 main/src/main/java/com/google/android/apps/muzei/util/TypefaceUtil.java
  118. +137 −0 main/src/main/java/com/google/android/apps/muzei/util/Zoomer.java
  119. +153 −0 main/src/main/java/net/rbgrn/android/glwallpaperservice/BaseConfigChooser.java
  120. +859 −0 main/src/main/java/net/rbgrn/android/glwallpaperservice/GLWallpaperService.java
  121. +22 −0 main/src/main/res/animator/fade_in.xml
  122. +22 −0 main/src/main/res/animator/fade_out.xml
  123. BIN main/src/main/res/drawable-hdpi/ic_launcher.png
  124. BIN main/src/main/res/drawable-hdpi/ic_launcher_trans.png
  125. BIN main/src/main/res/drawable-mdpi/ic_launcher.png
  126. BIN main/src/main/res/drawable-mdpi/ic_launcher_trans.png
  127. BIN main/src/main/res/drawable-nodpi/ic_source_favorites.png
  128. BIN main/src/main/res/drawable-nodpi/ic_source_featured.png
  129. BIN main/src/main/res/drawable-nodpi/ic_source_gallery.png
  130. BIN main/src/main/res/drawable-nodpi/ic_source_selected.png
  131. BIN main/src/main/res/drawable-nodpi/thumb.png
  132. BIN main/src/main/res/drawable-xhdpi/ic_launcher.png
  133. BIN main/src/main/res/drawable-xhdpi/ic_launcher_trans.png
  134. BIN main/src/main/res/drawable-xhdpi/ic_stat_muzei.png
  135. BIN main/src/main/res/drawable-xxhdpi/btn_check_off.png
  136. BIN main/src/main/res/drawable-xxhdpi/btn_check_off_focused.png
  137. BIN main/src/main/res/drawable-xxhdpi/btn_check_off_pressed.png
  138. BIN main/src/main/res/drawable-xxhdpi/btn_check_on.png
  139. BIN main/src/main/res/drawable-xxhdpi/btn_check_on_focused.png
  140. BIN main/src/main/res/drawable-xxhdpi/btn_check_on_pressed.png
  141. BIN main/src/main/res/drawable-xxhdpi/cab_background.9.png
  142. BIN main/src/main/res/drawable-xxhdpi/configure_ab_spinner_default.9.png
  143. BIN main/src/main/res/drawable-xxhdpi/gallery_settings_chosen_photo_selected_overlay.9.png
  144. BIN main/src/main/res/drawable-xxhdpi/grumpy_mcpuzzles.png
  145. BIN main/src/main/res/drawable-xxhdpi/ic_ab_gallery.png
  146. BIN main/src/main/res/drawable-xxhdpi/ic_ab_muzei.png
  147. BIN main/src/main/res/drawable-xxhdpi/ic_ab_overflow.png
  148. BIN main/src/main/res/drawable-xxhdpi/ic_action_done.png
  149. BIN main/src/main/res/drawable-xxhdpi/ic_action_rotate_interval.png
  150. BIN main/src/main/res/drawable-xxhdpi/ic_add_photos.png
  151. BIN main/src/main/res/drawable-xxhdpi/ic_launcher.png
  152. BIN main/src/main/res/drawable-xxhdpi/ic_launcher_trans.png
  153. BIN main/src/main/res/drawable-xxhdpi/ic_overflow.png
  154. BIN main/src/main/res/drawable-xxhdpi/ic_skip.png
  155. BIN main/src/main/res/drawable-xxhdpi/ic_source_settings.png
  156. BIN main/src/main/res/drawable-xxhdpi/ic_stat_muzei.png
  157. BIN main/src/main/res/drawable-xxhdpi/logo_subtitle.png
  158. BIN main/src/main/res/drawable-xxhdpi/popup_bg.9.png
  159. BIN main/src/main/res/drawable-xxhdpi/scrubber_control_disabled.png
  160. BIN main/src/main/res/drawable-xxhdpi/scrubber_control_focused.png
  161. BIN main/src/main/res/drawable-xxhdpi/scrubber_control_normal.png
  162. BIN main/src/main/res/drawable-xxhdpi/scrubber_control_pressed.png
  163. BIN main/src/main/res/drawable-xxhdpi/scrubber_primary.9.png
  164. BIN main/src/main/res/drawable-xxhdpi/scrubber_secondary.9.png
  165. BIN main/src/main/res/drawable-xxhdpi/scrubber_track.9.png
  166. BIN main/src/main/res/drawable-xxhdpi/scrubber_track_blur_amount.9.png
  167. BIN main/src/main/res/drawable-xxhdpi/scrubber_track_dim_amount.9.png
  168. BIN main/src/main/res/drawable-xxhdpi/settings_ab_spinner_focused.9.png
  169. BIN main/src/main/res/drawable-xxhdpi/settings_ab_spinner_pressed.9.png
  170. BIN main/src/main/res/drawable-xxhdpi/tutorial_icon_off.png
  171. BIN main/src/main/res/drawable-xxhdpi/tutorial_icon_on.png
  172. BIN main/src/main/res/drawable-xxhdpi/white_item_focused.9.png
  173. BIN main/src/main/res/drawable-xxhdpi/white_item_pressed.9.png
  174. BIN main/src/main/res/drawable-xxxhdpi/ic_launcher.png
  175. BIN main/src/main/res/drawable-xxxhdpi/ic_launcher_trans.png
  176. +38 −0 main/src/main/res/drawable/btn_check.xml
  177. +22 −0 main/src/main/res/drawable/intro_background_protection.xml
  178. +22 −0 main/src/main/res/drawable/metadata_background_protection.xml
  179. +22 −0 main/src/main/res/drawable/scrubber_control_selector.xml
  180. +21 −0 main/src/main/res/drawable/scrubber_progress_blur_amount.xml
  181. +21 −0 main/src/main/res/drawable/scrubber_progress_dim_amount.xml
  182. +28 −0 main/src/main/res/drawable/scrubber_progress_horizontal.xml
  183. +23 −0 main/src/main/res/drawable/settings_ab_spinner_background.xml
  184. +28 −0 main/src/main/res/drawable/settings_source_item_image_overlay.xml
  185. +21 −0 main/src/main/res/drawable/tutorial_icon.xml
  186. +33 −0 main/src/main/res/drawable/white_circle_button.xml
  187. +23 −0 main/src/main/res/drawable/white_selectable_item_background.xml
  188. +56 −0 main/src/main/res/layout-land/muzei_include_intro.xml
  189. +29 −0 main/src/main/res/layout-sw600dp/about_activity.xml
  190. +25 −0 main/src/main/res/layout-sw600dp/muzei_include_tutorial.xml
  191. +27 −0 main/src/main/res/layout-sw600dp/settings_advanced_fragment.xml
  192. +35 −0 main/src/main/res/layout-sw600dp/settings_include_actionbar_done.xml
  193. +26 −0 main/src/main/res/layout/about_activity.xml
  194. +63 −0 main/src/main/res/layout/about_include_content.xml
  195. +39 −0 main/src/main/res/layout/animated_logo_fragment.xml
  196. +23 −0 main/src/main/res/layout/fragment_settings_simple_prefs.xml
  197. +88 −0 main/src/main/res/layout/gallery_settings_activity.xml
  198. +24 −0 main/src/main/res/layout/gallery_settings_chosen_photo_item.xml
  199. +161 −0 main/src/main/res/layout/muzei_activity.xml
  200. +53 −0 main/src/main/res/layout/muzei_include_intro.xml
  201. +22 −0 main/src/main/res/layout/muzei_include_tutorial.xml
  202. +96 −0 main/src/main/res/layout/muzei_include_tutorial_content.xml
  203. +24 −0 main/src/main/res/layout/settings_ab_spinner_list_item.xml
  204. +24 −0 main/src/main/res/layout/settings_ab_spinner_list_item_dropdown.xml
  205. +32 −0 main/src/main/res/layout/settings_activity.xml
  206. +28 −0 main/src/main/res/layout/settings_advanced_fragment.xml
  207. +79 −0 main/src/main/res/layout/settings_advanced_fragment_include_content.xml
  208. +47 −0 main/src/main/res/layout/settings_choose_source_fragment.xml
  209. +69 −0 main/src/main/res/layout/settings_choose_source_item.xml
  210. +24 −0 main/src/main/res/layout/settings_include_actionbar_done.xml
  211. +32 −0 main/src/main/res/layout/settings_include_actionbar_nav.xml
  212. +51 −0 main/src/main/res/menu/gallery_settings.xml
  213. +21 −0 main/src/main/res/menu/gallery_settings_selection.xml
  214. +22 −0 main/src/main/res/menu/muzei_overflow.xml
  215. +22 −0 main/src/main/res/menu/settings.xml
  216. +39 −0 main/src/main/res/values-sw600dp/dimens.xml
  217. +42 −0 main/src/main/res/values/attrs.xml
  218. +24 −0 main/src/main/res/values/colors.xml
  219. +40 −0 main/src/main/res/values/dimens.xml
  220. +30 −0 main/src/main/res/values/ids.xml
  221. +105 −0 main/src/main/res/values/strings.xml
  222. +143 −0 main/src/main/res/values/styles.xml
  223. +21 −0 main/src/main/res/xml/wallpaper.xml
  224. +21 −0 main/version.properties
  225. +1 −0 settings.gradle
  226. +1 −0 web/.gitignore
  227. +38 −0 web/app.yaml
  228. +13 −0 web/handlers/__init__.py
  229. +225 −0 web/handlers/backroom.py
  230. +162 −0 web/handlers/main.py
  231. +11 −0 web/index.yaml
  232. +50 −0 web/models.py
  233. BIN web/static/home.png
  234. +318 −0 web/static/landing.css
  235. +4 −0 web/static/modernizr.custom.14469.js
  236. BIN web/static/muzei.png
  237. BIN web/static/onplay.png
  238. BIN web/static/overflow.png
  239. BIN web/static/systemui.png
  240. BIN web/static/tilted.png
  241. BIN web/static/tilted_fallback.jpg
  242. BIN web/static/tilted_fore.png
  243. +771 −0 web/templates/backroom_schedule.html
  244. +124 −0 web/templates/landing.html
View
@@ -0,0 +1,34 @@
+# built application files
+*.apk
+*.ap_
+
+# files for the dex VM
+*.dex
+
+# Java class files
+*.class
+
+# generated files
+bin/
+gen/
+out/
+build/
+.gradle/
+
+# Project files
+*.iml
+.idea
+# .idea/workspace.xml
+
+# Local configuration file (sdk path, etc)
+local.properties
+keystore.properties
+
+# Windows thumbnail db
+.DS_Store
+
+# Idea non-crucial project fileS
+*.iws
+
+# Sandbox stuff
+_sandbox
View
@@ -0,0 +1,122 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * 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.
+ */
+import org.gradle.api.artifacts.maven.MavenDeployment
+
+apply plugin: 'maven'
+apply plugin: 'signing'
+apply plugin: 'java'
+
+jar.baseName = 'muzei-api'
+group = 'com.google.android.apps.muzei'
+version = '0.1.1'
+
+def Properties props = new Properties()
+props.load(new FileInputStream(file('../local.properties')))
+
+def android = [
+ sdk: props["sdk.dir"],
+ target: 'android-19'
+]
+
+allprojects { ext."signing.keyId" = props["signing.keyId"] }
+allprojects { ext."signing.password" = props["signing.password"] }
+allprojects { ext."signing.secretKeyRingFile" = props["signing.secretKeyRingFile"] }
+
+
+sourceSets {
+ main {
+ java {
+ srcDir 'build/source/aidl/debug'
+ }
+ }
+}
+
+task javadoc(type: Exec, overwrite: true, dependsOn: 'jar') {
+ commandLine './javadoc-scripts/generate_javadoc.sh'
+}
+
+task javadocJar(type: Jar, dependsOn: javadoc) {
+ classifier = 'javadoc'
+ baseName = jar.baseName
+ from 'build/javadoc'
+}
+
+task sourcesJar(type: Jar, dependsOn: classes) {
+ classifier = 'sources'
+ baseName = jar.baseName
+ from sourceSets.main.allSource
+}
+
+artifacts {
+ archives jar
+ archives sourcesJar
+ archives javadocJar
+}
+
+dependencies {
+ compile files("${android.sdk}/platforms/${android.target}/android.jar")
+}
+
+// http://jedicoder.blogspot.com/2011/11/automated-gradle-project-deployment-to.html
+// TODO: switch to http://www.gradle.org/docs/current/userguide/publishing_maven.html
+
+signing {
+ sign configurations.archives
+}
+
+uploadArchives {
+ repositories {
+ mavenDeployer {
+ beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
+
+ repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
+ authentication(userName: props["sonatypeUsername"], password: props["sonatypePassword"])
+ }
+
+ snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
+ authentication(userName: props["sonatypeUsername"], password: props["sonatypePassword"])
+ }
+
+ pom.project {
+ name 'Muzei API'
+ packaging 'jar'
+ description 'The Muzei API allows you to extend Muzei with custom sources'
+ url 'http://muzei.co/api'
+
+ scm {
+ url 'https://code.google.com/p/dashclock/source/browse'
+ connection 'scm:git:https://code.google.com/p/dashclock/'
+ developerConnection 'scm:git:https://code.google.com/p/dashclock/'
+ }
+
+ licenses {
+ license {
+ name 'The Apache Software License, Version 2.0'
+ url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
+ distribution 'repo'
+ }
+ }
+
+ developers {
+ developer {
+ id 'romannurik'
+ name 'Roman Nurik'
+ }
+ }
+ }
+ }
+ }
+}
@@ -0,0 +1 @@
+_locals.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Copyright 2014 Google Inc.
+#
+# 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.
+
+PLATFORM=android-17
+OUT_PATH=../build/javadoc
+
+cd `dirname $0`
+
+source _locals.sh
+javadoc -linkoffline http://developer.android.com/reference ${ANDROID_SDK}/docs/reference \
+ -sourcepath ../src/main/java:../build/source/aidl/debug \
+ -classpath ${ANDROID_SDK}/platforms/${PLATFORM}/android.jar:${ANDROID_SDK}/tools/support/annotations.jar \
+ -d ${OUT_PATH} \
+ -notree -nonavbar -noindex -notree -nohelp -nodeprecated \
+ -stylesheetfile javadoc_stylesheet.css \
+ -windowtitle "Muzei API" \
+ -doctitle "Muzei API" \
+ com.google.android.apps.muzei.api
+
+cp prettify* ${OUT_PATH}/resources/
+
+python tweak_javadoc_html.py ${OUT_PATH}/
@@ -0,0 +1,28 @@
+<!doctype html>
+<html>
+<!--
+ Copyright 2014 Google Inc.
+
+ 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.
+-->
+<head>
+<meta http-equiv="refresh" content="0;URL='com/google/android/apps/muzei/api/package-summary.html'">
+</head>
+<body>
+
+Redirecting you to the
+<a href="com/google/android/apps/muzei/api/package-summary.html">com.google.android.apps.muzei.api</a>
+package summary&hellip;
+
+</body>
+</html>
@@ -0,0 +1,95 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * 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.
+ */
+
+/* Javadoc style sheet */
+
+/* Define colors, fonts and other style attributes here to override the defaults */
+
+/* Page background color */
+body {
+ background-color: #fff;
+ color: #333;
+ margin: 60px 80px;
+ font-family: roboto;
+ font-size: 16px;
+ line-height: 140%;
+}
+
+/* Headings */
+h2 {
+ font-size: 200%;
+ font-weight: 300;
+}
+
+/* Table colors */
+/*.TableHeadingColor { background: #CCCCFF; color:#000000 }
+.TableSubHeadingColor { background: #EEEEFF; color:#000000 }
+.TableRowColor { background: #FFFFFF; color:#000000 }*/
+
+table, td, tr, th {
+ border:0;
+}
+
+hr {
+ margin: 20px 0;
+ border: 1px solid #09c;
+}
+
+th {
+ background-color: #eee;
+ border-bottom: 1px solid #ccc;
+}
+
+td {
+ padding: 6px;
+}
+
+table {
+ margin-top: 20px;
+}
+
+td {
+ border-bottom: 1px solid #eee;
+}
+
+pre, code {
+ font-family: inconsolata;
+ font-size: 110%;
+}
+
+code {
+ color: #096;
+}
+
+pre.prettyprint {
+ background: #eee;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ padding: 20px 10px;
+}
+
+a, a code {
+ color: #09c;
+ text-decoration: none;
+}
+
+a {
+ border-bottom: 1px dotted #09c;
+}
+
+a:hover {
+ border-bottom: 1px solid #09c;
+}
@@ -0,0 +1 @@
+.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
Oops, something went wrong.

0 comments on commit cde37f3

Please sign in to comment.