summaryrefslogtreecommitdiffstats
path: root/core/java/android/service
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2012-11-28 11:04:18 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-11-28 11:04:18 -0800
commitce4a9a34b68ab04ab176d59e7562f520d0267b79 (patch)
tree662325fd002a012fbaf9be11a714b546af57ffd6 /core/java/android/service
parentc653df46436a796556da2633f90353900344ce39 (diff)
parent33a8b28f04ae689f3d5e24ef46df1dea76be602b (diff)
downloadframeworks_base-ce4a9a34b68ab04ab176d59e7562f520d0267b79.zip
frameworks_base-ce4a9a34b68ab04ab176d59e7562f520d0267b79.tar.gz
frameworks_base-ce4a9a34b68ab04ab176d59e7562f520d0267b79.tar.bz2
am 33a8b28f: am 1cc041f7: am 7538ff09: am 35473e6e: Merge "docs: update dreamservice description" into jb-mr1-dev
* commit '33a8b28f04ae689f3d5e24ef46df1dea76be602b': docs: update dreamservice description
Diffstat (limited to 'core/java/android/service')
-rw-r--r--core/java/android/service/dreams/DreamService.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/core/java/android/service/dreams/DreamService.java b/core/java/android/service/dreams/DreamService.java
index 6c9290b..f6b6c89 100644
--- a/core/java/android/service/dreams/DreamService.java
+++ b/core/java/android/service/dreams/DreamService.java
@@ -44,13 +44,13 @@ import android.view.accessibility.AccessibilityEvent;
import com.android.internal.policy.PolicyManager;
/**
- * Extend this class to implement a custom Dream (displayed to the user as a "Sleep Mode").
+ * Extend this class to implement a custom dream (available to the user as a "Daydream").
*
* <p>Dreams are interactive screensavers launched when a charging device is idle, or docked in a
* desk dock. Dreams provide another modality for apps to express themselves, tailored for
* an exhibition/lean-back experience.</p>
*
- * <p>The Dream lifecycle is as follows:</p>
+ * <p>The {@code DreamService} lifecycle is as follows:</p>
* <ol>
* <li>{@link #onAttachedToWindow}
* <p>Use this for initial setup, such as calling {@link #setContentView setContentView()}.</li>
@@ -59,14 +59,15 @@ import com.android.internal.policy.PolicyManager;
* <li>{@link #onDreamingStopped}
* <p>Use this to stop the things you started in {@link #onDreamingStarted}.</li>
* <li>{@link #onDetachedFromWindow}
- * <p>Use this to dismantle resources your dream set up. For example, detach from handlers
- * and listeners.</li>
+ * <p>Use this to dismantle resources (for example, detach from handlers
+ * and listeners).</li>
* </ol>
*
* <p>In addition, onCreate and onDestroy (from the Service interface) will also be called, but
* initialization and teardown should be done by overriding the hooks above.</p>
*
- * <p>To be available to the system, Dreams should be declared in the manifest as follows:</p>
+ * <p>To be available to the system, your {@code DreamService} should be declared in the
+ * manifest as follows:</p>
* <pre>
* &lt;service
* android:name=".MyDream"