diff options
author | Scott Main <smain@google.com> | 2012-11-19 11:58:59 -0800 |
---|---|---|
committer | Scott Main <smain@google.com> | 2012-11-19 11:58:59 -0800 |
commit | 6c9a1a1004f224e771139aec6fd2058aa6bdccbd (patch) | |
tree | 3545e2320d465d5e587d72dcd2a109c7a204e08d /core/java/android/service/dreams | |
parent | 721b370c5a2d787795257ac42317d389445e51f9 (diff) | |
download | frameworks_base-6c9a1a1004f224e771139aec6fd2058aa6bdccbd.zip frameworks_base-6c9a1a1004f224e771139aec6fd2058aa6bdccbd.tar.gz frameworks_base-6c9a1a1004f224e771139aec6fd2058aa6bdccbd.tar.bz2 |
docs: update dreamservice description
Change-Id: I7e7295a3d67ca1760ba52b3958bf91540692e542
Diffstat (limited to 'core/java/android/service/dreams')
-rw-r--r-- | core/java/android/service/dreams/DreamService.java | 11 |
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> * <service * android:name=".MyDream" |